UNPKG

fabric

Version:

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

2 lines 5.01 kB
import{__exportAll as e}from"../../_virtual/_rolldown/runtime.min.mjs";import{removeFromArray as t}from"./internals/removeFromArray.min.mjs";import{cos as n}from"./misc/cos.min.mjs";import{sin as r}from"./misc/sin.min.mjs";import{cancelAnimFrame as i,requestAnimFrame as a}from"./animation/AnimationFrameProvider.min.mjs";import{copyCanvasElement as o,createCanvasElement as s,createImage as c,toBlob as l,toDataURL as u}from"./misc/dom.min.mjs";import{degreesToRadians as d,radiansToDegrees as f}from"./misc/radiansDegreesConversion.min.mjs";import{calcDimensionsMatrix as p,composeMatrix as m,createRotateMatrix as h,createScaleMatrix as g,createSkewXMatrix as _,createSkewYMatrix as v,createTranslateMatrix as y,invertTransform as b,isIdentityMatrix as x,multiplyTransformMatrices as S,multiplyTransformMatrixArray as C,qrDecompose as w,transformPoint as T}from"./misc/matrix.min.mjs";import{enlivenObjectEnlivables as E,enlivenObjects as D,loadImage as O}from"./misc/objectEnlive.min.mjs";import{pick as k}from"./misc/pick.min.mjs";import{toFixed as A}from"./misc/toFixed.min.mjs";import{matrixToSVG as j}from"./misc/svgExport.min.mjs";import{lang_string_exports as M}from"./lang_string.min.mjs";import{getPointer as N,isTouchEvent as P}from"./dom_event.min.mjs";import{makeBoundingBoxFromPoints as F}from"./misc/boundingBoxFromPoints.min.mjs";import{addTransformToObject as I,applyTransformToObject as L,removeTransformFromObject as R,resetObjectTransform as z,saveObjectTransform as B,sizeAfterTransform as V}from"./misc/objectTransforms.min.mjs";import{calcPlaneChangeMatrix as H,sendObjectToPlane as U,sendPointToPlane as W,sendVectorToPlane as G}from"./misc/planeChange.min.mjs";import{calcAngleBetweenVectors as K,calcVectorRotation as q,createVector as J,crossProduct as Y,dotProduct as X,getOrthonormalVector as Z,getUnitVector as Q,isBetweenVectors as $,magnitude as ee,rotateVector as te}from"./misc/vectors.min.mjs";import{getSvgAttributes as ne,parsePreserveAspectRatioAttribute as re,parseUnit as ie}from"./misc/svgParsing.min.mjs";import{capValue as ae}from"./misc/capValue.min.mjs";import{easing_exports as oe}from"./animation/easing.min.mjs";import{animate as se,animateColor as ce}from"./animation/animate.min.mjs";import{isTransparent as le}from"./misc/isTransparent.min.mjs";import{projectStrokeOnPoints as ue}from"./misc/projectStroke/index.min.mjs";import{hasStyleChanged as de,stylesFromArray as fe,stylesToArray as pe}from"./misc/textStyles.min.mjs";import{groupSVGElements as me}from"./misc/groupSVGElements.min.mjs";import{findScaleToCover as he,findScaleToFit as ge}from"./misc/findScaleTo.min.mjs";import{getBoundsOfCurve as _e,getPathSegmentsInfo as ve,getPointOnPath as ye,getRegularPolygonPath as be,getSmoothPathFromPoints as xe,joinPath as Se,makePathSimpler as Ce,parsePath as we,transformPath as Te}from"./path/index.min.mjs";import{mergeClipPaths as Ee}from"./misc/mergeClipPaths.min.mjs";import{getRandomInt as De}from"./internals/getRandomInt.min.mjs";import{removeTransformMatrixForSvgParsing as Oe}from"./transform_matrix_removal.min.mjs";var ke=e({addTransformToObject:()=>I,animate:()=>se,animateColor:()=>ce,applyTransformToObject:()=>L,calcAngleBetweenVectors:()=>K,calcDimensionsMatrix:()=>p,calcPlaneChangeMatrix:()=>H,calcVectorRotation:()=>q,cancelAnimFrame:()=>i,capValue:()=>ae,composeMatrix:()=>m,copyCanvasElement:()=>o,cos:()=>n,createCanvasElement:()=>s,createImage:()=>c,createRotateMatrix:()=>h,createScaleMatrix:()=>g,createSkewXMatrix:()=>_,createSkewYMatrix:()=>v,createTranslateMatrix:()=>y,createVector:()=>J,crossProduct:()=>Y,degreesToRadians:()=>d,dotProduct:()=>X,ease:()=>oe,enlivenObjectEnlivables:()=>E,enlivenObjects:()=>D,findScaleToCover:()=>he,findScaleToFit:()=>ge,getBoundsOfCurve:()=>_e,getOrthonormalVector:()=>Z,getPathSegmentsInfo:()=>ve,getPointOnPath:()=>ye,getPointer:()=>N,getRandomInt:()=>De,getRegularPolygonPath:()=>be,getSmoothPathFromPoints:()=>xe,getSvgAttributes:()=>ne,getUnitVector:()=>Q,groupSVGElements:()=>me,hasStyleChanged:()=>de,invertTransform:()=>b,isBetweenVectors:()=>$,isIdentityMatrix:()=>x,isTouchEvent:()=>P,isTransparent:()=>le,joinPath:()=>Se,loadImage:()=>O,magnitude:()=>ee,makeBoundingBoxFromPoints:()=>F,makePathSimpler:()=>Ce,matrixToSVG:()=>j,mergeClipPaths:()=>Ee,multiplyTransformMatrices:()=>S,multiplyTransformMatrixArray:()=>C,parsePath:()=>we,parsePreserveAspectRatioAttribute:()=>re,parseUnit:()=>ie,pick:()=>k,projectStrokeOnPoints:()=>ue,qrDecompose:()=>w,radiansToDegrees:()=>f,removeFromArray:()=>t,removeTransformFromObject:()=>R,removeTransformMatrixForSvgParsing:()=>Oe,requestAnimFrame:()=>a,resetObjectTransform:()=>z,rotateVector:()=>te,saveObjectTransform:()=>B,sendObjectToPlane:()=>U,sendPointToPlane:()=>W,sendVectorToPlane:()=>G,sin:()=>r,sizeAfterTransform:()=>V,string:()=>M,stylesFromArray:()=>fe,stylesToArray:()=>pe,toBlob:()=>l,toDataURL:()=>u,toFixed:()=>A,transformPath:()=>Te,transformPoint:()=>T});export{ke as util_exports}; //# sourceMappingURL=index.min.mjs.map