天下无坑

天下无坑


fabric.Text的prototype

<pre><code>重要的原型方法 scaleToWidth: ƒ () getScaledHeight: ƒ () getScaledWidth: ƒ () calcTextHeight: ƒ () calcTextWidth: ƒ ()</code></pre> <pre><code class="language-javascript">CACHE_FONT_SIZE: 400 MIN_TEXT_WIDTH: 2 cacheProperties: (27) ["fill", "stroke", "strokeWidth", "strokeDashArray", "width", "height", "paintFirst", "strokeUniform", "strokeLineCap", "strokeDashOffset", "strokeLineJoin", "strokeMiterLimit", "backgroundColor", "clipPath", "fontFamily", "fontWeight", "fontSize", "text", "underline", "overline", "linethrough", "textAlign", "fontStyle", "lineHeight", "textBackgroundColor", "charSpacing", "styles"] calcTextHeight: ƒ () calcTextWidth: ƒ () callSuper: ƒ h(t) charSpacing: 0 cleanStyle: ƒ (t) complexity: ƒ () constructor: ƒ i() deltaY: 0 enlargeSpaces: ƒ () fontFamily: "Times New Roman" fontSize: 40 fontStyle: "normal" fontWeight: "normal" get2DCursorLocation: ƒ (t,e) getCompleteStyleDeclaration: ƒ (t,e) getFontCache: ƒ (t) getHeightOfChar: ƒ (t,e) getHeightOfLine: ƒ (t) getLineWidth: ƒ (t) getMeasuringContext: ƒ () getSelectionStyles: ƒ (t,e,i) getStyleAtPosition: ƒ (t,e) getSvgStyles: ƒ (t) getValueOfPropertyAt: ƒ (t,e,i) initDimensions: ƒ () initialize: ƒ () isEmptyStyles: ƒ (t) isEndOfWrapping: ƒ (t) lineHeight: 1.16 linethrough: false measureLine: ƒ (t) missingNewlineOffset: ƒ () offsets: {underline: 0.1, linethrough: -0.315, overline: -0.88} overline: false removeStyle: ƒ (t) render: ƒ () set: ƒ () setSelectionStyles: ƒ (t,e,i) setSubscript: ƒ (t,e) setSuperscript: ƒ (t,e) shadow: null stateProperties: (44) [ "top", "left", "width", "height", "scaleX", "scaleY", "flipX", "flipY", "originX", "originY", "transformMatrix", "stroke", "strokeWidth", "strokeDashArray", "strokeLineCap", "strokeDashOffset", "strokeLineJoin", "strokeMiterLimit", "angle", "opacity", "fill", "globalCompositeOperation", "shadow", "visible", "backgroundColor", "skewX", "skewY", "fillRule", "paintFirst", "clipPath", "strokeUniform", "fontFamily", "fontWeight", "fontSize", "text", "underline", "overline", "linethrough", "textAlign", "fontStyle", "lineHeight", "textBackgroundColor", "charSpacing", "styles" ] stroke: null styleHas: ƒ (t,e) styles: null subscript: {size: 0.6, baseline: 0.11} superscript: {size: 0.6, baseline: -0.35} textAlign: "left" textBackgroundColor: "" toObject: ƒ () toSVG: ƒ (t) toString: ƒ () type: "text" underline: false</code></pre>

页面列表

ITEM_HTML