fabric 5.3.0 → 6.0.0-beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc +11 -0
- package/.babelrcAlt +19 -0
- package/.browserslistrc +5 -0
- package/.eslintrc.js +43 -0
- package/.eslintrc.json +38 -46
- package/.eslintrc_tests +12 -0
- package/.gitattributes +2 -0
- package/.prettierignore +16 -0
- package/.prettierrc +4 -0
- package/CHANGELOG.md +491 -189
- package/CONTRIBUTING.md +226 -58
- package/README.md +188 -239
- package/bower.json +1 -3
- package/dist/fabric.d.ts +1021 -0
- package/dist/index.cjs +28027 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.min.js +1 -0
- package/dist/index.mjs +27964 -0
- package/dist/index.mjs.map +1 -0
- package/dist/index.node.cjs +28092 -0
- package/dist/index.node.cjs.map +1 -0
- package/dist/index.node.d.ts +15 -0
- package/dist/index.node.mjs +28035 -0
- package/dist/index.node.mjs.map +1 -0
- package/dist/src/Collection.d.ts +126 -0
- package/dist/src/CommonMethods.d.ts +32 -0
- package/dist/src/EventTypeDefs.d.ts +226 -0
- package/dist/src/Intersection.d.ts +100 -0
- package/dist/src/Observable.d.ts +54 -0
- package/dist/src/Pattern.d.ts +104 -0
- package/dist/src/Point.d.ts +232 -0
- package/dist/src/Shadow.d.ts +87 -0
- package/dist/src/brushes/BaseBrush.d.ts +105 -0
- package/dist/src/brushes/CircleBrush.d.ts +49 -0
- package/dist/src/brushes/PatternBrush.d.ts +23 -0
- package/dist/src/brushes/PencilBrush.d.ts +92 -0
- package/dist/src/brushes/SprayBrush.d.ts +79 -0
- package/dist/src/cache.d.ts +46 -0
- package/dist/src/canvas/Canvas.d.ts +567 -0
- package/dist/src/canvas/SelectableCanvas.d.ts +723 -0
- package/dist/src/canvas/StaticCanvas.d.ts +751 -0
- package/dist/src/canvas/TextEditingManager.d.ts +17 -0
- package/dist/src/canvas/canvas_gestures.mixin.d.ts +2 -0
- package/dist/src/color/Color.d.ts +174 -0
- package/dist/src/color/color_map.d.ts +155 -0
- package/dist/src/color/constants.d.ts +22 -0
- package/dist/src/color/util.d.ts +12 -0
- package/dist/src/config.d.ts +115 -0
- package/dist/src/constants.d.ts +14 -0
- package/dist/src/controls/Control.d.ts +228 -0
- package/dist/src/controls/changeWidth.d.ts +13 -0
- package/dist/src/controls/controls.render.d.ts +29 -0
- package/dist/src/controls/default_controls.d.ts +50 -0
- package/dist/src/controls/drag.d.ts +12 -0
- package/dist/src/controls/polyControl.d.ts +5 -0
- package/dist/src/controls/rotate.d.ts +12 -0
- package/dist/src/controls/scale.d.ts +47 -0
- package/dist/src/controls/scaleSkew.d.ts +39 -0
- package/dist/src/controls/skew.d.ts +33 -0
- package/dist/src/controls/util.d.ts +41 -0
- package/dist/src/controls/wrapWithFireEvent.d.ts +8 -0
- package/dist/src/controls/wrapWithFixedAnchor.d.ts +9 -0
- package/dist/src/env/browser.d.ts +3 -0
- package/dist/src/env/index.d.ts +7 -0
- package/dist/src/env/node.d.ts +3 -0
- package/dist/src/env/types.d.ts +15 -0
- package/dist/src/filters/BaseFilter.d.ts +156 -0
- package/dist/src/filters/BlendColor.d.ts +80 -0
- package/dist/src/filters/BlendImage.d.ts +90 -0
- package/dist/src/filters/Blur.d.ts +50 -0
- package/dist/src/filters/Boilerplate.d.ts +46 -0
- package/dist/src/filters/Brightness.d.ts +46 -0
- package/dist/src/filters/Canvas2dFilterBackend.d.ts +27 -0
- package/dist/src/filters/ColorMatrix.d.ts +62 -0
- package/dist/src/filters/ColorMatrixFilters.d.ts +1169 -0
- package/dist/src/filters/Composed.d.ts +47 -0
- package/dist/src/filters/Contrast.d.ts +44 -0
- package/dist/src/filters/Convolute.d.ts +82 -0
- package/dist/src/filters/FilterBackend.d.ts +14 -0
- package/dist/src/filters/Gamma.d.ts +53 -0
- package/dist/src/filters/Grayscale.d.ts +45 -0
- package/dist/src/filters/HueRotation.d.ts +24 -0
- package/dist/src/filters/Invert.d.ts +54 -0
- package/dist/src/filters/Noise.d.ts +53 -0
- package/dist/src/filters/Pixelate.d.ts +43 -0
- package/dist/src/filters/RemoveColor.d.ts +62 -0
- package/dist/src/filters/Resize.d.ts +134 -0
- package/dist/src/filters/Saturation.d.ts +47 -0
- package/dist/src/filters/Vibrance.d.ts +47 -0
- package/dist/src/filters/WebGLFilterBackend.d.ts +126 -0
- package/dist/src/filters/WebGLProbe.d.ts +28 -0
- package/dist/src/filters/typedefs.d.ts +49 -0
- package/dist/src/gradient/Gradient.d.ts +149 -0
- package/dist/src/gradient/constants.d.ts +15 -0
- package/dist/src/gradient/parser/index.d.ts +4 -0
- package/dist/src/gradient/parser/misc.d.ts +4 -0
- package/dist/src/gradient/parser/parseColorStops.d.ts +6 -0
- package/dist/src/gradient/parser/parseCoords.d.ts +17 -0
- package/dist/src/gradient/typedefs.d.ts +93 -0
- package/dist/src/mixins/eraser_brush.mixin.d.ts +2 -0
- package/dist/src/mixins/stateful.mixin.d.ts +18 -0
- package/dist/src/parkinglot/canvas_animation.mixin.d.ts +2 -0
- package/dist/src/parkinglot/straighten.d.ts +2 -0
- package/dist/src/parser/applyViewboxTransform.d.ts +5 -0
- package/dist/src/parser/attributes.d.ts +6 -0
- package/dist/src/parser/constants.d.ts +54 -0
- package/dist/src/parser/doesSomeParentMatch.d.ts +2 -0
- package/dist/src/parser/elementById.d.ts +6 -0
- package/dist/src/parser/elementMatchesRule.d.ts +5 -0
- package/dist/src/parser/elements_parser.d.ts +3 -0
- package/dist/src/parser/getCSSRules.d.ts +7 -0
- package/dist/src/parser/getGlobalStylesForElement.d.ts +5 -0
- package/dist/src/parser/getGradientDefs.d.ts +7 -0
- package/dist/src/parser/getMultipleNodes.d.ts +2 -0
- package/dist/src/parser/getSvgRegex.d.ts +2 -0
- package/dist/src/parser/hasAncestorWithNodeName.d.ts +2 -0
- package/dist/src/parser/loadSVGFromString.d.ts +12 -0
- package/dist/src/parser/loadSVGFromURL.d.ts +13 -0
- package/dist/src/parser/normalizeAttr.d.ts +2 -0
- package/dist/src/parser/normalizeValue.d.ts +2 -0
- package/dist/src/parser/parseAttributes.d.ts +9 -0
- package/dist/src/parser/parseElements.d.ts +11 -0
- package/dist/src/parser/parseFontDeclaration.d.ts +10 -0
- package/dist/src/parser/parsePointsAttribute.d.ts +12 -0
- package/dist/src/parser/parseSVGDocument.d.ts +15 -0
- package/dist/src/parser/parseStyleAttribute.d.ts +9 -0
- package/dist/src/parser/parseStyleObject.d.ts +2 -0
- package/dist/src/parser/parseStyleString.d.ts +2 -0
- package/dist/src/parser/parseTransformAttribute.d.ts +10 -0
- package/dist/src/parser/parseUseDirectives.d.ts +2 -0
- package/dist/src/parser/percent.d.ts +9 -0
- package/dist/src/parser/recursivelyParseGradientsXlink.d.ts +2 -0
- package/dist/src/parser/rotateMatrix.d.ts +2 -0
- package/dist/src/parser/scaleMatrix.d.ts +2 -0
- package/dist/src/parser/selectorMatches.d.ts +2 -0
- package/dist/src/parser/setStrokeFillOpacity.d.ts +6 -0
- package/dist/src/parser/skewMatrix.d.ts +2 -0
- package/dist/src/parser/translateMatrix.d.ts +2 -0
- package/dist/src/shapes/ActiveSelection.d.ts +66 -0
- package/dist/src/shapes/Circle.d.ts +80 -0
- package/dist/src/shapes/Ellipse.d.ts +74 -0
- package/dist/src/shapes/Group.d.ts +381 -0
- package/dist/src/shapes/IText/DraggableTextDelegate.d.ts +78 -0
- package/dist/src/shapes/IText/IText.d.ts +322 -0
- package/dist/src/shapes/IText/ITextBehavior.d.ts +285 -0
- package/dist/src/shapes/IText/ITextClickBehavior.d.ts +81 -0
- package/dist/src/shapes/IText/ITextKeyBehavior.d.ts +193 -0
- package/dist/src/shapes/IText/constants.d.ts +13 -0
- package/dist/src/shapes/Image.d.ts +283 -0
- package/dist/src/shapes/Line.d.ts +117 -0
- package/dist/src/shapes/Object/AnimatableObject.d.ts +33 -0
- package/dist/src/shapes/Object/FabricObject.d.ts +9 -0
- package/dist/src/shapes/Object/FabricObjectSVGExportMixin.d.ts +74 -0
- package/dist/src/shapes/Object/InteractiveObject.d.ts +282 -0
- package/dist/src/shapes/Object/Object.d.ts +906 -0
- package/dist/src/shapes/Object/ObjectGeometry.d.ts +343 -0
- package/dist/src/shapes/Object/ObjectOrigin.d.ts +178 -0
- package/dist/src/shapes/Object/StackedObject.d.ts +62 -0
- package/dist/src/shapes/Object/defaultValues.d.ts +77 -0
- package/dist/src/shapes/Path.d.ts +123 -0
- package/dist/src/shapes/Polygon.d.ts +7 -0
- package/dist/src/shapes/Polyline.d.ts +130 -0
- package/dist/src/shapes/Rect.d.ts +62 -0
- package/dist/src/shapes/Text/StyledText.d.ts +118 -0
- package/dist/src/shapes/Text/Text.d.ts +656 -0
- package/dist/src/shapes/Text/TextSVGExportMixin.d.ts +32 -0
- package/dist/src/shapes/Textbox.d.ts +170 -0
- package/dist/src/shapes/Triangle.d.ts +17 -0
- package/dist/src/typedefs.d.ts +93 -0
- package/dist/src/util/animation/AnimationBase.d.ts +54 -0
- package/dist/src/util/animation/AnimationFrameProvider.d.ts +8 -0
- package/dist/src/util/animation/AnimationRegistry.d.ts +29 -0
- package/dist/src/util/animation/ArrayAnimation.d.ts +10 -0
- package/dist/src/util/animation/ColorAnimation.d.ts +11 -0
- package/dist/src/util/animation/ValueAnimation.d.ts +10 -0
- package/dist/src/util/animation/animate.d.ts +37 -0
- package/dist/src/util/animation/easing.d.ts +130 -0
- package/dist/src/util/animation/types.d.ts +87 -0
- package/dist/src/util/applyMixins.d.ts +8 -0
- package/dist/src/util/class_registry.d.ts +14 -0
- package/dist/src/util/dom_event.d.ts +5 -0
- package/dist/src/util/dom_misc.d.ts +40 -0
- package/dist/src/util/dom_request.d.ts +14 -0
- package/dist/src/util/dom_style.d.ts +7 -0
- package/dist/src/util/fireEvent.d.ts +3 -0
- package/dist/src/util/internals/cloneDeep.d.ts +2 -0
- package/dist/src/util/internals/getRandomInt.d.ts +8 -0
- package/dist/src/util/internals/ifNaN.d.ts +8 -0
- package/dist/src/util/internals/index.d.ts +4 -0
- package/dist/src/util/internals/removeFromArray.d.ts +9 -0
- package/dist/src/util/internals/uid.d.ts +2 -0
- package/dist/src/util/lang_class.d.ts +12 -0
- package/dist/src/util/lang_string.d.ts +22 -0
- package/dist/src/util/misc/boundingBoxFromPoints.d.ts +9 -0
- package/dist/src/util/misc/capValue.d.ts +2 -0
- package/dist/src/util/misc/cos.d.ts +10 -0
- package/dist/src/util/misc/dom.d.ts +28 -0
- package/dist/src/util/misc/findScaleTo.d.ts +29 -0
- package/dist/src/util/misc/groupSVGElements.d.ts +9 -0
- package/dist/src/util/misc/isTransparent.d.ts +11 -0
- package/dist/src/util/misc/matrix.d.ts +92 -0
- package/dist/src/util/misc/mergeClipPaths.d.ts +23 -0
- package/dist/src/util/misc/objectEnlive.d.ts +56 -0
- package/dist/src/util/misc/objectTransforms.d.ts +68 -0
- package/dist/src/util/misc/pick.d.ts +8 -0
- package/dist/src/util/misc/planeChange.d.ts +84 -0
- package/dist/src/util/misc/projectStroke/StrokeLineCapProjections.d.ts +51 -0
- package/dist/src/util/misc/projectStroke/StrokeLineJoinProjections.d.ts +81 -0
- package/dist/src/util/misc/projectStroke/StrokeProjectionsBase.d.ts +25 -0
- package/dist/src/util/misc/projectStroke/index.d.ts +11 -0
- package/dist/src/util/misc/projectStroke/types.d.ts +23 -0
- package/dist/src/util/misc/radiansDegreesConversion.d.ts +14 -0
- package/dist/src/util/misc/resolveOrigin.d.ts +9 -0
- package/dist/src/util/misc/rotatePoint.d.ts +12 -0
- package/dist/src/util/misc/sin.d.ts +10 -0
- package/dist/src/util/misc/svgParsing.d.ts +53 -0
- package/dist/src/util/misc/textStyles.d.ts +32 -0
- package/dist/src/util/misc/toFixed.d.ts +8 -0
- package/dist/src/util/misc/vectors.d.ts +57 -0
- package/dist/src/util/path.d.ts +108 -0
- package/dist/src/util/transform_matrix_removal.d.ts +14 -0
- package/dist/src/util/types.d.ts +19 -0
- package/fabric.ts +427 -0
- package/index.node.ts +43 -0
- package/index.ts +1 -0
- package/package.json +90 -39
- package/publish.js +0 -26
- package/rollup.config.mjs +79 -0
- package/rollup.test.config.js +24 -0
- package/scripts/build.mjs +50 -0
- package/scripts/buildLock.mjs +115 -0
- package/scripts/buildReporter.mjs +15 -0
- package/scripts/buildStats.mjs +139 -0
- package/scripts/dirname.mjs +14 -0
- package/scripts/index.mjs +679 -0
- package/scripts/transform_files.mjs +504 -0
- package/src/Collection.ts +311 -0
- package/src/CommonMethods.ts +63 -0
- package/src/EventTypeDefs.ts +294 -0
- package/src/Intersection.ts +273 -0
- package/src/Observable.ts +175 -0
- package/src/Pattern.ts +211 -0
- package/src/Point.ts +388 -0
- package/src/Shadow.ts +215 -0
- package/src/brushes/{base_brush.class.js → BaseBrush.ts} +65 -42
- package/src/brushes/CircleBrush.ts +145 -0
- package/src/brushes/PatternBrush.ts +70 -0
- package/src/brushes/PencilBrush.ts +300 -0
- package/src/brushes/SprayBrush.ts +219 -0
- package/src/cache.ts +89 -0
- package/src/canvas/Canvas.ts +1672 -0
- package/src/canvas/SelectableCanvas.ts +1636 -0
- package/src/canvas/StaticCanvas.ts +1709 -0
- package/src/canvas/TextEditingManager.ts +48 -0
- package/src/canvas/canvas_gestures.mixin.ts +207 -0
- package/src/color/Color.ts +404 -0
- package/src/color/color_map.ts +154 -0
- package/src/color/constants.ts +26 -0
- package/src/color/util.ts +32 -0
- package/src/config.ts +159 -0
- package/src/constants.ts +19 -0
- package/src/controls/Control.ts +377 -0
- package/src/controls/changeWidth.ts +52 -0
- package/src/controls/controls.render.ts +138 -0
- package/src/controls/default_controls.ts +132 -0
- package/src/controls/drag.ts +31 -0
- package/src/controls/polyControl.ts +135 -0
- package/src/controls/rotate.ts +87 -0
- package/src/controls/scale.ts +277 -0
- package/src/controls/scaleSkew.ts +92 -0
- package/src/controls/skew.ts +242 -0
- package/src/controls/util.ts +154 -0
- package/src/controls/wrapWithFireEvent.ts +25 -0
- package/src/controls/wrapWithFixedAnchor.ts +20 -0
- package/src/env/browser.ts +28 -0
- package/src/env/index.ts +19 -0
- package/src/env/node.ts +52 -0
- package/src/env/types.ts +15 -0
- package/src/filters/{base_filter.class.js → BaseFilter.ts} +201 -149
- package/src/filters/BlendColor.ts +258 -0
- package/src/filters/BlendImage.ts +254 -0
- package/src/filters/Blur.ts +202 -0
- package/src/filters/Boilerplate.ts +91 -0
- package/src/filters/Brightness.ts +93 -0
- package/src/filters/Canvas2dFilterBackend.ts +65 -0
- package/src/filters/ColorMatrix.ts +156 -0
- package/src/filters/ColorMatrixFilters.ts +106 -0
- package/src/filters/Composed.ts +85 -0
- package/src/filters/Contrast.ts +94 -0
- package/src/filters/Convolute.ts +341 -0
- package/src/filters/FilterBackend.ts +32 -0
- package/src/filters/Gamma.ts +127 -0
- package/src/filters/Grayscale.ts +137 -0
- package/src/filters/HueRotation.ts +66 -0
- package/src/filters/Invert.ts +117 -0
- package/src/filters/Noise.ts +109 -0
- package/src/filters/Pixelate.ts +114 -0
- package/src/filters/RemoveColor.ts +148 -0
- package/src/filters/Resize.ts +540 -0
- package/src/filters/Saturation.ts +100 -0
- package/src/filters/Vibrance.ts +103 -0
- package/src/filters/WebGLFilterBackend.ts +430 -0
- package/src/filters/WebGLProbe.ts +62 -0
- package/src/filters/typedefs.ts +65 -0
- package/src/gradient/Gradient.ts +401 -0
- package/src/gradient/constants.ts +12 -0
- package/src/gradient/parser/index.ts +3 -0
- package/src/gradient/parser/misc.ts +13 -0
- package/src/gradient/parser/parseColorStops.ts +55 -0
- package/src/gradient/parser/parseCoords.ts +73 -0
- package/src/gradient/typedefs.ts +104 -0
- package/src/mixins/{eraser_brush.mixin.js → eraser_brush.mixin.ts} +350 -239
- package/src/mixins/stateful.mixin.ts +104 -0
- package/src/parkinglot/canvas_animation.mixin.ts +121 -0
- package/src/parkinglot/straighten.ts +58 -0
- package/src/parser/applyViewboxTransform.ts +162 -0
- package/src/parser/attributes.ts +25 -0
- package/src/parser/constants.ts +118 -0
- package/src/parser/doesSomeParentMatch.ts +19 -0
- package/src/parser/elementById.ts +23 -0
- package/src/parser/elementMatchesRule.ts +19 -0
- package/src/parser/elements_parser.ts +191 -0
- package/src/parser/getCSSRules.ts +62 -0
- package/src/parser/getGlobalStylesForElement.ts +19 -0
- package/src/parser/getGradientDefs.ts +32 -0
- package/src/parser/getMultipleNodes.ts +15 -0
- package/src/parser/getSvgRegex.ts +5 -0
- package/src/parser/hasAncestorWithNodeName.ts +14 -0
- package/src/parser/loadSVGFromString.ts +26 -0
- package/src/parser/loadSVGFromURL.ts +40 -0
- package/src/parser/normalizeAttr.ts +10 -0
- package/src/parser/normalizeValue.ts +63 -0
- package/src/parser/parseAttributes.ts +90 -0
- package/src/parser/parseElements.ts +28 -0
- package/src/parser/parseFontDeclaration.ts +44 -0
- package/src/parser/parsePointsAttribute.ts +36 -0
- package/src/parser/parseSVGDocument.ts +106 -0
- package/src/parser/parseStyleAttribute.ts +27 -0
- package/src/parser/parseStyleObject.ts +15 -0
- package/src/parser/parseStyleString.ts +16 -0
- package/src/parser/parseTransformAttribute.ts +155 -0
- package/src/parser/parseUseDirectives.ts +79 -0
- package/src/parser/percent.ts +27 -0
- package/src/parser/recursivelyParseGradientsXlink.ts +42 -0
- package/src/parser/rotateMatrix.ts +21 -0
- package/src/parser/scaleMatrix.ts +9 -0
- package/src/parser/selectorMatches.ts +25 -0
- package/src/parser/setStrokeFillOpacity.ts +40 -0
- package/src/parser/skewMatrix.ts +6 -0
- package/src/parser/translateMatrix.ts +8 -0
- package/src/shapes/ActiveSelection.ts +157 -0
- package/src/shapes/Circle.ts +205 -0
- package/src/shapes/Ellipse.ts +154 -0
- package/src/shapes/Group.ts +1053 -0
- package/src/shapes/IText/DraggableTextDelegate.ts +394 -0
- package/src/shapes/IText/IText.ts +666 -0
- package/src/shapes/IText/ITextBehavior.ts +1055 -0
- package/src/shapes/IText/ITextClickBehavior.ts +321 -0
- package/src/shapes/IText/ITextKeyBehavior.ts +683 -0
- package/src/shapes/IText/constants.ts +47 -0
- package/src/shapes/Image.ts +789 -0
- package/src/shapes/Line.ts +329 -0
- package/src/shapes/Object/AnimatableObject.ts +106 -0
- package/src/shapes/Object/FabricObject.ts +19 -0
- package/src/shapes/Object/FabricObjectSVGExportMixin.ts +277 -0
- package/src/shapes/Object/InteractiveObject.ts +645 -0
- package/src/shapes/Object/Object.ts +1896 -0
- package/src/shapes/Object/ObjectGeometry.ts +830 -0
- package/src/shapes/Object/ObjectOrigin.ts +354 -0
- package/src/shapes/Object/StackedObject.ts +191 -0
- package/src/shapes/Object/defaultValues.ts +112 -0
- package/src/shapes/Path.ts +395 -0
- package/src/shapes/Polygon.ts +19 -0
- package/src/shapes/Polyline.ts +333 -0
- package/src/shapes/Rect.ts +199 -0
- package/src/shapes/Text/StyledText.ts +319 -0
- package/src/shapes/Text/Text.ts +1948 -0
- package/src/shapes/Text/TextSVGExportMixin.ts +288 -0
- package/src/shapes/Textbox.ts +471 -0
- package/src/shapes/Triangle.ts +45 -0
- package/src/typedefs.ts +119 -0
- package/src/util/animation/AnimationBase.ts +166 -0
- package/src/util/animation/AnimationFrameProvider.ts +28 -0
- package/src/util/animation/AnimationRegistry.ts +58 -0
- package/src/util/animation/ArrayAnimation.ts +27 -0
- package/src/util/animation/ColorAnimation.ts +74 -0
- package/src/util/animation/ValueAnimation.ts +29 -0
- package/src/util/animation/animate.ts +74 -0
- package/src/util/animation/easing.ts +327 -0
- package/src/util/animation/types.ts +136 -0
- package/src/util/applyMixins.ts +22 -0
- package/src/util/class_registry.ts +54 -0
- package/src/util/dom_event.ts +28 -0
- package/src/util/dom_misc.ts +138 -0
- package/src/util/dom_request.ts +64 -0
- package/src/util/dom_style.ts +20 -0
- package/src/util/fireEvent.ts +15 -0
- package/src/util/internals/cloneDeep.ts +2 -0
- package/src/util/internals/getRandomInt.ts +8 -0
- package/src/util/internals/ifNaN.ts +9 -0
- package/src/util/internals/index.ts +3 -0
- package/src/util/internals/removeFromArray.ts +14 -0
- package/src/util/internals/uid.ts +3 -0
- package/src/util/lang_class.ts +90 -0
- package/src/util/lang_string.ts +79 -0
- package/src/util/misc/boundingBoxFromPoints.ts +37 -0
- package/src/util/misc/capValue.ts +2 -0
- package/src/util/misc/cos.ts +24 -0
- package/src/util/misc/dom.ts +50 -0
- package/src/util/misc/findScaleTo.ts +44 -0
- package/src/util/misc/groupSVGElements.ts +15 -0
- package/src/util/misc/isTransparent.ts +51 -0
- package/src/util/misc/matrix.ts +207 -0
- package/src/util/misc/mergeClipPaths.ts +40 -0
- package/src/util/misc/objectEnlive.ts +189 -0
- package/src/util/misc/objectTransforms.ts +129 -0
- package/src/util/misc/pick.ts +17 -0
- package/src/util/misc/planeChange.ts +136 -0
- package/src/util/misc/projectStroke/StrokeLineCapProjections.ts +112 -0
- package/src/util/misc/projectStroke/StrokeLineJoinProjections.ts +231 -0
- package/src/util/misc/projectStroke/StrokeProjectionsBase.ts +75 -0
- package/src/util/misc/projectStroke/index.ts +53 -0
- package/src/util/misc/projectStroke/types.ts +24 -0
- package/src/util/misc/radiansDegreesConversion.ts +18 -0
- package/src/util/misc/resolveOrigin.ts +22 -0
- package/src/util/misc/rotatePoint.ts +15 -0
- package/src/util/misc/sin.ts +26 -0
- package/src/util/misc/svgParsing.ts +181 -0
- package/src/util/misc/textStyles.ts +133 -0
- package/src/util/misc/toFixed.ts +8 -0
- package/src/util/misc/vectors.ts +82 -0
- package/src/util/path.ts +941 -0
- package/src/util/transform_matrix_removal.ts +60 -0
- package/src/util/types.ts +78 -0
- package/tsconfig.json +106 -0
- package/HEADER.js +0 -203
- package/build.js +0 -287
- package/dist/fabric.js +0 -31187
- package/dist/fabric.min.js +0 -1
- package/old-travis-reference.yml +0 -97
- package/src/brushes/circle_brush.class.js +0 -144
- package/src/brushes/pattern_brush.class.js +0 -61
- package/src/brushes/pencil_brush.class.js +0 -310
- package/src/brushes/spray_brush.class.js +0 -219
- package/src/canvas.class.js +0 -1312
- package/src/color.class.js +0 -636
- package/src/control.class.js +0 -339
- package/src/controls.actions.js +0 -740
- package/src/controls.render.js +0 -99
- package/src/elements_parser.js +0 -152
- package/src/filters/2d_backend.class.js +0 -65
- package/src/filters/blendcolor_filter.class.js +0 -251
- package/src/filters/blendimage_filter.class.js +0 -247
- package/src/filters/blur_filter.class.js +0 -217
- package/src/filters/brightness_filter.class.js +0 -113
- package/src/filters/colormatrix_filter.class.js +0 -159
- package/src/filters/composed_filter.class.js +0 -72
- package/src/filters/contrast_filter.class.js +0 -113
- package/src/filters/convolute_filter.class.js +0 -352
- package/src/filters/filter_boilerplate.js +0 -111
- package/src/filters/filter_generator.js +0 -85
- package/src/filters/gamma_filter.class.js +0 -136
- package/src/filters/grayscale_filter.class.js +0 -154
- package/src/filters/hue_rotation.class.js +0 -107
- package/src/filters/invert_filter.class.js +0 -111
- package/src/filters/noise_filter.class.js +0 -134
- package/src/filters/pixelate_filter.class.js +0 -137
- package/src/filters/removecolor_filter.class.js +0 -173
- package/src/filters/resize_filter.class.js +0 -490
- package/src/filters/saturate_filter.class.js +0 -119
- package/src/filters/vibrance_filter.class.js +0 -122
- package/src/filters/webgl_backend.class.js +0 -396
- package/src/globalFabric.js +0 -4
- package/src/gradient.class.js +0 -490
- package/src/intersection.class.js +0 -172
- package/src/log.js +0 -11
- package/src/mixins/animation.mixin.js +0 -231
- package/src/mixins/canvas_dataurl_exporter.mixin.js +0 -97
- package/src/mixins/canvas_events.mixin.js +0 -974
- package/src/mixins/canvas_gestures.mixin.js +0 -149
- package/src/mixins/canvas_grouping.mixin.js +0 -177
- package/src/mixins/canvas_serialization.mixin.js +0 -228
- package/src/mixins/collection.mixin.js +0 -170
- package/src/mixins/default_controls.js +0 -114
- package/src/mixins/itext.svg_export.js +0 -241
- package/src/mixins/itext_behavior.mixin.js +0 -940
- package/src/mixins/itext_click_behavior.mixin.js +0 -278
- package/src/mixins/itext_key_behavior.mixin.js +0 -694
- package/src/mixins/object.svg_export.js +0 -258
- package/src/mixins/object_geometry.mixin.js +0 -683
- package/src/mixins/object_interactivity.mixin.js +0 -314
- package/src/mixins/object_origin.mixin.js +0 -255
- package/src/mixins/object_stacking.mixin.js +0 -80
- package/src/mixins/object_straightening.mixin.js +0 -80
- package/src/mixins/observable.mixin.js +0 -141
- package/src/mixins/shared_methods.mixin.js +0 -94
- package/src/mixins/stateful.mixin.js +0 -107
- package/src/mixins/text_style.mixin.js +0 -324
- package/src/parser.js +0 -1090
- package/src/pattern.class.js +0 -189
- package/src/point.class.js +0 -337
- package/src/shadow.class.js +0 -195
- package/src/shapes/active_selection.class.js +0 -155
- package/src/shapes/circle.class.js +0 -210
- package/src/shapes/ellipse.class.js +0 -181
- package/src/shapes/group.class.js +0 -593
- package/src/shapes/image.class.js +0 -764
- package/src/shapes/itext.class.js +0 -526
- package/src/shapes/line.class.js +0 -324
- package/src/shapes/object.class.js +0 -2008
- package/src/shapes/path.class.js +0 -384
- package/src/shapes/polygon.class.js +0 -81
- package/src/shapes/polyline.class.js +0 -268
- package/src/shapes/rect.class.js +0 -187
- package/src/shapes/text.class.js +0 -1696
- package/src/shapes/textbox.class.js +0 -461
- package/src/shapes/triangle.class.js +0 -93
- package/src/static_canvas.class.js +0 -1881
- package/src/util/anim_ease.js +0 -398
- package/src/util/animate.js +0 -254
- package/src/util/animate_color.js +0 -74
- package/src/util/dom_event.js +0 -50
- package/src/util/dom_misc.js +0 -300
- package/src/util/dom_request.js +0 -54
- package/src/util/dom_style.js +0 -70
- package/src/util/lang_array.js +0 -94
- package/src/util/lang_class.js +0 -115
- package/src/util/lang_object.js +0 -75
- package/src/util/lang_string.js +0 -110
- package/src/util/misc.js +0 -1330
- package/src/util/named_accessors.mixin.js +0 -428
- package/src/util/path.js +0 -829
package/dist/fabric.d.ts
ADDED
|
@@ -0,0 +1,1021 @@
|
|
|
1
|
+
import { BaseFilter } from './src/filters/BaseFilter';
|
|
2
|
+
import { BlendColor } from './src/filters/BlendColor';
|
|
3
|
+
import { BlendImage } from './src/filters/BlendImage';
|
|
4
|
+
import { Blur } from './src/filters/Blur';
|
|
5
|
+
import { Brightness } from './src/filters/Brightness';
|
|
6
|
+
import { ColorMatrix } from './src/filters/ColorMatrix';
|
|
7
|
+
import { Composed } from './src/filters/Composed';
|
|
8
|
+
import { Contrast } from './src/filters/Contrast';
|
|
9
|
+
import { Convolute } from './src/filters/Convolute';
|
|
10
|
+
import { Gamma } from './src/filters/Gamma';
|
|
11
|
+
import { Grayscale } from './src/filters/Grayscale';
|
|
12
|
+
import { HueRotation } from './src/filters/HueRotation';
|
|
13
|
+
import { Invert } from './src/filters/Invert';
|
|
14
|
+
import { Noise } from './src/filters/Noise';
|
|
15
|
+
import { Pixelate } from './src/filters/Pixelate';
|
|
16
|
+
import { RemoveColor } from './src/filters/RemoveColor';
|
|
17
|
+
import { Resize } from './src/filters/Resize';
|
|
18
|
+
import { Saturation } from './src/filters/Saturation';
|
|
19
|
+
import { Vibrance } from './src/filters/Vibrance';
|
|
20
|
+
declare const filters: {
|
|
21
|
+
BaseFilter: typeof BaseFilter;
|
|
22
|
+
BlendColor: typeof BlendColor;
|
|
23
|
+
BlendImage: typeof BlendImage;
|
|
24
|
+
Blur: typeof Blur;
|
|
25
|
+
Brightness: typeof Brightness;
|
|
26
|
+
ColorMatrix: typeof ColorMatrix;
|
|
27
|
+
Composed: typeof Composed;
|
|
28
|
+
Contrast: typeof Contrast;
|
|
29
|
+
Convolute: typeof Convolute;
|
|
30
|
+
Sepia: {
|
|
31
|
+
new (options?: Partial<import("./src/filters/BaseFilter").AbstractBaseFilterOptions<string>> & Record<string, any>): {
|
|
32
|
+
type: string;
|
|
33
|
+
matrix: number[];
|
|
34
|
+
mainParameter: undefined;
|
|
35
|
+
colorsOnly: boolean;
|
|
36
|
+
setOptions({ matrix, ...options }: Record<string, any>): void;
|
|
37
|
+
applyTo2d(options: import("./src/filters/typedefs").T2DPipelineState): void;
|
|
38
|
+
getUniformLocations(gl: WebGLRenderingContext, program: WebGLProgram): import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
39
|
+
sendUniformData(gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap): void;
|
|
40
|
+
getFragmentSource(): string;
|
|
41
|
+
vertexSource: string;
|
|
42
|
+
fragmentSource: string;
|
|
43
|
+
createProgram(gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string): {
|
|
44
|
+
program: WebGLProgram;
|
|
45
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
46
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
47
|
+
};
|
|
48
|
+
getAttributeLocations(gl: WebGLRenderingContext, program: WebGLProgram): import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
49
|
+
sendAttributeData(gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array): void;
|
|
50
|
+
_setupFrameBuffer(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
51
|
+
_swapTextures(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
52
|
+
isNeutralState(options?: any): boolean;
|
|
53
|
+
applyTo(options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState): void;
|
|
54
|
+
getCacheKey(): string;
|
|
55
|
+
retrieveShader(options: import("./src/filters/typedefs").TWebGLPipelineState): import("./src/filters/typedefs").TWebGLProgramCacheItem;
|
|
56
|
+
applyToWebGL(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
57
|
+
bindAdditionalTexture(gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number): void;
|
|
58
|
+
unbindAdditionalTexture(gl: WebGLRenderingContext, textureUnit: number): void;
|
|
59
|
+
getMainParameter(): string | boolean | number[] | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLAttributeLocationMap) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => import("./src/filters/typedefs").TWebGLProgramCacheItem) | ((options?: any) => boolean) | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLUniformLocationMap) | (({ matrix, ...options }: Record<string, any>) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | ((gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap) => void) | (() => string) | ((gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string) => {
|
|
60
|
+
program: WebGLProgram;
|
|
61
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
62
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
63
|
+
}) | ((gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState) => void) | (() => string) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number) => void) | ((gl: WebGLRenderingContext, textureUnit: number) => void) | (() => string | boolean | number[] | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLAttributeLocationMap) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => import("./src/filters/typedefs").TWebGLProgramCacheItem) | ((options?: any) => boolean) | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLUniformLocationMap) | (({ matrix, ...options }: Record<string, any>) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | ((gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap) => void) | (() => string) | ((gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string) => {
|
|
64
|
+
program: WebGLProgram;
|
|
65
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
66
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
67
|
+
}) | ((gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState) => void) | (() => string) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number) => void) | ((gl: WebGLRenderingContext, textureUnit: number) => void) | any | (() => {
|
|
68
|
+
type: string;
|
|
69
|
+
}) | (() => {
|
|
70
|
+
type: string;
|
|
71
|
+
}) | ((value: any) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | undefined) | (() => {
|
|
72
|
+
type: string;
|
|
73
|
+
}) | (() => {
|
|
74
|
+
type: string;
|
|
75
|
+
}) | ((value: any) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | undefined;
|
|
76
|
+
setMainParameter(value: any): void;
|
|
77
|
+
createHelpLayer(options: import("./src/filters/typedefs").T2DPipelineState): void;
|
|
78
|
+
toObject(): {
|
|
79
|
+
type: string;
|
|
80
|
+
};
|
|
81
|
+
toJSON(): {
|
|
82
|
+
type: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
fromObject(object: any): Promise<{
|
|
86
|
+
type: string;
|
|
87
|
+
matrix: number[];
|
|
88
|
+
mainParameter: undefined;
|
|
89
|
+
colorsOnly: boolean;
|
|
90
|
+
setOptions({ matrix, ...options }: Record<string, any>): void;
|
|
91
|
+
applyTo2d(options: import("./src/filters/typedefs").T2DPipelineState): void;
|
|
92
|
+
getUniformLocations(gl: WebGLRenderingContext, program: WebGLProgram): import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
93
|
+
sendUniformData(gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap): void;
|
|
94
|
+
getFragmentSource(): string;
|
|
95
|
+
vertexSource: string;
|
|
96
|
+
fragmentSource: string;
|
|
97
|
+
createProgram(gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string): {
|
|
98
|
+
program: WebGLProgram;
|
|
99
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
100
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
101
|
+
};
|
|
102
|
+
getAttributeLocations(gl: WebGLRenderingContext, program: WebGLProgram): import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
103
|
+
sendAttributeData(gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array): void;
|
|
104
|
+
_setupFrameBuffer(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
105
|
+
_swapTextures(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
106
|
+
isNeutralState(options?: any): boolean;
|
|
107
|
+
applyTo(options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState): void;
|
|
108
|
+
getCacheKey(): string;
|
|
109
|
+
retrieveShader(options: import("./src/filters/typedefs").TWebGLPipelineState): import("./src/filters/typedefs").TWebGLProgramCacheItem;
|
|
110
|
+
applyToWebGL(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
111
|
+
bindAdditionalTexture(gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number): void;
|
|
112
|
+
unbindAdditionalTexture(gl: WebGLRenderingContext, textureUnit: number): void;
|
|
113
|
+
getMainParameter(): string | boolean | number[] | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLAttributeLocationMap) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => import("./src/filters/typedefs").TWebGLProgramCacheItem) | ((options?: any) => boolean) | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLUniformLocationMap) | (({ matrix, ...options }: Record<string, any>) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | ((gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap) => void) | (() => string) | ((gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string) => {
|
|
114
|
+
program: WebGLProgram;
|
|
115
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
116
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
117
|
+
}) | ((gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState) => void) | (() => string) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number) => void) | ((gl: WebGLRenderingContext, textureUnit: number) => void) | (() => string | boolean | number[] | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLAttributeLocationMap) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => import("./src/filters/typedefs").TWebGLProgramCacheItem) | ((options?: any) => boolean) | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLUniformLocationMap) | (({ matrix, ...options }: Record<string, any>) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | ((gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap) => void) | (() => string) | ((gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string) => {
|
|
118
|
+
program: WebGLProgram;
|
|
119
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
120
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
121
|
+
}) | ((gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState) => void) | (() => string) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number) => void) | ((gl: WebGLRenderingContext, textureUnit: number) => void) | any | (() => {
|
|
122
|
+
type: string;
|
|
123
|
+
}) | (() => {
|
|
124
|
+
type: string;
|
|
125
|
+
}) | ((value: any) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | undefined) | (() => {
|
|
126
|
+
type: string;
|
|
127
|
+
}) | (() => {
|
|
128
|
+
type: string;
|
|
129
|
+
}) | ((value: any) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | undefined;
|
|
130
|
+
setMainParameter(value: any): void;
|
|
131
|
+
createHelpLayer(options: import("./src/filters/typedefs").T2DPipelineState): void;
|
|
132
|
+
toObject(): {
|
|
133
|
+
type: string;
|
|
134
|
+
};
|
|
135
|
+
toJSON(): {
|
|
136
|
+
type: string;
|
|
137
|
+
};
|
|
138
|
+
}>;
|
|
139
|
+
};
|
|
140
|
+
Brownie: {
|
|
141
|
+
new (options?: Partial<import("./src/filters/BaseFilter").AbstractBaseFilterOptions<string>> & Record<string, any>): {
|
|
142
|
+
type: string;
|
|
143
|
+
matrix: number[];
|
|
144
|
+
mainParameter: undefined;
|
|
145
|
+
colorsOnly: boolean;
|
|
146
|
+
setOptions({ matrix, ...options }: Record<string, any>): void;
|
|
147
|
+
applyTo2d(options: import("./src/filters/typedefs").T2DPipelineState): void;
|
|
148
|
+
getUniformLocations(gl: WebGLRenderingContext, program: WebGLProgram): import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
149
|
+
sendUniformData(gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap): void;
|
|
150
|
+
getFragmentSource(): string;
|
|
151
|
+
vertexSource: string;
|
|
152
|
+
fragmentSource: string;
|
|
153
|
+
createProgram(gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string): {
|
|
154
|
+
program: WebGLProgram;
|
|
155
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
156
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
157
|
+
};
|
|
158
|
+
getAttributeLocations(gl: WebGLRenderingContext, program: WebGLProgram): import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
159
|
+
sendAttributeData(gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array): void;
|
|
160
|
+
_setupFrameBuffer(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
161
|
+
_swapTextures(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
162
|
+
isNeutralState(options?: any): boolean;
|
|
163
|
+
applyTo(options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState): void;
|
|
164
|
+
getCacheKey(): string;
|
|
165
|
+
retrieveShader(options: import("./src/filters/typedefs").TWebGLPipelineState): import("./src/filters/typedefs").TWebGLProgramCacheItem;
|
|
166
|
+
applyToWebGL(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
167
|
+
bindAdditionalTexture(gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number): void;
|
|
168
|
+
unbindAdditionalTexture(gl: WebGLRenderingContext, textureUnit: number): void;
|
|
169
|
+
getMainParameter(): string | boolean | number[] | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLAttributeLocationMap) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => import("./src/filters/typedefs").TWebGLProgramCacheItem) | ((options?: any) => boolean) | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLUniformLocationMap) | (({ matrix, ...options }: Record<string, any>) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | ((gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap) => void) | (() => string) | ((gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string) => {
|
|
170
|
+
program: WebGLProgram;
|
|
171
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
172
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
173
|
+
}) | ((gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState) => void) | (() => string) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number) => void) | ((gl: WebGLRenderingContext, textureUnit: number) => void) | (() => string | boolean | number[] | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLAttributeLocationMap) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => import("./src/filters/typedefs").TWebGLProgramCacheItem) | ((options?: any) => boolean) | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLUniformLocationMap) | (({ matrix, ...options }: Record<string, any>) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | ((gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap) => void) | (() => string) | ((gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string) => {
|
|
174
|
+
program: WebGLProgram;
|
|
175
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
176
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
177
|
+
}) | ((gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState) => void) | (() => string) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number) => void) | ((gl: WebGLRenderingContext, textureUnit: number) => void) | any | (() => {
|
|
178
|
+
type: string;
|
|
179
|
+
}) | (() => {
|
|
180
|
+
type: string;
|
|
181
|
+
}) | ((value: any) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | undefined) | (() => {
|
|
182
|
+
type: string;
|
|
183
|
+
}) | (() => {
|
|
184
|
+
type: string;
|
|
185
|
+
}) | ((value: any) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | undefined;
|
|
186
|
+
setMainParameter(value: any): void;
|
|
187
|
+
createHelpLayer(options: import("./src/filters/typedefs").T2DPipelineState): void;
|
|
188
|
+
toObject(): {
|
|
189
|
+
type: string;
|
|
190
|
+
};
|
|
191
|
+
toJSON(): {
|
|
192
|
+
type: string;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
fromObject(object: any): Promise<{
|
|
196
|
+
type: string;
|
|
197
|
+
matrix: number[];
|
|
198
|
+
mainParameter: undefined;
|
|
199
|
+
colorsOnly: boolean;
|
|
200
|
+
setOptions({ matrix, ...options }: Record<string, any>): void;
|
|
201
|
+
applyTo2d(options: import("./src/filters/typedefs").T2DPipelineState): void;
|
|
202
|
+
getUniformLocations(gl: WebGLRenderingContext, program: WebGLProgram): import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
203
|
+
sendUniformData(gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap): void;
|
|
204
|
+
getFragmentSource(): string;
|
|
205
|
+
vertexSource: string;
|
|
206
|
+
fragmentSource: string;
|
|
207
|
+
createProgram(gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string): {
|
|
208
|
+
program: WebGLProgram;
|
|
209
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
210
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
211
|
+
};
|
|
212
|
+
getAttributeLocations(gl: WebGLRenderingContext, program: WebGLProgram): import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
213
|
+
sendAttributeData(gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array): void;
|
|
214
|
+
_setupFrameBuffer(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
215
|
+
_swapTextures(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
216
|
+
isNeutralState(options?: any): boolean;
|
|
217
|
+
applyTo(options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState): void;
|
|
218
|
+
getCacheKey(): string;
|
|
219
|
+
retrieveShader(options: import("./src/filters/typedefs").TWebGLPipelineState): import("./src/filters/typedefs").TWebGLProgramCacheItem;
|
|
220
|
+
applyToWebGL(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
221
|
+
bindAdditionalTexture(gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number): void;
|
|
222
|
+
unbindAdditionalTexture(gl: WebGLRenderingContext, textureUnit: number): void;
|
|
223
|
+
getMainParameter(): string | boolean | number[] | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLAttributeLocationMap) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => import("./src/filters/typedefs").TWebGLProgramCacheItem) | ((options?: any) => boolean) | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLUniformLocationMap) | (({ matrix, ...options }: Record<string, any>) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | ((gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap) => void) | (() => string) | ((gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string) => {
|
|
224
|
+
program: WebGLProgram;
|
|
225
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
226
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
227
|
+
}) | ((gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState) => void) | (() => string) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number) => void) | ((gl: WebGLRenderingContext, textureUnit: number) => void) | (() => string | boolean | number[] | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLAttributeLocationMap) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => import("./src/filters/typedefs").TWebGLProgramCacheItem) | ((options?: any) => boolean) | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLUniformLocationMap) | (({ matrix, ...options }: Record<string, any>) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | ((gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap) => void) | (() => string) | ((gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string) => {
|
|
228
|
+
program: WebGLProgram;
|
|
229
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
230
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
231
|
+
}) | ((gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState) => void) | (() => string) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number) => void) | ((gl: WebGLRenderingContext, textureUnit: number) => void) | any | (() => {
|
|
232
|
+
type: string;
|
|
233
|
+
}) | (() => {
|
|
234
|
+
type: string;
|
|
235
|
+
}) | ((value: any) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | undefined) | (() => {
|
|
236
|
+
type: string;
|
|
237
|
+
}) | (() => {
|
|
238
|
+
type: string;
|
|
239
|
+
}) | ((value: any) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | undefined;
|
|
240
|
+
setMainParameter(value: any): void;
|
|
241
|
+
createHelpLayer(options: import("./src/filters/typedefs").T2DPipelineState): void;
|
|
242
|
+
toObject(): {
|
|
243
|
+
type: string;
|
|
244
|
+
};
|
|
245
|
+
toJSON(): {
|
|
246
|
+
type: string;
|
|
247
|
+
};
|
|
248
|
+
}>;
|
|
249
|
+
};
|
|
250
|
+
Vintage: {
|
|
251
|
+
new (options?: Partial<import("./src/filters/BaseFilter").AbstractBaseFilterOptions<string>> & Record<string, any>): {
|
|
252
|
+
type: string;
|
|
253
|
+
matrix: number[];
|
|
254
|
+
mainParameter: undefined;
|
|
255
|
+
colorsOnly: boolean;
|
|
256
|
+
setOptions({ matrix, ...options }: Record<string, any>): void;
|
|
257
|
+
applyTo2d(options: import("./src/filters/typedefs").T2DPipelineState): void;
|
|
258
|
+
getUniformLocations(gl: WebGLRenderingContext, program: WebGLProgram): import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
259
|
+
sendUniformData(gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap): void;
|
|
260
|
+
getFragmentSource(): string;
|
|
261
|
+
vertexSource: string;
|
|
262
|
+
fragmentSource: string;
|
|
263
|
+
createProgram(gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string): {
|
|
264
|
+
program: WebGLProgram;
|
|
265
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
266
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
267
|
+
};
|
|
268
|
+
getAttributeLocations(gl: WebGLRenderingContext, program: WebGLProgram): import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
269
|
+
sendAttributeData(gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array): void;
|
|
270
|
+
_setupFrameBuffer(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
271
|
+
_swapTextures(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
272
|
+
isNeutralState(options?: any): boolean;
|
|
273
|
+
applyTo(options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState): void;
|
|
274
|
+
getCacheKey(): string;
|
|
275
|
+
retrieveShader(options: import("./src/filters/typedefs").TWebGLPipelineState): import("./src/filters/typedefs").TWebGLProgramCacheItem;
|
|
276
|
+
applyToWebGL(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
277
|
+
bindAdditionalTexture(gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number): void;
|
|
278
|
+
unbindAdditionalTexture(gl: WebGLRenderingContext, textureUnit: number): void;
|
|
279
|
+
getMainParameter(): string | boolean | number[] | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLAttributeLocationMap) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => import("./src/filters/typedefs").TWebGLProgramCacheItem) | ((options?: any) => boolean) | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLUniformLocationMap) | (({ matrix, ...options }: Record<string, any>) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | ((gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap) => void) | (() => string) | ((gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string) => {
|
|
280
|
+
program: WebGLProgram;
|
|
281
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
282
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
283
|
+
}) | ((gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState) => void) | (() => string) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number) => void) | ((gl: WebGLRenderingContext, textureUnit: number) => void) | (() => string | boolean | number[] | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLAttributeLocationMap) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => import("./src/filters/typedefs").TWebGLProgramCacheItem) | ((options?: any) => boolean) | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLUniformLocationMap) | (({ matrix, ...options }: Record<string, any>) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | ((gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap) => void) | (() => string) | ((gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string) => {
|
|
284
|
+
program: WebGLProgram;
|
|
285
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
286
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
287
|
+
}) | ((gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState) => void) | (() => string) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number) => void) | ((gl: WebGLRenderingContext, textureUnit: number) => void) | any | (() => {
|
|
288
|
+
type: string;
|
|
289
|
+
}) | (() => {
|
|
290
|
+
type: string;
|
|
291
|
+
}) | ((value: any) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | undefined) | (() => {
|
|
292
|
+
type: string;
|
|
293
|
+
}) | (() => {
|
|
294
|
+
type: string;
|
|
295
|
+
}) | ((value: any) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | undefined;
|
|
296
|
+
setMainParameter(value: any): void;
|
|
297
|
+
createHelpLayer(options: import("./src/filters/typedefs").T2DPipelineState): void;
|
|
298
|
+
toObject(): {
|
|
299
|
+
type: string;
|
|
300
|
+
};
|
|
301
|
+
toJSON(): {
|
|
302
|
+
type: string;
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
fromObject(object: any): Promise<{
|
|
306
|
+
type: string;
|
|
307
|
+
matrix: number[];
|
|
308
|
+
mainParameter: undefined;
|
|
309
|
+
colorsOnly: boolean;
|
|
310
|
+
setOptions({ matrix, ...options }: Record<string, any>): void;
|
|
311
|
+
applyTo2d(options: import("./src/filters/typedefs").T2DPipelineState): void;
|
|
312
|
+
getUniformLocations(gl: WebGLRenderingContext, program: WebGLProgram): import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
313
|
+
sendUniformData(gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap): void;
|
|
314
|
+
getFragmentSource(): string;
|
|
315
|
+
vertexSource: string;
|
|
316
|
+
fragmentSource: string;
|
|
317
|
+
createProgram(gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string): {
|
|
318
|
+
program: WebGLProgram;
|
|
319
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
320
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
321
|
+
};
|
|
322
|
+
getAttributeLocations(gl: WebGLRenderingContext, program: WebGLProgram): import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
323
|
+
sendAttributeData(gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array): void;
|
|
324
|
+
_setupFrameBuffer(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
325
|
+
_swapTextures(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
326
|
+
isNeutralState(options?: any): boolean;
|
|
327
|
+
applyTo(options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState): void;
|
|
328
|
+
getCacheKey(): string;
|
|
329
|
+
retrieveShader(options: import("./src/filters/typedefs").TWebGLPipelineState): import("./src/filters/typedefs").TWebGLProgramCacheItem;
|
|
330
|
+
applyToWebGL(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
331
|
+
bindAdditionalTexture(gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number): void;
|
|
332
|
+
unbindAdditionalTexture(gl: WebGLRenderingContext, textureUnit: number): void;
|
|
333
|
+
getMainParameter(): string | boolean | number[] | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLAttributeLocationMap) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => import("./src/filters/typedefs").TWebGLProgramCacheItem) | ((options?: any) => boolean) | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLUniformLocationMap) | (({ matrix, ...options }: Record<string, any>) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | ((gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap) => void) | (() => string) | ((gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string) => {
|
|
334
|
+
program: WebGLProgram;
|
|
335
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
336
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
337
|
+
}) | ((gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState) => void) | (() => string) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number) => void) | ((gl: WebGLRenderingContext, textureUnit: number) => void) | (() => string | boolean | number[] | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLAttributeLocationMap) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => import("./src/filters/typedefs").TWebGLProgramCacheItem) | ((options?: any) => boolean) | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLUniformLocationMap) | (({ matrix, ...options }: Record<string, any>) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | ((gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap) => void) | (() => string) | ((gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string) => {
|
|
338
|
+
program: WebGLProgram;
|
|
339
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
340
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
341
|
+
}) | ((gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState) => void) | (() => string) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number) => void) | ((gl: WebGLRenderingContext, textureUnit: number) => void) | any | (() => {
|
|
342
|
+
type: string;
|
|
343
|
+
}) | (() => {
|
|
344
|
+
type: string;
|
|
345
|
+
}) | ((value: any) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | undefined) | (() => {
|
|
346
|
+
type: string;
|
|
347
|
+
}) | (() => {
|
|
348
|
+
type: string;
|
|
349
|
+
}) | ((value: any) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | undefined;
|
|
350
|
+
setMainParameter(value: any): void;
|
|
351
|
+
createHelpLayer(options: import("./src/filters/typedefs").T2DPipelineState): void;
|
|
352
|
+
toObject(): {
|
|
353
|
+
type: string;
|
|
354
|
+
};
|
|
355
|
+
toJSON(): {
|
|
356
|
+
type: string;
|
|
357
|
+
};
|
|
358
|
+
}>;
|
|
359
|
+
};
|
|
360
|
+
Kodachrome: {
|
|
361
|
+
new (options?: Partial<import("./src/filters/BaseFilter").AbstractBaseFilterOptions<string>> & Record<string, any>): {
|
|
362
|
+
type: string;
|
|
363
|
+
matrix: number[];
|
|
364
|
+
mainParameter: undefined;
|
|
365
|
+
colorsOnly: boolean;
|
|
366
|
+
setOptions({ matrix, ...options }: Record<string, any>): void;
|
|
367
|
+
applyTo2d(options: import("./src/filters/typedefs").T2DPipelineState): void;
|
|
368
|
+
getUniformLocations(gl: WebGLRenderingContext, program: WebGLProgram): import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
369
|
+
sendUniformData(gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap): void;
|
|
370
|
+
getFragmentSource(): string;
|
|
371
|
+
vertexSource: string;
|
|
372
|
+
fragmentSource: string;
|
|
373
|
+
createProgram(gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string): {
|
|
374
|
+
program: WebGLProgram;
|
|
375
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
376
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
377
|
+
};
|
|
378
|
+
getAttributeLocations(gl: WebGLRenderingContext, program: WebGLProgram): import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
379
|
+
sendAttributeData(gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array): void;
|
|
380
|
+
_setupFrameBuffer(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
381
|
+
_swapTextures(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
382
|
+
isNeutralState(options?: any): boolean;
|
|
383
|
+
applyTo(options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState): void;
|
|
384
|
+
getCacheKey(): string;
|
|
385
|
+
retrieveShader(options: import("./src/filters/typedefs").TWebGLPipelineState): import("./src/filters/typedefs").TWebGLProgramCacheItem;
|
|
386
|
+
applyToWebGL(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
387
|
+
bindAdditionalTexture(gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number): void;
|
|
388
|
+
unbindAdditionalTexture(gl: WebGLRenderingContext, textureUnit: number): void;
|
|
389
|
+
getMainParameter(): string | boolean | number[] | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLAttributeLocationMap) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => import("./src/filters/typedefs").TWebGLProgramCacheItem) | ((options?: any) => boolean) | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLUniformLocationMap) | (({ matrix, ...options }: Record<string, any>) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | ((gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap) => void) | (() => string) | ((gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string) => {
|
|
390
|
+
program: WebGLProgram;
|
|
391
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
392
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
393
|
+
}) | ((gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState) => void) | (() => string) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number) => void) | ((gl: WebGLRenderingContext, textureUnit: number) => void) | (() => string | boolean | number[] | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLAttributeLocationMap) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => import("./src/filters/typedefs").TWebGLProgramCacheItem) | ((options?: any) => boolean) | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLUniformLocationMap) | (({ matrix, ...options }: Record<string, any>) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | ((gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap) => void) | (() => string) | ((gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string) => {
|
|
394
|
+
program: WebGLProgram;
|
|
395
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
396
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
397
|
+
}) | ((gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState) => void) | (() => string) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number) => void) | ((gl: WebGLRenderingContext, textureUnit: number) => void) | any | (() => {
|
|
398
|
+
type: string;
|
|
399
|
+
}) | (() => {
|
|
400
|
+
type: string;
|
|
401
|
+
}) | ((value: any) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | undefined) | (() => {
|
|
402
|
+
type: string;
|
|
403
|
+
}) | (() => {
|
|
404
|
+
type: string;
|
|
405
|
+
}) | ((value: any) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | undefined;
|
|
406
|
+
setMainParameter(value: any): void;
|
|
407
|
+
createHelpLayer(options: import("./src/filters/typedefs").T2DPipelineState): void;
|
|
408
|
+
toObject(): {
|
|
409
|
+
type: string;
|
|
410
|
+
};
|
|
411
|
+
toJSON(): {
|
|
412
|
+
type: string;
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
fromObject(object: any): Promise<{
|
|
416
|
+
type: string;
|
|
417
|
+
matrix: number[];
|
|
418
|
+
mainParameter: undefined;
|
|
419
|
+
colorsOnly: boolean;
|
|
420
|
+
setOptions({ matrix, ...options }: Record<string, any>): void;
|
|
421
|
+
applyTo2d(options: import("./src/filters/typedefs").T2DPipelineState): void;
|
|
422
|
+
getUniformLocations(gl: WebGLRenderingContext, program: WebGLProgram): import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
423
|
+
sendUniformData(gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap): void;
|
|
424
|
+
getFragmentSource(): string;
|
|
425
|
+
vertexSource: string;
|
|
426
|
+
fragmentSource: string;
|
|
427
|
+
createProgram(gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string): {
|
|
428
|
+
program: WebGLProgram;
|
|
429
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
430
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
431
|
+
};
|
|
432
|
+
getAttributeLocations(gl: WebGLRenderingContext, program: WebGLProgram): import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
433
|
+
sendAttributeData(gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array): void;
|
|
434
|
+
_setupFrameBuffer(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
435
|
+
_swapTextures(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
436
|
+
isNeutralState(options?: any): boolean;
|
|
437
|
+
applyTo(options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState): void;
|
|
438
|
+
getCacheKey(): string;
|
|
439
|
+
retrieveShader(options: import("./src/filters/typedefs").TWebGLPipelineState): import("./src/filters/typedefs").TWebGLProgramCacheItem;
|
|
440
|
+
applyToWebGL(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
441
|
+
bindAdditionalTexture(gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number): void;
|
|
442
|
+
unbindAdditionalTexture(gl: WebGLRenderingContext, textureUnit: number): void;
|
|
443
|
+
getMainParameter(): string | boolean | number[] | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLAttributeLocationMap) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => import("./src/filters/typedefs").TWebGLProgramCacheItem) | ((options?: any) => boolean) | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLUniformLocationMap) | (({ matrix, ...options }: Record<string, any>) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | ((gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap) => void) | (() => string) | ((gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string) => {
|
|
444
|
+
program: WebGLProgram;
|
|
445
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
446
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
447
|
+
}) | ((gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState) => void) | (() => string) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number) => void) | ((gl: WebGLRenderingContext, textureUnit: number) => void) | (() => string | boolean | number[] | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLAttributeLocationMap) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => import("./src/filters/typedefs").TWebGLProgramCacheItem) | ((options?: any) => boolean) | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLUniformLocationMap) | (({ matrix, ...options }: Record<string, any>) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | ((gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap) => void) | (() => string) | ((gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string) => {
|
|
448
|
+
program: WebGLProgram;
|
|
449
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
450
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
451
|
+
}) | ((gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState) => void) | (() => string) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number) => void) | ((gl: WebGLRenderingContext, textureUnit: number) => void) | any | (() => {
|
|
452
|
+
type: string;
|
|
453
|
+
}) | (() => {
|
|
454
|
+
type: string;
|
|
455
|
+
}) | ((value: any) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | undefined) | (() => {
|
|
456
|
+
type: string;
|
|
457
|
+
}) | (() => {
|
|
458
|
+
type: string;
|
|
459
|
+
}) | ((value: any) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | undefined;
|
|
460
|
+
setMainParameter(value: any): void;
|
|
461
|
+
createHelpLayer(options: import("./src/filters/typedefs").T2DPipelineState): void;
|
|
462
|
+
toObject(): {
|
|
463
|
+
type: string;
|
|
464
|
+
};
|
|
465
|
+
toJSON(): {
|
|
466
|
+
type: string;
|
|
467
|
+
};
|
|
468
|
+
}>;
|
|
469
|
+
};
|
|
470
|
+
Technicolor: {
|
|
471
|
+
new (options?: Partial<import("./src/filters/BaseFilter").AbstractBaseFilterOptions<string>> & Record<string, any>): {
|
|
472
|
+
type: string;
|
|
473
|
+
matrix: number[];
|
|
474
|
+
mainParameter: undefined;
|
|
475
|
+
colorsOnly: boolean;
|
|
476
|
+
setOptions({ matrix, ...options }: Record<string, any>): void;
|
|
477
|
+
applyTo2d(options: import("./src/filters/typedefs").T2DPipelineState): void;
|
|
478
|
+
getUniformLocations(gl: WebGLRenderingContext, program: WebGLProgram): import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
479
|
+
sendUniformData(gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap): void;
|
|
480
|
+
getFragmentSource(): string;
|
|
481
|
+
vertexSource: string;
|
|
482
|
+
fragmentSource: string;
|
|
483
|
+
createProgram(gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string): {
|
|
484
|
+
program: WebGLProgram;
|
|
485
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
486
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
487
|
+
};
|
|
488
|
+
getAttributeLocations(gl: WebGLRenderingContext, program: WebGLProgram): import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
489
|
+
sendAttributeData(gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array): void;
|
|
490
|
+
_setupFrameBuffer(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
491
|
+
_swapTextures(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
492
|
+
isNeutralState(options?: any): boolean;
|
|
493
|
+
applyTo(options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState): void;
|
|
494
|
+
getCacheKey(): string;
|
|
495
|
+
retrieveShader(options: import("./src/filters/typedefs").TWebGLPipelineState): import("./src/filters/typedefs").TWebGLProgramCacheItem;
|
|
496
|
+
applyToWebGL(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
497
|
+
bindAdditionalTexture(gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number): void;
|
|
498
|
+
unbindAdditionalTexture(gl: WebGLRenderingContext, textureUnit: number): void;
|
|
499
|
+
getMainParameter(): string | boolean | number[] | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLAttributeLocationMap) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => import("./src/filters/typedefs").TWebGLProgramCacheItem) | ((options?: any) => boolean) | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLUniformLocationMap) | (({ matrix, ...options }: Record<string, any>) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | ((gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap) => void) | (() => string) | ((gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string) => {
|
|
500
|
+
program: WebGLProgram;
|
|
501
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
502
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
503
|
+
}) | ((gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState) => void) | (() => string) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number) => void) | ((gl: WebGLRenderingContext, textureUnit: number) => void) | (() => string | boolean | number[] | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLAttributeLocationMap) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => import("./src/filters/typedefs").TWebGLProgramCacheItem) | ((options?: any) => boolean) | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLUniformLocationMap) | (({ matrix, ...options }: Record<string, any>) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | ((gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap) => void) | (() => string) | ((gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string) => {
|
|
504
|
+
program: WebGLProgram;
|
|
505
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
506
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
507
|
+
}) | ((gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState) => void) | (() => string) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number) => void) | ((gl: WebGLRenderingContext, textureUnit: number) => void) | any | (() => {
|
|
508
|
+
type: string;
|
|
509
|
+
}) | (() => {
|
|
510
|
+
type: string;
|
|
511
|
+
}) | ((value: any) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | undefined) | (() => {
|
|
512
|
+
type: string;
|
|
513
|
+
}) | (() => {
|
|
514
|
+
type: string;
|
|
515
|
+
}) | ((value: any) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | undefined;
|
|
516
|
+
setMainParameter(value: any): void;
|
|
517
|
+
createHelpLayer(options: import("./src/filters/typedefs").T2DPipelineState): void;
|
|
518
|
+
toObject(): {
|
|
519
|
+
type: string;
|
|
520
|
+
};
|
|
521
|
+
toJSON(): {
|
|
522
|
+
type: string;
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
fromObject(object: any): Promise<{
|
|
526
|
+
type: string;
|
|
527
|
+
matrix: number[];
|
|
528
|
+
mainParameter: undefined;
|
|
529
|
+
colorsOnly: boolean;
|
|
530
|
+
setOptions({ matrix, ...options }: Record<string, any>): void;
|
|
531
|
+
applyTo2d(options: import("./src/filters/typedefs").T2DPipelineState): void;
|
|
532
|
+
getUniformLocations(gl: WebGLRenderingContext, program: WebGLProgram): import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
533
|
+
sendUniformData(gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap): void;
|
|
534
|
+
getFragmentSource(): string;
|
|
535
|
+
vertexSource: string;
|
|
536
|
+
fragmentSource: string;
|
|
537
|
+
createProgram(gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string): {
|
|
538
|
+
program: WebGLProgram;
|
|
539
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
540
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
541
|
+
};
|
|
542
|
+
getAttributeLocations(gl: WebGLRenderingContext, program: WebGLProgram): import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
543
|
+
sendAttributeData(gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array): void;
|
|
544
|
+
_setupFrameBuffer(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
545
|
+
_swapTextures(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
546
|
+
isNeutralState(options?: any): boolean;
|
|
547
|
+
applyTo(options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState): void;
|
|
548
|
+
getCacheKey(): string;
|
|
549
|
+
retrieveShader(options: import("./src/filters/typedefs").TWebGLPipelineState): import("./src/filters/typedefs").TWebGLProgramCacheItem;
|
|
550
|
+
applyToWebGL(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
551
|
+
bindAdditionalTexture(gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number): void;
|
|
552
|
+
unbindAdditionalTexture(gl: WebGLRenderingContext, textureUnit: number): void;
|
|
553
|
+
getMainParameter(): string | boolean | number[] | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLAttributeLocationMap) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => import("./src/filters/typedefs").TWebGLProgramCacheItem) | ((options?: any) => boolean) | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLUniformLocationMap) | (({ matrix, ...options }: Record<string, any>) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | ((gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap) => void) | (() => string) | ((gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string) => {
|
|
554
|
+
program: WebGLProgram;
|
|
555
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
556
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
557
|
+
}) | ((gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState) => void) | (() => string) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number) => void) | ((gl: WebGLRenderingContext, textureUnit: number) => void) | (() => string | boolean | number[] | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLAttributeLocationMap) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => import("./src/filters/typedefs").TWebGLProgramCacheItem) | ((options?: any) => boolean) | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLUniformLocationMap) | (({ matrix, ...options }: Record<string, any>) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | ((gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap) => void) | (() => string) | ((gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string) => {
|
|
558
|
+
program: WebGLProgram;
|
|
559
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
560
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
561
|
+
}) | ((gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState) => void) | (() => string) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number) => void) | ((gl: WebGLRenderingContext, textureUnit: number) => void) | any | (() => {
|
|
562
|
+
type: string;
|
|
563
|
+
}) | (() => {
|
|
564
|
+
type: string;
|
|
565
|
+
}) | ((value: any) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | undefined) | (() => {
|
|
566
|
+
type: string;
|
|
567
|
+
}) | (() => {
|
|
568
|
+
type: string;
|
|
569
|
+
}) | ((value: any) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | undefined;
|
|
570
|
+
setMainParameter(value: any): void;
|
|
571
|
+
createHelpLayer(options: import("./src/filters/typedefs").T2DPipelineState): void;
|
|
572
|
+
toObject(): {
|
|
573
|
+
type: string;
|
|
574
|
+
};
|
|
575
|
+
toJSON(): {
|
|
576
|
+
type: string;
|
|
577
|
+
};
|
|
578
|
+
}>;
|
|
579
|
+
};
|
|
580
|
+
Polaroid: {
|
|
581
|
+
new (options?: Partial<import("./src/filters/BaseFilter").AbstractBaseFilterOptions<string>> & Record<string, any>): {
|
|
582
|
+
type: string;
|
|
583
|
+
matrix: number[];
|
|
584
|
+
mainParameter: undefined;
|
|
585
|
+
colorsOnly: boolean;
|
|
586
|
+
setOptions({ matrix, ...options }: Record<string, any>): void;
|
|
587
|
+
applyTo2d(options: import("./src/filters/typedefs").T2DPipelineState): void;
|
|
588
|
+
getUniformLocations(gl: WebGLRenderingContext, program: WebGLProgram): import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
589
|
+
sendUniformData(gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap): void;
|
|
590
|
+
getFragmentSource(): string;
|
|
591
|
+
vertexSource: string;
|
|
592
|
+
fragmentSource: string;
|
|
593
|
+
createProgram(gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string): {
|
|
594
|
+
program: WebGLProgram;
|
|
595
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
596
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
597
|
+
};
|
|
598
|
+
getAttributeLocations(gl: WebGLRenderingContext, program: WebGLProgram): import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
599
|
+
sendAttributeData(gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array): void;
|
|
600
|
+
_setupFrameBuffer(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
601
|
+
_swapTextures(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
602
|
+
isNeutralState(options?: any): boolean;
|
|
603
|
+
applyTo(options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState): void;
|
|
604
|
+
getCacheKey(): string;
|
|
605
|
+
retrieveShader(options: import("./src/filters/typedefs").TWebGLPipelineState): import("./src/filters/typedefs").TWebGLProgramCacheItem;
|
|
606
|
+
applyToWebGL(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
607
|
+
bindAdditionalTexture(gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number): void;
|
|
608
|
+
unbindAdditionalTexture(gl: WebGLRenderingContext, textureUnit: number): void;
|
|
609
|
+
getMainParameter(): string | boolean | number[] | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLAttributeLocationMap) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => import("./src/filters/typedefs").TWebGLProgramCacheItem) | ((options?: any) => boolean) | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLUniformLocationMap) | (({ matrix, ...options }: Record<string, any>) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | ((gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap) => void) | (() => string) | ((gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string) => {
|
|
610
|
+
program: WebGLProgram;
|
|
611
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
612
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
613
|
+
}) | ((gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState) => void) | (() => string) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number) => void) | ((gl: WebGLRenderingContext, textureUnit: number) => void) | (() => string | boolean | number[] | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLAttributeLocationMap) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => import("./src/filters/typedefs").TWebGLProgramCacheItem) | ((options?: any) => boolean) | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLUniformLocationMap) | (({ matrix, ...options }: Record<string, any>) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | ((gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap) => void) | (() => string) | ((gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string) => {
|
|
614
|
+
program: WebGLProgram;
|
|
615
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
616
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
617
|
+
}) | ((gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState) => void) | (() => string) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number) => void) | ((gl: WebGLRenderingContext, textureUnit: number) => void) | any | (() => {
|
|
618
|
+
type: string;
|
|
619
|
+
}) | (() => {
|
|
620
|
+
type: string;
|
|
621
|
+
}) | ((value: any) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | undefined) | (() => {
|
|
622
|
+
type: string;
|
|
623
|
+
}) | (() => {
|
|
624
|
+
type: string;
|
|
625
|
+
}) | ((value: any) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | undefined;
|
|
626
|
+
setMainParameter(value: any): void;
|
|
627
|
+
createHelpLayer(options: import("./src/filters/typedefs").T2DPipelineState): void;
|
|
628
|
+
toObject(): {
|
|
629
|
+
type: string;
|
|
630
|
+
};
|
|
631
|
+
toJSON(): {
|
|
632
|
+
type: string;
|
|
633
|
+
};
|
|
634
|
+
};
|
|
635
|
+
fromObject(object: any): Promise<{
|
|
636
|
+
type: string;
|
|
637
|
+
matrix: number[];
|
|
638
|
+
mainParameter: undefined;
|
|
639
|
+
colorsOnly: boolean;
|
|
640
|
+
setOptions({ matrix, ...options }: Record<string, any>): void;
|
|
641
|
+
applyTo2d(options: import("./src/filters/typedefs").T2DPipelineState): void;
|
|
642
|
+
getUniformLocations(gl: WebGLRenderingContext, program: WebGLProgram): import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
643
|
+
sendUniformData(gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap): void;
|
|
644
|
+
getFragmentSource(): string;
|
|
645
|
+
vertexSource: string;
|
|
646
|
+
fragmentSource: string;
|
|
647
|
+
createProgram(gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string): {
|
|
648
|
+
program: WebGLProgram;
|
|
649
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
650
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
651
|
+
};
|
|
652
|
+
getAttributeLocations(gl: WebGLRenderingContext, program: WebGLProgram): import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
653
|
+
sendAttributeData(gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array): void;
|
|
654
|
+
_setupFrameBuffer(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
655
|
+
_swapTextures(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
656
|
+
isNeutralState(options?: any): boolean;
|
|
657
|
+
applyTo(options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState): void;
|
|
658
|
+
getCacheKey(): string;
|
|
659
|
+
retrieveShader(options: import("./src/filters/typedefs").TWebGLPipelineState): import("./src/filters/typedefs").TWebGLProgramCacheItem;
|
|
660
|
+
applyToWebGL(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
661
|
+
bindAdditionalTexture(gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number): void;
|
|
662
|
+
unbindAdditionalTexture(gl: WebGLRenderingContext, textureUnit: number): void;
|
|
663
|
+
getMainParameter(): string | boolean | number[] | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLAttributeLocationMap) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => import("./src/filters/typedefs").TWebGLProgramCacheItem) | ((options?: any) => boolean) | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLUniformLocationMap) | (({ matrix, ...options }: Record<string, any>) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | ((gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap) => void) | (() => string) | ((gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string) => {
|
|
664
|
+
program: WebGLProgram;
|
|
665
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
666
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
667
|
+
}) | ((gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState) => void) | (() => string) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number) => void) | ((gl: WebGLRenderingContext, textureUnit: number) => void) | (() => string | boolean | number[] | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLAttributeLocationMap) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => import("./src/filters/typedefs").TWebGLProgramCacheItem) | ((options?: any) => boolean) | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLUniformLocationMap) | (({ matrix, ...options }: Record<string, any>) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | ((gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap) => void) | (() => string) | ((gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string) => {
|
|
668
|
+
program: WebGLProgram;
|
|
669
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
670
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
671
|
+
}) | ((gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState) => void) | (() => string) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number) => void) | ((gl: WebGLRenderingContext, textureUnit: number) => void) | any | (() => {
|
|
672
|
+
type: string;
|
|
673
|
+
}) | (() => {
|
|
674
|
+
type: string;
|
|
675
|
+
}) | ((value: any) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | undefined) | (() => {
|
|
676
|
+
type: string;
|
|
677
|
+
}) | (() => {
|
|
678
|
+
type: string;
|
|
679
|
+
}) | ((value: any) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | undefined;
|
|
680
|
+
setMainParameter(value: any): void;
|
|
681
|
+
createHelpLayer(options: import("./src/filters/typedefs").T2DPipelineState): void;
|
|
682
|
+
toObject(): {
|
|
683
|
+
type: string;
|
|
684
|
+
};
|
|
685
|
+
toJSON(): {
|
|
686
|
+
type: string;
|
|
687
|
+
};
|
|
688
|
+
}>;
|
|
689
|
+
};
|
|
690
|
+
BlackWhite: {
|
|
691
|
+
new (options?: Partial<import("./src/filters/BaseFilter").AbstractBaseFilterOptions<string>> & Record<string, any>): {
|
|
692
|
+
type: string;
|
|
693
|
+
matrix: number[];
|
|
694
|
+
mainParameter: undefined;
|
|
695
|
+
colorsOnly: boolean;
|
|
696
|
+
setOptions({ matrix, ...options }: Record<string, any>): void;
|
|
697
|
+
applyTo2d(options: import("./src/filters/typedefs").T2DPipelineState): void;
|
|
698
|
+
getUniformLocations(gl: WebGLRenderingContext, program: WebGLProgram): import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
699
|
+
sendUniformData(gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap): void;
|
|
700
|
+
getFragmentSource(): string;
|
|
701
|
+
vertexSource: string;
|
|
702
|
+
fragmentSource: string;
|
|
703
|
+
createProgram(gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string): {
|
|
704
|
+
program: WebGLProgram;
|
|
705
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
706
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
707
|
+
};
|
|
708
|
+
getAttributeLocations(gl: WebGLRenderingContext, program: WebGLProgram): import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
709
|
+
sendAttributeData(gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array): void;
|
|
710
|
+
_setupFrameBuffer(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
711
|
+
_swapTextures(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
712
|
+
isNeutralState(options?: any): boolean;
|
|
713
|
+
applyTo(options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState): void;
|
|
714
|
+
getCacheKey(): string;
|
|
715
|
+
retrieveShader(options: import("./src/filters/typedefs").TWebGLPipelineState): import("./src/filters/typedefs").TWebGLProgramCacheItem;
|
|
716
|
+
applyToWebGL(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
717
|
+
bindAdditionalTexture(gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number): void;
|
|
718
|
+
unbindAdditionalTexture(gl: WebGLRenderingContext, textureUnit: number): void;
|
|
719
|
+
getMainParameter(): string | boolean | number[] | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLAttributeLocationMap) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => import("./src/filters/typedefs").TWebGLProgramCacheItem) | ((options?: any) => boolean) | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLUniformLocationMap) | (({ matrix, ...options }: Record<string, any>) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | ((gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap) => void) | (() => string) | ((gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string) => {
|
|
720
|
+
program: WebGLProgram;
|
|
721
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
722
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
723
|
+
}) | ((gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState) => void) | (() => string) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number) => void) | ((gl: WebGLRenderingContext, textureUnit: number) => void) | (() => string | boolean | number[] | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLAttributeLocationMap) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => import("./src/filters/typedefs").TWebGLProgramCacheItem) | ((options?: any) => boolean) | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLUniformLocationMap) | (({ matrix, ...options }: Record<string, any>) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | ((gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap) => void) | (() => string) | ((gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string) => {
|
|
724
|
+
program: WebGLProgram;
|
|
725
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
726
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
727
|
+
}) | ((gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState) => void) | (() => string) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number) => void) | ((gl: WebGLRenderingContext, textureUnit: number) => void) | any | (() => {
|
|
728
|
+
type: string;
|
|
729
|
+
}) | (() => {
|
|
730
|
+
type: string;
|
|
731
|
+
}) | ((value: any) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | undefined) | (() => {
|
|
732
|
+
type: string;
|
|
733
|
+
}) | (() => {
|
|
734
|
+
type: string;
|
|
735
|
+
}) | ((value: any) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | undefined;
|
|
736
|
+
setMainParameter(value: any): void;
|
|
737
|
+
createHelpLayer(options: import("./src/filters/typedefs").T2DPipelineState): void;
|
|
738
|
+
toObject(): {
|
|
739
|
+
type: string;
|
|
740
|
+
};
|
|
741
|
+
toJSON(): {
|
|
742
|
+
type: string;
|
|
743
|
+
};
|
|
744
|
+
};
|
|
745
|
+
fromObject(object: any): Promise<{
|
|
746
|
+
type: string;
|
|
747
|
+
matrix: number[];
|
|
748
|
+
mainParameter: undefined;
|
|
749
|
+
colorsOnly: boolean;
|
|
750
|
+
setOptions({ matrix, ...options }: Record<string, any>): void;
|
|
751
|
+
applyTo2d(options: import("./src/filters/typedefs").T2DPipelineState): void;
|
|
752
|
+
getUniformLocations(gl: WebGLRenderingContext, program: WebGLProgram): import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
753
|
+
sendUniformData(gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap): void;
|
|
754
|
+
getFragmentSource(): string;
|
|
755
|
+
vertexSource: string;
|
|
756
|
+
fragmentSource: string;
|
|
757
|
+
createProgram(gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string): {
|
|
758
|
+
program: WebGLProgram;
|
|
759
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
760
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
761
|
+
};
|
|
762
|
+
getAttributeLocations(gl: WebGLRenderingContext, program: WebGLProgram): import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
763
|
+
sendAttributeData(gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array): void;
|
|
764
|
+
_setupFrameBuffer(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
765
|
+
_swapTextures(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
766
|
+
isNeutralState(options?: any): boolean;
|
|
767
|
+
applyTo(options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState): void;
|
|
768
|
+
getCacheKey(): string;
|
|
769
|
+
retrieveShader(options: import("./src/filters/typedefs").TWebGLPipelineState): import("./src/filters/typedefs").TWebGLProgramCacheItem;
|
|
770
|
+
applyToWebGL(options: import("./src/filters/typedefs").TWebGLPipelineState): void;
|
|
771
|
+
bindAdditionalTexture(gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number): void;
|
|
772
|
+
unbindAdditionalTexture(gl: WebGLRenderingContext, textureUnit: number): void;
|
|
773
|
+
getMainParameter(): string | boolean | number[] | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLAttributeLocationMap) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => import("./src/filters/typedefs").TWebGLProgramCacheItem) | ((options?: any) => boolean) | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLUniformLocationMap) | (({ matrix, ...options }: Record<string, any>) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | ((gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap) => void) | (() => string) | ((gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string) => {
|
|
774
|
+
program: WebGLProgram;
|
|
775
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
776
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
777
|
+
}) | ((gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState) => void) | (() => string) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number) => void) | ((gl: WebGLRenderingContext, textureUnit: number) => void) | (() => string | boolean | number[] | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLAttributeLocationMap) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => import("./src/filters/typedefs").TWebGLProgramCacheItem) | ((options?: any) => boolean) | ((gl: WebGLRenderingContext, program: WebGLProgram) => import("./src/filters/typedefs").TWebGLUniformLocationMap) | (({ matrix, ...options }: Record<string, any>) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | ((gl: WebGLRenderingContext, uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap) => void) | (() => string) | ((gl: WebGLRenderingContext, fragmentSource?: string, vertexSource?: string) => {
|
|
778
|
+
program: WebGLProgram;
|
|
779
|
+
attributeLocations: import("./src/filters/typedefs").TWebGLAttributeLocationMap;
|
|
780
|
+
uniformLocations: import("./src/filters/typedefs").TWebGLUniformLocationMap;
|
|
781
|
+
}) | ((gl: WebGLRenderingContext, attributeLocations: Record<string, number>, aPositionData: Float32Array) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((options: import("./src/filters/typedefs").TWebGLPipelineState | import("./src/filters/typedefs").T2DPipelineState) => void) | (() => string) | ((options: import("./src/filters/typedefs").TWebGLPipelineState) => void) | ((gl: WebGLRenderingContext, texture: WebGLTexture, textureUnit: number) => void) | ((gl: WebGLRenderingContext, textureUnit: number) => void) | any | (() => {
|
|
782
|
+
type: string;
|
|
783
|
+
}) | (() => {
|
|
784
|
+
type: string;
|
|
785
|
+
}) | ((value: any) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | undefined) | (() => {
|
|
786
|
+
type: string;
|
|
787
|
+
}) | (() => {
|
|
788
|
+
type: string;
|
|
789
|
+
}) | ((value: any) => void) | ((options: import("./src/filters/typedefs").T2DPipelineState) => void) | undefined;
|
|
790
|
+
setMainParameter(value: any): void;
|
|
791
|
+
createHelpLayer(options: import("./src/filters/typedefs").T2DPipelineState): void;
|
|
792
|
+
toObject(): {
|
|
793
|
+
type: string;
|
|
794
|
+
};
|
|
795
|
+
toJSON(): {
|
|
796
|
+
type: string;
|
|
797
|
+
};
|
|
798
|
+
}>;
|
|
799
|
+
};
|
|
800
|
+
Gamma: typeof Gamma;
|
|
801
|
+
Grayscale: typeof Grayscale;
|
|
802
|
+
HueRotation: typeof HueRotation;
|
|
803
|
+
Invert: typeof Invert;
|
|
804
|
+
Noise: typeof Noise;
|
|
805
|
+
Pixelate: typeof Pixelate;
|
|
806
|
+
RemoveColor: typeof RemoveColor;
|
|
807
|
+
Resize: typeof Resize;
|
|
808
|
+
Saturation: typeof Saturation;
|
|
809
|
+
Vibrance: typeof Vibrance;
|
|
810
|
+
};
|
|
811
|
+
import { getBoundsOfCurve } from './src/util/path';
|
|
812
|
+
import { setStyle } from './src/util/dom_style';
|
|
813
|
+
import { getElementOffset, cleanUpJsdomNode, makeElementUnselectable, makeElementSelectable } from './src/util/dom_misc';
|
|
814
|
+
import { animate, animateColor } from './src/util/animation/animate';
|
|
815
|
+
import * as ease from './src/util/animation/easing';
|
|
816
|
+
import { requestAnimFrame, cancelAnimFrame } from './src/util/animation/AnimationFrameProvider';
|
|
817
|
+
import { wrapElement } from './src/util/dom_misc';
|
|
818
|
+
import { request } from './src/util/dom_request';
|
|
819
|
+
import { parseFontDeclaration } from './src/parser/parseFontDeclaration';
|
|
820
|
+
declare const util: {
|
|
821
|
+
rotatePoint: (point: Point, origin: Point, radians: import("./src/typedefs").TRadian) => Point;
|
|
822
|
+
removeFromArray: <T>(array: T[], value: T) => T[];
|
|
823
|
+
getRandomInt: (min: number, max: number) => number;
|
|
824
|
+
wrapElement: typeof wrapElement;
|
|
825
|
+
parsePreserveAspectRatioAttribute: (attribute: string) => import("./src/util/misc/svgParsing").TPreserveArParsed;
|
|
826
|
+
pick: <T_1 extends Record<string, any>>(source: T_1, keys?: (keyof T_1)[]) => Partial<T_1>;
|
|
827
|
+
setStyle: typeof setStyle;
|
|
828
|
+
getSvgAttributes: (type: import("./src/typedefs").SVGElementName) => string[];
|
|
829
|
+
cos: (angle: import("./src/typedefs").TRadian) => number;
|
|
830
|
+
sin: (angle: import("./src/typedefs").TRadian) => number;
|
|
831
|
+
rotateVector: (vector: Point, radians: import("./src/typedefs").TRadian) => Point;
|
|
832
|
+
createVector: (from: import("./src/Point").IPoint, to: import("./src/Point").IPoint) => Point;
|
|
833
|
+
calcAngleBetweenVectors: (a: Point, b: Point) => import("./src/typedefs").TRadian;
|
|
834
|
+
getUnitVector: (v: Point) => Point;
|
|
835
|
+
getBisector: (A: Point, B: Point, C: Point) => {
|
|
836
|
+
vector: Point;
|
|
837
|
+
angle: import("./src/typedefs").TRadian;
|
|
838
|
+
};
|
|
839
|
+
degreesToRadians: (degrees: import("./src/typedefs").TDegree) => import("./src/typedefs").TRadian;
|
|
840
|
+
radiansToDegrees: (radians: import("./src/typedefs").TRadian) => import("./src/typedefs").TDegree;
|
|
841
|
+
projectStrokeOnPoints: (points: import("./src/Point").IPoint[], options: import("./src/util/misc/projectStroke/types").TProjectStrokeOnPointsOptions, openPath?: boolean) => import("./src/util/misc/projectStroke/types").TProjection[];
|
|
842
|
+
transformPoint: (p: import("./src/Point").IPoint, t: import("./src/typedefs").TMat2D, ignoreOffset?: boolean | undefined) => Point;
|
|
843
|
+
invertTransform: (t: import("./src/typedefs").TMat2D) => import("./src/typedefs").TMat2D;
|
|
844
|
+
composeMatrix: ({ translateX, translateY, angle, ...otherOptions }: import("./src/util/misc/matrix").TComposeMatrixArgs) => import("./src/typedefs").TMat2D;
|
|
845
|
+
qrDecompose: (a: import("./src/typedefs").TMat2D) => Required<Omit<import("./src/util/misc/matrix").TComposeMatrixArgs, "flipX" | "flipY">>;
|
|
846
|
+
calcDimensionsMatrix: ({ scaleX, scaleY, flipX, flipY, skewX, skewY, }: import("./src/util/misc/matrix").TScaleMatrixArgs) => import("./src/typedefs").TMat2D;
|
|
847
|
+
calcRotateMatrix: ({ angle }: {
|
|
848
|
+
angle?: import("./src/typedefs").TDegree | undefined;
|
|
849
|
+
}) => import("./src/typedefs").TMat2D;
|
|
850
|
+
multiplyTransformMatrices: (a: import("./src/typedefs").TMat2D, b: import("./src/typedefs").TMat2D, is2x2?: boolean | undefined) => import("./src/typedefs").TMat2D;
|
|
851
|
+
isIdentityMatrix: (mat: import("./src/typedefs").TMat2D) => boolean;
|
|
852
|
+
stylesFromArray: (styles: import("./src/shapes/Text/StyledText").TextStyle | import("./src/util/misc/textStyles").TextStyleArray, text: string) => import("./src/shapes/Text/StyledText").TextStyle;
|
|
853
|
+
stylesToArray: (styles: import("./src/shapes/Text/StyledText").TextStyle, text: string) => import("./src/util/misc/textStyles").TextStyleArray;
|
|
854
|
+
hasStyleChanged: (prevStyle: import("./src/shapes/Text/StyledText").TextStyleDeclaration, thisStyle: import("./src/shapes/Text/StyledText").TextStyleDeclaration, forTextSpans?: boolean) => boolean;
|
|
855
|
+
getElementOffset: typeof getElementOffset;
|
|
856
|
+
createCanvasElement: () => HTMLCanvasElement;
|
|
857
|
+
createImage: () => HTMLImageElement;
|
|
858
|
+
copyCanvasElement: (canvas: HTMLCanvasElement) => HTMLCanvasElement;
|
|
859
|
+
toDataURL: (canvasEl: HTMLCanvasElement, format: import("./src/typedefs").ImageFormat, quality: number) => string;
|
|
860
|
+
toFixed: (number: string | number, fractionDigits: number) => number;
|
|
861
|
+
matrixToSVG: (transform: import("./src/typedefs").TMat2D) => string;
|
|
862
|
+
groupSVGElements: (elements: Object<import("./src/EventTypeDefs").ObjectEvents>[]) => Object<import("./src/EventTypeDefs").ObjectEvents>;
|
|
863
|
+
parseUnit: (value: string, fontSize: number) => number;
|
|
864
|
+
findScaleToFit: (source: import("./src/util/misc/findScaleTo").IWithDimensions, destination: import("./src/util/misc/findScaleTo").IWithDimensions) => number;
|
|
865
|
+
findScaleToCover: (source: import("./src/util/misc/findScaleTo").IWithDimensions, destination: import("./src/util/misc/findScaleTo").IWithDimensions) => number;
|
|
866
|
+
capValue: (min: number, value: number, max: number) => number;
|
|
867
|
+
saveObjectTransform: (target: import("./src/shapes/Object/Object").FabricObject<import("./src/EventTypeDefs").ObjectEvents>) => {
|
|
868
|
+
scaleX: number;
|
|
869
|
+
scaleY: number;
|
|
870
|
+
skewX: number;
|
|
871
|
+
skewY: number;
|
|
872
|
+
angle: import("./src/typedefs").TDegree;
|
|
873
|
+
left: number;
|
|
874
|
+
flipX: boolean;
|
|
875
|
+
flipY: boolean;
|
|
876
|
+
top: number;
|
|
877
|
+
};
|
|
878
|
+
resetObjectTransform: (target: import("./src/shapes/Object/Object").FabricObject<import("./src/EventTypeDefs").ObjectEvents>) => void;
|
|
879
|
+
addTransformToObject: (object: import("./src/shapes/Object/Object").FabricObject<import("./src/EventTypeDefs").ObjectEvents>, transform: import("./src/typedefs").TMat2D) => void;
|
|
880
|
+
applyTransformToObject: (object: import("./src/shapes/Object/Object").FabricObject<import("./src/EventTypeDefs").ObjectEvents>, transform: import("./src/typedefs").TMat2D) => void;
|
|
881
|
+
removeTransformFromObject: (object: import("./src/shapes/Object/Object").FabricObject<import("./src/EventTypeDefs").ObjectEvents>, transform: import("./src/typedefs").TMat2D) => void;
|
|
882
|
+
makeBoundingBoxFromPoints: (points: import("./src/Point").IPoint[]) => import("./src/typedefs").TBBox;
|
|
883
|
+
calcPlaneChangeMatrix: (from?: import("./src/typedefs").TMat2D, to?: import("./src/typedefs").TMat2D) => import("./src/typedefs").TMat2D;
|
|
884
|
+
sendPointToPlane: (point: Point, from?: import("./src/typedefs").TMat2D, to?: import("./src/typedefs").TMat2D) => Point;
|
|
885
|
+
transformPointRelativeToCanvas: (point: Point, canvas: StaticCanvas<import("./src/EventTypeDefs").StaticCanvasEvents>, relationBefore: import("./src/util/misc/planeChange").ObjectRelation, relationAfter: import("./src/util/misc/planeChange").ObjectRelation) => Point;
|
|
886
|
+
sendObjectToPlane: (object: Object<import("./src/EventTypeDefs").ObjectEvents>, from?: import("./src/typedefs").TMat2D | undefined, to?: import("./src/typedefs").TMat2D | undefined) => import("./src/typedefs").TMat2D;
|
|
887
|
+
string: {
|
|
888
|
+
graphemeSplit: (textstring: string) => string[];
|
|
889
|
+
capitalize: (string: string, firstLetterOnly?: boolean) => string;
|
|
890
|
+
escapeXml: (string: string) => string;
|
|
891
|
+
};
|
|
892
|
+
loadImage: (url: string, { signal, crossOrigin }?: import("./src/util/misc/objectEnlive").LoadImageOptions) => Promise<HTMLImageElement>;
|
|
893
|
+
enlivenObjects: (objects: any[], { signal, reviver }?: import("./src/util/misc/objectEnlive").EnlivenObjectOptions) => Promise<Object<import("./src/EventTypeDefs").ObjectEvents>[]>;
|
|
894
|
+
enlivenObjectEnlivables: <R = Record<string, import("./src/typedefs").TFiller | Object<import("./src/EventTypeDefs").ObjectEvents> | null>>(serializedObject: any, { signal }?: {
|
|
895
|
+
signal?: AbortSignal | undefined;
|
|
896
|
+
}) => Promise<R>;
|
|
897
|
+
joinPath: (pathData: any) => any;
|
|
898
|
+
parsePath: (pathString: any) => any[];
|
|
899
|
+
makePathSimpler: (path: import("./src/typedefs").PathData) => import("./src/typedefs").PathData;
|
|
900
|
+
getSmoothPathFromPoints: (points: any, correction?: number) => (string | number)[][];
|
|
901
|
+
getPathSegmentsInfo: (path: import("./src/typedefs").PathData) => import("./src/util/path").TPathSegmentsInfo[];
|
|
902
|
+
getBoundsOfCurve: typeof getBoundsOfCurve;
|
|
903
|
+
getPointOnPath: (path: import("./src/typedefs").PathData, distance: number, infos?: import("./src/util/path").TPathSegmentsInfo[]) => Point | {
|
|
904
|
+
x: number;
|
|
905
|
+
y: number;
|
|
906
|
+
angle: number;
|
|
907
|
+
} | undefined;
|
|
908
|
+
transformPath: (path: import("./src/typedefs").PathData, transform: import("./src/typedefs").TMat2D, pathOffset: Point) => (string | number)[][];
|
|
909
|
+
getRegularPolygonPath: (numVertexes: any, radius: any) => any[];
|
|
910
|
+
isTouchEvent: (event: any) => boolean;
|
|
911
|
+
getPointer: (event: any) => Point;
|
|
912
|
+
cleanUpJsdomNode: typeof cleanUpJsdomNode;
|
|
913
|
+
makeElementUnselectable: typeof makeElementUnselectable;
|
|
914
|
+
makeElementSelectable: typeof makeElementSelectable;
|
|
915
|
+
isTransparent: (ctx: CanvasRenderingContext2D, x: number, y: number, tolerance: number) => boolean;
|
|
916
|
+
sizeAfterTransform: (width: number, height: number, options: import("./src/util/misc/matrix").TScaleMatrixArgs) => Point;
|
|
917
|
+
mergeClipPaths: (c1: Object<import("./src/EventTypeDefs").ObjectEvents>, c2: Object<import("./src/EventTypeDefs").ObjectEvents>) => Group;
|
|
918
|
+
request: typeof request;
|
|
919
|
+
ease: typeof ease;
|
|
920
|
+
animateColor: typeof animateColor;
|
|
921
|
+
animate: typeof animate;
|
|
922
|
+
requestAnimFrame: typeof requestAnimFrame;
|
|
923
|
+
cancelAnimFrame: typeof cancelAnimFrame;
|
|
924
|
+
classRegistry: import("./src/util/class_registry").ClassRegistry;
|
|
925
|
+
removeTransformMatrixForSvgParsing: (object: Object<import("./src/EventTypeDefs").ObjectEvents> & {
|
|
926
|
+
transformMatrix?: import("./src/typedefs").TMat2D | undefined;
|
|
927
|
+
}, preserveAspectRatioOptions?: any) => void;
|
|
928
|
+
};
|
|
929
|
+
import { renderCircleControl, renderSquareControl } from './src/controls/controls.render';
|
|
930
|
+
import { createPolyControls } from './src/controls/polyControl';
|
|
931
|
+
import { getLocalPoint } from './src/controls/util';
|
|
932
|
+
import { wrapWithFixedAnchor } from './src/controls/wrapWithFixedAnchor';
|
|
933
|
+
/**
|
|
934
|
+
* @todo remove as unused
|
|
935
|
+
*/
|
|
936
|
+
declare const controlsUtils: {
|
|
937
|
+
scaleCursorStyleHandler: import("./src/EventTypeDefs").ControlCursorCallback;
|
|
938
|
+
skewCursorStyleHandler: import("./src/EventTypeDefs").ControlCursorCallback;
|
|
939
|
+
scaleSkewCursorStyleHandler: import("./src/EventTypeDefs").ControlCursorCallback;
|
|
940
|
+
rotationWithSnapping: import("./src/EventTypeDefs").TransformActionHandler<import("./src/EventTypeDefs").Transform>;
|
|
941
|
+
scalingEqually: import("./src/EventTypeDefs").TransformActionHandler<import("./src/EventTypeDefs").Transform & {
|
|
942
|
+
gestureScale?: number | undefined;
|
|
943
|
+
signX?: number | undefined;
|
|
944
|
+
signY?: number | undefined;
|
|
945
|
+
}>;
|
|
946
|
+
scalingX: import("./src/EventTypeDefs").TransformActionHandler<import("./src/EventTypeDefs").Transform & {
|
|
947
|
+
gestureScale?: number | undefined;
|
|
948
|
+
signX?: number | undefined;
|
|
949
|
+
signY?: number | undefined;
|
|
950
|
+
}>;
|
|
951
|
+
scalingY: import("./src/EventTypeDefs").TransformActionHandler<import("./src/EventTypeDefs").Transform & {
|
|
952
|
+
gestureScale?: number | undefined;
|
|
953
|
+
signX?: number | undefined;
|
|
954
|
+
signY?: number | undefined;
|
|
955
|
+
}>;
|
|
956
|
+
scalingYOrSkewingX: import("./src/EventTypeDefs").TransformActionHandler<import("./src/EventTypeDefs").Transform>;
|
|
957
|
+
scalingXOrSkewingY: import("./src/EventTypeDefs").TransformActionHandler<import("./src/EventTypeDefs").Transform>;
|
|
958
|
+
changeWidth: import("./src/EventTypeDefs").TransformActionHandler<import("./src/EventTypeDefs").Transform>;
|
|
959
|
+
skewHandlerX: import("./src/EventTypeDefs").TransformActionHandler<import("./src/EventTypeDefs").Transform>;
|
|
960
|
+
skewHandlerY: import("./src/EventTypeDefs").TransformActionHandler<import("./src/EventTypeDefs").Transform>;
|
|
961
|
+
dragHandler: import("./src/EventTypeDefs").TransformActionHandler<import("./src/EventTypeDefs").Transform>;
|
|
962
|
+
createPolyControls: typeof createPolyControls;
|
|
963
|
+
scaleOrSkewActionName: import("./src/EventTypeDefs").ControlCallback<"" | "scaleX" | "scaleY" | "skewX" | "skewY">;
|
|
964
|
+
rotationStyleHandler: import("./src/EventTypeDefs").ControlCursorCallback;
|
|
965
|
+
wrapWithFixedAnchor: typeof wrapWithFixedAnchor;
|
|
966
|
+
wrapWithFireEvent: <T extends import("./src/EventTypeDefs").Transform>(eventName: import("./src/EventTypeDefs").TModificationEvents, actionHandler: import("./src/EventTypeDefs").TransformActionHandler<T>) => import("./src/EventTypeDefs").TransformActionHandler<T>;
|
|
967
|
+
getLocalPoint: typeof getLocalPoint;
|
|
968
|
+
renderCircleControl: typeof renderCircleControl;
|
|
969
|
+
renderSquareControl: typeof renderSquareControl;
|
|
970
|
+
};
|
|
971
|
+
import { cache } from './src/cache';
|
|
972
|
+
import { VERSION as version, iMatrix } from './src/constants';
|
|
973
|
+
import { StaticCanvas } from './src/canvas/StaticCanvas';
|
|
974
|
+
import { Canvas } from './src/canvas/Canvas';
|
|
975
|
+
import { config } from './src/config';
|
|
976
|
+
import { loadSVGFromURL } from './src/parser/loadSVGFromURL';
|
|
977
|
+
import { loadSVGFromString } from './src/parser/loadSVGFromString';
|
|
978
|
+
import { initFilterBackend } from './src/filters/FilterBackend';
|
|
979
|
+
import { Canvas2dFilterBackend } from './src/filters/Canvas2dFilterBackend';
|
|
980
|
+
import { WebGLFilterBackend } from './src/filters/WebGLFilterBackend';
|
|
981
|
+
import { runningAnimations } from './src/util/animation/AnimationRegistry';
|
|
982
|
+
import { Observable } from './src/Observable';
|
|
983
|
+
import { Point } from './src/Point';
|
|
984
|
+
import { Intersection } from './src/Intersection';
|
|
985
|
+
import { Color } from './src/color/Color';
|
|
986
|
+
import { Control } from './src/controls/Control';
|
|
987
|
+
import { Gradient } from './src/gradient/Gradient';
|
|
988
|
+
import { Pattern } from './src/Pattern';
|
|
989
|
+
import { Shadow } from './src/Shadow';
|
|
990
|
+
import { BaseBrush } from './src/brushes/BaseBrush';
|
|
991
|
+
import { PencilBrush } from './src/brushes/PencilBrush';
|
|
992
|
+
import { CircleBrush } from './src/brushes/CircleBrush';
|
|
993
|
+
import { SprayBrush } from './src/brushes/SprayBrush';
|
|
994
|
+
import { PatternBrush } from './src/brushes/PatternBrush';
|
|
995
|
+
import { FabricObject as Object } from './src/shapes/Object/FabricObject';
|
|
996
|
+
import { Line } from './src/shapes/Line';
|
|
997
|
+
import { Circle } from './src/shapes/Circle';
|
|
998
|
+
import { Triangle } from './src/shapes/Triangle';
|
|
999
|
+
import { Ellipse } from './src/shapes/Ellipse';
|
|
1000
|
+
import { Rect } from './src/shapes/Rect';
|
|
1001
|
+
import { Path } from './src/shapes/Path';
|
|
1002
|
+
import { Polyline } from './src/shapes/Polyline';
|
|
1003
|
+
import { Polygon } from './src/shapes/Polygon';
|
|
1004
|
+
import { Text } from './src/shapes/Text/Text';
|
|
1005
|
+
import { IText } from './src/shapes/IText/IText';
|
|
1006
|
+
import { Textbox } from './src/shapes/Textbox';
|
|
1007
|
+
import { Group } from './src/shapes/Group';
|
|
1008
|
+
import { ActiveSelection } from './src/shapes/ActiveSelection';
|
|
1009
|
+
import { Image } from './src/shapes/Image';
|
|
1010
|
+
import { getEnv, getDocument, getWindow, setEnvForTests } from './src/env';
|
|
1011
|
+
import { createCollectionMixin } from './src/Collection';
|
|
1012
|
+
import { parseAttributes } from './src/parser/parseAttributes';
|
|
1013
|
+
import { parseElements } from './src/parser/parseElements';
|
|
1014
|
+
import { getFilterBackend } from './src/filters/FilterBackend';
|
|
1015
|
+
import { parseStyleAttribute } from './src/parser/parseStyleAttribute';
|
|
1016
|
+
import { parsePointsAttribute } from './src/parser/parsePointsAttribute';
|
|
1017
|
+
import { parseTransformAttribute } from './src/parser/parseTransformAttribute';
|
|
1018
|
+
import { getCSSRules } from './src/parser/getCSSRules';
|
|
1019
|
+
import './src/controls/default_controls';
|
|
1020
|
+
export { parseElements, parseAttributes, cache, version, iMatrix, createCollectionMixin, StaticCanvas, Canvas, config, loadSVGFromURL, loadSVGFromString, initFilterBackend, Canvas2dFilterBackend, WebGLFilterBackend, runningAnimations, Point, Intersection, Color, Control, Observable, Gradient, Pattern, Shadow, BaseBrush, PencilBrush, CircleBrush, SprayBrush, PatternBrush, Object, Line, Circle, Triangle, Ellipse, Rect, Path, Polyline, Polygon, Text, IText, Textbox, Group, ActiveSelection, Image, controlsUtils, util, filters, getFilterBackend, getEnv, getDocument, getWindow, setEnvForTests, parseStyleAttribute, parsePointsAttribute, parseFontDeclaration, parseTransformAttribute, getCSSRules, };
|
|
1021
|
+
//# sourceMappingURL=fabric.d.ts.map
|