src/graphics/text.js
function(propertyName) {
            // could check for DOM component, but this event should only be fired by such an entity!
            // Rather than triggering Invalidate on each of these, we rely on css() triggering that event
            switch (propertyName) {
                case "textAlign":
                    this._textAlign = this._element.style.textAlign;
                    break;
                case "color":
                    // Need to set individual color components, so use method
                    this.textColor(this._element.style.color);
                    break;
                case "fontType":
                    this._textFont.type = this._element.style.fontType;
                    break;
                case "fontWeight":
                    this._textFont.weight = this._element.style.fontWeight;
                    break;
                case "fontSize":
                    this._textFont.size = this._element.style.fontSize;
                    break;
                case "fontFamily":
                    this._textFont.family = this._element.style.fontFamily;
                    break;
                case "fontVariant":
                    this._textFont.variant = this._element.style.fontVariant;
                    break;
                case "lineHeight":
                    this._textFont.lineHeight = this._element.style.lineHeight;
                    break;
            }
        }
function(propertyName) {
            // could check for DOM component, but this event should only be fired by such an entity!
            // Rather than triggering Invalidate on each of these, we rely on css() triggering that event
            switch (propertyName) {
                case "textAlign":
                    this._textAlign = this._element.style.textAlign;
                    break;
                case "color":
                    // Need to set individual color components, so use method
                    this.textColor(this._element.style.color);
                    break;
                case "fontType":
                    this._textFont.type = this._element.style.fontType;
                    break;
                case "fontWeight":
                    this._textFont.weight = this._element.style.fontWeight;
                    break;
                case "fontSize":
                    this._textFont.size = this._element.style.fontSize;
                    break;
                case "fontFamily":
                    this._textFont.family = this._element.style.fontFamily;
                    break;
                case "fontVariant":
                    this._textFont.variant = this._element.style.fontVariant;
                    break;
                case "lineHeight":
                    this._textFont.lineHeight = this._element.style.lineHeight;
                    break;
            }
        }
function ( propertyName ) { // could check for DOM component, but this event should only be fired by such an entity! // Rather than triggering Invalidate on each of these, we rely on css() triggering that event switch ( propertyName ) { case "textAlign" : this . _textAlign = this . _element . style . textAlign ; break ; case "color" : // Need to set individual color components, so use method this . textColor ( this . _element . style . color ) ; break ; case "fontType" : this . _textFont . type = this . _element . style . fontType ; break ; case "fontWeight" : this . _textFont . weight = this . _element . style . fontWeight ; break ; case "fontSize" : this . _textFont . size = this . _element . style . fontSize ; break ; case "fontFamily" : this . _textFont . family = this . _element . style . fontFamily ; break ; case "fontVariant" : this . _textFont . variant = this . _element . style . fontVariant ; break ; case "lineHeight" : this . _textFont . lineHeight = this . _element . style . lineHeight ; break ; } }
type, weight, size, family, lineHeight, and variant. For a few hardcoded css properties, set the internal definitions
type weight size family lineHeight and variant . For a few hardcoded css properties set the internal definitions