UNPKG

fabric

Version:

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

2 lines 996 B
import{_defineProperty as e}from"../_virtual/_@oxc-project_runtime@0.122.0/helpers/defineProperty.min.mjs";var t=class{constructor(){e(this,`browserShadowBlurConstant`,1),e(this,`DPI`,96),e(this,`devicePixelRatio`,typeof window<`u`?window.devicePixelRatio:1),e(this,`perfLimitSizeTotal`,2097152),e(this,`maxCacheSideLimit`,4096),e(this,`minCacheSideLimit`,256),e(this,`disableStyleCopyPaste`,!1),e(this,`enableGLFiltering`,!0),e(this,`textureSize`,4096),e(this,`forceGLPutImageData`,!1),e(this,`cachesBoundsOfCurve`,!1),e(this,`fontPaths`,{}),e(this,`NUM_FRACTION_DIGITS`,4)}};const n=new class extends t{constructor(e){super(),this.configure(e)}configure(e={}){Object.assign(this,e)}addFonts(e={}){this.fontPaths={...this.fontPaths,...e}}removeFonts(e=[]){e.forEach(e=>{delete this.fontPaths[e]})}clearFonts(){this.fontPaths={}}restoreDefaults(e){let n=new t,r=(e==null?void 0:e.reduce((e,t)=>(e[t]=n[t],e),{}))||n;this.configure(r)}};export{n as config}; //# sourceMappingURL=config.min.mjs.map