UNPKG

fabric

Version:

Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.

2 lines 1.4 kB
import{FILL as e,LEFT as t,NORMAL as n,STROKE as r,reNewline as i}from"../../constants.min.mjs";const a=`textDecorationThickness`,o=`textDecorationColor`,s=[`fontSize`,`fontWeight`,`fontFamily`,`fontStyle`],c=[`underline`,`overline`,`linethrough`],l=[...s,`lineHeight`,`text`,`charSpacing`,`textAlign`,`styles`,`path`,`pathStartOffset`,`pathSide`,`pathAlign`],u=[...l,...c,`textBackgroundColor`,`direction`,a,o],d=[...s,...c,r,`strokeWidth`,e,`deltaY`,`textBackgroundColor`,a,o],f={_reNewline:i,_reSpacesAndTabs:/[ \t\r]/g,_reSpaceAndTab:/[ \t\r]/,_reWords:/\S+/g,fontSize:40,fontWeight:n,fontFamily:`Times New Roman`,underline:!1,overline:!1,linethrough:!1,textAlign:t,fontStyle:n,lineHeight:1.16,textBackgroundColor:``,stroke:null,shadow:null,path:void 0,pathStartOffset:0,pathSide:t,pathAlign:`baseline`,charSpacing:0,deltaY:0,direction:`ltr`,CACHE_FONT_SIZE:400,MIN_TEXT_WIDTH:2,superscript:{size:.6,baseline:-.35},subscript:{size:.6,baseline:.11},_fontSizeFraction:.222,offsets:{underline:.1,linethrough:-.28167,overline:-.81333},_fontSizeMult:1.13,[a]:66.667},p=`justify`,m=`justify-left`,h=`justify-right`,g=`justify-center`;export{p as JUSTIFY,g as JUSTIFY_CENTER,m as JUSTIFY_LEFT,h as JUSTIFY_RIGHT,o as TEXT_DECORATION_COLOR,a as TEXT_DECORATION_THICKNESS,u as additionalProps,d as styleProperties,f as textDefaultValues,l as textLayoutProperties}; //# sourceMappingURL=constants.min.mjs.map