UNPKG

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
import{STROKE as t,FILL as e,LTR as i,LEFT as n,NORMAL as o,reNewline as r}from"../../constants.min.mjs";const l="textDecorationThickness",a=["fontSize","fontWeight","fontFamily","fontStyle"],s=["underline","overline","linethrough"],h=[...a,"lineHeight","text","charSpacing","textAlign","styles","path","pathStartOffset","pathSide","pathAlign"],f=[...h,...s,"textBackgroundColor","direction",l],c=[...a,...s,t,"strokeWidth",e,"deltaY","textBackgroundColor",l],g={_reNewline:r,_reSpacesAndTabs:/[ \t\r]/g,_reSpaceAndTab:/[ \t\r]/,_reWords:/\S+/g,fontSize:40,fontWeight:o,fontFamily:"Times New Roman",underline:!1,overline:!1,linethrough:!1,textAlign:n,fontStyle:o,lineHeight:1.16,textBackgroundColor:"",stroke:null,shadow:null,path:void 0,pathStartOffset:0,pathSide:n,pathAlign:"baseline",charSpacing:0,deltaY:0,direction:i,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,[l]:66.667},d="justify",u="justify-left",p="justify-right",S="justify-center";export{d as JUSTIFY,S as JUSTIFY_CENTER,u as JUSTIFY_LEFT,p as JUSTIFY_RIGHT,l as TEXT_DECORATION_THICKNESS,f as additionalProps,c as styleProperties,s as textDecorationProperties,g as textDefaultValues,h as textLayoutProperties}; //# sourceMappingURL=constants.min.mjs.map