fabric
Version:
Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.
3 lines (2 loc) • 1.3 kB
JavaScript
import{STROKE as t,FILL as e,reNewline as i,LEFT as n}from"../../constants.min.mjs";const o=["fontSize","fontWeight","fontFamily","fontStyle"],r=["underline","overline","linethrough"],l=[...o,"lineHeight","text","charSpacing","textAlign","styles","path","pathStartOffset","pathSide","pathAlign"],a=[...l,...r,"textBackgroundColor","direction"],s=[...o,...r,t,"strokeWidth",e,"deltaY","textBackgroundColor"],h={_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,superscript:{size:.6,baseline:-.35},subscript:{size:.6,baseline:.11},textBackgroundColor:"",stroke:null,shadow:null,path:void 0,pathStartOffset:0,pathSide:n,pathAlign:"baseline",_fontSizeFraction:.222,offsets:{underline:.1,linethrough:-.315,overline:-.88},_fontSizeMult:1.13,charSpacing:0,deltaY:0,direction:"ltr",CACHE_FONT_SIZE:400,MIN_TEXT_WIDTH:2},f="justify",g="justify-left",d="justify-right",u="justify-center";export{f as JUSTIFY,u as JUSTIFY_CENTER,g as JUSTIFY_LEFT,d as JUSTIFY_RIGHT,a as additionalProps,s as styleProperties,r as textDecorationProperties,h as textDefaultValues,l as textLayoutProperties};
//# sourceMappingURL=constants.min.mjs.map