@shopify/react-native-skia 0.1.237 → 0.1.239
Sign up to get free protection for your applications and to get access to all the features.
- package/cpp/rnskia/dom/base/JsiDomNode.h +16 -0
- package/cpp/rnskia/dom/nodes/JsiAtlasNode.h +0 -1
- package/ios/RNSkia-iOS/RNSkiOSPlatformContext.h +4 -3
- package/ios/RNSkia-iOS/SkiaManager.h +3 -1
- package/ios/RNSkia-iOS/SkiaManager.mm +6 -5
- package/ios/RNSkiaModule.mm +7 -1
- package/lib/commonjs/Platform/Platform.js +1 -5
- package/lib/commonjs/Platform/Platform.js.map +1 -1
- package/lib/commonjs/Platform/Platform.web.js +11 -33
- package/lib/commonjs/Platform/Platform.web.js.map +1 -1
- package/lib/commonjs/Platform/index.js +0 -2
- package/lib/commonjs/Platform/index.js.map +1 -1
- package/lib/commonjs/animation/functions/index.js +0 -8
- package/lib/commonjs/animation/functions/index.js.map +1 -1
- package/lib/commonjs/animation/functions/interpolate.js +12 -31
- package/lib/commonjs/animation/functions/interpolate.js.map +1 -1
- package/lib/commonjs/animation/functions/interpolateColors.js +2 -13
- package/lib/commonjs/animation/functions/interpolateColors.js.map +1 -1
- package/lib/commonjs/animation/functions/interpolatePaths.js +1 -16
- package/lib/commonjs/animation/functions/interpolatePaths.js.map +1 -1
- package/lib/commonjs/animation/functions/interpolateVector.js +0 -5
- package/lib/commonjs/animation/functions/interpolateVector.js.map +1 -1
- package/lib/commonjs/animation/index.js +0 -2
- package/lib/commonjs/animation/index.js.map +1 -1
- package/lib/commonjs/dom/nodes/DrawingNode.js +7 -22
- package/lib/commonjs/dom/nodes/DrawingNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/GroupNode.js +0 -6
- package/lib/commonjs/dom/nodes/GroupNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/JsiSkDOM.js +25 -87
- package/lib/commonjs/dom/nodes/JsiSkDOM.js.map +1 -1
- package/lib/commonjs/dom/nodes/LayerNode.js +0 -11
- package/lib/commonjs/dom/nodes/LayerNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/Node.js +4 -36
- package/lib/commonjs/dom/nodes/Node.js.map +1 -1
- package/lib/commonjs/dom/nodes/PaintNode.js +1 -29
- package/lib/commonjs/dom/nodes/PaintNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/RenderNode.js +3 -35
- package/lib/commonjs/dom/nodes/RenderNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/datatypes/Circle.js +6 -8
- package/lib/commonjs/dom/nodes/datatypes/Circle.js.map +1 -1
- package/lib/commonjs/dom/nodes/datatypes/Enum.js +0 -2
- package/lib/commonjs/dom/nodes/datatypes/Enum.js.map +1 -1
- package/lib/commonjs/dom/nodes/datatypes/Fitting.js +15 -46
- package/lib/commonjs/dom/nodes/datatypes/Fitting.js.map +1 -1
- package/lib/commonjs/dom/nodes/datatypes/Gradient.js +9 -20
- package/lib/commonjs/dom/nodes/datatypes/Gradient.js.map +1 -1
- package/lib/commonjs/dom/nodes/datatypes/Path.js +2 -8
- package/lib/commonjs/dom/nodes/datatypes/Path.js.map +1 -1
- package/lib/commonjs/dom/nodes/datatypes/Radius.js +0 -3
- package/lib/commonjs/dom/nodes/datatypes/Radius.js.map +1 -1
- package/lib/commonjs/dom/nodes/datatypes/Rect.js +10 -15
- package/lib/commonjs/dom/nodes/datatypes/Rect.js.map +1 -1
- package/lib/commonjs/dom/nodes/datatypes/Transform.js +0 -6
- package/lib/commonjs/dom/nodes/datatypes/Transform.js.map +1 -1
- package/lib/commonjs/dom/nodes/datatypes/index.js +0 -16
- package/lib/commonjs/dom/nodes/datatypes/index.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/AtlasNode.js +4 -15
- package/lib/commonjs/dom/nodes/drawings/AtlasNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.js +4 -18
- package/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/Box.js +8 -34
- package/lib/commonjs/dom/nodes/drawings/Box.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/CircleNode.js +4 -15
- package/lib/commonjs/dom/nodes/drawings/CircleNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/DiffRectNode.js +4 -12
- package/lib/commonjs/dom/nodes/drawings/DiffRectNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/FillNode.js +5 -14
- package/lib/commonjs/dom/nodes/drawings/FillNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/ImageNode.js +6 -19
- package/lib/commonjs/dom/nodes/drawings/ImageNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/ImageSVG.js +3 -18
- package/lib/commonjs/dom/nodes/drawings/ImageSVG.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/LineNode.js +4 -12
- package/lib/commonjs/dom/nodes/drawings/LineNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/OvalNode.js +4 -15
- package/lib/commonjs/dom/nodes/drawings/OvalNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/ParagraphNode.js +3 -12
- package/lib/commonjs/dom/nodes/drawings/ParagraphNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/PatchNode.js +6 -18
- package/lib/commonjs/dom/nodes/drawings/PatchNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/PathNode.js +4 -21
- package/lib/commonjs/dom/nodes/drawings/PathNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/PictureNode.js +3 -11
- package/lib/commonjs/dom/nodes/drawings/PictureNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/PointsNode.js +4 -14
- package/lib/commonjs/dom/nodes/drawings/PointsNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/RRectNode.js +7 -18
- package/lib/commonjs/dom/nodes/drawings/RRectNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/RectNode.js +4 -15
- package/lib/commonjs/dom/nodes/drawings/RectNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/Text.js +18 -62
- package/lib/commonjs/dom/nodes/drawings/Text.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/VerticesNode.js +4 -16
- package/lib/commonjs/dom/nodes/drawings/VerticesNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/index.js +0 -36
- package/lib/commonjs/dom/nodes/drawings/index.js.map +1 -1
- package/lib/commonjs/dom/nodes/index.js +0 -6
- package/lib/commonjs/dom/nodes/index.js.map +1 -1
- package/lib/commonjs/dom/nodes/paint/BlendNode.js +4 -18
- package/lib/commonjs/dom/nodes/paint/BlendNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/paint/ColorFilters.js +0 -34
- package/lib/commonjs/dom/nodes/paint/ColorFilters.js.map +1 -1
- package/lib/commonjs/dom/nodes/paint/ImageFilters.js +7 -60
- package/lib/commonjs/dom/nodes/paint/ImageFilters.js.map +1 -1
- package/lib/commonjs/dom/nodes/paint/MaskFilters.js +0 -8
- package/lib/commonjs/dom/nodes/paint/MaskFilters.js.map +1 -1
- package/lib/commonjs/dom/nodes/paint/PathEffects.js +0 -45
- package/lib/commonjs/dom/nodes/paint/PathEffects.js.map +1 -1
- package/lib/commonjs/dom/nodes/paint/Shaders.js +1 -48
- package/lib/commonjs/dom/nodes/paint/Shaders.js.map +1 -1
- package/lib/commonjs/dom/nodes/paint/index.js +0 -12
- package/lib/commonjs/dom/nodes/paint/index.js.map +1 -1
- package/lib/commonjs/dom/types/DeclarationContext.js +3 -30
- package/lib/commonjs/dom/types/DeclarationContext.js.map +1 -1
- package/lib/commonjs/dom/types/DrawingContext.js +3 -91
- package/lib/commonjs/dom/types/DrawingContext.js.map +1 -1
- package/lib/commonjs/dom/types/NodeType.js +6 -11
- package/lib/commonjs/dom/types/NodeType.js.map +1 -1
- package/lib/commonjs/dom/types/index.js +0 -26
- package/lib/commonjs/dom/types/index.js.map +1 -1
- package/lib/commonjs/external/index.js +0 -2
- package/lib/commonjs/external/index.js.map +1 -1
- package/lib/commonjs/external/reanimated/buffers.d.ts +6 -4
- package/lib/commonjs/external/reanimated/buffers.js +25 -24
- package/lib/commonjs/external/reanimated/buffers.js.map +1 -1
- package/lib/commonjs/external/reanimated/index.js +0 -12
- package/lib/commonjs/external/reanimated/index.js.map +1 -1
- package/lib/commonjs/external/reanimated/interpolators.d.ts +1 -1
- package/lib/commonjs/external/reanimated/interpolators.js +5 -20
- package/lib/commonjs/external/reanimated/interpolators.js.map +1 -1
- package/lib/commonjs/external/reanimated/moduleWrapper.js +12 -29
- package/lib/commonjs/external/reanimated/moduleWrapper.js.map +1 -1
- package/lib/commonjs/external/reanimated/renderHelpers.js +5 -31
- package/lib/commonjs/external/reanimated/renderHelpers.js.map +1 -1
- package/lib/commonjs/external/reanimated/textures.d.ts +6 -3
- package/lib/commonjs/external/reanimated/textures.js +52 -15
- package/lib/commonjs/external/reanimated/textures.js.map +1 -1
- package/lib/commonjs/external/reanimated/useAnimatedImageValue.js +11 -16
- package/lib/commonjs/external/reanimated/useAnimatedImageValue.js.map +1 -1
- package/lib/commonjs/external/reanimated/useDerivedValueOnJS.js +0 -4
- package/lib/commonjs/external/reanimated/useDerivedValueOnJS.js.map +1 -1
- package/lib/commonjs/headless/index.js +1 -12
- package/lib/commonjs/headless/index.js.map +1 -1
- package/lib/commonjs/index.js +0 -20
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/mock/index.js +0 -6
- package/lib/commonjs/mock/index.js.map +1 -1
- package/lib/commonjs/renderer/Canvas.js +21 -46
- package/lib/commonjs/renderer/Canvas.js.map +1 -1
- package/lib/commonjs/renderer/Container.js +4 -15
- package/lib/commonjs/renderer/Container.js.map +1 -1
- package/lib/commonjs/renderer/HostComponents.js +1 -65
- package/lib/commonjs/renderer/HostComponents.js.map +1 -1
- package/lib/commonjs/renderer/HostConfig.js +9 -38
- package/lib/commonjs/renderer/HostConfig.js.map +1 -1
- package/lib/commonjs/renderer/Offscreen.js +2 -12
- package/lib/commonjs/renderer/Offscreen.js.map +1 -1
- package/lib/commonjs/renderer/Reconciler.js +4 -20
- package/lib/commonjs/renderer/Reconciler.js.map +1 -1
- package/lib/commonjs/renderer/components/Blend.js +0 -4
- package/lib/commonjs/renderer/components/Blend.js.map +1 -1
- package/lib/commonjs/renderer/components/Group.js +6 -15
- package/lib/commonjs/renderer/components/Group.js.map +1 -1
- package/lib/commonjs/renderer/components/Mask.js +6 -14
- package/lib/commonjs/renderer/components/Mask.js.map +1 -1
- package/lib/commonjs/renderer/components/Paint.js +0 -4
- package/lib/commonjs/renderer/components/Paint.js.map +1 -1
- package/lib/commonjs/renderer/components/Picture.js +0 -4
- package/lib/commonjs/renderer/components/Picture.js.map +1 -1
- package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js +5 -13
- package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js.map +1 -1
- package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js +5 -11
- package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js.map +1 -1
- package/lib/commonjs/renderer/components/backdrop/index.js +0 -4
- package/lib/commonjs/renderer/components/backdrop/index.js.map +1 -1
- package/lib/commonjs/renderer/components/colorFilters/BlendColor.js +0 -4
- package/lib/commonjs/renderer/components/colorFilters/BlendColor.js.map +1 -1
- package/lib/commonjs/renderer/components/colorFilters/Lerp.js +0 -4
- package/lib/commonjs/renderer/components/colorFilters/Lerp.js.map +1 -1
- package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js +0 -4
- package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
- package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js +0 -4
- package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
- package/lib/commonjs/renderer/components/colorFilters/Matrix.js +0 -6
- package/lib/commonjs/renderer/components/colorFilters/Matrix.js.map +1 -1
- package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js +0 -4
- package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
- package/lib/commonjs/renderer/components/colorFilters/index.js +0 -12
- package/lib/commonjs/renderer/components/colorFilters/index.js.map +1 -1
- package/lib/commonjs/renderer/components/image/Image.js +0 -4
- package/lib/commonjs/renderer/components/image/Image.js.map +1 -1
- package/lib/commonjs/renderer/components/image/ImageSVG.js +0 -4
- package/lib/commonjs/renderer/components/image/ImageSVG.js.map +1 -1
- package/lib/commonjs/renderer/components/image/ImageShader.js +9 -15
- package/lib/commonjs/renderer/components/image/ImageShader.js.map +1 -1
- package/lib/commonjs/renderer/components/image/index.js +0 -6
- package/lib/commonjs/renderer/components/image/index.js.map +1 -1
- package/lib/commonjs/renderer/components/imageFilters/Blur.js +4 -10
- package/lib/commonjs/renderer/components/imageFilters/Blur.js.map +1 -1
- package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js +0 -4
- package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
- package/lib/commonjs/renderer/components/imageFilters/Morphology.js +4 -10
- package/lib/commonjs/renderer/components/imageFilters/Morphology.js.map +1 -1
- package/lib/commonjs/renderer/components/imageFilters/Offset.js +5 -11
- package/lib/commonjs/renderer/components/imageFilters/Offset.js.map +1 -1
- package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js +0 -4
- package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
- package/lib/commonjs/renderer/components/imageFilters/Shadow.js +0 -4
- package/lib/commonjs/renderer/components/imageFilters/Shadow.js.map +1 -1
- package/lib/commonjs/renderer/components/imageFilters/index.js +0 -12
- package/lib/commonjs/renderer/components/imageFilters/index.js.map +1 -1
- package/lib/commonjs/renderer/components/index.js +0 -32
- package/lib/commonjs/renderer/components/index.js.map +1 -1
- package/lib/commonjs/renderer/components/maskFilters/Blur.js +5 -11
- package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -1
- package/lib/commonjs/renderer/components/maskFilters/index.js +0 -2
- package/lib/commonjs/renderer/components/maskFilters/index.js.map +1 -1
- package/lib/commonjs/renderer/components/paragraph/Paragraph.js +0 -4
- package/lib/commonjs/renderer/components/paragraph/Paragraph.js.map +1 -1
- package/lib/commonjs/renderer/components/paragraph/index.js +0 -2
- package/lib/commonjs/renderer/components/paragraph/index.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Corner.js +0 -4
- package/lib/commonjs/renderer/components/pathEffects/Corner.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Dash.js +0 -4
- package/lib/commonjs/renderer/components/pathEffects/Dash.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Discrete.js +4 -10
- package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Line2D.js +0 -4
- package/lib/commonjs/renderer/components/pathEffects/Line2D.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Path1D.js +0 -4
- package/lib/commonjs/renderer/components/pathEffects/Path1D.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Path2D.js +0 -4
- package/lib/commonjs/renderer/components/pathEffects/Path2D.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Sum.js +0 -4
- package/lib/commonjs/renderer/components/pathEffects/Sum.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/index.js +0 -14
- package/lib/commonjs/renderer/components/pathEffects/index.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/Color.js +0 -4
- package/lib/commonjs/renderer/components/shaders/Color.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/FractalNoise.js +6 -12
- package/lib/commonjs/renderer/components/shaders/FractalNoise.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/LinearGradient.js +0 -4
- package/lib/commonjs/renderer/components/shaders/LinearGradient.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/RadialGradient.js +0 -4
- package/lib/commonjs/renderer/components/shaders/RadialGradient.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/Shader.js +4 -10
- package/lib/commonjs/renderer/components/shaders/Shader.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/ShaderLib.js +1 -2
- package/lib/commonjs/renderer/components/shaders/ShaderLib.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/SweepGradient.js +0 -4
- package/lib/commonjs/renderer/components/shaders/SweepGradient.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/Turbulence.js +6 -12
- package/lib/commonjs/renderer/components/shaders/Turbulence.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js +0 -4
- package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/index.js +0 -18
- package/lib/commonjs/renderer/components/shaders/index.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Atlas.js +0 -4
- package/lib/commonjs/renderer/components/shapes/Atlas.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Box.js +0 -6
- package/lib/commonjs/renderer/components/shapes/Box.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Circle.js +0 -4
- package/lib/commonjs/renderer/components/shapes/Circle.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/DiffRect.js +0 -4
- package/lib/commonjs/renderer/components/shapes/DiffRect.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Fill.js +0 -4
- package/lib/commonjs/renderer/components/shapes/Fill.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/FitBox.js +8 -18
- package/lib/commonjs/renderer/components/shapes/FitBox.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Line.js +0 -4
- package/lib/commonjs/renderer/components/shapes/Line.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Oval.js +0 -4
- package/lib/commonjs/renderer/components/shapes/Oval.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Patch.js +0 -4
- package/lib/commonjs/renderer/components/shapes/Patch.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Path.js +5 -11
- package/lib/commonjs/renderer/components/shapes/Path.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Points.js +4 -10
- package/lib/commonjs/renderer/components/shapes/Points.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Rect.js +0 -4
- package/lib/commonjs/renderer/components/shapes/Rect.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/RoundedRect.js +0 -4
- package/lib/commonjs/renderer/components/shapes/RoundedRect.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Vertices.js +4 -10
- package/lib/commonjs/renderer/components/shapes/Vertices.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/index.js +0 -28
- package/lib/commonjs/renderer/components/shapes/index.js.map +1 -1
- package/lib/commonjs/renderer/components/text/Glyphs.js +5 -11
- package/lib/commonjs/renderer/components/text/Glyphs.js.map +1 -1
- package/lib/commonjs/renderer/components/text/Text.js +5 -11
- package/lib/commonjs/renderer/components/text/Text.js.map +1 -1
- package/lib/commonjs/renderer/components/text/TextBlob.js +5 -11
- package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -1
- package/lib/commonjs/renderer/components/text/TextPath.js +4 -10
- package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -1
- package/lib/commonjs/renderer/components/text/index.js +0 -8
- package/lib/commonjs/renderer/components/text/index.js.map +1 -1
- package/lib/commonjs/renderer/index.js +0 -2
- package/lib/commonjs/renderer/index.js.map +1 -1
- package/lib/commonjs/renderer/processors/Animations/index.js +0 -2
- package/lib/commonjs/renderer/processors/Animations/index.js.map +1 -1
- package/lib/commonjs/renderer/processors/index.js +0 -4
- package/lib/commonjs/renderer/processors/index.js.map +1 -1
- package/lib/commonjs/renderer/processors/math/Coordinates.js +0 -12
- package/lib/commonjs/renderer/processors/math/Coordinates.js.map +1 -1
- package/lib/commonjs/renderer/processors/math/Math.js +1 -7
- package/lib/commonjs/renderer/processors/math/Math.js.map +1 -1
- package/lib/commonjs/renderer/processors/math/Transforms.js +0 -3
- package/lib/commonjs/renderer/processors/math/Transforms.js.map +1 -1
- package/lib/commonjs/renderer/processors/math/index.js +0 -6
- package/lib/commonjs/renderer/processors/math/index.js.map +1 -1
- package/lib/commonjs/renderer/typeddash.js +2 -11
- package/lib/commonjs/renderer/typeddash.js.map +1 -1
- package/lib/commonjs/skia/NativeSetup.js +0 -6
- package/lib/commonjs/skia/NativeSetup.js.map +1 -1
- package/lib/commonjs/skia/Skia.js +2 -3
- package/lib/commonjs/skia/Skia.js.map +1 -1
- package/lib/commonjs/skia/Skia.web.js +1 -4
- package/lib/commonjs/skia/Skia.web.js.map +1 -1
- package/lib/commonjs/skia/core/AnimatedImage.js +2 -10
- package/lib/commonjs/skia/core/AnimatedImage.js.map +1 -1
- package/lib/commonjs/skia/core/Data.js +9 -29
- package/lib/commonjs/skia/core/Data.js.map +1 -1
- package/lib/commonjs/skia/core/Font.js +10 -36
- package/lib/commonjs/skia/core/Font.js.map +1 -1
- package/lib/commonjs/skia/core/Image.js +3 -16
- package/lib/commonjs/skia/core/Image.js.map +1 -1
- package/lib/commonjs/skia/core/Matrix.js +0 -4
- package/lib/commonjs/skia/core/Matrix.js.map +1 -1
- package/lib/commonjs/skia/core/Picture.js +0 -7
- package/lib/commonjs/skia/core/Picture.js.map +1 -1
- package/lib/commonjs/skia/core/RRect.js +0 -3
- package/lib/commonjs/skia/core/RRect.js.map +1 -1
- package/lib/commonjs/skia/core/Rect.js +0 -17
- package/lib/commonjs/skia/core/Rect.js.map +1 -1
- package/lib/commonjs/skia/core/SVG.js +0 -5
- package/lib/commonjs/skia/core/SVG.js.map +1 -1
- package/lib/commonjs/skia/core/Typeface.js +1 -6
- package/lib/commonjs/skia/core/Typeface.js.map +1 -1
- package/lib/commonjs/skia/core/Vector.js +3 -17
- package/lib/commonjs/skia/core/Vector.js.map +1 -1
- package/lib/commonjs/skia/core/index.js +0 -22
- package/lib/commonjs/skia/core/index.js.map +1 -1
- package/lib/commonjs/skia/index.js +0 -5
- package/lib/commonjs/skia/index.js.map +1 -1
- package/lib/commonjs/skia/types/AnimatedImage/index.js +0 -4
- package/lib/commonjs/skia/types/AnimatedImage/index.js.map +1 -1
- package/lib/commonjs/skia/types/Canvas.js +6 -11
- package/lib/commonjs/skia/types/Canvas.js.map +1 -1
- package/lib/commonjs/skia/types/ColorFilter/ColorFilter.js +0 -2
- package/lib/commonjs/skia/types/ColorFilter/ColorFilter.js.map +1 -1
- package/lib/commonjs/skia/types/ColorFilter/index.js +0 -4
- package/lib/commonjs/skia/types/ColorFilter/index.js.map +1 -1
- package/lib/commonjs/skia/types/Data/Data.js +0 -2
- package/lib/commonjs/skia/types/Data/Data.js.map +1 -1
- package/lib/commonjs/skia/types/Data/index.js +0 -4
- package/lib/commonjs/skia/types/Data/index.js.map +1 -1
- package/lib/commonjs/skia/types/Font/Font.js +16 -34
- package/lib/commonjs/skia/types/Font/Font.js.map +1 -1
- package/lib/commonjs/skia/types/Font/index.js +0 -6
- package/lib/commonjs/skia/types/Font/index.js.map +1 -1
- package/lib/commonjs/skia/types/Image/Image.js +9 -17
- package/lib/commonjs/skia/types/Image/Image.js.map +1 -1
- package/lib/commonjs/skia/types/Image/ImageFactory.js +6 -11
- package/lib/commonjs/skia/types/Image/ImageFactory.js.map +1 -1
- package/lib/commonjs/skia/types/Image/index.js +0 -4
- package/lib/commonjs/skia/types/Image/index.js.map +1 -1
- package/lib/commonjs/skia/types/ImageFilter/ImageFilter.js +3 -7
- package/lib/commonjs/skia/types/ImageFilter/ImageFilter.js.map +1 -1
- package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js +3 -5
- package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -1
- package/lib/commonjs/skia/types/ImageFilter/index.js +0 -4
- package/lib/commonjs/skia/types/ImageFilter/index.js.map +1 -1
- package/lib/commonjs/skia/types/MaskFilter.js +4 -8
- package/lib/commonjs/skia/types/MaskFilter.js.map +1 -1
- package/lib/commonjs/skia/types/Matrix.js +0 -7
- package/lib/commonjs/skia/types/Matrix.js.map +1 -1
- package/lib/commonjs/skia/types/Matrix4.js +22 -90
- package/lib/commonjs/skia/types/Matrix4.js.map +1 -1
- package/lib/commonjs/skia/types/Paint/BlendMode.js +3 -6
- package/lib/commonjs/skia/types/Paint/BlendMode.js.map +1 -1
- package/lib/commonjs/skia/types/Paint/Paint.js +9 -19
- package/lib/commonjs/skia/types/Paint/Paint.js.map +1 -1
- package/lib/commonjs/skia/types/Paint/index.js +0 -4
- package/lib/commonjs/skia/types/Paint/index.js.map +1 -1
- package/lib/commonjs/skia/types/Paragraph/ParagraphBuilder.js +3 -5
- package/lib/commonjs/skia/types/Paragraph/ParagraphBuilder.js.map +1 -1
- package/lib/commonjs/skia/types/Paragraph/ParagraphStyle.js +9 -17
- package/lib/commonjs/skia/types/Paragraph/ParagraphStyle.js.map +1 -1
- package/lib/commonjs/skia/types/Paragraph/TextStyle.js +9 -17
- package/lib/commonjs/skia/types/Paragraph/TextStyle.js.map +1 -1
- package/lib/commonjs/skia/types/Paragraph/index.js +0 -12
- package/lib/commonjs/skia/types/Paragraph/index.js.map +1 -1
- package/lib/commonjs/skia/types/Path/Path.js +9 -20
- package/lib/commonjs/skia/types/Path/Path.js.map +1 -1
- package/lib/commonjs/skia/types/Path/index.js +0 -4
- package/lib/commonjs/skia/types/Path/index.js.map +1 -1
- package/lib/commonjs/skia/types/PathEffect.js +3 -7
- package/lib/commonjs/skia/types/PathEffect.js.map +1 -1
- package/lib/commonjs/skia/types/Picture/index.js +0 -6
- package/lib/commonjs/skia/types/Picture/index.js.map +1 -1
- package/lib/commonjs/skia/types/Point.js +3 -5
- package/lib/commonjs/skia/types/Point.js.map +1 -1
- package/lib/commonjs/skia/types/RRect.js +2 -3
- package/lib/commonjs/skia/types/RRect.js.map +1 -1
- package/lib/commonjs/skia/types/Rect.js +0 -3
- package/lib/commonjs/skia/types/Rect.js.map +1 -1
- package/lib/commonjs/skia/types/RuntimeEffect/index.js +0 -4
- package/lib/commonjs/skia/types/RuntimeEffect/index.js.map +1 -1
- package/lib/commonjs/skia/types/SVG/index.js +0 -4
- package/lib/commonjs/skia/types/SVG/index.js.map +1 -1
- package/lib/commonjs/skia/types/Shader/Shader.js +4 -12
- package/lib/commonjs/skia/types/Shader/Shader.js.map +1 -1
- package/lib/commonjs/skia/types/Shader/index.js +0 -4
- package/lib/commonjs/skia/types/Shader/index.js.map +1 -1
- package/lib/commonjs/skia/types/Surface/index.js +0 -4
- package/lib/commonjs/skia/types/Surface/index.js.map +1 -1
- package/lib/commonjs/skia/types/Typeface/index.js +0 -4
- package/lib/commonjs/skia/types/Typeface/index.js.map +1 -1
- package/lib/commonjs/skia/types/Vertices/Vertices.js +3 -5
- package/lib/commonjs/skia/types/Vertices/Vertices.js.map +1 -1
- package/lib/commonjs/skia/types/Vertices/index.js +0 -2
- package/lib/commonjs/skia/types/Vertices/index.js.map +1 -1
- package/lib/commonjs/skia/types/index.js +0 -62
- package/lib/commonjs/skia/types/index.js.map +1 -1
- package/lib/commonjs/skia/web/Host.js +7 -29
- package/lib/commonjs/skia/web/Host.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkAnimatedImage.js +3 -13
- package/lib/commonjs/skia/web/JsiSkAnimatedImage.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkAnimatedImageFactory.js +0 -9
- package/lib/commonjs/skia/web/JsiSkAnimatedImageFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkCanvas.js +11 -77
- package/lib/commonjs/skia/web/JsiSkCanvas.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkColor.js +10 -54
- package/lib/commonjs/skia/web/JsiSkColor.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkColorFilter.js +3 -7
- package/lib/commonjs/skia/web/JsiSkColorFilter.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js +0 -12
- package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkContourMeasure.js +3 -13
- package/lib/commonjs/skia/web/JsiSkContourMeasure.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js +3 -11
- package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkData.js +5 -8
- package/lib/commonjs/skia/web/JsiSkData.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkDataFactory.js +0 -10
- package/lib/commonjs/skia/web/JsiSkDataFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkFont.js +5 -33
- package/lib/commonjs/skia/web/JsiSkFont.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkFontMgr.js +0 -8
- package/lib/commonjs/skia/web/JsiSkFontMgr.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js +0 -8
- package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkImage.js +11 -33
- package/lib/commonjs/skia/web/JsiSkImage.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkImageFactory.js +2 -15
- package/lib/commonjs/skia/web/JsiSkImageFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkImageFilter.js +3 -7
- package/lib/commonjs/skia/web/JsiSkImageFilter.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js +0 -28
- package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkMaskFilter.js +3 -7
- package/lib/commonjs/skia/web/JsiSkMaskFilter.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js +0 -6
- package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkMatrix.js +9 -26
- package/lib/commonjs/skia/web/JsiSkMatrix.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkPaint.js +3 -35
- package/lib/commonjs/skia/web/JsiSkPaint.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkParagraph.js +21 -47
- package/lib/commonjs/skia/web/JsiSkParagraph.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkParagraphBuilder.js +4 -26
- package/lib/commonjs/skia/web/JsiSkParagraphBuilder.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.js +1 -11
- package/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkParagraphStyle.js +19 -24
- package/lib/commonjs/skia/web/JsiSkParagraphStyle.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkPath.js +4 -77
- package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkPathEffect.js +3 -7
- package/lib/commonjs/skia/web/JsiSkPathEffect.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js +0 -23
- package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkPathFactory.js +0 -16
- package/lib/commonjs/skia/web/JsiSkPathFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkPicture.js +3 -13
- package/lib/commonjs/skia/web/JsiSkPicture.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkPictureFactory.js +0 -8
- package/lib/commonjs/skia/web/JsiSkPictureFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkPictureRecorder.js +4 -13
- package/lib/commonjs/skia/web/JsiSkPictureRecorder.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkPoint.js +5 -12
- package/lib/commonjs/skia/web/JsiSkPoint.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkRRect.js +5 -17
- package/lib/commonjs/skia/web/JsiSkRRect.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkRSXform.js +5 -15
- package/lib/commonjs/skia/web/JsiSkRSXform.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkRect.js +5 -15
- package/lib/commonjs/skia/web/JsiSkRect.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js +3 -16
- package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js +0 -8
- package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkSVGFactory.js +0 -6
- package/lib/commonjs/skia/web/JsiSkSVGFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkShader.js +3 -7
- package/lib/commonjs/skia/web/JsiSkShader.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkShaderFactory.js +0 -15
- package/lib/commonjs/skia/web/JsiSkShaderFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkSurface.js +3 -13
- package/lib/commonjs/skia/web/JsiSkSurface.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js +0 -14
- package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkTextBlob.js +3 -7
- package/lib/commonjs/skia/web/JsiSkTextBlob.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js +0 -11
- package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkTextStyle.js +0 -3
- package/lib/commonjs/skia/web/JsiSkTextStyle.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkTypeface.js +3 -10
- package/lib/commonjs/skia/web/JsiSkTypeface.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js +0 -8
- package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.js +16 -26
- package/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkTypefaceFontProviderFactory.js +0 -6
- package/lib/commonjs/skia/web/JsiSkTypefaceFontProviderFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkVertices.js +3 -10
- package/lib/commonjs/skia/web/JsiSkVertices.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkVerticesFactory.js +8 -27
- package/lib/commonjs/skia/web/JsiSkVerticesFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkia.js +0 -33
- package/lib/commonjs/skia/web/JsiSkia.js.map +1 -1
- package/lib/commonjs/skia/web/index.js +0 -2
- package/lib/commonjs/skia/web/index.js.map +1 -1
- package/lib/commonjs/specs/NativeSkiaModule.js +1 -5
- package/lib/commonjs/specs/NativeSkiaModule.js.map +1 -1
- package/lib/commonjs/specs/NativeSkiaModule.web.js +1 -4
- package/lib/commonjs/specs/NativeSkiaModule.web.js.map +1 -1
- package/lib/commonjs/specs/SkiaDomViewNativeComponent.js +1 -6
- package/lib/commonjs/specs/SkiaDomViewNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/SkiaPictureViewNativeComponent.js +1 -6
- package/lib/commonjs/specs/SkiaPictureViewNativeComponent.js.map +1 -1
- package/lib/commonjs/views/SkiaBaseWebView.js +18 -66
- package/lib/commonjs/views/SkiaBaseWebView.js.map +1 -1
- package/lib/commonjs/views/SkiaDomView.js +8 -40
- package/lib/commonjs/views/SkiaDomView.js.map +1 -1
- package/lib/commonjs/views/SkiaDomView.web.js +0 -9
- package/lib/commonjs/views/SkiaDomView.web.js.map +1 -1
- package/lib/commonjs/views/SkiaJSDomView.js +10 -43
- package/lib/commonjs/views/SkiaJSDomView.js.map +1 -1
- package/lib/commonjs/views/SkiaJSDomView.web.js +0 -1
- package/lib/commonjs/views/SkiaJSDomView.web.js.map +1 -1
- package/lib/commonjs/views/SkiaPictureView.js +6 -32
- package/lib/commonjs/views/SkiaPictureView.js.map +1 -1
- package/lib/commonjs/views/SkiaPictureView.web.js +0 -5
- package/lib/commonjs/views/SkiaPictureView.web.js.map +1 -1
- package/lib/commonjs/views/SkiaViewNativeId.js +1 -2
- package/lib/commonjs/views/SkiaViewNativeId.js.map +1 -1
- package/lib/commonjs/views/api.js.map +1 -1
- package/lib/commonjs/views/index.js +0 -8
- package/lib/commonjs/views/index.js.map +1 -1
- package/lib/commonjs/views/types.js +3 -5
- package/lib/commonjs/views/types.js.map +1 -1
- package/lib/commonjs/views/useTouchHandler.js +19 -33
- package/lib/commonjs/views/useTouchHandler.js.map +1 -1
- package/lib/commonjs/web/LoadSkiaWeb.js +8 -12
- package/lib/commonjs/web/LoadSkiaWeb.js.map +1 -1
- package/lib/commonjs/web/WithSkiaWeb.js +10 -18
- package/lib/commonjs/web/WithSkiaWeb.js.map +1 -1
- package/lib/commonjs/web/index.js +0 -4
- package/lib/commonjs/web/index.js.map +1 -1
- package/lib/module/Platform/Platform.js.map +1 -1
- package/lib/module/Platform/Platform.web.js +7 -23
- package/lib/module/Platform/Platform.web.js.map +1 -1
- package/lib/module/Platform/index.js.map +1 -1
- package/lib/module/animation/functions/index.js.map +1 -1
- package/lib/module/animation/functions/interpolate.js +12 -29
- package/lib/module/animation/functions/interpolate.js.map +1 -1
- package/lib/module/animation/functions/interpolateColors.js +2 -5
- package/lib/module/animation/functions/interpolateColors.js.map +1 -1
- package/lib/module/animation/functions/interpolatePaths.js +1 -13
- package/lib/module/animation/functions/interpolatePaths.js.map +1 -1
- package/lib/module/animation/functions/interpolateVector.js.map +1 -1
- package/lib/module/animation/index.js.map +1 -1
- package/lib/module/dom/nodes/DrawingNode.js +7 -17
- package/lib/module/dom/nodes/DrawingNode.js.map +1 -1
- package/lib/module/dom/nodes/GroupNode.js +0 -2
- package/lib/module/dom/nodes/GroupNode.js.map +1 -1
- package/lib/module/dom/nodes/JsiSkDOM.js +14 -65
- package/lib/module/dom/nodes/JsiSkDOM.js.map +1 -1
- package/lib/module/dom/nodes/LayerNode.js +0 -6
- package/lib/module/dom/nodes/LayerNode.js.map +1 -1
- package/lib/module/dom/nodes/Node.js +4 -32
- package/lib/module/dom/nodes/Node.js.map +1 -1
- package/lib/module/dom/nodes/PaintNode.js +1 -23
- package/lib/module/dom/nodes/PaintNode.js.map +1 -1
- package/lib/module/dom/nodes/RenderNode.js +3 -29
- package/lib/module/dom/nodes/RenderNode.js.map +1 -1
- package/lib/module/dom/nodes/datatypes/Circle.js +4 -4
- package/lib/module/dom/nodes/datatypes/Circle.js.map +1 -1
- package/lib/module/dom/nodes/datatypes/Enum.js.map +1 -1
- package/lib/module/dom/nodes/datatypes/Fitting.js +15 -39
- package/lib/module/dom/nodes/datatypes/Fitting.js.map +1 -1
- package/lib/module/dom/nodes/datatypes/Gradient.js +7 -9
- package/lib/module/dom/nodes/datatypes/Gradient.js.map +1 -1
- package/lib/module/dom/nodes/datatypes/Path.js +2 -3
- package/lib/module/dom/nodes/datatypes/Path.js.map +1 -1
- package/lib/module/dom/nodes/datatypes/Radius.js +0 -1
- package/lib/module/dom/nodes/datatypes/Radius.js.map +1 -1
- package/lib/module/dom/nodes/datatypes/Rect.js +5 -7
- package/lib/module/dom/nodes/datatypes/Rect.js.map +1 -1
- package/lib/module/dom/nodes/datatypes/Transform.js +0 -3
- package/lib/module/dom/nodes/datatypes/Transform.js.map +1 -1
- package/lib/module/dom/nodes/datatypes/index.js.map +1 -1
- package/lib/module/dom/nodes/drawings/AtlasNode.js +4 -9
- package/lib/module/dom/nodes/drawings/AtlasNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/BackdropFilterNode.js +4 -13
- package/lib/module/dom/nodes/drawings/BackdropFilterNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/Box.js +8 -27
- package/lib/module/dom/nodes/drawings/Box.js.map +1 -1
- package/lib/module/dom/nodes/drawings/CircleNode.js +4 -10
- package/lib/module/dom/nodes/drawings/CircleNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/DiffRectNode.js +4 -8
- package/lib/module/dom/nodes/drawings/DiffRectNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/FillNode.js +5 -10
- package/lib/module/dom/nodes/drawings/FillNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/ImageNode.js +4 -14
- package/lib/module/dom/nodes/drawings/ImageNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/ImageSVG.js +3 -14
- package/lib/module/dom/nodes/drawings/ImageSVG.js.map +1 -1
- package/lib/module/dom/nodes/drawings/LineNode.js +4 -8
- package/lib/module/dom/nodes/drawings/LineNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/OvalNode.js +4 -10
- package/lib/module/dom/nodes/drawings/OvalNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/ParagraphNode.js +3 -8
- package/lib/module/dom/nodes/drawings/ParagraphNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/PatchNode.js +6 -12
- package/lib/module/dom/nodes/drawings/PatchNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/PathNode.js +4 -14
- package/lib/module/dom/nodes/drawings/PathNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/PictureNode.js +3 -7
- package/lib/module/dom/nodes/drawings/PictureNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/PointsNode.js +4 -8
- package/lib/module/dom/nodes/drawings/PointsNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/RRectNode.js +7 -13
- package/lib/module/dom/nodes/drawings/RRectNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/RectNode.js +4 -10
- package/lib/module/dom/nodes/drawings/RectNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/Text.js +18 -51
- package/lib/module/dom/nodes/drawings/Text.js.map +1 -1
- package/lib/module/dom/nodes/drawings/VerticesNode.js +4 -10
- package/lib/module/dom/nodes/drawings/VerticesNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/index.js.map +1 -1
- package/lib/module/dom/nodes/index.js.map +1 -1
- package/lib/module/dom/nodes/paint/BlendNode.js +4 -9
- package/lib/module/dom/nodes/paint/BlendNode.js.map +1 -1
- package/lib/module/dom/nodes/paint/ColorFilters.js +0 -16
- package/lib/module/dom/nodes/paint/ColorFilters.js.map +1 -1
- package/lib/module/dom/nodes/paint/ImageFilters.js +3 -40
- package/lib/module/dom/nodes/paint/ImageFilters.js.map +1 -1
- package/lib/module/dom/nodes/paint/MaskFilters.js +0 -2
- package/lib/module/dom/nodes/paint/MaskFilters.js.map +1 -1
- package/lib/module/dom/nodes/paint/PathEffects.js +0 -26
- package/lib/module/dom/nodes/paint/PathEffects.js.map +1 -1
- package/lib/module/dom/nodes/paint/Shaders.js +0 -23
- package/lib/module/dom/nodes/paint/Shaders.js.map +1 -1
- package/lib/module/dom/nodes/paint/index.js.map +1 -1
- package/lib/module/dom/types/DeclarationContext.js +3 -27
- package/lib/module/dom/types/DeclarationContext.js.map +1 -1
- package/lib/module/dom/types/DrawingContext.js +3 -85
- package/lib/module/dom/types/DrawingContext.js.map +1 -1
- package/lib/module/dom/types/NodeType.js +6 -9
- package/lib/module/dom/types/NodeType.js.map +1 -1
- package/lib/module/dom/types/index.js.map +1 -1
- package/lib/module/external/index.js.map +1 -1
- package/lib/module/external/reanimated/buffers.d.ts +6 -4
- package/lib/module/external/reanimated/buffers.js +27 -15
- package/lib/module/external/reanimated/buffers.js.map +1 -1
- package/lib/module/external/reanimated/index.js.map +1 -1
- package/lib/module/external/reanimated/interpolators.d.ts +1 -1
- package/lib/module/external/reanimated/interpolators.js +5 -4
- package/lib/module/external/reanimated/interpolators.js.map +1 -1
- package/lib/module/external/reanimated/moduleWrapper.js +2 -4
- package/lib/module/external/reanimated/moduleWrapper.js.map +1 -1
- package/lib/module/external/reanimated/renderHelpers.js +5 -28
- package/lib/module/external/reanimated/renderHelpers.js.map +1 -1
- package/lib/module/external/reanimated/textures.d.ts +6 -3
- package/lib/module/external/reanimated/textures.js +46 -6
- package/lib/module/external/reanimated/textures.js.map +1 -1
- package/lib/module/external/reanimated/useAnimatedImageValue.js +11 -10
- package/lib/module/external/reanimated/useAnimatedImageValue.js.map +1 -1
- package/lib/module/external/reanimated/useDerivedValueOnJS.js.map +1 -1
- package/lib/module/headless/index.js +3 -4
- package/lib/module/headless/index.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/mock/index.js +2 -4
- package/lib/module/mock/index.js.map +1 -1
- package/lib/module/renderer/Canvas.js +17 -28
- package/lib/module/renderer/Canvas.js.map +1 -1
- package/lib/module/renderer/Container.js +4 -12
- package/lib/module/renderer/Container.js.map +1 -1
- package/lib/module/renderer/HostComponents.js +0 -58
- package/lib/module/renderer/HostComponents.js.map +1 -1
- package/lib/module/renderer/HostConfig.js +8 -29
- package/lib/module/renderer/HostConfig.js.map +1 -1
- package/lib/module/renderer/Offscreen.js +2 -1
- package/lib/module/renderer/Offscreen.js.map +1 -1
- package/lib/module/renderer/Reconciler.js +4 -13
- package/lib/module/renderer/Reconciler.js.map +1 -1
- package/lib/module/renderer/components/Blend.js.map +1 -1
- package/lib/module/renderer/components/Group.js +4 -8
- package/lib/module/renderer/components/Group.js.map +1 -1
- package/lib/module/renderer/components/Mask.js +6 -7
- package/lib/module/renderer/components/Mask.js.map +1 -1
- package/lib/module/renderer/components/Paint.js.map +1 -1
- package/lib/module/renderer/components/Picture.js.map +1 -1
- package/lib/module/renderer/components/backdrop/BackdropBlur.js +5 -7
- package/lib/module/renderer/components/backdrop/BackdropBlur.js.map +1 -1
- package/lib/module/renderer/components/backdrop/BackdropFilter.js +5 -6
- package/lib/module/renderer/components/backdrop/BackdropFilter.js.map +1 -1
- package/lib/module/renderer/components/backdrop/index.js.map +1 -1
- package/lib/module/renderer/components/colorFilters/BlendColor.js.map +1 -1
- package/lib/module/renderer/components/colorFilters/Lerp.js.map +1 -1
- package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
- package/lib/module/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
- package/lib/module/renderer/components/colorFilters/Matrix.js.map +1 -1
- package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
- package/lib/module/renderer/components/colorFilters/index.js.map +1 -1
- package/lib/module/renderer/components/image/Image.js.map +1 -1
- package/lib/module/renderer/components/image/ImageSVG.js.map +1 -1
- package/lib/module/renderer/components/image/ImageShader.js +9 -11
- package/lib/module/renderer/components/image/ImageShader.js.map +1 -1
- package/lib/module/renderer/components/image/index.js.map +1 -1
- package/lib/module/renderer/components/imageFilters/Blur.js +4 -6
- package/lib/module/renderer/components/imageFilters/Blur.js.map +1 -1
- package/lib/module/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
- package/lib/module/renderer/components/imageFilters/Morphology.js +4 -6
- package/lib/module/renderer/components/imageFilters/Morphology.js.map +1 -1
- package/lib/module/renderer/components/imageFilters/Offset.js +5 -7
- package/lib/module/renderer/components/imageFilters/Offset.js.map +1 -1
- package/lib/module/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
- package/lib/module/renderer/components/imageFilters/Shadow.js.map +1 -1
- package/lib/module/renderer/components/imageFilters/index.js.map +1 -1
- package/lib/module/renderer/components/index.js.map +1 -1
- package/lib/module/renderer/components/maskFilters/Blur.js +5 -7
- package/lib/module/renderer/components/maskFilters/Blur.js.map +1 -1
- package/lib/module/renderer/components/maskFilters/index.js.map +1 -1
- package/lib/module/renderer/components/paragraph/Paragraph.js.map +1 -1
- package/lib/module/renderer/components/paragraph/index.js.map +1 -1
- package/lib/module/renderer/components/pathEffects/Corner.js.map +1 -1
- package/lib/module/renderer/components/pathEffects/Dash.js.map +1 -1
- package/lib/module/renderer/components/pathEffects/Discrete.js +4 -6
- package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -1
- package/lib/module/renderer/components/pathEffects/Line2D.js.map +1 -1
- package/lib/module/renderer/components/pathEffects/Path1D.js.map +1 -1
- package/lib/module/renderer/components/pathEffects/Path2D.js.map +1 -1
- package/lib/module/renderer/components/pathEffects/Sum.js.map +1 -1
- package/lib/module/renderer/components/pathEffects/index.js.map +1 -1
- package/lib/module/renderer/components/shaders/Color.js.map +1 -1
- package/lib/module/renderer/components/shaders/FractalNoise.js +6 -8
- package/lib/module/renderer/components/shaders/FractalNoise.js.map +1 -1
- package/lib/module/renderer/components/shaders/LinearGradient.js.map +1 -1
- package/lib/module/renderer/components/shaders/RadialGradient.js.map +1 -1
- package/lib/module/renderer/components/shaders/Shader.js +4 -6
- package/lib/module/renderer/components/shaders/Shader.js.map +1 -1
- package/lib/module/renderer/components/shaders/ShaderLib.js.map +1 -1
- package/lib/module/renderer/components/shaders/SweepGradient.js.map +1 -1
- package/lib/module/renderer/components/shaders/Turbulence.js +6 -8
- package/lib/module/renderer/components/shaders/Turbulence.js.map +1 -1
- package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
- package/lib/module/renderer/components/shaders/index.js.map +1 -1
- package/lib/module/renderer/components/shapes/Atlas.js.map +1 -1
- package/lib/module/renderer/components/shapes/Box.js.map +1 -1
- package/lib/module/renderer/components/shapes/Circle.js.map +1 -1
- package/lib/module/renderer/components/shapes/DiffRect.js.map +1 -1
- package/lib/module/renderer/components/shapes/Fill.js.map +1 -1
- package/lib/module/renderer/components/shapes/FitBox.js +6 -7
- package/lib/module/renderer/components/shapes/FitBox.js.map +1 -1
- package/lib/module/renderer/components/shapes/Line.js.map +1 -1
- package/lib/module/renderer/components/shapes/Oval.js.map +1 -1
- package/lib/module/renderer/components/shapes/Patch.js.map +1 -1
- package/lib/module/renderer/components/shapes/Path.js +5 -7
- package/lib/module/renderer/components/shapes/Path.js.map +1 -1
- package/lib/module/renderer/components/shapes/Points.js +4 -6
- package/lib/module/renderer/components/shapes/Points.js.map +1 -1
- package/lib/module/renderer/components/shapes/Rect.js.map +1 -1
- package/lib/module/renderer/components/shapes/RoundedRect.js.map +1 -1
- package/lib/module/renderer/components/shapes/Vertices.js +4 -6
- package/lib/module/renderer/components/shapes/Vertices.js.map +1 -1
- package/lib/module/renderer/components/shapes/index.js.map +1 -1
- package/lib/module/renderer/components/text/Glyphs.js +5 -7
- package/lib/module/renderer/components/text/Glyphs.js.map +1 -1
- package/lib/module/renderer/components/text/Text.js +5 -7
- package/lib/module/renderer/components/text/Text.js.map +1 -1
- package/lib/module/renderer/components/text/TextBlob.js +5 -7
- package/lib/module/renderer/components/text/TextBlob.js.map +1 -1
- package/lib/module/renderer/components/text/TextPath.js +4 -6
- package/lib/module/renderer/components/text/TextPath.js.map +1 -1
- package/lib/module/renderer/components/text/index.js.map +1 -1
- package/lib/module/renderer/index.js.map +1 -1
- package/lib/module/renderer/processors/Animations/index.js.map +1 -1
- package/lib/module/renderer/processors/index.js.map +1 -1
- package/lib/module/renderer/processors/math/Coordinates.js.map +1 -1
- package/lib/module/renderer/processors/math/Math.js +1 -1
- package/lib/module/renderer/processors/math/Math.js.map +1 -1
- package/lib/module/renderer/processors/math/Transforms.js.map +1 -1
- package/lib/module/renderer/processors/math/index.js.map +1 -1
- package/lib/module/renderer/typeddash.js +2 -5
- package/lib/module/renderer/typeddash.js.map +1 -1
- package/lib/module/skia/NativeSetup.js +0 -4
- package/lib/module/skia/NativeSetup.js.map +1 -1
- package/lib/module/skia/Skia.js +1 -0
- package/lib/module/skia/Skia.js.map +1 -1
- package/lib/module/skia/Skia.web.js.map +1 -1
- package/lib/module/skia/core/AnimatedImage.js +2 -5
- package/lib/module/skia/core/AnimatedImage.js.map +1 -1
- package/lib/module/skia/core/Data.js +9 -21
- package/lib/module/skia/core/Data.js.map +1 -1
- package/lib/module/skia/core/Font.js +9 -24
- package/lib/module/skia/core/Font.js.map +1 -1
- package/lib/module/skia/core/Image.js +3 -8
- package/lib/module/skia/core/Image.js.map +1 -1
- package/lib/module/skia/core/Matrix.js.map +1 -1
- package/lib/module/skia/core/Picture.js +1 -3
- package/lib/module/skia/core/Picture.js.map +1 -1
- package/lib/module/skia/core/RRect.js.map +1 -1
- package/lib/module/skia/core/Rect.js.map +1 -1
- package/lib/module/skia/core/SVG.js.map +1 -1
- package/lib/module/skia/core/Typeface.js +1 -1
- package/lib/module/skia/core/Typeface.js.map +1 -1
- package/lib/module/skia/core/Vector.js +1 -3
- package/lib/module/skia/core/Vector.js.map +1 -1
- package/lib/module/skia/core/index.js.map +1 -1
- package/lib/module/skia/index.js.map +1 -1
- package/lib/module/skia/types/AnimatedImage/index.js.map +1 -1
- package/lib/module/skia/types/Canvas.js +6 -9
- package/lib/module/skia/types/Canvas.js.map +1 -1
- package/lib/module/skia/types/ColorFilter/ColorFilter.js.map +1 -1
- package/lib/module/skia/types/ColorFilter/index.js.map +1 -1
- package/lib/module/skia/types/Data/Data.js.map +1 -1
- package/lib/module/skia/types/Data/index.js.map +1 -1
- package/lib/module/skia/types/Font/Font.js +15 -26
- package/lib/module/skia/types/Font/Font.js.map +1 -1
- package/lib/module/skia/types/Font/index.js.map +1 -1
- package/lib/module/skia/types/Image/Image.js +9 -14
- package/lib/module/skia/types/Image/Image.js.map +1 -1
- package/lib/module/skia/types/Image/ImageFactory.js +6 -9
- package/lib/module/skia/types/Image/ImageFactory.js.map +1 -1
- package/lib/module/skia/types/Image/index.js.map +1 -1
- package/lib/module/skia/types/ImageFilter/ImageFilter.js +3 -5
- package/lib/module/skia/types/ImageFilter/ImageFilter.js.map +1 -1
- package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js +3 -4
- package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -1
- package/lib/module/skia/types/ImageFilter/index.js.map +1 -1
- package/lib/module/skia/types/MaskFilter.js +4 -5
- package/lib/module/skia/types/MaskFilter.js.map +1 -1
- package/lib/module/skia/types/Matrix.js.map +1 -1
- package/lib/module/skia/types/Matrix4.js +22 -64
- package/lib/module/skia/types/Matrix4.js.map +1 -1
- package/lib/module/skia/types/Paint/BlendMode.js +3 -4
- package/lib/module/skia/types/Paint/BlendMode.js.map +1 -1
- package/lib/module/skia/types/Paint/Paint.js +9 -15
- package/lib/module/skia/types/Paint/Paint.js.map +1 -1
- package/lib/module/skia/types/Paint/index.js.map +1 -1
- package/lib/module/skia/types/Paragraph/ParagraphBuilder.js +3 -4
- package/lib/module/skia/types/Paragraph/ParagraphBuilder.js.map +1 -1
- package/lib/module/skia/types/Paragraph/ParagraphStyle.js +9 -14
- package/lib/module/skia/types/Paragraph/ParagraphStyle.js.map +1 -1
- package/lib/module/skia/types/Paragraph/TextStyle.js +9 -14
- package/lib/module/skia/types/Paragraph/TextStyle.js.map +1 -1
- package/lib/module/skia/types/Paragraph/index.js.map +1 -1
- package/lib/module/skia/types/Path/Path.js +9 -14
- package/lib/module/skia/types/Path/Path.js.map +1 -1
- package/lib/module/skia/types/Path/index.js.map +1 -1
- package/lib/module/skia/types/PathEffect.js +3 -4
- package/lib/module/skia/types/PathEffect.js.map +1 -1
- package/lib/module/skia/types/Picture/index.js.map +1 -1
- package/lib/module/skia/types/Point.js +3 -4
- package/lib/module/skia/types/Point.js.map +1 -1
- package/lib/module/skia/types/RRect.js +2 -1
- package/lib/module/skia/types/RRect.js.map +1 -1
- package/lib/module/skia/types/Rect.js +0 -1
- package/lib/module/skia/types/Rect.js.map +1 -1
- package/lib/module/skia/types/RuntimeEffect/index.js.map +1 -1
- package/lib/module/skia/types/SVG/index.js.map +1 -1
- package/lib/module/skia/types/Shader/Shader.js +4 -9
- package/lib/module/skia/types/Shader/Shader.js.map +1 -1
- package/lib/module/skia/types/Shader/index.js.map +1 -1
- package/lib/module/skia/types/Surface/index.js.map +1 -1
- package/lib/module/skia/types/Typeface/index.js.map +1 -1
- package/lib/module/skia/types/Vertices/Vertices.js +3 -4
- package/lib/module/skia/types/Vertices/Vertices.js.map +1 -1
- package/lib/module/skia/types/Vertices/index.js.map +1 -1
- package/lib/module/skia/types/index.js.map +1 -1
- package/lib/module/skia/web/Host.js +6 -16
- package/lib/module/skia/web/Host.js.map +1 -1
- package/lib/module/skia/web/JsiSkAnimatedImage.js +3 -9
- package/lib/module/skia/web/JsiSkAnimatedImage.js.map +1 -1
- package/lib/module/skia/web/JsiSkAnimatedImageFactory.js +0 -4
- package/lib/module/skia/web/JsiSkAnimatedImageFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkCanvas.js +13 -63
- package/lib/module/skia/web/JsiSkCanvas.js.map +1 -1
- package/lib/module/skia/web/JsiSkColor.js +10 -52
- package/lib/module/skia/web/JsiSkColor.js.map +1 -1
- package/lib/module/skia/web/JsiSkColorFilter.js +3 -4
- package/lib/module/skia/web/JsiSkColorFilter.js.map +1 -1
- package/lib/module/skia/web/JsiSkColorFilterFactory.js +0 -8
- package/lib/module/skia/web/JsiSkColorFilterFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkContourMeasure.js +3 -8
- package/lib/module/skia/web/JsiSkContourMeasure.js.map +1 -1
- package/lib/module/skia/web/JsiSkContourMeasureIter.js +3 -7
- package/lib/module/skia/web/JsiSkContourMeasureIter.js.map +1 -1
- package/lib/module/skia/web/JsiSkData.js +5 -5
- package/lib/module/skia/web/JsiSkData.js.map +1 -1
- package/lib/module/skia/web/JsiSkDataFactory.js +0 -6
- package/lib/module/skia/web/JsiSkDataFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkFont.js +5 -26
- package/lib/module/skia/web/JsiSkFont.js.map +1 -1
- package/lib/module/skia/web/JsiSkFontMgr.js +0 -5
- package/lib/module/skia/web/JsiSkFontMgr.js.map +1 -1
- package/lib/module/skia/web/JsiSkFontMgrFactory.js +0 -4
- package/lib/module/skia/web/JsiSkFontMgrFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkImage.js +7 -23
- package/lib/module/skia/web/JsiSkImage.js.map +1 -1
- package/lib/module/skia/web/JsiSkImageFactory.js +2 -10
- package/lib/module/skia/web/JsiSkImageFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkImageFilter.js +3 -4
- package/lib/module/skia/web/JsiSkImageFilter.js.map +1 -1
- package/lib/module/skia/web/JsiSkImageFilterFactory.js +0 -23
- package/lib/module/skia/web/JsiSkImageFilterFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkMaskFilter.js +3 -4
- package/lib/module/skia/web/JsiSkMaskFilter.js.map +1 -1
- package/lib/module/skia/web/JsiSkMaskFilterFactory.js +0 -2
- package/lib/module/skia/web/JsiSkMaskFilterFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkMatrix.js +7 -21
- package/lib/module/skia/web/JsiSkMatrix.js.map +1 -1
- package/lib/module/skia/web/JsiSkPaint.js +3 -27
- package/lib/module/skia/web/JsiSkPaint.js.map +1 -1
- package/lib/module/skia/web/JsiSkParagraph.js +21 -44
- package/lib/module/skia/web/JsiSkParagraph.js.map +1 -1
- package/lib/module/skia/web/JsiSkParagraphBuilder.js +1 -18
- package/lib/module/skia/web/JsiSkParagraphBuilder.js.map +1 -1
- package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js +0 -4
- package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkParagraphStyle.js +4 -6
- package/lib/module/skia/web/JsiSkParagraphStyle.js.map +1 -1
- package/lib/module/skia/web/JsiSkPath.js +4 -69
- package/lib/module/skia/web/JsiSkPath.js.map +1 -1
- package/lib/module/skia/web/JsiSkPathEffect.js +3 -4
- package/lib/module/skia/web/JsiSkPathEffect.js.map +1 -1
- package/lib/module/skia/web/JsiSkPathEffectFactory.js +0 -17
- package/lib/module/skia/web/JsiSkPathEffectFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkPathFactory.js +0 -12
- package/lib/module/skia/web/JsiSkPathFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkPicture.js +4 -6
- package/lib/module/skia/web/JsiSkPicture.js.map +1 -1
- package/lib/module/skia/web/JsiSkPictureFactory.js +0 -4
- package/lib/module/skia/web/JsiSkPictureFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkPictureRecorder.js +3 -6
- package/lib/module/skia/web/JsiSkPictureRecorder.js.map +1 -1
- package/lib/module/skia/web/JsiSkPoint.js +5 -9
- package/lib/module/skia/web/JsiSkPoint.js.map +1 -1
- package/lib/module/skia/web/JsiSkRRect.js +5 -13
- package/lib/module/skia/web/JsiSkRRect.js.map +1 -1
- package/lib/module/skia/web/JsiSkRSXform.js +5 -12
- package/lib/module/skia/web/JsiSkRSXform.js.map +1 -1
- package/lib/module/skia/web/JsiSkRect.js +5 -12
- package/lib/module/skia/web/JsiSkRect.js.map +1 -1
- package/lib/module/skia/web/JsiSkRuntimeEffect.js +3 -11
- package/lib/module/skia/web/JsiSkRuntimeEffect.js.map +1 -1
- package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js +0 -4
- package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkSVGFactory.js +0 -3
- package/lib/module/skia/web/JsiSkSVGFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkShader.js +3 -4
- package/lib/module/skia/web/JsiSkShader.js.map +1 -1
- package/lib/module/skia/web/JsiSkShaderFactory.js +0 -9
- package/lib/module/skia/web/JsiSkShaderFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkSurface.js +3 -7
- package/lib/module/skia/web/JsiSkSurface.js.map +1 -1
- package/lib/module/skia/web/JsiSkSurfaceFactory.js +0 -10
- package/lib/module/skia/web/JsiSkSurfaceFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkTextBlob.js +3 -4
- package/lib/module/skia/web/JsiSkTextBlob.js.map +1 -1
- package/lib/module/skia/web/JsiSkTextBlobFactory.js +0 -5
- package/lib/module/skia/web/JsiSkTextBlobFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkTextStyle.js +0 -1
- package/lib/module/skia/web/JsiSkTextStyle.js.map +1 -1
- package/lib/module/skia/web/JsiSkTypeface.js +3 -7
- package/lib/module/skia/web/JsiSkTypeface.js.map +1 -1
- package/lib/module/skia/web/JsiSkTypefaceFactory.js +0 -4
- package/lib/module/skia/web/JsiSkTypefaceFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkTypefaceFontProvider.js +16 -23
- package/lib/module/skia/web/JsiSkTypefaceFontProvider.js.map +1 -1
- package/lib/module/skia/web/JsiSkTypefaceFontProviderFactory.js +0 -2
- package/lib/module/skia/web/JsiSkTypefaceFontProviderFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkVertices.js +3 -6
- package/lib/module/skia/web/JsiSkVertices.js.map +1 -1
- package/lib/module/skia/web/JsiSkVerticesFactory.js +8 -24
- package/lib/module/skia/web/JsiSkVerticesFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkia.js.map +1 -1
- package/lib/module/skia/web/index.js.map +1 -1
- package/lib/module/specs/NativeSkiaModule.js.map +1 -1
- package/lib/module/specs/NativeSkiaModule.web.js +2 -1
- package/lib/module/specs/NativeSkiaModule.web.js.map +1 -1
- package/lib/module/specs/SkiaDomViewNativeComponent.js.map +1 -1
- package/lib/module/specs/SkiaPictureViewNativeComponent.js.map +1 -1
- package/lib/module/views/SkiaBaseWebView.js +16 -58
- package/lib/module/views/SkiaBaseWebView.js.map +1 -1
- package/lib/module/views/SkiaDomView.js +8 -23
- package/lib/module/views/SkiaDomView.js.map +1 -1
- package/lib/module/views/SkiaDomView.web.js +0 -4
- package/lib/module/views/SkiaDomView.web.js.map +1 -1
- package/lib/module/views/SkiaJSDomView.js +10 -26
- package/lib/module/views/SkiaJSDomView.js.map +1 -1
- package/lib/module/views/SkiaJSDomView.web.js.map +1 -1
- package/lib/module/views/SkiaPictureView.js +5 -18
- package/lib/module/views/SkiaPictureView.js.map +1 -1
- package/lib/module/views/SkiaPictureView.web.js +0 -2
- package/lib/module/views/SkiaPictureView.web.js.map +1 -1
- package/lib/module/views/SkiaViewNativeId.js.map +1 -1
- package/lib/module/views/api.js.map +1 -1
- package/lib/module/views/index.js.map +1 -1
- package/lib/module/views/types.js +4 -4
- package/lib/module/views/types.js.map +1 -1
- package/lib/module/views/useTouchHandler.js +13 -21
- package/lib/module/views/useTouchHandler.js.map +1 -1
- package/lib/module/web/LoadSkiaWeb.js +4 -5
- package/lib/module/web/LoadSkiaWeb.js.map +1 -1
- package/lib/module/web/WithSkiaWeb.js +7 -8
- package/lib/module/web/WithSkiaWeb.js.map +1 -1
- package/lib/module/web/index.js.map +1 -1
- package/lib/typescript/src/external/reanimated/buffers.d.ts +6 -4
- package/lib/typescript/src/external/reanimated/interpolators.d.ts +1 -1
- package/lib/typescript/src/external/reanimated/textures.d.ts +6 -3
- package/package.json +15 -15
- package/react-native-skia.podspec +1 -1
- package/src/dom/nodes/Node.ts +1 -0
- package/src/external/reanimated/buffers.ts +29 -26
- package/src/external/reanimated/interpolators.ts +4 -1
- package/src/external/reanimated/textures.tsx +55 -6
- package/lib/commonjs/animation/types.d.ts +0 -18
- package/lib/commonjs/animation/types.js +0 -2
- package/lib/commonjs/animation/types.js.map +0 -1
- package/lib/module/animation/types.d.ts +0 -18
- package/lib/module/animation/types.js +0 -2
- package/lib/module/animation/types.js.map +0 -1
- package/lib/typescript/src/animation/types.d.ts +0 -18
- package/src/animation/types.ts +0 -23
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["JsiSkPathFactory","Host","constructor","CanvasKit","Make","JsiSkPath","Path","MakeFromSVGString","str","path","MakeFromOp","one","two","op","fromValue","getEnum","PathOp","MakeFromCmds","cmds","flat","MakeFromText","_text","_x","_y","_font","NotImplementedOnRNWeb"],"sources":["JsiSkPathFactory.ts"],"sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type { PathCommand, PathOp, SkFont, SkPath } from \"../types\";\nimport type { PathFactory } from \"../types/Path/PathFactory\";\n\nimport { Host, getEnum, NotImplementedOnRNWeb } from \"./Host\";\nimport { JsiSkPath } from \"./JsiSkPath\";\n\nexport class JsiSkPathFactory extends Host implements PathFactory {\n constructor(CanvasKit: CanvasKit) {\n super(CanvasKit);\n }\n\n Make() {\n return new JsiSkPath(this.CanvasKit, new this.CanvasKit.Path());\n }\n\n MakeFromSVGString(str: string) {\n const path = this.CanvasKit.Path.MakeFromSVGString(str);\n if (path === null) {\n return null;\n }\n return new JsiSkPath(this.CanvasKit, path);\n }\n\n MakeFromOp(one: SkPath, two: SkPath, op: PathOp) {\n const path = this.CanvasKit.Path.MakeFromOp(\n JsiSkPath.fromValue(one),\n JsiSkPath.fromValue(two),\n getEnum(this.CanvasKit.PathOp, op)\n );\n if (path === null) {\n return null;\n }\n return new JsiSkPath(this.CanvasKit, path);\n }\n\n MakeFromCmds(cmds: PathCommand[]) {\n const path = this.CanvasKit.Path.MakeFromCmds(cmds.flat());\n if (path === null) {\n return null;\n }\n return new JsiSkPath(this.CanvasKit, path);\n }\n\n MakeFromText(\n _text: string,\n _x: number,\n _y: number,\n _font: SkFont\n ): SkPath | null {\n throw new NotImplementedOnRNWeb();\n }\n}\n"],"mappings":"
|
1
|
+
{"version":3,"names":["_Host","require","_JsiSkPath","JsiSkPathFactory","Host","constructor","CanvasKit","Make","JsiSkPath","Path","MakeFromSVGString","str","path","MakeFromOp","one","two","op","fromValue","getEnum","PathOp","MakeFromCmds","cmds","flat","MakeFromText","_text","_x","_y","_font","NotImplementedOnRNWeb","exports"],"sources":["JsiSkPathFactory.ts"],"sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type { PathCommand, PathOp, SkFont, SkPath } from \"../types\";\nimport type { PathFactory } from \"../types/Path/PathFactory\";\n\nimport { Host, getEnum, NotImplementedOnRNWeb } from \"./Host\";\nimport { JsiSkPath } from \"./JsiSkPath\";\n\nexport class JsiSkPathFactory extends Host implements PathFactory {\n constructor(CanvasKit: CanvasKit) {\n super(CanvasKit);\n }\n\n Make() {\n return new JsiSkPath(this.CanvasKit, new this.CanvasKit.Path());\n }\n\n MakeFromSVGString(str: string) {\n const path = this.CanvasKit.Path.MakeFromSVGString(str);\n if (path === null) {\n return null;\n }\n return new JsiSkPath(this.CanvasKit, path);\n }\n\n MakeFromOp(one: SkPath, two: SkPath, op: PathOp) {\n const path = this.CanvasKit.Path.MakeFromOp(\n JsiSkPath.fromValue(one),\n JsiSkPath.fromValue(two),\n getEnum(this.CanvasKit.PathOp, op)\n );\n if (path === null) {\n return null;\n }\n return new JsiSkPath(this.CanvasKit, path);\n }\n\n MakeFromCmds(cmds: PathCommand[]) {\n const path = this.CanvasKit.Path.MakeFromCmds(cmds.flat());\n if (path === null) {\n return null;\n }\n return new JsiSkPath(this.CanvasKit, path);\n }\n\n MakeFromText(\n _text: string,\n _x: number,\n _y: number,\n _font: SkFont\n ): SkPath | null {\n throw new NotImplementedOnRNWeb();\n }\n}\n"],"mappings":";;;;;;AAKA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAEO,MAAME,gBAAgB,SAASC,UAAI,CAAwB;EAChEC,WAAWA,CAACC,SAAoB,EAAE;IAChC,KAAK,CAACA,SAAS,CAAC;EAClB;EAEAC,IAAIA,CAAA,EAAG;IACL,OAAO,IAAIC,oBAAS,CAAC,IAAI,CAACF,SAAS,EAAE,IAAI,IAAI,CAACA,SAAS,CAACG,IAAI,CAAC,CAAC,CAAC;EACjE;EAEAC,iBAAiBA,CAACC,GAAW,EAAE;IAC7B,MAAMC,IAAI,GAAG,IAAI,CAACN,SAAS,CAACG,IAAI,CAACC,iBAAiB,CAACC,GAAG,CAAC;IACvD,IAAIC,IAAI,KAAK,IAAI,EAAE;MACjB,OAAO,IAAI;IACb;IACA,OAAO,IAAIJ,oBAAS,CAAC,IAAI,CAACF,SAAS,EAAEM,IAAI,CAAC;EAC5C;EAEAC,UAAUA,CAACC,GAAW,EAAEC,GAAW,EAAEC,EAAU,EAAE;IAC/C,MAAMJ,IAAI,GAAG,IAAI,CAACN,SAAS,CAACG,IAAI,CAACI,UAAU,CACzCL,oBAAS,CAACS,SAAS,CAACH,GAAG,CAAC,EACxBN,oBAAS,CAACS,SAAS,CAACF,GAAG,CAAC,EACxB,IAAAG,aAAO,EAAC,IAAI,CAACZ,SAAS,CAACa,MAAM,EAAEH,EAAE,CACnC,CAAC;IACD,IAAIJ,IAAI,KAAK,IAAI,EAAE;MACjB,OAAO,IAAI;IACb;IACA,OAAO,IAAIJ,oBAAS,CAAC,IAAI,CAACF,SAAS,EAAEM,IAAI,CAAC;EAC5C;EAEAQ,YAAYA,CAACC,IAAmB,EAAE;IAChC,MAAMT,IAAI,GAAG,IAAI,CAACN,SAAS,CAACG,IAAI,CAACW,YAAY,CAACC,IAAI,CAACC,IAAI,CAAC,CAAC,CAAC;IAC1D,IAAIV,IAAI,KAAK,IAAI,EAAE;MACjB,OAAO,IAAI;IACb;IACA,OAAO,IAAIJ,oBAAS,CAAC,IAAI,CAACF,SAAS,EAAEM,IAAI,CAAC;EAC5C;EAEAW,YAAYA,CACVC,KAAa,EACbC,EAAU,EACVC,EAAU,EACVC,KAAa,EACE;IACf,MAAM,IAAIC,2BAAqB,CAAC,CAAC;EACnC;AACF;AAACC,OAAA,CAAA1B,gBAAA,GAAAA,gBAAA"}
|
@@ -4,36 +4,26 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.JsiSkPicture = void 0;
|
7
|
-
|
8
7
|
var _Host = require("./Host");
|
9
|
-
|
10
8
|
var _JsiSkShader = require("./JsiSkShader");
|
11
|
-
|
12
9
|
var _JsiSkMatrix = require("./JsiSkMatrix");
|
13
|
-
|
14
10
|
var _JsiSkRect = require("./JsiSkRect");
|
15
|
-
|
16
|
-
function
|
17
|
-
|
18
|
-
|
11
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
12
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
13
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } // TODO: suggest to rename SkPicture to Picture for consistency
|
19
14
|
class JsiSkPicture extends _Host.HostObject {
|
20
15
|
constructor(CanvasKit, ref) {
|
21
16
|
super(CanvasKit, ref, "Picture");
|
22
|
-
|
23
17
|
_defineProperty(this, "dispose", () => {
|
24
18
|
this.ref.delete();
|
25
19
|
});
|
26
20
|
}
|
27
|
-
|
28
21
|
makeShader(tmx, tmy, mode, localMatrix, tileRect) {
|
29
22
|
return new _JsiSkShader.JsiSkShader(this.CanvasKit, this.ref.makeShader((0, _Host.getEnum)(this.CanvasKit.TileMode, tmx), (0, _Host.getEnum)(this.CanvasKit.TileMode, tmy), (0, _Host.getEnum)(this.CanvasKit.FilterMode, mode), localMatrix ? _JsiSkMatrix.JsiSkMatrix.fromValue(localMatrix) : undefined, tileRect ? _JsiSkRect.JsiSkRect.fromValue(this.CanvasKit, tileRect) : undefined));
|
30
23
|
}
|
31
|
-
|
32
24
|
serialize() {
|
33
25
|
return this.ref.serialize();
|
34
26
|
}
|
35
|
-
|
36
27
|
}
|
37
|
-
|
38
28
|
exports.JsiSkPicture = JsiSkPicture;
|
39
29
|
//# sourceMappingURL=JsiSkPicture.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["JsiSkPicture","HostObject","constructor","CanvasKit","ref","delete","makeShader","tmx","tmy","mode","localMatrix","tileRect","JsiSkShader","getEnum","TileMode","FilterMode","JsiSkMatrix","fromValue","undefined","JsiSkRect","serialize"],"sources":["JsiSkPicture.ts"],"sourcesContent":["// TODO: suggest to rename SkPicture to Picture for consistency\nimport type { CanvasKit, SkPicture as Picture } from \"canvaskit-wasm\";\n\nimport type {\n FilterMode,\n SkRect,\n TileMode,\n SkPicture,\n SkMatrix,\n} from \"../types\";\n\nimport { HostObject, getEnum } from \"./Host\";\nimport { JsiSkShader } from \"./JsiSkShader\";\nimport { JsiSkMatrix } from \"./JsiSkMatrix\";\nimport { JsiSkRect } from \"./JsiSkRect\";\n\nexport class JsiSkPicture\n extends HostObject<Picture, \"Picture\">\n implements SkPicture\n{\n constructor(CanvasKit: CanvasKit, ref: Picture) {\n super(CanvasKit, ref, \"Picture\");\n }\n\n dispose = () => {\n this.ref.delete();\n };\n\n makeShader(\n tmx: TileMode,\n tmy: TileMode,\n mode: FilterMode,\n localMatrix?: SkMatrix,\n tileRect?: SkRect\n ) {\n return new JsiSkShader(\n this.CanvasKit,\n this.ref.makeShader(\n getEnum(this.CanvasKit.TileMode, tmx),\n getEnum(this.CanvasKit.TileMode, tmy),\n getEnum(this.CanvasKit.FilterMode, mode),\n localMatrix ? JsiSkMatrix.fromValue(localMatrix) : undefined,\n tileRect ? JsiSkRect.fromValue(this.CanvasKit, tileRect) : undefined\n )\n );\n }\n\n serialize() {\n return this.ref.serialize();\n }\n}\n"],"mappings":"
|
1
|
+
{"version":3,"names":["_Host","require","_JsiSkShader","_JsiSkMatrix","_JsiSkRect","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","JsiSkPicture","HostObject","constructor","CanvasKit","ref","delete","makeShader","tmx","tmy","mode","localMatrix","tileRect","JsiSkShader","getEnum","TileMode","FilterMode","JsiSkMatrix","fromValue","undefined","JsiSkRect","serialize","exports"],"sources":["JsiSkPicture.ts"],"sourcesContent":["// TODO: suggest to rename SkPicture to Picture for consistency\nimport type { CanvasKit, SkPicture as Picture } from \"canvaskit-wasm\";\n\nimport type {\n FilterMode,\n SkRect,\n TileMode,\n SkPicture,\n SkMatrix,\n} from \"../types\";\n\nimport { HostObject, getEnum } from \"./Host\";\nimport { JsiSkShader } from \"./JsiSkShader\";\nimport { JsiSkMatrix } from \"./JsiSkMatrix\";\nimport { JsiSkRect } from \"./JsiSkRect\";\n\nexport class JsiSkPicture\n extends HostObject<Picture, \"Picture\">\n implements SkPicture\n{\n constructor(CanvasKit: CanvasKit, ref: Picture) {\n super(CanvasKit, ref, \"Picture\");\n }\n\n dispose = () => {\n this.ref.delete();\n };\n\n makeShader(\n tmx: TileMode,\n tmy: TileMode,\n mode: FilterMode,\n localMatrix?: SkMatrix,\n tileRect?: SkRect\n ) {\n return new JsiSkShader(\n this.CanvasKit,\n this.ref.makeShader(\n getEnum(this.CanvasKit.TileMode, tmx),\n getEnum(this.CanvasKit.TileMode, tmy),\n getEnum(this.CanvasKit.FilterMode, mode),\n localMatrix ? JsiSkMatrix.fromValue(localMatrix) : undefined,\n tileRect ? JsiSkRect.fromValue(this.CanvasKit, tileRect) : undefined\n )\n );\n }\n\n serialize() {\n return this.ref.serialize();\n }\n}\n"],"mappings":";;;;;;AAWA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAAwC,SAAAI,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,CAAA,QAAAC,CAAA,GAAAC,YAAA,CAAAF,CAAA,uCAAAC,CAAA,GAAAA,CAAA,GAAAE,MAAA,CAAAF,CAAA;AAAA,SAAAC,aAAAF,CAAA,EAAAI,CAAA,2BAAAJ,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAK,CAAA,GAAAL,CAAA,CAAAM,MAAA,CAAAC,WAAA,kBAAAF,CAAA,QAAAJ,CAAA,GAAAI,CAAA,CAAAG,IAAA,CAAAR,CAAA,EAAAI,CAAA,uCAAAH,CAAA,SAAAA,CAAA,YAAAQ,SAAA,yEAAAL,CAAA,GAAAD,MAAA,GAAAO,MAAA,EAAAV,CAAA,KAdxC;AAgBO,MAAMW,YAAY,SACfC,gBAAU,CAEpB;EACEC,WAAWA,CAACC,SAAoB,EAAEC,GAAY,EAAE;IAC9C,KAAK,CAACD,SAAS,EAAEC,GAAG,EAAE,SAAS,CAAC;IAACzB,eAAA,kBAGzB,MAAM;MACd,IAAI,CAACyB,GAAG,CAACC,MAAM,CAAC,CAAC;IACnB,CAAC;EAJD;EAMAC,UAAUA,CACRC,GAAa,EACbC,GAAa,EACbC,IAAgB,EAChBC,WAAsB,EACtBC,QAAiB,EACjB;IACA,OAAO,IAAIC,wBAAW,CACpB,IAAI,CAACT,SAAS,EACd,IAAI,CAACC,GAAG,CAACE,UAAU,CACjB,IAAAO,aAAO,EAAC,IAAI,CAACV,SAAS,CAACW,QAAQ,EAAEP,GAAG,CAAC,EACrC,IAAAM,aAAO,EAAC,IAAI,CAACV,SAAS,CAACW,QAAQ,EAAEN,GAAG,CAAC,EACrC,IAAAK,aAAO,EAAC,IAAI,CAACV,SAAS,CAACY,UAAU,EAAEN,IAAI,CAAC,EACxCC,WAAW,GAAGM,wBAAW,CAACC,SAAS,CAACP,WAAW,CAAC,GAAGQ,SAAS,EAC5DP,QAAQ,GAAGQ,oBAAS,CAACF,SAAS,CAAC,IAAI,CAACd,SAAS,EAAEQ,QAAQ,CAAC,GAAGO,SAC7D,CACF,CAAC;EACH;EAEAE,SAASA,CAAA,EAAG;IACV,OAAO,IAAI,CAAChB,GAAG,CAACgB,SAAS,CAAC,CAAC;EAC7B;AACF;AAACC,OAAA,CAAArB,YAAA,GAAAA,YAAA"}
|
@@ -4,27 +4,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.JsiSkPictureFactory = void 0;
|
7
|
-
|
8
7
|
var _Host = require("./Host");
|
9
|
-
|
10
8
|
var _JsiSkPicture = require("./JsiSkPicture");
|
11
|
-
|
12
9
|
class JsiSkPictureFactory extends _Host.Host {
|
13
10
|
constructor(CanvasKit) {
|
14
11
|
super(CanvasKit);
|
15
12
|
}
|
16
|
-
|
17
13
|
MakePicture(bytes) {
|
18
14
|
const pic = this.CanvasKit.MakePicture(bytes);
|
19
|
-
|
20
15
|
if (pic === null) {
|
21
16
|
return null;
|
22
17
|
}
|
23
|
-
|
24
18
|
return new _JsiSkPicture.JsiSkPicture(this.CanvasKit, pic);
|
25
19
|
}
|
26
|
-
|
27
20
|
}
|
28
|
-
|
29
21
|
exports.JsiSkPictureFactory = JsiSkPictureFactory;
|
30
22
|
//# sourceMappingURL=JsiSkPictureFactory.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["JsiSkPictureFactory","Host","constructor","CanvasKit","MakePicture","bytes","pic","JsiSkPicture"],"sources":["JsiSkPictureFactory.ts"],"sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type { PictureFactory } from \"../types\";\n\nimport { Host } from \"./Host\";\nimport { JsiSkPicture } from \"./JsiSkPicture\";\n\nexport class JsiSkPictureFactory extends Host implements PictureFactory {\n constructor(CanvasKit: CanvasKit) {\n super(CanvasKit);\n }\n\n MakePicture(bytes: Uint8Array | ArrayBuffer) {\n const pic = this.CanvasKit.MakePicture(bytes);\n if (pic === null) {\n return null;\n }\n return new JsiSkPicture(this.CanvasKit, pic);\n }\n}\n"],"mappings":"
|
1
|
+
{"version":3,"names":["_Host","require","_JsiSkPicture","JsiSkPictureFactory","Host","constructor","CanvasKit","MakePicture","bytes","pic","JsiSkPicture","exports"],"sources":["JsiSkPictureFactory.ts"],"sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type { PictureFactory } from \"../types\";\n\nimport { Host } from \"./Host\";\nimport { JsiSkPicture } from \"./JsiSkPicture\";\n\nexport class JsiSkPictureFactory extends Host implements PictureFactory {\n constructor(CanvasKit: CanvasKit) {\n super(CanvasKit);\n }\n\n MakePicture(bytes: Uint8Array | ArrayBuffer) {\n const pic = this.CanvasKit.MakePicture(bytes);\n if (pic === null) {\n return null;\n }\n return new JsiSkPicture(this.CanvasKit, pic);\n }\n}\n"],"mappings":";;;;;;AAIA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AAEO,MAAME,mBAAmB,SAASC,UAAI,CAA2B;EACtEC,WAAWA,CAACC,SAAoB,EAAE;IAChC,KAAK,CAACA,SAAS,CAAC;EAClB;EAEAC,WAAWA,CAACC,KAA+B,EAAE;IAC3C,MAAMC,GAAG,GAAG,IAAI,CAACH,SAAS,CAACC,WAAW,CAACC,KAAK,CAAC;IAC7C,IAAIC,GAAG,KAAK,IAAI,EAAE;MAChB,OAAO,IAAI;IACb;IACA,OAAO,IAAIC,0BAAY,CAAC,IAAI,CAACJ,SAAS,EAAEG,GAAG,CAAC;EAC9C;AACF;AAACE,OAAA,CAAAR,mBAAA,GAAAA,mBAAA"}
|
@@ -4,35 +4,26 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.JsiSkPictureRecorder = void 0;
|
7
|
-
|
8
7
|
var _Host = require("./Host");
|
9
|
-
|
10
8
|
var _JsiSkCanvas = require("./JsiSkCanvas");
|
11
|
-
|
12
9
|
var _JsiSkPicture = require("./JsiSkPicture");
|
13
|
-
|
14
10
|
var _JsiSkRect = require("./JsiSkRect");
|
15
|
-
|
16
|
-
function
|
17
|
-
|
11
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
12
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
13
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
18
14
|
class JsiSkPictureRecorder extends _Host.HostObject {
|
19
15
|
constructor(CanvasKit, ref) {
|
20
16
|
super(CanvasKit, ref, "PictureRecorder");
|
21
|
-
|
22
17
|
_defineProperty(this, "dispose", () => {
|
23
18
|
this.ref.delete();
|
24
19
|
});
|
25
20
|
}
|
26
|
-
|
27
21
|
beginRecording(bounds) {
|
28
|
-
return new _JsiSkCanvas.JsiSkCanvas(this.CanvasKit, this.ref.beginRecording(bounds ? _JsiSkRect.JsiSkRect.fromValue(this.CanvasKit, bounds) : Float32Array.of(0, 0,
|
22
|
+
return new _JsiSkCanvas.JsiSkCanvas(this.CanvasKit, this.ref.beginRecording(bounds ? _JsiSkRect.JsiSkRect.fromValue(this.CanvasKit, bounds) : Float32Array.of(0, 0, 2000000, 2000000)));
|
29
23
|
}
|
30
|
-
|
31
24
|
finishRecordingAsPicture() {
|
32
25
|
return new _JsiSkPicture.JsiSkPicture(this.CanvasKit, this.ref.finishRecordingAsPicture());
|
33
26
|
}
|
34
|
-
|
35
27
|
}
|
36
|
-
|
37
28
|
exports.JsiSkPictureRecorder = JsiSkPictureRecorder;
|
38
29
|
//# sourceMappingURL=JsiSkPictureRecorder.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["JsiSkPictureRecorder","HostObject","constructor","CanvasKit","ref","delete","beginRecording","bounds","JsiSkCanvas","JsiSkRect","fromValue","Float32Array","of","finishRecordingAsPicture","JsiSkPicture"],"sources":["JsiSkPictureRecorder.ts"],"sourcesContent":["import type { CanvasKit, PictureRecorder } from \"canvaskit-wasm\";\n\nimport type { SkRect } from \"../types\";\nimport type { SkPictureRecorder } from \"../types/Picture/PictureRecorder\";\n\nimport { HostObject } from \"./Host\";\nimport { JsiSkCanvas } from \"./JsiSkCanvas\";\nimport { JsiSkPicture } from \"./JsiSkPicture\";\nimport { JsiSkRect } from \"./JsiSkRect\";\n\nexport class JsiSkPictureRecorder\n extends HostObject<PictureRecorder, \"PictureRecorder\">\n implements SkPictureRecorder\n{\n constructor(CanvasKit: CanvasKit, ref: PictureRecorder) {\n super(CanvasKit, ref, \"PictureRecorder\");\n }\n\n dispose = () => {\n this.ref.delete();\n };\n\n beginRecording(bounds?: SkRect) {\n return new JsiSkCanvas(\n this.CanvasKit,\n this.ref.beginRecording(\n bounds\n ? JsiSkRect.fromValue(this.CanvasKit, bounds)\n : Float32Array.of(0, 0, 2_000_000, 2_000_000)\n )\n );\n }\n\n finishRecordingAsPicture() {\n return new JsiSkPicture(\n this.CanvasKit,\n this.ref.finishRecordingAsPicture()\n );\n }\n}\n"],"mappings":"
|
1
|
+
{"version":3,"names":["_Host","require","_JsiSkCanvas","_JsiSkPicture","_JsiSkRect","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","JsiSkPictureRecorder","HostObject","constructor","CanvasKit","ref","delete","beginRecording","bounds","JsiSkCanvas","JsiSkRect","fromValue","Float32Array","of","finishRecordingAsPicture","JsiSkPicture","exports"],"sources":["JsiSkPictureRecorder.ts"],"sourcesContent":["import type { CanvasKit, PictureRecorder } from \"canvaskit-wasm\";\n\nimport type { SkRect } from \"../types\";\nimport type { SkPictureRecorder } from \"../types/Picture/PictureRecorder\";\n\nimport { HostObject } from \"./Host\";\nimport { JsiSkCanvas } from \"./JsiSkCanvas\";\nimport { JsiSkPicture } from \"./JsiSkPicture\";\nimport { JsiSkRect } from \"./JsiSkRect\";\n\nexport class JsiSkPictureRecorder\n extends HostObject<PictureRecorder, \"PictureRecorder\">\n implements SkPictureRecorder\n{\n constructor(CanvasKit: CanvasKit, ref: PictureRecorder) {\n super(CanvasKit, ref, \"PictureRecorder\");\n }\n\n dispose = () => {\n this.ref.delete();\n };\n\n beginRecording(bounds?: SkRect) {\n return new JsiSkCanvas(\n this.CanvasKit,\n this.ref.beginRecording(\n bounds\n ? JsiSkRect.fromValue(this.CanvasKit, bounds)\n : Float32Array.of(0, 0, 2_000_000, 2_000_000)\n )\n );\n }\n\n finishRecordingAsPicture() {\n return new JsiSkPicture(\n this.CanvasKit,\n this.ref.finishRecordingAsPicture()\n );\n }\n}\n"],"mappings":";;;;;;AAKA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAAwC,SAAAI,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,CAAA,QAAAC,CAAA,GAAAC,YAAA,CAAAF,CAAA,uCAAAC,CAAA,GAAAA,CAAA,GAAAE,MAAA,CAAAF,CAAA;AAAA,SAAAC,aAAAF,CAAA,EAAAI,CAAA,2BAAAJ,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAK,CAAA,GAAAL,CAAA,CAAAM,MAAA,CAAAC,WAAA,kBAAAF,CAAA,QAAAJ,CAAA,GAAAI,CAAA,CAAAG,IAAA,CAAAR,CAAA,EAAAI,CAAA,uCAAAH,CAAA,SAAAA,CAAA,YAAAQ,SAAA,yEAAAL,CAAA,GAAAD,MAAA,GAAAO,MAAA,EAAAV,CAAA;AAEjC,MAAMW,oBAAoB,SACvBC,gBAAU,CAEpB;EACEC,WAAWA,CAACC,SAAoB,EAAEC,GAAoB,EAAE;IACtD,KAAK,CAACD,SAAS,EAAEC,GAAG,EAAE,iBAAiB,CAAC;IAACzB,eAAA,kBAGjC,MAAM;MACd,IAAI,CAACyB,GAAG,CAACC,MAAM,CAAC,CAAC;IACnB,CAAC;EAJD;EAMAC,cAAcA,CAACC,MAAe,EAAE;IAC9B,OAAO,IAAIC,wBAAW,CACpB,IAAI,CAACL,SAAS,EACd,IAAI,CAACC,GAAG,CAACE,cAAc,CACrBC,MAAM,GACFE,oBAAS,CAACC,SAAS,CAAC,IAAI,CAACP,SAAS,EAAEI,MAAM,CAAC,GAC3CI,YAAY,CAACC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,OAAS,EAAE,OAAS,CAChD,CACF,CAAC;EACH;EAEAC,wBAAwBA,CAAA,EAAG;IACzB,OAAO,IAAIC,0BAAY,CACrB,IAAI,CAACX,SAAS,EACd,IAAI,CAACC,GAAG,CAACS,wBAAwB,CAAC,CACpC,CAAC;EACH;AACF;AAACE,OAAA,CAAAf,oBAAA,GAAAA,oBAAA"}
|
@@ -4,36 +4,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.JsiSkPoint = void 0;
|
7
|
-
|
8
7
|
var _Host = require("./Host");
|
9
|
-
|
10
|
-
function
|
11
|
-
|
8
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
9
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
10
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
12
11
|
class JsiSkPoint extends _Host.BaseHostObject {
|
13
12
|
static fromValue(point) {
|
14
13
|
if (point instanceof JsiSkPoint) {
|
15
14
|
return point.ref;
|
16
15
|
}
|
17
|
-
|
18
16
|
return new Float32Array([point.x, point.y]);
|
19
17
|
}
|
20
|
-
|
21
18
|
constructor(CanvasKit, ref) {
|
22
19
|
super(CanvasKit, ref, "Point");
|
23
|
-
|
24
|
-
|
20
|
+
_defineProperty(this, "dispose", () => {
|
21
|
+
// Float32Array
|
25
22
|
});
|
26
23
|
}
|
27
|
-
|
28
24
|
get x() {
|
29
25
|
return this.ref[0];
|
30
26
|
}
|
31
|
-
|
32
27
|
get y() {
|
33
28
|
return this.ref[1];
|
34
29
|
}
|
35
|
-
|
36
30
|
}
|
37
|
-
|
38
31
|
exports.JsiSkPoint = JsiSkPoint;
|
39
32
|
//# sourceMappingURL=JsiSkPoint.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["JsiSkPoint","BaseHostObject","fromValue","point","ref","Float32Array","x","y","constructor","CanvasKit"],"sources":["JsiSkPoint.ts"],"sourcesContent":["import type { CanvasKit, Point } from \"canvaskit-wasm\";\n\nimport type { SkPoint } from \"../types\";\n\nimport { BaseHostObject } from \"./Host\";\n\nexport class JsiSkPoint\n extends BaseHostObject<Point, \"Point\">\n implements SkPoint\n{\n static fromValue(point: SkPoint) {\n if (point instanceof JsiSkPoint) {\n return point.ref;\n }\n return new Float32Array([point.x, point.y]);\n }\n\n constructor(CanvasKit: CanvasKit, ref: Point) {\n super(CanvasKit, ref, \"Point\");\n }\n\n dispose = () => {\n // Float32Array\n };\n\n get x() {\n return this.ref[0];\n }\n\n get y() {\n return this.ref[1];\n }\n}\n"],"mappings":"
|
1
|
+
{"version":3,"names":["_Host","require","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","JsiSkPoint","BaseHostObject","fromValue","point","ref","Float32Array","x","y","constructor","CanvasKit","exports"],"sources":["JsiSkPoint.ts"],"sourcesContent":["import type { CanvasKit, Point } from \"canvaskit-wasm\";\n\nimport type { SkPoint } from \"../types\";\n\nimport { BaseHostObject } from \"./Host\";\n\nexport class JsiSkPoint\n extends BaseHostObject<Point, \"Point\">\n implements SkPoint\n{\n static fromValue(point: SkPoint) {\n if (point instanceof JsiSkPoint) {\n return point.ref;\n }\n return new Float32Array([point.x, point.y]);\n }\n\n constructor(CanvasKit: CanvasKit, ref: Point) {\n super(CanvasKit, ref, \"Point\");\n }\n\n dispose = () => {\n // Float32Array\n };\n\n get x() {\n return this.ref[0];\n }\n\n get y() {\n return this.ref[1];\n }\n}\n"],"mappings":";;;;;;AAIA,IAAAA,KAAA,GAAAC,OAAA;AAAwC,SAAAC,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,CAAA,QAAAC,CAAA,GAAAC,YAAA,CAAAF,CAAA,uCAAAC,CAAA,GAAAA,CAAA,GAAAE,MAAA,CAAAF,CAAA;AAAA,SAAAC,aAAAF,CAAA,EAAAI,CAAA,2BAAAJ,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAK,CAAA,GAAAL,CAAA,CAAAM,MAAA,CAAAC,WAAA,kBAAAF,CAAA,QAAAJ,CAAA,GAAAI,CAAA,CAAAG,IAAA,CAAAR,CAAA,EAAAI,CAAA,uCAAAH,CAAA,SAAAA,CAAA,YAAAQ,SAAA,yEAAAL,CAAA,GAAAD,MAAA,GAAAO,MAAA,EAAAV,CAAA;AAEjC,MAAMW,UAAU,SACbC,oBAAc,CAExB;EACE,OAAOC,SAASA,CAACC,KAAc,EAAE;IAC/B,IAAIA,KAAK,YAAYH,UAAU,EAAE;MAC/B,OAAOG,KAAK,CAACC,GAAG;IAClB;IACA,OAAO,IAAIC,YAAY,CAAC,CAACF,KAAK,CAACG,CAAC,EAAEH,KAAK,CAACI,CAAC,CAAC,CAAC;EAC7C;EAEAC,WAAWA,CAACC,SAAoB,EAAEL,GAAU,EAAE;IAC5C,KAAK,CAACK,SAAS,EAAEL,GAAG,EAAE,OAAO,CAAC;IAACzB,eAAA,kBAGvB,MAAM;MACd;IAAA,CACD;EAJD;EAMA,IAAI2B,CAACA,CAAA,EAAG;IACN,OAAO,IAAI,CAACF,GAAG,CAAC,CAAC,CAAC;EACpB;EAEA,IAAIG,CAACA,CAAA,EAAG;IACN,OAAO,IAAI,CAACH,GAAG,CAAC,CAAC,CAAC;EACpB;AACF;AAACM,OAAA,CAAAV,UAAA,GAAAA,UAAA"}
|
@@ -4,59 +4,47 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.JsiSkRRect = void 0;
|
7
|
-
|
8
7
|
var _Host = require("./Host");
|
9
|
-
|
10
8
|
var _JsiSkRect = require("./JsiSkRect");
|
11
|
-
|
12
|
-
function
|
13
|
-
|
9
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
10
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
11
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
14
12
|
class JsiSkRRect extends _Host.BaseHostObject {
|
15
13
|
static fromValue(CanvasKit, rect) {
|
16
14
|
if (rect instanceof _JsiSkRect.JsiSkRect) {
|
17
15
|
return rect.ref;
|
18
16
|
}
|
19
|
-
|
20
17
|
if ("topLeft" in rect && "topRight" in rect && "bottomRight" in rect && "bottomLeft" in rect) {
|
21
18
|
return Float32Array.of(rect.rect.x, rect.rect.y, rect.rect.x + rect.rect.width, rect.rect.y + rect.rect.height, rect.topLeft.x, rect.topLeft.y, rect.topRight.x, rect.topRight.y, rect.bottomRight.x, rect.bottomRight.y, rect.bottomLeft.x, rect.bottomLeft.y);
|
22
19
|
}
|
23
|
-
|
24
20
|
return CanvasKit.RRectXY(_JsiSkRect.JsiSkRect.fromValue(CanvasKit, rect.rect), rect.rx, rect.ry);
|
25
21
|
}
|
26
|
-
|
27
22
|
constructor(CanvasKit, rect, rx, ry) {
|
28
23
|
// based on https://github.com/google/skia/blob/main/src/core/SkRRect.cpp#L51
|
29
24
|
if (rx === Infinity || ry === Infinity) {
|
30
25
|
rx = ry = 0;
|
31
26
|
}
|
32
|
-
|
33
27
|
if (rect.width < rx + rx || rect.height < ry + ry) {
|
34
28
|
// At most one of these two divides will be by zero, and neither numerator is zero.
|
35
29
|
const scale = Math.min(rect.width / (rx + rx), rect.height / (ry + ry));
|
36
30
|
rx *= scale;
|
37
31
|
ry *= scale;
|
38
32
|
}
|
39
|
-
|
40
33
|
const ref = CanvasKit.RRectXY(_JsiSkRect.JsiSkRect.fromValue(CanvasKit, rect), rx, ry);
|
41
34
|
super(CanvasKit, ref, "RRect");
|
42
|
-
|
43
|
-
|
35
|
+
_defineProperty(this, "dispose", () => {
|
36
|
+
// Float32Array
|
44
37
|
});
|
45
38
|
}
|
46
|
-
|
47
39
|
get rx() {
|
48
40
|
return this.ref[4];
|
49
41
|
}
|
50
|
-
|
51
42
|
get ry() {
|
52
43
|
return this.ref[5];
|
53
44
|
}
|
54
|
-
|
55
45
|
get rect() {
|
56
46
|
return new _JsiSkRect.JsiSkRect(this.CanvasKit, Float32Array.of(this.ref[0], this.ref[1], this.ref[2], this.ref[3]));
|
57
47
|
}
|
58
|
-
|
59
48
|
}
|
60
|
-
|
61
49
|
exports.JsiSkRRect = JsiSkRRect;
|
62
50
|
//# sourceMappingURL=JsiSkRRect.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["JsiSkRRect","BaseHostObject","fromValue","CanvasKit","rect","JsiSkRect","ref","Float32Array","of","x","y","width","height","topLeft","topRight","bottomRight","bottomLeft","RRectXY","rx","ry","constructor","Infinity","scale","Math","min"],"sources":["JsiSkRRect.ts"],"sourcesContent":["import type { CanvasKit, RRect } from \"canvaskit-wasm\";\n\nimport type { InputRRect, SkRect, SkRRect } from \"../types\";\n\nimport { BaseHostObject } from \"./Host\";\nimport { JsiSkRect } from \"./JsiSkRect\";\n\nexport class JsiSkRRect\n extends BaseHostObject<RRect, \"RRect\">\n implements SkRRect\n{\n dispose = () => {\n // Float32Array\n };\n\n static fromValue(CanvasKit: CanvasKit, rect: InputRRect) {\n if (rect instanceof JsiSkRect) {\n return rect.ref;\n }\n if (\n \"topLeft\" in rect &&\n \"topRight\" in rect &&\n \"bottomRight\" in rect &&\n \"bottomLeft\" in rect\n ) {\n return Float32Array.of(\n rect.rect.x,\n rect.rect.y,\n rect.rect.x + rect.rect.width,\n rect.rect.y + rect.rect.height,\n rect.topLeft.x,\n rect.topLeft.y,\n rect.topRight.x,\n rect.topRight.y,\n rect.bottomRight.x,\n rect.bottomRight.y,\n rect.bottomLeft.x,\n rect.bottomLeft.y\n );\n }\n return CanvasKit.RRectXY(\n JsiSkRect.fromValue(CanvasKit, rect.rect),\n rect.rx,\n rect.ry\n );\n }\n\n constructor(CanvasKit: CanvasKit, rect: SkRect, rx: number, ry: number) {\n // based on https://github.com/google/skia/blob/main/src/core/SkRRect.cpp#L51\n if (rx === Infinity || ry === Infinity) {\n rx = ry = 0;\n }\n if (rect.width < rx + rx || rect.height < ry + ry) {\n // At most one of these two divides will be by zero, and neither numerator is zero.\n const scale = Math.min(rect.width / (rx + rx), rect.height / (ry + ry));\n rx *= scale;\n ry *= scale;\n }\n const ref = CanvasKit.RRectXY(JsiSkRect.fromValue(CanvasKit, rect), rx, ry);\n super(CanvasKit, ref, \"RRect\");\n }\n\n get rx() {\n return this.ref[4];\n }\n\n get ry() {\n return this.ref[5];\n }\n\n get rect() {\n return new JsiSkRect(\n this.CanvasKit,\n Float32Array.of(this.ref[0], this.ref[1], this.ref[2], this.ref[3])\n );\n }\n}\n"],"mappings":"
|
1
|
+
{"version":3,"names":["_Host","require","_JsiSkRect","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","JsiSkRRect","BaseHostObject","fromValue","CanvasKit","rect","JsiSkRect","ref","Float32Array","of","x","y","width","height","topLeft","topRight","bottomRight","bottomLeft","RRectXY","rx","ry","constructor","Infinity","scale","Math","min","exports"],"sources":["JsiSkRRect.ts"],"sourcesContent":["import type { CanvasKit, RRect } from \"canvaskit-wasm\";\n\nimport type { InputRRect, SkRect, SkRRect } from \"../types\";\n\nimport { BaseHostObject } from \"./Host\";\nimport { JsiSkRect } from \"./JsiSkRect\";\n\nexport class JsiSkRRect\n extends BaseHostObject<RRect, \"RRect\">\n implements SkRRect\n{\n dispose = () => {\n // Float32Array\n };\n\n static fromValue(CanvasKit: CanvasKit, rect: InputRRect) {\n if (rect instanceof JsiSkRect) {\n return rect.ref;\n }\n if (\n \"topLeft\" in rect &&\n \"topRight\" in rect &&\n \"bottomRight\" in rect &&\n \"bottomLeft\" in rect\n ) {\n return Float32Array.of(\n rect.rect.x,\n rect.rect.y,\n rect.rect.x + rect.rect.width,\n rect.rect.y + rect.rect.height,\n rect.topLeft.x,\n rect.topLeft.y,\n rect.topRight.x,\n rect.topRight.y,\n rect.bottomRight.x,\n rect.bottomRight.y,\n rect.bottomLeft.x,\n rect.bottomLeft.y\n );\n }\n return CanvasKit.RRectXY(\n JsiSkRect.fromValue(CanvasKit, rect.rect),\n rect.rx,\n rect.ry\n );\n }\n\n constructor(CanvasKit: CanvasKit, rect: SkRect, rx: number, ry: number) {\n // based on https://github.com/google/skia/blob/main/src/core/SkRRect.cpp#L51\n if (rx === Infinity || ry === Infinity) {\n rx = ry = 0;\n }\n if (rect.width < rx + rx || rect.height < ry + ry) {\n // At most one of these two divides will be by zero, and neither numerator is zero.\n const scale = Math.min(rect.width / (rx + rx), rect.height / (ry + ry));\n rx *= scale;\n ry *= scale;\n }\n const ref = CanvasKit.RRectXY(JsiSkRect.fromValue(CanvasKit, rect), rx, ry);\n super(CanvasKit, ref, \"RRect\");\n }\n\n get rx() {\n return this.ref[4];\n }\n\n get ry() {\n return this.ref[5];\n }\n\n get rect() {\n return new JsiSkRect(\n this.CanvasKit,\n Float32Array.of(this.ref[0], this.ref[1], this.ref[2], this.ref[3])\n );\n }\n}\n"],"mappings":";;;;;;AAIA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAAwC,SAAAE,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,CAAA,QAAAC,CAAA,GAAAC,YAAA,CAAAF,CAAA,uCAAAC,CAAA,GAAAA,CAAA,GAAAE,MAAA,CAAAF,CAAA;AAAA,SAAAC,aAAAF,CAAA,EAAAI,CAAA,2BAAAJ,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAK,CAAA,GAAAL,CAAA,CAAAM,MAAA,CAAAC,WAAA,kBAAAF,CAAA,QAAAJ,CAAA,GAAAI,CAAA,CAAAG,IAAA,CAAAR,CAAA,EAAAI,CAAA,uCAAAH,CAAA,SAAAA,CAAA,YAAAQ,SAAA,yEAAAL,CAAA,GAAAD,MAAA,GAAAO,MAAA,EAAAV,CAAA;AAEjC,MAAMW,UAAU,SACbC,oBAAc,CAExB;EAKE,OAAOC,SAASA,CAACC,SAAoB,EAAEC,IAAgB,EAAE;IACvD,IAAIA,IAAI,YAAYC,oBAAS,EAAE;MAC7B,OAAOD,IAAI,CAACE,GAAG;IACjB;IACA,IACE,SAAS,IAAIF,IAAI,IACjB,UAAU,IAAIA,IAAI,IAClB,aAAa,IAAIA,IAAI,IACrB,YAAY,IAAIA,IAAI,EACpB;MACA,OAAOG,YAAY,CAACC,EAAE,CACpBJ,IAAI,CAACA,IAAI,CAACK,CAAC,EACXL,IAAI,CAACA,IAAI,CAACM,CAAC,EACXN,IAAI,CAACA,IAAI,CAACK,CAAC,GAAGL,IAAI,CAACA,IAAI,CAACO,KAAK,EAC7BP,IAAI,CAACA,IAAI,CAACM,CAAC,GAAGN,IAAI,CAACA,IAAI,CAACQ,MAAM,EAC9BR,IAAI,CAACS,OAAO,CAACJ,CAAC,EACdL,IAAI,CAACS,OAAO,CAACH,CAAC,EACdN,IAAI,CAACU,QAAQ,CAACL,CAAC,EACfL,IAAI,CAACU,QAAQ,CAACJ,CAAC,EACfN,IAAI,CAACW,WAAW,CAACN,CAAC,EAClBL,IAAI,CAACW,WAAW,CAACL,CAAC,EAClBN,IAAI,CAACY,UAAU,CAACP,CAAC,EACjBL,IAAI,CAACY,UAAU,CAACN,CAClB,CAAC;IACH;IACA,OAAOP,SAAS,CAACc,OAAO,CACtBZ,oBAAS,CAACH,SAAS,CAACC,SAAS,EAAEC,IAAI,CAACA,IAAI,CAAC,EACzCA,IAAI,CAACc,EAAE,EACPd,IAAI,CAACe,EACP,CAAC;EACH;EAEAC,WAAWA,CAACjB,SAAoB,EAAEC,IAAY,EAAEc,EAAU,EAAEC,EAAU,EAAE;IACtE;IACA,IAAID,EAAE,KAAKG,QAAQ,IAAIF,EAAE,KAAKE,QAAQ,EAAE;MACtCH,EAAE,GAAGC,EAAE,GAAG,CAAC;IACb;IACA,IAAIf,IAAI,CAACO,KAAK,GAAGO,EAAE,GAAGA,EAAE,IAAId,IAAI,CAACQ,MAAM,GAAGO,EAAE,GAAGA,EAAE,EAAE;MACjD;MACA,MAAMG,KAAK,GAAGC,IAAI,CAACC,GAAG,CAACpB,IAAI,CAACO,KAAK,IAAIO,EAAE,GAAGA,EAAE,CAAC,EAAEd,IAAI,CAACQ,MAAM,IAAIO,EAAE,GAAGA,EAAE,CAAC,CAAC;MACvED,EAAE,IAAII,KAAK;MACXH,EAAE,IAAIG,KAAK;IACb;IACA,MAAMhB,GAAG,GAAGH,SAAS,CAACc,OAAO,CAACZ,oBAAS,CAACH,SAAS,CAACC,SAAS,EAAEC,IAAI,CAAC,EAAEc,EAAE,EAAEC,EAAE,CAAC;IAC3E,KAAK,CAAChB,SAAS,EAAEG,GAAG,EAAE,OAAO,CAAC;IAAC3B,eAAA,kBAhDvB,MAAM;MACd;IAAA,CACD;EA+CD;EAEA,IAAIuC,EAAEA,CAAA,EAAG;IACP,OAAO,IAAI,CAACZ,GAAG,CAAC,CAAC,CAAC;EACpB;EAEA,IAAIa,EAAEA,CAAA,EAAG;IACP,OAAO,IAAI,CAACb,GAAG,CAAC,CAAC,CAAC;EACpB;EAEA,IAAIF,IAAIA,CAAA,EAAG;IACT,OAAO,IAAIC,oBAAS,CAClB,IAAI,CAACF,SAAS,EACdI,YAAY,CAACC,EAAE,CAAC,IAAI,CAACF,GAAG,CAAC,CAAC,CAAC,EAAE,IAAI,CAACA,GAAG,CAAC,CAAC,CAAC,EAAE,IAAI,CAACA,GAAG,CAAC,CAAC,CAAC,EAAE,IAAI,CAACA,GAAG,CAAC,CAAC,CAAC,CACpE,CAAC;EACH;AACF;AAACmB,OAAA,CAAAzB,UAAA,GAAAA,UAAA"}
|
@@ -4,51 +4,41 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.JsiSkRSXform = void 0;
|
7
|
-
|
8
7
|
var _Host = require("./Host");
|
9
|
-
|
10
|
-
function
|
11
|
-
|
8
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
9
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
10
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
12
11
|
class JsiSkRSXform extends _Host.BaseHostObject {
|
13
12
|
static fromValue(rsxform) {
|
14
13
|
if (rsxform instanceof JsiSkRSXform) {
|
15
14
|
return rsxform.ref;
|
16
15
|
}
|
17
|
-
|
18
16
|
return Float32Array.of(rsxform.scos, rsxform.ssin, rsxform.tx, rsxform.ty);
|
19
17
|
}
|
20
|
-
|
21
18
|
constructor(CanvasKit, ref) {
|
22
19
|
super(CanvasKit, ref, "RSXform");
|
23
|
-
|
24
|
-
|
20
|
+
_defineProperty(this, "dispose", () => {
|
21
|
+
// nothing to do here, RSXform is a Float32Array
|
25
22
|
});
|
26
23
|
}
|
27
|
-
|
28
24
|
set(scos, ssin, tx, ty) {
|
29
25
|
this.ref[0] = scos;
|
30
26
|
this.ref[1] = ssin;
|
31
27
|
this.ref[2] = tx;
|
32
28
|
this.ref[3] = ty;
|
33
29
|
}
|
34
|
-
|
35
30
|
get scos() {
|
36
31
|
return this.ref[0];
|
37
32
|
}
|
38
|
-
|
39
33
|
get ssin() {
|
40
34
|
return this.ref[1];
|
41
35
|
}
|
42
|
-
|
43
36
|
get tx() {
|
44
37
|
return this.ref[2];
|
45
38
|
}
|
46
|
-
|
47
39
|
get ty() {
|
48
40
|
return this.ref[3];
|
49
41
|
}
|
50
|
-
|
51
42
|
}
|
52
|
-
|
53
43
|
exports.JsiSkRSXform = JsiSkRSXform;
|
54
44
|
//# sourceMappingURL=JsiSkRSXform.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["JsiSkRSXform","BaseHostObject","fromValue","rsxform","ref","Float32Array","of","scos","ssin","tx","ty","constructor","CanvasKit","set"],"sources":["JsiSkRSXform.ts"],"sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type { SkRSXform } from \"../types\";\n\nimport { BaseHostObject } from \"./Host\";\n\nexport type RSXform = Float32Array;\n\nexport class JsiSkRSXform\n extends BaseHostObject<RSXform, \"RSXform\">\n implements SkRSXform\n{\n static fromValue(rsxform: SkRSXform) {\n if (rsxform instanceof JsiSkRSXform) {\n return rsxform.ref;\n }\n return Float32Array.of(rsxform.scos, rsxform.ssin, rsxform.tx, rsxform.ty);\n }\n\n constructor(CanvasKit: CanvasKit, ref: RSXform) {\n super(CanvasKit, ref, \"RSXform\");\n }\n set(scos: number, ssin: number, tx: number, ty: number) {\n this.ref[0] = scos;\n this.ref[1] = ssin;\n this.ref[2] = tx;\n this.ref[3] = ty;\n }\n get scos() {\n return this.ref[0];\n }\n get ssin() {\n return this.ref[1];\n }\n get tx() {\n return this.ref[2];\n }\n get ty() {\n return this.ref[3];\n }\n dispose = () => {\n // nothing to do here, RSXform is a Float32Array\n };\n}\n"],"mappings":"
|
1
|
+
{"version":3,"names":["_Host","require","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","JsiSkRSXform","BaseHostObject","fromValue","rsxform","ref","Float32Array","of","scos","ssin","tx","ty","constructor","CanvasKit","set","exports"],"sources":["JsiSkRSXform.ts"],"sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type { SkRSXform } from \"../types\";\n\nimport { BaseHostObject } from \"./Host\";\n\nexport type RSXform = Float32Array;\n\nexport class JsiSkRSXform\n extends BaseHostObject<RSXform, \"RSXform\">\n implements SkRSXform\n{\n static fromValue(rsxform: SkRSXform) {\n if (rsxform instanceof JsiSkRSXform) {\n return rsxform.ref;\n }\n return Float32Array.of(rsxform.scos, rsxform.ssin, rsxform.tx, rsxform.ty);\n }\n\n constructor(CanvasKit: CanvasKit, ref: RSXform) {\n super(CanvasKit, ref, \"RSXform\");\n }\n set(scos: number, ssin: number, tx: number, ty: number) {\n this.ref[0] = scos;\n this.ref[1] = ssin;\n this.ref[2] = tx;\n this.ref[3] = ty;\n }\n get scos() {\n return this.ref[0];\n }\n get ssin() {\n return this.ref[1];\n }\n get tx() {\n return this.ref[2];\n }\n get ty() {\n return this.ref[3];\n }\n dispose = () => {\n // nothing to do here, RSXform is a Float32Array\n };\n}\n"],"mappings":";;;;;;AAIA,IAAAA,KAAA,GAAAC,OAAA;AAAwC,SAAAC,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,CAAA,QAAAC,CAAA,GAAAC,YAAA,CAAAF,CAAA,uCAAAC,CAAA,GAAAA,CAAA,GAAAE,MAAA,CAAAF,CAAA;AAAA,SAAAC,aAAAF,CAAA,EAAAI,CAAA,2BAAAJ,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAK,CAAA,GAAAL,CAAA,CAAAM,MAAA,CAAAC,WAAA,kBAAAF,CAAA,QAAAJ,CAAA,GAAAI,CAAA,CAAAG,IAAA,CAAAR,CAAA,EAAAI,CAAA,uCAAAH,CAAA,SAAAA,CAAA,YAAAQ,SAAA,yEAAAL,CAAA,GAAAD,MAAA,GAAAO,MAAA,EAAAV,CAAA;AAIjC,MAAMW,YAAY,SACfC,oBAAc,CAExB;EACE,OAAOC,SAASA,CAACC,OAAkB,EAAE;IACnC,IAAIA,OAAO,YAAYH,YAAY,EAAE;MACnC,OAAOG,OAAO,CAACC,GAAG;IACpB;IACA,OAAOC,YAAY,CAACC,EAAE,CAACH,OAAO,CAACI,IAAI,EAAEJ,OAAO,CAACK,IAAI,EAAEL,OAAO,CAACM,EAAE,EAAEN,OAAO,CAACO,EAAE,CAAC;EAC5E;EAEAC,WAAWA,CAACC,SAAoB,EAAER,GAAY,EAAE;IAC9C,KAAK,CAACQ,SAAS,EAAER,GAAG,EAAE,SAAS,CAAC;IAACzB,eAAA,kBAoBzB,MAAM;MACd;IAAA,CACD;EArBD;EACAkC,GAAGA,CAACN,IAAY,EAAEC,IAAY,EAAEC,EAAU,EAAEC,EAAU,EAAE;IACtD,IAAI,CAACN,GAAG,CAAC,CAAC,CAAC,GAAGG,IAAI;IAClB,IAAI,CAACH,GAAG,CAAC,CAAC,CAAC,GAAGI,IAAI;IAClB,IAAI,CAACJ,GAAG,CAAC,CAAC,CAAC,GAAGK,EAAE;IAChB,IAAI,CAACL,GAAG,CAAC,CAAC,CAAC,GAAGM,EAAE;EAClB;EACA,IAAIH,IAAIA,CAAA,EAAG;IACT,OAAO,IAAI,CAACH,GAAG,CAAC,CAAC,CAAC;EACpB;EACA,IAAII,IAAIA,CAAA,EAAG;IACT,OAAO,IAAI,CAACJ,GAAG,CAAC,CAAC,CAAC;EACpB;EACA,IAAIK,EAAEA,CAAA,EAAG;IACP,OAAO,IAAI,CAACL,GAAG,CAAC,CAAC,CAAC;EACpB;EACA,IAAIM,EAAEA,CAAA,EAAG;IACP,OAAO,IAAI,CAACN,GAAG,CAAC,CAAC,CAAC;EACpB;AAIF;AAACU,OAAA,CAAAd,YAAA,GAAAA,YAAA"}
|
@@ -4,51 +4,41 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.JsiSkRect = void 0;
|
7
|
-
|
8
7
|
var _Host = require("./Host");
|
9
|
-
|
10
|
-
function
|
11
|
-
|
8
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
9
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
10
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
12
11
|
class JsiSkRect extends _Host.BaseHostObject {
|
13
12
|
static fromValue(CanvasKit, rect) {
|
14
13
|
if (rect instanceof JsiSkRect) {
|
15
14
|
return rect.ref;
|
16
15
|
}
|
17
|
-
|
18
16
|
return CanvasKit.XYWHRect(rect.x, rect.y, rect.width, rect.height);
|
19
17
|
}
|
20
|
-
|
21
18
|
constructor(CanvasKit, ref) {
|
22
19
|
super(CanvasKit, ref, "Rect");
|
23
|
-
|
24
|
-
|
20
|
+
_defineProperty(this, "dispose", () => {
|
21
|
+
// Float32Array
|
25
22
|
});
|
26
23
|
}
|
27
|
-
|
28
24
|
setXYWH(x, y, width, height) {
|
29
25
|
this.ref[0] = x;
|
30
26
|
this.ref[1] = y;
|
31
27
|
this.ref[2] = x + width;
|
32
28
|
this.ref[3] = y + height;
|
33
29
|
}
|
34
|
-
|
35
30
|
get x() {
|
36
31
|
return this.ref[0];
|
37
32
|
}
|
38
|
-
|
39
33
|
get y() {
|
40
34
|
return this.ref[1];
|
41
35
|
}
|
42
|
-
|
43
36
|
get width() {
|
44
37
|
return this.ref[2] - this.ref[0];
|
45
38
|
}
|
46
|
-
|
47
39
|
get height() {
|
48
40
|
return this.ref[3] - this.ref[1];
|
49
41
|
}
|
50
|
-
|
51
42
|
}
|
52
|
-
|
53
43
|
exports.JsiSkRect = JsiSkRect;
|
54
44
|
//# sourceMappingURL=JsiSkRect.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["JsiSkRect","BaseHostObject","fromValue","CanvasKit","rect","ref","XYWHRect","x","y","width","height","constructor","setXYWH"],"sources":["JsiSkRect.ts"],"sourcesContent":["import type { CanvasKit, Rect } from \"canvaskit-wasm\";\n\nimport type { SkHostRect, SkRect } from \"../types\";\n\nimport { BaseHostObject } from \"./Host\";\n\nexport class JsiSkRect\n extends BaseHostObject<Rect, \"Rect\">\n implements SkHostRect\n{\n static fromValue(CanvasKit: CanvasKit, rect: SkRect) {\n if (rect instanceof JsiSkRect) {\n return rect.ref;\n }\n return CanvasKit.XYWHRect(rect.x, rect.y, rect.width, rect.height);\n }\n\n dispose = () => {\n // Float32Array\n };\n\n constructor(CanvasKit: CanvasKit, ref: Rect) {\n super(CanvasKit, ref, \"Rect\");\n }\n\n setXYWH(x: number, y: number, width: number, height: number): void {\n this.ref[0] = x;\n this.ref[1] = y;\n this.ref[2] = x + width;\n this.ref[3] = y + height;\n }\n\n get x() {\n return this.ref[0];\n }\n\n get y() {\n return this.ref[1];\n }\n\n get width() {\n return this.ref[2] - this.ref[0];\n }\n\n get height() {\n return this.ref[3] - this.ref[1];\n }\n}\n"],"mappings":"
|
1
|
+
{"version":3,"names":["_Host","require","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","JsiSkRect","BaseHostObject","fromValue","CanvasKit","rect","ref","XYWHRect","x","y","width","height","constructor","setXYWH","exports"],"sources":["JsiSkRect.ts"],"sourcesContent":["import type { CanvasKit, Rect } from \"canvaskit-wasm\";\n\nimport type { SkHostRect, SkRect } from \"../types\";\n\nimport { BaseHostObject } from \"./Host\";\n\nexport class JsiSkRect\n extends BaseHostObject<Rect, \"Rect\">\n implements SkHostRect\n{\n static fromValue(CanvasKit: CanvasKit, rect: SkRect) {\n if (rect instanceof JsiSkRect) {\n return rect.ref;\n }\n return CanvasKit.XYWHRect(rect.x, rect.y, rect.width, rect.height);\n }\n\n dispose = () => {\n // Float32Array\n };\n\n constructor(CanvasKit: CanvasKit, ref: Rect) {\n super(CanvasKit, ref, \"Rect\");\n }\n\n setXYWH(x: number, y: number, width: number, height: number): void {\n this.ref[0] = x;\n this.ref[1] = y;\n this.ref[2] = x + width;\n this.ref[3] = y + height;\n }\n\n get x() {\n return this.ref[0];\n }\n\n get y() {\n return this.ref[1];\n }\n\n get width() {\n return this.ref[2] - this.ref[0];\n }\n\n get height() {\n return this.ref[3] - this.ref[1];\n }\n}\n"],"mappings":";;;;;;AAIA,IAAAA,KAAA,GAAAC,OAAA;AAAwC,SAAAC,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,CAAA,QAAAC,CAAA,GAAAC,YAAA,CAAAF,CAAA,uCAAAC,CAAA,GAAAA,CAAA,GAAAE,MAAA,CAAAF,CAAA;AAAA,SAAAC,aAAAF,CAAA,EAAAI,CAAA,2BAAAJ,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAK,CAAA,GAAAL,CAAA,CAAAM,MAAA,CAAAC,WAAA,kBAAAF,CAAA,QAAAJ,CAAA,GAAAI,CAAA,CAAAG,IAAA,CAAAR,CAAA,EAAAI,CAAA,uCAAAH,CAAA,SAAAA,CAAA,YAAAQ,SAAA,yEAAAL,CAAA,GAAAD,MAAA,GAAAO,MAAA,EAAAV,CAAA;AAEjC,MAAMW,SAAS,SACZC,oBAAc,CAExB;EACE,OAAOC,SAASA,CAACC,SAAoB,EAAEC,IAAY,EAAE;IACnD,IAAIA,IAAI,YAAYJ,SAAS,EAAE;MAC7B,OAAOI,IAAI,CAACC,GAAG;IACjB;IACA,OAAOF,SAAS,CAACG,QAAQ,CAACF,IAAI,CAACG,CAAC,EAAEH,IAAI,CAACI,CAAC,EAAEJ,IAAI,CAACK,KAAK,EAAEL,IAAI,CAACM,MAAM,CAAC;EACpE;EAMAC,WAAWA,CAACR,SAAoB,EAAEE,GAAS,EAAE;IAC3C,KAAK,CAACF,SAAS,EAAEE,GAAG,EAAE,MAAM,CAAC;IAAC1B,eAAA,kBALtB,MAAM;MACd;IAAA,CACD;EAID;EAEAiC,OAAOA,CAACL,CAAS,EAAEC,CAAS,EAAEC,KAAa,EAAEC,MAAc,EAAQ;IACjE,IAAI,CAACL,GAAG,CAAC,CAAC,CAAC,GAAGE,CAAC;IACf,IAAI,CAACF,GAAG,CAAC,CAAC,CAAC,GAAGG,CAAC;IACf,IAAI,CAACH,GAAG,CAAC,CAAC,CAAC,GAAGE,CAAC,GAAGE,KAAK;IACvB,IAAI,CAACJ,GAAG,CAAC,CAAC,CAAC,GAAGG,CAAC,GAAGE,MAAM;EAC1B;EAEA,IAAIH,CAACA,CAAA,EAAG;IACN,OAAO,IAAI,CAACF,GAAG,CAAC,CAAC,CAAC;EACpB;EAEA,IAAIG,CAACA,CAAA,EAAG;IACN,OAAO,IAAI,CAACH,GAAG,CAAC,CAAC,CAAC;EACpB;EAEA,IAAII,KAAKA,CAAA,EAAG;IACV,OAAO,IAAI,CAACJ,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAACA,GAAG,CAAC,CAAC,CAAC;EAClC;EAEA,IAAIK,MAAMA,CAAA,EAAG;IACX,OAAO,IAAI,CAACL,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAACA,GAAG,CAAC,CAAC,CAAC;EAClC;AACF;AAACQ,OAAA,CAAAb,SAAA,GAAAA,SAAA"}
|
@@ -4,54 +4,41 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.JsiSkRuntimeEffect = void 0;
|
7
|
-
|
8
7
|
var _Host = require("./Host");
|
9
|
-
|
10
8
|
var _JsiSkMatrix = require("./JsiSkMatrix");
|
11
|
-
|
12
9
|
var _JsiSkShader = require("./JsiSkShader");
|
13
|
-
|
14
|
-
function
|
15
|
-
|
10
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
11
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
12
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
16
13
|
class JsiSkRuntimeEffect extends _Host.HostObject {
|
17
14
|
constructor(CanvasKit, ref, sksl) {
|
18
15
|
super(CanvasKit, ref, "RuntimeEffect");
|
19
16
|
this.sksl = sksl;
|
20
|
-
|
21
17
|
_defineProperty(this, "dispose", () => {
|
22
18
|
this.ref.delete();
|
23
19
|
});
|
24
20
|
}
|
25
|
-
|
26
21
|
source() {
|
27
22
|
return this.sksl;
|
28
23
|
}
|
29
|
-
|
30
24
|
makeShader(uniforms, localMatrix) {
|
31
25
|
return new _JsiSkShader.JsiSkShader(this.CanvasKit, this.ref.makeShader(uniforms, localMatrix !== undefined ? _JsiSkMatrix.JsiSkMatrix.fromValue(localMatrix) : localMatrix));
|
32
26
|
}
|
33
|
-
|
34
27
|
makeShaderWithChildren(uniforms, children, localMatrix) {
|
35
28
|
return new _JsiSkShader.JsiSkShader(this.CanvasKit, this.ref.makeShaderWithChildren(uniforms, children === null || children === void 0 ? void 0 : children.map(child => _JsiSkShader.JsiSkShader.fromValue(child)), localMatrix !== undefined ? _JsiSkMatrix.JsiSkMatrix.fromValue(localMatrix) : localMatrix));
|
36
29
|
}
|
37
|
-
|
38
30
|
getUniform(index) {
|
39
31
|
return this.ref.getUniform(index);
|
40
32
|
}
|
41
|
-
|
42
33
|
getUniformCount() {
|
43
34
|
return this.ref.getUniformCount();
|
44
35
|
}
|
45
|
-
|
46
36
|
getUniformFloatCount() {
|
47
37
|
return this.ref.getUniformFloatCount();
|
48
38
|
}
|
49
|
-
|
50
39
|
getUniformName(index) {
|
51
40
|
return this.ref.getUniformName(index);
|
52
41
|
}
|
53
|
-
|
54
42
|
}
|
55
|
-
|
56
43
|
exports.JsiSkRuntimeEffect = JsiSkRuntimeEffect;
|
57
44
|
//# sourceMappingURL=JsiSkRuntimeEffect.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["JsiSkRuntimeEffect","HostObject","constructor","CanvasKit","ref","sksl","delete","source","makeShader","uniforms","localMatrix","JsiSkShader","undefined","JsiSkMatrix","fromValue","makeShaderWithChildren","children","map","child","getUniform","index","getUniformCount","getUniformFloatCount","getUniformName"],"sources":["JsiSkRuntimeEffect.ts"],"sourcesContent":["import type { CanvasKit, RuntimeEffect } from \"canvaskit-wasm\";\n\nimport type { SkMatrix, SkShader } from \"../types\";\nimport type { SkRuntimeEffect } from \"../types/RuntimeEffect/RuntimeEffect\";\n\nimport { HostObject } from \"./Host\";\nimport { JsiSkMatrix } from \"./JsiSkMatrix\";\nimport { JsiSkShader } from \"./JsiSkShader\";\n\nexport class JsiSkRuntimeEffect\n extends HostObject<RuntimeEffect, \"RuntimeEffect\">\n implements SkRuntimeEffect\n{\n constructor(CanvasKit: CanvasKit, ref: RuntimeEffect, private sksl: string) {\n super(CanvasKit, ref, \"RuntimeEffect\");\n }\n\n dispose = () => {\n this.ref.delete();\n };\n\n source() {\n return this.sksl;\n }\n\n makeShader(uniforms: number[], localMatrix?: SkMatrix) {\n return new JsiSkShader(\n this.CanvasKit,\n this.ref.makeShader(\n uniforms,\n localMatrix !== undefined\n ? JsiSkMatrix.fromValue(localMatrix)\n : localMatrix\n )\n );\n }\n\n makeShaderWithChildren(\n uniforms: number[],\n children?: SkShader[],\n localMatrix?: SkMatrix\n ) {\n return new JsiSkShader(\n this.CanvasKit,\n this.ref.makeShaderWithChildren(\n uniforms,\n children?.map((child) => JsiSkShader.fromValue(child)),\n localMatrix !== undefined\n ? JsiSkMatrix.fromValue(localMatrix)\n : localMatrix\n )\n );\n }\n\n getUniform(index: number) {\n return this.ref.getUniform(index);\n }\n\n getUniformCount() {\n return this.ref.getUniformCount();\n }\n\n getUniformFloatCount() {\n return this.ref.getUniformFloatCount();\n }\n\n getUniformName(index: number) {\n return this.ref.getUniformName(index);\n }\n}\n"],"mappings":"
|
1
|
+
{"version":3,"names":["_Host","require","_JsiSkMatrix","_JsiSkShader","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","JsiSkRuntimeEffect","HostObject","constructor","CanvasKit","ref","sksl","delete","source","makeShader","uniforms","localMatrix","JsiSkShader","undefined","JsiSkMatrix","fromValue","makeShaderWithChildren","children","map","child","getUniform","index","getUniformCount","getUniformFloatCount","getUniformName","exports"],"sources":["JsiSkRuntimeEffect.ts"],"sourcesContent":["import type { CanvasKit, RuntimeEffect } from \"canvaskit-wasm\";\n\nimport type { SkMatrix, SkShader } from \"../types\";\nimport type { SkRuntimeEffect } from \"../types/RuntimeEffect/RuntimeEffect\";\n\nimport { HostObject } from \"./Host\";\nimport { JsiSkMatrix } from \"./JsiSkMatrix\";\nimport { JsiSkShader } from \"./JsiSkShader\";\n\nexport class JsiSkRuntimeEffect\n extends HostObject<RuntimeEffect, \"RuntimeEffect\">\n implements SkRuntimeEffect\n{\n constructor(CanvasKit: CanvasKit, ref: RuntimeEffect, private sksl: string) {\n super(CanvasKit, ref, \"RuntimeEffect\");\n }\n\n dispose = () => {\n this.ref.delete();\n };\n\n source() {\n return this.sksl;\n }\n\n makeShader(uniforms: number[], localMatrix?: SkMatrix) {\n return new JsiSkShader(\n this.CanvasKit,\n this.ref.makeShader(\n uniforms,\n localMatrix !== undefined\n ? JsiSkMatrix.fromValue(localMatrix)\n : localMatrix\n )\n );\n }\n\n makeShaderWithChildren(\n uniforms: number[],\n children?: SkShader[],\n localMatrix?: SkMatrix\n ) {\n return new JsiSkShader(\n this.CanvasKit,\n this.ref.makeShaderWithChildren(\n uniforms,\n children?.map((child) => JsiSkShader.fromValue(child)),\n localMatrix !== undefined\n ? JsiSkMatrix.fromValue(localMatrix)\n : localMatrix\n )\n );\n }\n\n getUniform(index: number) {\n return this.ref.getUniform(index);\n }\n\n getUniformCount() {\n return this.ref.getUniformCount();\n }\n\n getUniformFloatCount() {\n return this.ref.getUniformFloatCount();\n }\n\n getUniformName(index: number) {\n return this.ref.getUniformName(index);\n }\n}\n"],"mappings":";;;;;;AAKA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAA4C,SAAAG,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,CAAA,QAAAC,CAAA,GAAAC,YAAA,CAAAF,CAAA,uCAAAC,CAAA,GAAAA,CAAA,GAAAE,MAAA,CAAAF,CAAA;AAAA,SAAAC,aAAAF,CAAA,EAAAI,CAAA,2BAAAJ,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAK,CAAA,GAAAL,CAAA,CAAAM,MAAA,CAAAC,WAAA,kBAAAF,CAAA,QAAAJ,CAAA,GAAAI,CAAA,CAAAG,IAAA,CAAAR,CAAA,EAAAI,CAAA,uCAAAH,CAAA,SAAAA,CAAA,YAAAQ,SAAA,yEAAAL,CAAA,GAAAD,MAAA,GAAAO,MAAA,EAAAV,CAAA;AAErC,MAAMW,kBAAkB,SACrBC,gBAAU,CAEpB;EACEC,WAAWA,CAACC,SAAoB,EAAEC,GAAkB,EAAUC,IAAY,EAAE;IAC1E,KAAK,CAACF,SAAS,EAAEC,GAAG,EAAE,eAAe,CAAC;IAAC,KADqBC,IAAY,GAAZA,IAAY;IAAA1B,eAAA,kBAIhE,MAAM;MACd,IAAI,CAACyB,GAAG,CAACE,MAAM,CAAC,CAAC;IACnB,CAAC;EAJD;EAMAC,MAAMA,CAAA,EAAG;IACP,OAAO,IAAI,CAACF,IAAI;EAClB;EAEAG,UAAUA,CAACC,QAAkB,EAAEC,WAAsB,EAAE;IACrD,OAAO,IAAIC,wBAAW,CACpB,IAAI,CAACR,SAAS,EACd,IAAI,CAACC,GAAG,CAACI,UAAU,CACjBC,QAAQ,EACRC,WAAW,KAAKE,SAAS,GACrBC,wBAAW,CAACC,SAAS,CAACJ,WAAW,CAAC,GAClCA,WACN,CACF,CAAC;EACH;EAEAK,sBAAsBA,CACpBN,QAAkB,EAClBO,QAAqB,EACrBN,WAAsB,EACtB;IACA,OAAO,IAAIC,wBAAW,CACpB,IAAI,CAACR,SAAS,EACd,IAAI,CAACC,GAAG,CAACW,sBAAsB,CAC7BN,QAAQ,EACRO,QAAQ,aAARA,QAAQ,uBAARA,QAAQ,CAAEC,GAAG,CAAEC,KAAK,IAAKP,wBAAW,CAACG,SAAS,CAACI,KAAK,CAAC,CAAC,EACtDR,WAAW,KAAKE,SAAS,GACrBC,wBAAW,CAACC,SAAS,CAACJ,WAAW,CAAC,GAClCA,WACN,CACF,CAAC;EACH;EAEAS,UAAUA,CAACC,KAAa,EAAE;IACxB,OAAO,IAAI,CAAChB,GAAG,CAACe,UAAU,CAACC,KAAK,CAAC;EACnC;EAEAC,eAAeA,CAAA,EAAG;IAChB,OAAO,IAAI,CAACjB,GAAG,CAACiB,eAAe,CAAC,CAAC;EACnC;EAEAC,oBAAoBA,CAAA,EAAG;IACrB,OAAO,IAAI,CAAClB,GAAG,CAACkB,oBAAoB,CAAC,CAAC;EACxC;EAEAC,cAAcA,CAACH,KAAa,EAAE;IAC5B,OAAO,IAAI,CAAChB,GAAG,CAACmB,cAAc,CAACH,KAAK,CAAC;EACvC;AACF;AAACI,OAAA,CAAAxB,kBAAA,GAAAA,kBAAA"}
|