fabric
Version:
Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.
3 lines (2 loc) • 1.38 kB
JavaScript
import{STROKE as t,FILL as e,reNewline as i,LEFT as n}from"../../constants.min.mjs";const o="textDecorationThickness",r=["fontSize","fontWeight","fontFamily","fontStyle"],l=["underline","overline","linethrough"],a=[...r,"lineHeight","text","charSpacing","textAlign","styles","path","pathStartOffset","pathSide","pathAlign"],s=[...a,...l,"textBackgroundColor","direction",o],h=[...r,...l,t,"strokeWidth",e,"deltaY","textBackgroundColor",o],f={_reNewline:i,_reSpacesAndTabs:/[ \t\r]/g,_reSpaceAndTab:/[ \t\r]/,_reWords:/\S+/g,fontSize:40,fontWeight:"normal",fontFamily:"Times New Roman",underline:!1,overline:!1,linethrough:!1,textAlign:n,fontStyle:"normal",lineHeight:1.16,textBackgroundColor:"",stroke:null,shadow:null,path:void 0,pathStartOffset:0,pathSide:n,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,[o]:66.667},c="justify",g="justify-left",d="justify-right",u="justify-center";export{c as JUSTIFY,u as JUSTIFY_CENTER,g as JUSTIFY_LEFT,d as JUSTIFY_RIGHT,o as TEXT_DECORATION_THICKNESS,s as additionalProps,h as styleProperties,l as textDecorationProperties,f as textDefaultValues,a as textLayoutProperties};
//# sourceMappingURL=constants.min.mjs.map