@shopify/react-native-skia 1.3.11 → 1.3.12
Sign up to get free protection for your applications and to get access to all the features.
- package/android/cpp/jni/JniSkiaManager.cpp +8 -2
- package/cpp/jsi/JsiHostObject.h +9 -15
- package/lib/commonjs/Platform/IPlatform.d.ts +0 -1
- package/lib/commonjs/Platform/IPlatform.js.map +1 -1
- package/lib/commonjs/Platform/Platform.js.map +1 -1
- package/lib/commonjs/Platform/Platform.web.js +5 -1
- package/lib/commonjs/Platform/Platform.web.js.map +1 -1
- package/lib/commonjs/Platform/index.js.map +1 -1
- package/lib/commonjs/animation/functions/index.js.map +1 -1
- package/lib/commonjs/animation/functions/interpolate.js.map +1 -1
- package/lib/commonjs/animation/functions/interpolateColors.js.map +1 -1
- package/lib/commonjs/animation/functions/interpolatePaths.js.map +1 -1
- package/lib/commonjs/animation/functions/interpolateVector.js.map +1 -1
- package/lib/commonjs/animation/index.js.map +1 -1
- package/lib/commonjs/dom/nodes/DrawingNode.js +2 -2
- package/lib/commonjs/dom/nodes/DrawingNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/GroupNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/JsiSkDOM.js.map +1 -1
- package/lib/commonjs/dom/nodes/LayerNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/Node.js +2 -2
- package/lib/commonjs/dom/nodes/Node.js.map +1 -1
- package/lib/commonjs/dom/nodes/PaintNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/RenderNode.js +2 -2
- package/lib/commonjs/dom/nodes/RenderNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/datatypes/Circle.js.map +1 -1
- package/lib/commonjs/dom/nodes/datatypes/Enum.js.map +1 -1
- package/lib/commonjs/dom/nodes/datatypes/Fitting.js.map +1 -1
- package/lib/commonjs/dom/nodes/datatypes/Gradient.js.map +1 -1
- package/lib/commonjs/dom/nodes/datatypes/Path.js.map +1 -1
- package/lib/commonjs/dom/nodes/datatypes/Radius.js.map +1 -1
- package/lib/commonjs/dom/nodes/datatypes/Rect.js.map +1 -1
- package/lib/commonjs/dom/nodes/datatypes/Transform.js.map +1 -1
- package/lib/commonjs/dom/nodes/datatypes/index.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/AtlasNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/Box.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/CircleNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/DiffRectNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/FillNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/ImageNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/ImageSVG.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/LineNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/OvalNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/ParagraphNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/PatchNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/PathNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/PictureNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/PointsNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/RRectNode.js +2 -2
- package/lib/commonjs/dom/nodes/drawings/RRectNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/RectNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/Text.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/VerticesNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/index.js.map +1 -1
- package/lib/commonjs/dom/nodes/index.js.map +1 -1
- package/lib/commonjs/dom/nodes/paint/BlendNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/paint/ColorFilters.js.map +1 -1
- package/lib/commonjs/dom/nodes/paint/ImageFilters.js.map +1 -1
- package/lib/commonjs/dom/nodes/paint/MaskFilters.js.map +1 -1
- package/lib/commonjs/dom/nodes/paint/PathEffects.js.map +1 -1
- package/lib/commonjs/dom/nodes/paint/Shaders.js.map +1 -1
- package/lib/commonjs/dom/nodes/paint/index.js.map +1 -1
- package/lib/commonjs/dom/types/ColorFilters.js.map +1 -1
- package/lib/commonjs/dom/types/Common.js.map +1 -1
- package/lib/commonjs/dom/types/DeclarationContext.js +2 -2
- package/lib/commonjs/dom/types/DeclarationContext.js.map +1 -1
- package/lib/commonjs/dom/types/DrawingContext.js +2 -2
- package/lib/commonjs/dom/types/DrawingContext.js.map +1 -1
- package/lib/commonjs/dom/types/Drawings.js.map +1 -1
- package/lib/commonjs/dom/types/ImageFilters.js.map +1 -1
- package/lib/commonjs/dom/types/MaskFilters.js.map +1 -1
- package/lib/commonjs/dom/types/Node.js.map +1 -1
- package/lib/commonjs/dom/types/NodeType.js.map +1 -1
- package/lib/commonjs/dom/types/Paragraph.js.map +1 -1
- package/lib/commonjs/dom/types/PathEffects.js.map +1 -1
- package/lib/commonjs/dom/types/Shaders.js.map +1 -1
- package/lib/commonjs/dom/types/SkDOM.js.map +1 -1
- package/lib/commonjs/dom/types/index.js.map +1 -1
- package/lib/commonjs/external/ModuleProxy.js.map +1 -1
- package/lib/commonjs/external/index.js.map +1 -1
- package/lib/commonjs/external/reanimated/ReanimatedProxy.js.map +1 -1
- package/lib/commonjs/external/reanimated/buffers.d.ts +4 -4
- package/lib/commonjs/external/reanimated/buffers.js +1 -1
- package/lib/commonjs/external/reanimated/buffers.js.map +1 -1
- package/lib/commonjs/external/reanimated/index.js.map +1 -1
- package/lib/commonjs/external/reanimated/interpolators.js +1 -1
- package/lib/commonjs/external/reanimated/interpolators.js.map +1 -1
- package/lib/commonjs/external/reanimated/renderHelpers.js +1 -1
- package/lib/commonjs/external/reanimated/renderHelpers.js.map +1 -1
- package/lib/commonjs/external/reanimated/textures.js +1 -1
- package/lib/commonjs/external/reanimated/textures.js.map +1 -1
- package/lib/commonjs/external/reanimated/useAnimatedImageValue.js +1 -1
- package/lib/commonjs/external/reanimated/useAnimatedImageValue.js.map +1 -1
- package/lib/commonjs/external/reanimated/useDerivedValueOnJS.js +1 -1
- package/lib/commonjs/external/reanimated/useDerivedValueOnJS.js.map +1 -1
- package/lib/commonjs/external/reanimated/useVideo.js +1 -1
- package/lib/commonjs/external/reanimated/useVideo.js.map +1 -1
- package/lib/commonjs/external/reanimated/useVideoLoading.js +1 -1
- package/lib/commonjs/external/reanimated/useVideoLoading.js.map +1 -1
- package/lib/commonjs/external/reanimated/useVideoLoading.web.js.map +1 -1
- package/lib/commonjs/headless/index.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/mock/index.js +4 -0
- package/lib/commonjs/mock/index.js.map +1 -1
- package/lib/commonjs/renderer/Canvas.d.ts +2 -2
- package/lib/commonjs/renderer/Canvas.js +2 -2
- package/lib/commonjs/renderer/Canvas.js.map +1 -1
- package/lib/commonjs/renderer/Container.d.ts +1 -0
- package/lib/commonjs/renderer/Container.js +3 -2
- package/lib/commonjs/renderer/Container.js.map +1 -1
- package/lib/commonjs/renderer/DrawingContext.js.map +1 -1
- package/lib/commonjs/renderer/HostComponents.js.map +1 -1
- package/lib/commonjs/renderer/HostConfig.d.ts +0 -1
- package/lib/commonjs/renderer/HostConfig.js +7 -3
- package/lib/commonjs/renderer/HostConfig.js.map +1 -1
- package/lib/commonjs/renderer/Offscreen.js.map +1 -1
- package/lib/commonjs/renderer/Reconciler.js +4 -3
- package/lib/commonjs/renderer/Reconciler.js.map +1 -1
- package/lib/commonjs/renderer/components/Blend.js +1 -1
- package/lib/commonjs/renderer/components/Blend.js.map +1 -1
- package/lib/commonjs/renderer/components/Group.js +3 -3
- package/lib/commonjs/renderer/components/Group.js.map +1 -1
- package/lib/commonjs/renderer/components/Mask.js +1 -1
- package/lib/commonjs/renderer/components/Mask.js.map +1 -1
- package/lib/commonjs/renderer/components/Paint.js +1 -1
- package/lib/commonjs/renderer/components/Paint.js.map +1 -1
- package/lib/commonjs/renderer/components/Picture.js +1 -1
- package/lib/commonjs/renderer/components/Picture.js.map +1 -1
- package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js +2 -2
- package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js.map +1 -1
- package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js +1 -1
- package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js.map +1 -1
- package/lib/commonjs/renderer/components/backdrop/index.js.map +1 -1
- package/lib/commonjs/renderer/components/colorFilters/BlendColor.js +1 -1
- package/lib/commonjs/renderer/components/colorFilters/BlendColor.js.map +1 -1
- package/lib/commonjs/renderer/components/colorFilters/Lerp.js +1 -1
- package/lib/commonjs/renderer/components/colorFilters/Lerp.js.map +1 -1
- package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js +1 -1
- package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
- package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js +1 -1
- package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
- package/lib/commonjs/renderer/components/colorFilters/Matrix.js +1 -1
- package/lib/commonjs/renderer/components/colorFilters/Matrix.js.map +1 -1
- package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js +1 -1
- package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
- package/lib/commonjs/renderer/components/colorFilters/index.js.map +1 -1
- package/lib/commonjs/renderer/components/image/Image.js +1 -1
- package/lib/commonjs/renderer/components/image/Image.js.map +1 -1
- package/lib/commonjs/renderer/components/image/ImageSVG.js +1 -1
- package/lib/commonjs/renderer/components/image/ImageSVG.js.map +1 -1
- package/lib/commonjs/renderer/components/image/ImageShader.js +2 -2
- package/lib/commonjs/renderer/components/image/ImageShader.js.map +1 -1
- package/lib/commonjs/renderer/components/image/index.js.map +1 -1
- package/lib/commonjs/renderer/components/imageFilters/Blur.js +2 -2
- package/lib/commonjs/renderer/components/imageFilters/Blur.js.map +1 -1
- package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js +1 -1
- package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
- package/lib/commonjs/renderer/components/imageFilters/Morphology.js +2 -2
- package/lib/commonjs/renderer/components/imageFilters/Morphology.js.map +1 -1
- package/lib/commonjs/renderer/components/imageFilters/Offset.js +2 -2
- package/lib/commonjs/renderer/components/imageFilters/Offset.js.map +1 -1
- package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js +1 -1
- package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
- package/lib/commonjs/renderer/components/imageFilters/Shadow.js +1 -1
- package/lib/commonjs/renderer/components/imageFilters/Shadow.js.map +1 -1
- package/lib/commonjs/renderer/components/imageFilters/index.js.map +1 -1
- package/lib/commonjs/renderer/components/index.js.map +1 -1
- package/lib/commonjs/renderer/components/maskFilters/Blur.js +2 -2
- package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -1
- package/lib/commonjs/renderer/components/maskFilters/index.js.map +1 -1
- package/lib/commonjs/renderer/components/paragraph/Paragraph.js +1 -1
- package/lib/commonjs/renderer/components/paragraph/Paragraph.js.map +1 -1
- package/lib/commonjs/renderer/components/paragraph/index.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Corner.js +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Corner.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Dash.js +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Dash.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Discrete.js +2 -2
- package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Line2D.js +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Line2D.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Path1D.js +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Path1D.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Path2D.js +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Path2D.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Sum.js +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Sum.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/index.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/Color.js +1 -1
- package/lib/commonjs/renderer/components/shaders/Color.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/FractalNoise.js +2 -2
- package/lib/commonjs/renderer/components/shaders/FractalNoise.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/LinearGradient.js +1 -1
- package/lib/commonjs/renderer/components/shaders/LinearGradient.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/RadialGradient.js +1 -1
- package/lib/commonjs/renderer/components/shaders/RadialGradient.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/Shader.js +2 -2
- package/lib/commonjs/renderer/components/shaders/Shader.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/ShaderLib.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/SweepGradient.js +1 -1
- package/lib/commonjs/renderer/components/shaders/SweepGradient.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/Turbulence.js +2 -2
- package/lib/commonjs/renderer/components/shaders/Turbulence.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js +1 -1
- package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/index.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Atlas.js +1 -1
- package/lib/commonjs/renderer/components/shapes/Atlas.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Box.js +1 -1
- package/lib/commonjs/renderer/components/shapes/Box.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Circle.js +1 -1
- package/lib/commonjs/renderer/components/shapes/Circle.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/DiffRect.js +1 -1
- package/lib/commonjs/renderer/components/shapes/DiffRect.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Fill.js +1 -1
- package/lib/commonjs/renderer/components/shapes/Fill.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/FitBox.js +1 -1
- package/lib/commonjs/renderer/components/shapes/FitBox.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Line.js +1 -1
- package/lib/commonjs/renderer/components/shapes/Line.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Oval.js +1 -1
- package/lib/commonjs/renderer/components/shapes/Oval.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Patch.js +1 -1
- package/lib/commonjs/renderer/components/shapes/Patch.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Path.js +2 -2
- package/lib/commonjs/renderer/components/shapes/Path.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Points.js +2 -2
- package/lib/commonjs/renderer/components/shapes/Points.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Rect.js +1 -1
- package/lib/commonjs/renderer/components/shapes/Rect.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/RoundedRect.js +1 -1
- package/lib/commonjs/renderer/components/shapes/RoundedRect.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Vertices.js +2 -2
- package/lib/commonjs/renderer/components/shapes/Vertices.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/index.js.map +1 -1
- package/lib/commonjs/renderer/components/text/Glyphs.js +2 -2
- package/lib/commonjs/renderer/components/text/Glyphs.js.map +1 -1
- package/lib/commonjs/renderer/components/text/Text.js +2 -2
- package/lib/commonjs/renderer/components/text/Text.js.map +1 -1
- package/lib/commonjs/renderer/components/text/TextBlob.js +2 -2
- package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -1
- package/lib/commonjs/renderer/components/text/TextPath.js +2 -2
- package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -1
- package/lib/commonjs/renderer/components/text/index.js.map +1 -1
- package/lib/commonjs/renderer/index.js.map +1 -1
- package/lib/commonjs/renderer/processors/Animations/Animations.js.map +1 -1
- package/lib/commonjs/renderer/processors/Animations/index.js.map +1 -1
- package/lib/commonjs/renderer/processors/index.js.map +1 -1
- package/lib/commonjs/renderer/processors/math/Coordinates.js.map +1 -1
- package/lib/commonjs/renderer/processors/math/Math.js.map +1 -1
- package/lib/commonjs/renderer/processors/math/Transforms.js.map +1 -1
- package/lib/commonjs/renderer/processors/math/index.js.map +1 -1
- package/lib/commonjs/renderer/typeddash.js.map +1 -1
- package/lib/commonjs/skia/NativeSetup.js +1 -1
- package/lib/commonjs/skia/NativeSetup.js.map +1 -1
- package/lib/commonjs/skia/Skia.js.map +1 -1
- package/lib/commonjs/skia/Skia.web.js.map +1 -1
- package/lib/commonjs/skia/core/AnimatedImage.d.ts +1 -1
- package/lib/commonjs/skia/core/AnimatedImage.js.map +1 -1
- package/lib/commonjs/skia/core/Data.d.ts +3 -3
- package/lib/commonjs/skia/core/Data.js.map +1 -1
- package/lib/commonjs/skia/core/Font.d.ts +1 -1
- package/lib/commonjs/skia/core/Font.js.map +1 -1
- package/lib/commonjs/skia/core/Image.d.ts +2 -3
- package/lib/commonjs/skia/core/Image.js.map +1 -1
- package/lib/commonjs/skia/core/Matrix.js.map +1 -1
- package/lib/commonjs/skia/core/Picture.d.ts +1 -1
- package/lib/commonjs/skia/core/Picture.js.map +1 -1
- package/lib/commonjs/skia/core/RRect.js.map +1 -1
- package/lib/commonjs/skia/core/Rect.js.map +1 -1
- package/lib/commonjs/skia/core/SVG.d.ts +1 -1
- package/lib/commonjs/skia/core/SVG.js.map +1 -1
- package/lib/commonjs/skia/core/SVG.web.d.ts +1 -1
- package/lib/commonjs/skia/core/SVG.web.js.map +1 -1
- package/lib/commonjs/skia/core/Typeface.d.ts +1 -1
- package/lib/commonjs/skia/core/Typeface.js.map +1 -1
- package/lib/commonjs/skia/core/Vector.js.map +1 -1
- package/lib/commonjs/skia/core/index.js.map +1 -1
- package/lib/commonjs/skia/index.js.map +1 -1
- package/lib/commonjs/skia/types/AnimatedImage/AnimatedImage.js.map +1 -1
- package/lib/commonjs/skia/types/AnimatedImage/AnimatedImageFactory.js.map +1 -1
- package/lib/commonjs/skia/types/AnimatedImage/index.js.map +1 -1
- package/lib/commonjs/skia/types/Canvas.js.map +1 -1
- package/lib/commonjs/skia/types/Color.js.map +1 -1
- package/lib/commonjs/skia/types/ColorFilter/ColorFilter.js.map +1 -1
- package/lib/commonjs/skia/types/ColorFilter/ColorFilterFactory.js.map +1 -1
- package/lib/commonjs/skia/types/ColorFilter/index.js.map +1 -1
- package/lib/commonjs/skia/types/ContourMeasure.js.map +1 -1
- package/lib/commonjs/skia/types/Data/Data.d.ts +1 -1
- package/lib/commonjs/skia/types/Data/Data.js.map +1 -1
- package/lib/commonjs/skia/types/Data/DataFactory.js.map +1 -1
- package/lib/commonjs/skia/types/Data/index.js.map +1 -1
- package/lib/commonjs/skia/types/Font/Font.js.map +1 -1
- package/lib/commonjs/skia/types/Font/FontMgr.js.map +1 -1
- package/lib/commonjs/skia/types/Font/FontMgrFactory.js.map +1 -1
- package/lib/commonjs/skia/types/Font/index.js.map +1 -1
- package/lib/commonjs/skia/types/Image/Image.js.map +1 -1
- package/lib/commonjs/skia/types/Image/ImageFactory.d.ts +16 -16
- package/lib/commonjs/skia/types/Image/ImageFactory.js.map +1 -1
- package/lib/commonjs/skia/types/Image/index.js.map +1 -1
- package/lib/commonjs/skia/types/ImageFilter/ImageFilter.js.map +1 -1
- package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -1
- package/lib/commonjs/skia/types/ImageFilter/index.js.map +1 -1
- package/lib/commonjs/skia/types/JsiInstance.js.map +1 -1
- package/lib/commonjs/skia/types/MaskFilter.d.ts +3 -3
- package/lib/commonjs/skia/types/MaskFilter.js.map +1 -1
- package/lib/commonjs/skia/types/Matrix.js.map +1 -1
- package/lib/commonjs/skia/types/Matrix4.js.map +1 -1
- package/lib/commonjs/skia/types/NativeBuffer/NativeBufferFactory.d.ts +3 -3
- package/lib/commonjs/skia/types/NativeBuffer/NativeBufferFactory.js.map +1 -1
- package/lib/commonjs/skia/types/NativeBuffer/index.js.map +1 -1
- package/lib/commonjs/skia/types/Paint/BlendMode.d.ts +28 -28
- package/lib/commonjs/skia/types/Paint/BlendMode.js.map +1 -1
- package/lib/commonjs/skia/types/Paint/Paint.js.map +1 -1
- package/lib/commonjs/skia/types/Paint/index.js.map +1 -1
- package/lib/commonjs/skia/types/Paragraph/Paragraph.js.map +1 -1
- package/lib/commonjs/skia/types/Paragraph/ParagraphBuilder.js.map +1 -1
- package/lib/commonjs/skia/types/Paragraph/ParagraphStyle.js.map +1 -1
- package/lib/commonjs/skia/types/Paragraph/TextStyle.js.map +1 -1
- package/lib/commonjs/skia/types/Paragraph/TypefaceFontProvider.js.map +1 -1
- package/lib/commonjs/skia/types/Paragraph/TypefaceFontProviderFactory.js.map +1 -1
- package/lib/commonjs/skia/types/Paragraph/index.js.map +1 -1
- package/lib/commonjs/skia/types/Path/Path.d.ts +4 -4
- package/lib/commonjs/skia/types/Path/Path.js.map +1 -1
- package/lib/commonjs/skia/types/Path/PathFactory.js.map +1 -1
- package/lib/commonjs/skia/types/Path/index.js.map +1 -1
- package/lib/commonjs/skia/types/PathEffect.js.map +1 -1
- package/lib/commonjs/skia/types/Picture/Picture.js.map +1 -1
- package/lib/commonjs/skia/types/Picture/PictureFactory.js.map +1 -1
- package/lib/commonjs/skia/types/Picture/PictureRecorder.js.map +1 -1
- package/lib/commonjs/skia/types/Picture/index.js.map +1 -1
- package/lib/commonjs/skia/types/Point.js.map +1 -1
- package/lib/commonjs/skia/types/RRect.js.map +1 -1
- package/lib/commonjs/skia/types/RSXform.js.map +1 -1
- package/lib/commonjs/skia/types/Rect.js.map +1 -1
- package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffect.js.map +1 -1
- package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffectFactory.js.map +1 -1
- package/lib/commonjs/skia/types/RuntimeEffect/index.js.map +1 -1
- package/lib/commonjs/skia/types/SVG/SVG.js.map +1 -1
- package/lib/commonjs/skia/types/SVG/SVGFactory.js.map +1 -1
- package/lib/commonjs/skia/types/SVG/index.js.map +1 -1
- package/lib/commonjs/skia/types/Shader/Shader.js.map +1 -1
- package/lib/commonjs/skia/types/Shader/ShaderFactory.js.map +1 -1
- package/lib/commonjs/skia/types/Shader/index.js.map +1 -1
- package/lib/commonjs/skia/types/Size.js.map +1 -1
- package/lib/commonjs/skia/types/Skia.js.map +1 -1
- package/lib/commonjs/skia/types/Surface/Surface.js.map +1 -1
- package/lib/commonjs/skia/types/Surface/SurfaceFactory.js.map +1 -1
- package/lib/commonjs/skia/types/Surface/index.js.map +1 -1
- package/lib/commonjs/skia/types/TextBlob.js.map +1 -1
- package/lib/commonjs/skia/types/Typeface/Typeface.js.map +1 -1
- package/lib/commonjs/skia/types/Typeface/TypefaceFactory.js.map +1 -1
- package/lib/commonjs/skia/types/Typeface/index.js.map +1 -1
- package/lib/commonjs/skia/types/Vertices/Vertices.js.map +1 -1
- package/lib/commonjs/skia/types/Vertices/index.js.map +1 -1
- package/lib/commonjs/skia/types/Video/Video.js.map +1 -1
- package/lib/commonjs/skia/types/Video/index.js.map +1 -1
- package/lib/commonjs/skia/types/index.js.map +1 -1
- package/lib/commonjs/skia/web/CanvasKitWebGLBufferImpl.js +2 -2
- package/lib/commonjs/skia/web/CanvasKitWebGLBufferImpl.js.map +1 -1
- package/lib/commonjs/skia/web/Host.js +2 -2
- package/lib/commonjs/skia/web/Host.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkAnimatedImage.js +2 -2
- package/lib/commonjs/skia/web/JsiSkAnimatedImage.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkAnimatedImageFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkCanvas.d.ts +1 -1
- package/lib/commonjs/skia/web/JsiSkCanvas.js +2 -2
- package/lib/commonjs/skia/web/JsiSkCanvas.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkColor.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkColorFilter.js +2 -2
- package/lib/commonjs/skia/web/JsiSkColorFilter.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkContourMeasure.js +2 -2
- package/lib/commonjs/skia/web/JsiSkContourMeasure.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js +2 -2
- package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkData.js +2 -2
- package/lib/commonjs/skia/web/JsiSkData.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkDataFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkFont.js +2 -2
- package/lib/commonjs/skia/web/JsiSkFont.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkFontMgr.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkImage.js +2 -2
- package/lib/commonjs/skia/web/JsiSkImage.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkImageFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkImageFilter.js +2 -2
- package/lib/commonjs/skia/web/JsiSkImageFilter.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkMaskFilter.js +2 -2
- package/lib/commonjs/skia/web/JsiSkMaskFilter.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkMatrix.js +2 -2
- package/lib/commonjs/skia/web/JsiSkMatrix.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkNativeBufferFactory.d.ts +1 -1
- package/lib/commonjs/skia/web/JsiSkNativeBufferFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkPaint.js +2 -2
- package/lib/commonjs/skia/web/JsiSkPaint.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkParagraph.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkParagraphBuilder.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkParagraphStyle.d.ts +1 -1
- package/lib/commonjs/skia/web/JsiSkParagraphStyle.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkPath.js +2 -2
- package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkPathEffect.js +2 -2
- package/lib/commonjs/skia/web/JsiSkPathEffect.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkPathFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkPicture.js +2 -2
- package/lib/commonjs/skia/web/JsiSkPicture.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkPictureFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkPictureRecorder.js +2 -2
- package/lib/commonjs/skia/web/JsiSkPictureRecorder.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkPoint.js +2 -2
- package/lib/commonjs/skia/web/JsiSkPoint.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkRRect.js +2 -2
- package/lib/commonjs/skia/web/JsiSkRRect.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkRSXform.js +2 -2
- package/lib/commonjs/skia/web/JsiSkRSXform.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkRect.js +2 -2
- package/lib/commonjs/skia/web/JsiSkRect.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js +2 -2
- package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkSVG.js +2 -2
- package/lib/commonjs/skia/web/JsiSkSVG.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkSVGFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkShader.js +2 -2
- package/lib/commonjs/skia/web/JsiSkShader.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkShaderFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkSurface.js +2 -2
- package/lib/commonjs/skia/web/JsiSkSurface.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkTextBlob.js +2 -2
- package/lib/commonjs/skia/web/JsiSkTextBlob.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkTextStyle.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkTypeface.js +2 -2
- package/lib/commonjs/skia/web/JsiSkTypeface.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.js +2 -2
- package/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkTypefaceFontProviderFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkVertices.js +2 -2
- package/lib/commonjs/skia/web/JsiSkVertices.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkVerticesFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkia.js.map +1 -1
- package/lib/commonjs/skia/web/JsiVideo.js +2 -2
- package/lib/commonjs/skia/web/JsiVideo.js.map +1 -1
- package/lib/commonjs/skia/web/index.js.map +1 -1
- package/lib/commonjs/specs/NativeSkiaModule.js.map +1 -1
- package/lib/commonjs/specs/NativeSkiaModule.web.js.map +1 -1
- package/lib/commonjs/specs/SkiaDomViewNativeComponent.d.ts +0 -1
- package/lib/commonjs/specs/SkiaDomViewNativeComponent.js +1 -1
- package/lib/commonjs/specs/SkiaDomViewNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/SkiaPictureViewNativeComponent.d.ts +0 -1
- package/lib/commonjs/specs/SkiaPictureViewNativeComponent.js +1 -1
- package/lib/commonjs/specs/SkiaPictureViewNativeComponent.js.map +1 -1
- package/lib/commonjs/views/SkiaBaseWebView.js +4 -4
- package/lib/commonjs/views/SkiaBaseWebView.js.map +1 -1
- package/lib/commonjs/views/SkiaDomView.d.ts +0 -4
- package/lib/commonjs/views/SkiaDomView.js +4 -12
- package/lib/commonjs/views/SkiaDomView.js.map +1 -1
- package/lib/commonjs/views/SkiaDomView.web.js.map +1 -1
- package/lib/commonjs/views/SkiaJSDomView.js +4 -4
- package/lib/commonjs/views/SkiaJSDomView.js.map +1 -1
- package/lib/commonjs/views/SkiaJSDomView.web.js.map +1 -1
- package/lib/commonjs/views/SkiaPictureView.js +4 -4
- package/lib/commonjs/views/SkiaPictureView.js.map +1 -1
- package/lib/commonjs/views/SkiaPictureView.web.js.map +1 -1
- package/lib/commonjs/views/SkiaViewNativeId.js.map +1 -1
- package/lib/commonjs/views/api.js.map +1 -1
- package/lib/commonjs/views/index.js.map +1 -1
- package/lib/commonjs/views/types.js.map +1 -1
- package/lib/commonjs/views/useTouchHandler.js.map +1 -1
- package/lib/commonjs/web/LoadSkiaWeb.js +1 -1
- package/lib/commonjs/web/LoadSkiaWeb.js.map +1 -1
- package/lib/commonjs/web/WithSkiaWeb.js +1 -1
- package/lib/commonjs/web/WithSkiaWeb.js.map +1 -1
- package/lib/commonjs/web/index.js.map +1 -1
- package/lib/module/Platform/IPlatform.d.ts +0 -1
- package/lib/module/Platform/IPlatform.js.map +1 -1
- package/lib/module/Platform/Platform.js.map +1 -1
- package/lib/module/Platform/Platform.web.js +4 -0
- 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.map +1 -1
- package/lib/module/animation/functions/interpolateColors.js.map +1 -1
- 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 +2 -2
- package/lib/module/dom/nodes/DrawingNode.js.map +1 -1
- package/lib/module/dom/nodes/GroupNode.js.map +1 -1
- package/lib/module/dom/nodes/JsiSkDOM.js.map +1 -1
- package/lib/module/dom/nodes/LayerNode.js.map +1 -1
- package/lib/module/dom/nodes/Node.js +2 -2
- package/lib/module/dom/nodes/Node.js.map +1 -1
- package/lib/module/dom/nodes/PaintNode.js.map +1 -1
- package/lib/module/dom/nodes/RenderNode.js +2 -2
- package/lib/module/dom/nodes/RenderNode.js.map +1 -1
- 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.map +1 -1
- package/lib/module/dom/nodes/datatypes/Gradient.js.map +1 -1
- package/lib/module/dom/nodes/datatypes/Path.js.map +1 -1
- package/lib/module/dom/nodes/datatypes/Radius.js.map +1 -1
- package/lib/module/dom/nodes/datatypes/Rect.js.map +1 -1
- 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.map +1 -1
- package/lib/module/dom/nodes/drawings/BackdropFilterNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/Box.js.map +1 -1
- package/lib/module/dom/nodes/drawings/CircleNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/DiffRectNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/FillNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/ImageNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/ImageSVG.js.map +1 -1
- package/lib/module/dom/nodes/drawings/LineNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/OvalNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/ParagraphNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/PatchNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/PathNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/PictureNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/PointsNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/RRectNode.js +2 -2
- package/lib/module/dom/nodes/drawings/RRectNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/RectNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/Text.js.map +1 -1
- 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.map +1 -1
- package/lib/module/dom/nodes/paint/ColorFilters.js.map +1 -1
- package/lib/module/dom/nodes/paint/ImageFilters.js.map +1 -1
- package/lib/module/dom/nodes/paint/MaskFilters.js.map +1 -1
- package/lib/module/dom/nodes/paint/PathEffects.js.map +1 -1
- 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/ColorFilters.js.map +1 -1
- package/lib/module/dom/types/Common.js.map +1 -1
- package/lib/module/dom/types/DeclarationContext.js +2 -2
- package/lib/module/dom/types/DeclarationContext.js.map +1 -1
- package/lib/module/dom/types/DrawingContext.js +2 -2
- package/lib/module/dom/types/DrawingContext.js.map +1 -1
- package/lib/module/dom/types/Drawings.js.map +1 -1
- package/lib/module/dom/types/ImageFilters.js.map +1 -1
- package/lib/module/dom/types/MaskFilters.js.map +1 -1
- package/lib/module/dom/types/Node.js.map +1 -1
- package/lib/module/dom/types/NodeType.js.map +1 -1
- package/lib/module/dom/types/Paragraph.js.map +1 -1
- package/lib/module/dom/types/PathEffects.js.map +1 -1
- package/lib/module/dom/types/Shaders.js.map +1 -1
- package/lib/module/dom/types/SkDOM.js.map +1 -1
- package/lib/module/dom/types/index.js.map +1 -1
- package/lib/module/external/ModuleProxy.js.map +1 -1
- package/lib/module/external/index.js.map +1 -1
- package/lib/module/external/reanimated/ReanimatedProxy.js.map +1 -1
- package/lib/module/external/reanimated/buffers.d.ts +4 -4
- 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.js.map +1 -1
- package/lib/module/external/reanimated/renderHelpers.js.map +1 -1
- package/lib/module/external/reanimated/textures.js.map +1 -1
- package/lib/module/external/reanimated/useAnimatedImageValue.js.map +1 -1
- package/lib/module/external/reanimated/useDerivedValueOnJS.js.map +1 -1
- package/lib/module/external/reanimated/useVideo.js.map +1 -1
- package/lib/module/external/reanimated/useVideoLoading.js.map +1 -1
- package/lib/module/external/reanimated/useVideoLoading.web.js.map +1 -1
- package/lib/module/headless/index.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/mock/index.js +4 -0
- package/lib/module/mock/index.js.map +1 -1
- package/lib/module/renderer/Canvas.d.ts +2 -2
- package/lib/module/renderer/Canvas.js +1 -1
- package/lib/module/renderer/Canvas.js.map +1 -1
- package/lib/module/renderer/Container.d.ts +1 -0
- package/lib/module/renderer/Container.js +3 -2
- package/lib/module/renderer/Container.js.map +1 -1
- package/lib/module/renderer/DrawingContext.js.map +1 -1
- package/lib/module/renderer/HostComponents.js.map +1 -1
- package/lib/module/renderer/HostConfig.d.ts +0 -1
- package/lib/module/renderer/HostConfig.js +7 -3
- package/lib/module/renderer/HostConfig.js.map +1 -1
- package/lib/module/renderer/Offscreen.js.map +1 -1
- package/lib/module/renderer/Reconciler.js +3 -2
- 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 +2 -2
- package/lib/module/renderer/components/Group.js.map +1 -1
- 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 +1 -1
- package/lib/module/renderer/components/backdrop/BackdropBlur.js.map +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/lib/module/renderer/components/imageFilters/Morphology.js.map +1 -1
- package/lib/module/renderer/components/imageFilters/Offset.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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.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 +1 -1
- package/lib/module/renderer/components/shapes/Path.js.map +1 -1
- package/lib/module/renderer/components/shapes/Points.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/lib/module/renderer/components/text/Glyphs.js.map +1 -1
- package/lib/module/renderer/components/text/Text.js +1 -1
- package/lib/module/renderer/components/text/Text.js.map +1 -1
- package/lib/module/renderer/components/text/TextBlob.js +1 -1
- package/lib/module/renderer/components/text/TextBlob.js.map +1 -1
- package/lib/module/renderer/components/text/TextPath.js +1 -1
- 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/Animations.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.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.map +1 -1
- package/lib/module/skia/NativeSetup.js.map +1 -1
- 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.d.ts +1 -1
- package/lib/module/skia/core/AnimatedImage.js.map +1 -1
- package/lib/module/skia/core/Data.d.ts +3 -3
- package/lib/module/skia/core/Data.js.map +1 -1
- package/lib/module/skia/core/Font.d.ts +1 -1
- package/lib/module/skia/core/Font.js.map +1 -1
- package/lib/module/skia/core/Image.d.ts +2 -3
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- package/lib/module/skia/core/SVG.js.map +1 -1
- package/lib/module/skia/core/SVG.web.d.ts +1 -1
- package/lib/module/skia/core/SVG.web.js.map +1 -1
- package/lib/module/skia/core/Typeface.d.ts +1 -1
- package/lib/module/skia/core/Typeface.js.map +1 -1
- 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/AnimatedImage.js.map +1 -1
- package/lib/module/skia/types/AnimatedImage/AnimatedImageFactory.js.map +1 -1
- package/lib/module/skia/types/AnimatedImage/index.js.map +1 -1
- package/lib/module/skia/types/Canvas.js.map +1 -1
- package/lib/module/skia/types/Color.js.map +1 -1
- package/lib/module/skia/types/ColorFilter/ColorFilter.js.map +1 -1
- package/lib/module/skia/types/ColorFilter/ColorFilterFactory.js.map +1 -1
- package/lib/module/skia/types/ColorFilter/index.js.map +1 -1
- package/lib/module/skia/types/ContourMeasure.js.map +1 -1
- package/lib/module/skia/types/Data/Data.d.ts +1 -1
- package/lib/module/skia/types/Data/Data.js.map +1 -1
- package/lib/module/skia/types/Data/DataFactory.js.map +1 -1
- package/lib/module/skia/types/Data/index.js.map +1 -1
- package/lib/module/skia/types/Font/Font.js.map +1 -1
- package/lib/module/skia/types/Font/FontMgr.js.map +1 -1
- package/lib/module/skia/types/Font/FontMgrFactory.js.map +1 -1
- package/lib/module/skia/types/Font/index.js.map +1 -1
- package/lib/module/skia/types/Image/Image.js.map +1 -1
- package/lib/module/skia/types/Image/ImageFactory.d.ts +16 -16
- 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.map +1 -1
- 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/JsiInstance.js.map +1 -1
- package/lib/module/skia/types/MaskFilter.d.ts +3 -3
- 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.map +1 -1
- package/lib/module/skia/types/NativeBuffer/NativeBufferFactory.d.ts +3 -3
- package/lib/module/skia/types/NativeBuffer/NativeBufferFactory.js.map +1 -1
- package/lib/module/skia/types/NativeBuffer/index.js.map +1 -1
- package/lib/module/skia/types/Paint/BlendMode.d.ts +28 -28
- package/lib/module/skia/types/Paint/BlendMode.js.map +1 -1
- 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/Paragraph.js.map +1 -1
- package/lib/module/skia/types/Paragraph/ParagraphBuilder.js.map +1 -1
- package/lib/module/skia/types/Paragraph/ParagraphStyle.js.map +1 -1
- package/lib/module/skia/types/Paragraph/TextStyle.js.map +1 -1
- package/lib/module/skia/types/Paragraph/TypefaceFontProvider.js.map +1 -1
- package/lib/module/skia/types/Paragraph/TypefaceFontProviderFactory.js.map +1 -1
- package/lib/module/skia/types/Paragraph/index.js.map +1 -1
- package/lib/module/skia/types/Path/Path.d.ts +4 -4
- package/lib/module/skia/types/Path/Path.js.map +1 -1
- package/lib/module/skia/types/Path/PathFactory.js.map +1 -1
- package/lib/module/skia/types/Path/index.js.map +1 -1
- package/lib/module/skia/types/PathEffect.js.map +1 -1
- package/lib/module/skia/types/Picture/Picture.js.map +1 -1
- package/lib/module/skia/types/Picture/PictureFactory.js.map +1 -1
- package/lib/module/skia/types/Picture/PictureRecorder.js.map +1 -1
- package/lib/module/skia/types/Picture/index.js.map +1 -1
- package/lib/module/skia/types/Point.js.map +1 -1
- package/lib/module/skia/types/RRect.js.map +1 -1
- package/lib/module/skia/types/RSXform.js.map +1 -1
- package/lib/module/skia/types/Rect.js.map +1 -1
- package/lib/module/skia/types/RuntimeEffect/RuntimeEffect.js.map +1 -1
- package/lib/module/skia/types/RuntimeEffect/RuntimeEffectFactory.js.map +1 -1
- package/lib/module/skia/types/RuntimeEffect/index.js.map +1 -1
- package/lib/module/skia/types/SVG/SVG.js.map +1 -1
- package/lib/module/skia/types/SVG/SVGFactory.js.map +1 -1
- package/lib/module/skia/types/SVG/index.js.map +1 -1
- package/lib/module/skia/types/Shader/Shader.js.map +1 -1
- package/lib/module/skia/types/Shader/ShaderFactory.js.map +1 -1
- package/lib/module/skia/types/Shader/index.js.map +1 -1
- package/lib/module/skia/types/Size.js.map +1 -1
- package/lib/module/skia/types/Skia.js.map +1 -1
- package/lib/module/skia/types/Surface/Surface.js.map +1 -1
- package/lib/module/skia/types/Surface/SurfaceFactory.js.map +1 -1
- package/lib/module/skia/types/Surface/index.js.map +1 -1
- package/lib/module/skia/types/TextBlob.js.map +1 -1
- package/lib/module/skia/types/Typeface/Typeface.js.map +1 -1
- package/lib/module/skia/types/Typeface/TypefaceFactory.js.map +1 -1
- package/lib/module/skia/types/Typeface/index.js.map +1 -1
- 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/Video/Video.js.map +1 -1
- package/lib/module/skia/types/Video/index.js.map +1 -1
- package/lib/module/skia/types/index.js.map +1 -1
- package/lib/module/skia/web/CanvasKitWebGLBufferImpl.js +2 -2
- package/lib/module/skia/web/CanvasKitWebGLBufferImpl.js.map +1 -1
- package/lib/module/skia/web/Host.js +2 -2
- package/lib/module/skia/web/Host.js.map +1 -1
- package/lib/module/skia/web/JsiSkAnimatedImage.js +2 -2
- package/lib/module/skia/web/JsiSkAnimatedImage.js.map +1 -1
- package/lib/module/skia/web/JsiSkAnimatedImageFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkCanvas.d.ts +1 -1
- package/lib/module/skia/web/JsiSkCanvas.js +2 -2
- package/lib/module/skia/web/JsiSkCanvas.js.map +1 -1
- package/lib/module/skia/web/JsiSkColor.js.map +1 -1
- package/lib/module/skia/web/JsiSkColorFilter.js +2 -2
- package/lib/module/skia/web/JsiSkColorFilter.js.map +1 -1
- package/lib/module/skia/web/JsiSkColorFilterFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkContourMeasure.js +2 -2
- package/lib/module/skia/web/JsiSkContourMeasure.js.map +1 -1
- package/lib/module/skia/web/JsiSkContourMeasureIter.js +2 -2
- package/lib/module/skia/web/JsiSkContourMeasureIter.js.map +1 -1
- package/lib/module/skia/web/JsiSkData.js +2 -2
- package/lib/module/skia/web/JsiSkData.js.map +1 -1
- package/lib/module/skia/web/JsiSkDataFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkFont.js +2 -2
- package/lib/module/skia/web/JsiSkFont.js.map +1 -1
- package/lib/module/skia/web/JsiSkFontMgr.js.map +1 -1
- package/lib/module/skia/web/JsiSkFontMgrFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkImage.js +2 -2
- package/lib/module/skia/web/JsiSkImage.js.map +1 -1
- package/lib/module/skia/web/JsiSkImageFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkImageFilter.js +2 -2
- package/lib/module/skia/web/JsiSkImageFilter.js.map +1 -1
- package/lib/module/skia/web/JsiSkImageFilterFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkMaskFilter.js +2 -2
- package/lib/module/skia/web/JsiSkMaskFilter.js.map +1 -1
- package/lib/module/skia/web/JsiSkMaskFilterFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkMatrix.js +2 -2
- package/lib/module/skia/web/JsiSkMatrix.js.map +1 -1
- package/lib/module/skia/web/JsiSkNativeBufferFactory.d.ts +1 -1
- package/lib/module/skia/web/JsiSkNativeBufferFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkPaint.js +2 -2
- package/lib/module/skia/web/JsiSkPaint.js.map +1 -1
- package/lib/module/skia/web/JsiSkParagraph.js.map +1 -1
- package/lib/module/skia/web/JsiSkParagraphBuilder.js.map +1 -1
- package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkParagraphStyle.d.ts +1 -1
- package/lib/module/skia/web/JsiSkParagraphStyle.js.map +1 -1
- package/lib/module/skia/web/JsiSkPath.js +2 -2
- package/lib/module/skia/web/JsiSkPath.js.map +1 -1
- package/lib/module/skia/web/JsiSkPathEffect.js +2 -2
- package/lib/module/skia/web/JsiSkPathEffect.js.map +1 -1
- package/lib/module/skia/web/JsiSkPathEffectFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkPathFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkPicture.js +2 -2
- package/lib/module/skia/web/JsiSkPicture.js.map +1 -1
- package/lib/module/skia/web/JsiSkPictureFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkPictureRecorder.js +2 -2
- package/lib/module/skia/web/JsiSkPictureRecorder.js.map +1 -1
- package/lib/module/skia/web/JsiSkPoint.js +2 -2
- package/lib/module/skia/web/JsiSkPoint.js.map +1 -1
- package/lib/module/skia/web/JsiSkRRect.js +2 -2
- package/lib/module/skia/web/JsiSkRRect.js.map +1 -1
- package/lib/module/skia/web/JsiSkRSXform.js +2 -2
- package/lib/module/skia/web/JsiSkRSXform.js.map +1 -1
- package/lib/module/skia/web/JsiSkRect.js +2 -2
- package/lib/module/skia/web/JsiSkRect.js.map +1 -1
- package/lib/module/skia/web/JsiSkRuntimeEffect.js +2 -2
- package/lib/module/skia/web/JsiSkRuntimeEffect.js.map +1 -1
- package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkSVG.js +2 -2
- package/lib/module/skia/web/JsiSkSVG.js.map +1 -1
- package/lib/module/skia/web/JsiSkSVGFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkShader.js +2 -2
- package/lib/module/skia/web/JsiSkShader.js.map +1 -1
- package/lib/module/skia/web/JsiSkShaderFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkSurface.js +2 -2
- package/lib/module/skia/web/JsiSkSurface.js.map +1 -1
- package/lib/module/skia/web/JsiSkSurfaceFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkTextBlob.js +2 -2
- package/lib/module/skia/web/JsiSkTextBlob.js.map +1 -1
- package/lib/module/skia/web/JsiSkTextBlobFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkTextStyle.js.map +1 -1
- package/lib/module/skia/web/JsiSkTypeface.js +2 -2
- package/lib/module/skia/web/JsiSkTypeface.js.map +1 -1
- package/lib/module/skia/web/JsiSkTypefaceFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkTypefaceFontProvider.js +2 -2
- package/lib/module/skia/web/JsiSkTypefaceFontProvider.js.map +1 -1
- package/lib/module/skia/web/JsiSkTypefaceFontProviderFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkVertices.js +2 -2
- package/lib/module/skia/web/JsiSkVertices.js.map +1 -1
- 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/JsiVideo.js +2 -2
- package/lib/module/skia/web/JsiVideo.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.map +1 -1
- package/lib/module/specs/SkiaDomViewNativeComponent.d.ts +0 -1
- package/lib/module/specs/SkiaDomViewNativeComponent.js.map +1 -1
- package/lib/module/specs/SkiaPictureViewNativeComponent.d.ts +0 -1
- package/lib/module/specs/SkiaPictureViewNativeComponent.js.map +1 -1
- package/lib/module/views/SkiaBaseWebView.js +3 -3
- package/lib/module/views/SkiaBaseWebView.js.map +1 -1
- package/lib/module/views/SkiaDomView.d.ts +0 -4
- package/lib/module/views/SkiaDomView.js +3 -11
- package/lib/module/views/SkiaDomView.js.map +1 -1
- package/lib/module/views/SkiaDomView.web.js.map +1 -1
- package/lib/module/views/SkiaJSDomView.js +3 -3
- 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 +3 -3
- package/lib/module/views/SkiaPictureView.js.map +1 -1
- 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.map +1 -1
- package/lib/module/views/useTouchHandler.js.map +1 -1
- package/lib/module/web/LoadSkiaWeb.js.map +1 -1
- package/lib/module/web/WithSkiaWeb.js.map +1 -1
- package/lib/module/web/index.js.map +1 -1
- package/lib/typescript/jest.config.d.ts +2 -0
- package/lib/typescript/lib/commonjs/Platform/IPlatform.d.ts +1 -0
- package/lib/typescript/lib/commonjs/Platform/Platform.d.ts +9 -0
- package/lib/typescript/lib/commonjs/Platform/Platform.web.d.ts +14 -0
- package/lib/typescript/lib/commonjs/Platform/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/animation/functions/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/animation/functions/interpolate.d.ts +7 -0
- package/lib/typescript/lib/commonjs/animation/functions/interpolateColors.d.ts +3 -0
- package/lib/typescript/lib/commonjs/animation/functions/interpolatePaths.d.ts +18 -0
- package/lib/typescript/lib/commonjs/animation/functions/interpolateVector.d.ts +9 -0
- package/lib/typescript/lib/commonjs/animation/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/dom/nodes/DrawingNode.d.ts +6 -0
- package/lib/typescript/lib/commonjs/dom/nodes/GroupNode.d.ts +6 -0
- package/lib/typescript/lib/commonjs/dom/nodes/JsiSkDOM.d.ts +70 -0
- package/lib/typescript/lib/commonjs/dom/nodes/LayerNode.d.ts +6 -0
- package/lib/typescript/lib/commonjs/dom/nodes/Node.d.ts +20 -0
- package/lib/typescript/lib/commonjs/dom/nodes/PaintNode.d.ts +6 -0
- package/lib/typescript/lib/commonjs/dom/nodes/RenderNode.d.ts +16 -0
- package/lib/typescript/lib/commonjs/dom/nodes/datatypes/Circle.d.ts +3 -0
- package/lib/typescript/lib/commonjs/dom/nodes/datatypes/Enum.d.ts +2 -0
- package/lib/typescript/lib/commonjs/dom/nodes/datatypes/Fitting.d.ts +45 -0
- package/lib/typescript/lib/commonjs/dom/nodes/datatypes/Gradient.d.ts +16 -0
- package/lib/typescript/lib/commonjs/dom/nodes/datatypes/Path.d.ts +3 -0
- package/lib/typescript/lib/commonjs/dom/nodes/datatypes/Radius.d.ts +2 -0
- package/lib/typescript/lib/commonjs/dom/nodes/datatypes/Rect.d.ts +4 -0
- package/lib/typescript/lib/commonjs/dom/nodes/datatypes/Transform.d.ts +2 -0
- package/lib/typescript/lib/commonjs/dom/nodes/datatypes/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/dom/nodes/drawings/AtlasNode.d.ts +10 -0
- package/lib/typescript/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.d.ts +10 -0
- package/lib/typescript/lib/commonjs/dom/nodes/drawings/Box.d.ts +15 -0
- package/lib/typescript/lib/commonjs/dom/nodes/drawings/CircleNode.d.ts +10 -0
- package/lib/typescript/lib/commonjs/dom/nodes/drawings/DiffRectNode.d.ts +10 -0
- package/lib/typescript/lib/commonjs/dom/nodes/drawings/FillNode.d.ts +10 -0
- package/lib/typescript/lib/commonjs/dom/nodes/drawings/ImageNode.d.ts +13 -0
- package/lib/typescript/lib/commonjs/dom/nodes/drawings/ImageSVG.d.ts +9 -0
- package/lib/typescript/lib/commonjs/dom/nodes/drawings/LineNode.d.ts +10 -0
- package/lib/typescript/lib/commonjs/dom/nodes/drawings/OvalNode.d.ts +10 -0
- package/lib/typescript/lib/commonjs/dom/nodes/drawings/ParagraphNode.d.ts +9 -0
- package/lib/typescript/lib/commonjs/dom/nodes/drawings/PatchNode.d.ts +14 -0
- package/lib/typescript/lib/commonjs/dom/nodes/drawings/PathNode.d.ts +10 -0
- package/lib/typescript/lib/commonjs/dom/nodes/drawings/PictureNode.d.ts +9 -0
- package/lib/typescript/lib/commonjs/dom/nodes/drawings/PointsNode.d.ts +10 -0
- package/lib/typescript/lib/commonjs/dom/nodes/drawings/RRectNode.d.ts +10 -0
- package/lib/typescript/lib/commonjs/dom/nodes/drawings/RectNode.d.ts +10 -0
- package/lib/typescript/lib/commonjs/dom/nodes/drawings/Text.d.ts +34 -0
- package/lib/typescript/lib/commonjs/dom/nodes/drawings/VerticesNode.d.ts +10 -0
- package/lib/typescript/lib/commonjs/dom/nodes/drawings/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/dom/nodes/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/dom/nodes/paint/BlendNode.d.ts +6 -0
- package/lib/typescript/lib/commonjs/dom/nodes/paint/ColorFilters.d.ts +29 -0
- package/lib/typescript/lib/commonjs/dom/nodes/paint/ImageFilters.d.ts +35 -0
- package/lib/typescript/lib/commonjs/dom/nodes/paint/MaskFilters.d.ts +6 -0
- package/lib/typescript/lib/commonjs/dom/nodes/paint/PathEffects.d.ts +34 -0
- package/lib/typescript/lib/commonjs/dom/nodes/paint/Shaders.d.ts +40 -0
- package/lib/typescript/lib/commonjs/dom/nodes/paint/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/dom/types/ColorFilters.d.ts +1 -0
- package/lib/typescript/lib/commonjs/dom/types/Common.d.ts +1 -0
- package/lib/typescript/lib/commonjs/dom/types/DeclarationContext.d.ts +26 -0
- package/lib/typescript/lib/commonjs/dom/types/DrawingContext.d.ts +13 -0
- package/lib/typescript/lib/commonjs/dom/types/Drawings.d.ts +1 -0
- package/lib/typescript/lib/commonjs/dom/types/ImageFilters.d.ts +1 -0
- package/lib/typescript/lib/commonjs/dom/types/MaskFilters.d.ts +1 -0
- package/lib/typescript/lib/commonjs/dom/types/Node.d.ts +1 -0
- package/lib/typescript/lib/commonjs/dom/types/NodeType.d.ts +2 -0
- package/lib/typescript/lib/commonjs/dom/types/Paragraph.d.ts +1 -0
- package/lib/typescript/lib/commonjs/dom/types/PathEffects.d.ts +1 -0
- package/lib/typescript/lib/commonjs/dom/types/Shaders.d.ts +1 -0
- package/lib/typescript/lib/commonjs/dom/types/SkDOM.d.ts +1 -0
- package/lib/typescript/lib/commonjs/dom/types/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/external/ModuleProxy.d.ts +11 -0
- package/lib/typescript/lib/commonjs/external/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/external/reanimated/ReanimatedProxy.d.ts +5 -0
- package/lib/typescript/lib/commonjs/external/reanimated/buffers.d.ts +5 -0
- package/lib/typescript/lib/commonjs/external/reanimated/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/external/reanimated/interpolators.d.ts +6 -0
- package/lib/typescript/lib/commonjs/external/reanimated/renderHelpers.d.ts +4 -0
- package/lib/typescript/lib/commonjs/external/reanimated/textures.d.ts +6 -0
- package/lib/typescript/lib/commonjs/external/reanimated/useAnimatedImageValue.d.ts +2 -0
- package/lib/typescript/lib/commonjs/external/reanimated/useDerivedValueOnJS.d.ts +2 -0
- package/lib/typescript/lib/commonjs/external/reanimated/useVideo.d.ts +9 -0
- package/lib/typescript/lib/commonjs/external/reanimated/useVideoLoading.d.ts +2 -0
- package/lib/typescript/lib/commonjs/external/reanimated/useVideoLoading.web.d.ts +2 -0
- package/lib/typescript/lib/commonjs/headless/index.d.ts +6 -0
- package/lib/typescript/lib/commonjs/index.d.ts +3 -0
- package/lib/typescript/lib/commonjs/mock/index.d.ts +64 -0
- package/lib/typescript/lib/commonjs/renderer/Canvas.d.ts +3 -0
- package/lib/typescript/lib/commonjs/renderer/Container.d.ts +10 -0
- package/lib/typescript/lib/commonjs/renderer/DrawingContext.d.ts +1 -0
- package/lib/typescript/lib/commonjs/renderer/HostComponents.d.ts +3 -0
- package/lib/typescript/lib/commonjs/renderer/HostConfig.d.ts +38 -0
- package/lib/typescript/lib/commonjs/renderer/Offscreen.d.ts +5 -0
- package/lib/typescript/lib/commonjs/renderer/Reconciler.d.ts +10 -0
- package/lib/typescript/lib/commonjs/renderer/components/Blend.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/Group.d.ts +5 -0
- package/lib/typescript/lib/commonjs/renderer/components/Mask.d.ts +7 -0
- package/lib/typescript/lib/commonjs/renderer/components/Paint.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/Picture.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/backdrop/BackdropBlur.d.ts +6 -0
- package/lib/typescript/lib/commonjs/renderer/components/backdrop/BackdropFilter.d.ts +6 -0
- package/lib/typescript/lib/commonjs/renderer/components/backdrop/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/renderer/components/colorFilters/BlendColor.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/colorFilters/Lerp.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/colorFilters/Matrix.d.ts +3 -0
- package/lib/typescript/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/colorFilters/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/renderer/components/image/Image.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/image/ImageSVG.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/image/ImageShader.d.ts +10 -0
- package/lib/typescript/lib/commonjs/renderer/components/image/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/renderer/components/imageFilters/Blur.d.ts +5 -0
- package/lib/typescript/lib/commonjs/renderer/components/imageFilters/DisplacementMap.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/imageFilters/Morphology.d.ts +5 -0
- package/lib/typescript/lib/commonjs/renderer/components/imageFilters/Offset.d.ts +6 -0
- package/lib/typescript/lib/commonjs/renderer/components/imageFilters/RuntimeShader.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/imageFilters/Shadow.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/imageFilters/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/renderer/components/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/renderer/components/maskFilters/Blur.d.ts +6 -0
- package/lib/typescript/lib/commonjs/renderer/components/maskFilters/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/renderer/components/paragraph/Paragraph.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/paragraph/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/renderer/components/pathEffects/Corner.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/pathEffects/Dash.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/pathEffects/Discrete.d.ts +5 -0
- package/lib/typescript/lib/commonjs/renderer/components/pathEffects/Line2D.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/pathEffects/Path1D.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/pathEffects/Path2D.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/pathEffects/Sum.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/pathEffects/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/renderer/components/shaders/Color.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/shaders/FractalNoise.d.ts +7 -0
- package/lib/typescript/lib/commonjs/renderer/components/shaders/LinearGradient.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/shaders/RadialGradient.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/shaders/Shader.d.ts +5 -0
- package/lib/typescript/lib/commonjs/renderer/components/shaders/ShaderLib.d.ts +8 -0
- package/lib/typescript/lib/commonjs/renderer/components/shaders/SweepGradient.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/shaders/Turbulence.d.ts +7 -0
- package/lib/typescript/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/shaders/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/renderer/components/shapes/Atlas.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/shapes/Box.d.ts +3 -0
- package/lib/typescript/lib/commonjs/renderer/components/shapes/Circle.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/shapes/DiffRect.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/shapes/Fill.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/shapes/FitBox.d.ts +8 -0
- package/lib/typescript/lib/commonjs/renderer/components/shapes/Line.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/shapes/Oval.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/shapes/Patch.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/shapes/Path.d.ts +6 -0
- package/lib/typescript/lib/commonjs/renderer/components/shapes/Points.d.ts +5 -0
- package/lib/typescript/lib/commonjs/renderer/components/shapes/Rect.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/shapes/RoundedRect.d.ts +2 -0
- package/lib/typescript/lib/commonjs/renderer/components/shapes/Vertices.d.ts +5 -0
- package/lib/typescript/lib/commonjs/renderer/components/shapes/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/renderer/components/text/Glyphs.d.ts +6 -0
- package/lib/typescript/lib/commonjs/renderer/components/text/Text.d.ts +6 -0
- package/lib/typescript/lib/commonjs/renderer/components/text/TextBlob.d.ts +6 -0
- package/lib/typescript/lib/commonjs/renderer/components/text/TextPath.d.ts +5 -0
- package/lib/typescript/lib/commonjs/renderer/components/text/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/renderer/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/renderer/processors/Animations/Animations.d.ts +0 -0
- package/lib/typescript/lib/commonjs/renderer/processors/Animations/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/renderer/processors/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/renderer/processors/math/Coordinates.d.ts +25 -0
- package/lib/typescript/lib/commonjs/renderer/processors/math/Math.d.ts +10 -0
- package/lib/typescript/lib/commonjs/renderer/processors/math/Transforms.d.ts +5 -0
- package/lib/typescript/lib/commonjs/renderer/processors/math/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/renderer/typeddash.d.ts +4 -0
- package/lib/typescript/lib/commonjs/skia/NativeSetup.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/Skia.d.ts +2 -0
- package/lib/typescript/lib/commonjs/skia/Skia.web.d.ts +2 -0
- package/lib/typescript/lib/commonjs/skia/core/AnimatedImage.d.ts +5 -0
- package/lib/typescript/lib/commonjs/skia/core/Data.d.ts +5 -0
- package/lib/typescript/lib/commonjs/skia/core/Font.d.ts +8 -0
- package/lib/typescript/lib/commonjs/skia/core/Image.d.ts +6 -0
- package/lib/typescript/lib/commonjs/skia/core/Matrix.d.ts +2 -0
- package/lib/typescript/lib/commonjs/skia/core/Picture.d.ts +8 -0
- package/lib/typescript/lib/commonjs/skia/core/RRect.d.ts +2 -0
- package/lib/typescript/lib/commonjs/skia/core/Rect.d.ts +8 -0
- package/lib/typescript/lib/commonjs/skia/core/SVG.d.ts +2 -0
- package/lib/typescript/lib/commonjs/skia/core/SVG.web.d.ts +2 -0
- package/lib/typescript/lib/commonjs/skia/core/Typeface.d.ts +5 -0
- package/lib/typescript/lib/commonjs/skia/core/Vector.d.ts +7 -0
- package/lib/typescript/lib/commonjs/skia/core/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/index.d.ts +2 -0
- package/lib/typescript/lib/commonjs/skia/types/AnimatedImage/AnimatedImage.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/AnimatedImage/AnimatedImageFactory.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/AnimatedImage/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Canvas.d.ts +3 -0
- package/lib/typescript/lib/commonjs/skia/types/Color.d.ts +0 -0
- package/lib/typescript/lib/commonjs/skia/types/ColorFilter/ColorFilter.d.ts +2 -0
- package/lib/typescript/lib/commonjs/skia/types/ColorFilter/ColorFilterFactory.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/ColorFilter/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/ContourMeasure.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Data/Data.d.ts +2 -0
- package/lib/typescript/lib/commonjs/skia/types/Data/DataFactory.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Data/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Font/Font.d.ts +16 -0
- package/lib/typescript/lib/commonjs/skia/types/Font/FontMgr.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Font/FontMgrFactory.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Font/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Image/Image.d.ts +4 -0
- package/lib/typescript/lib/commonjs/skia/types/Image/ImageFactory.d.ts +3 -0
- package/lib/typescript/lib/commonjs/skia/types/Image/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/ImageFilter/ImageFilter.d.ts +3 -0
- package/lib/typescript/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.d.ts +2 -0
- package/lib/typescript/lib/commonjs/skia/types/ImageFilter/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/JsiInstance.d.ts +0 -0
- package/lib/typescript/lib/commonjs/skia/types/MaskFilter.d.ts +3 -0
- package/lib/typescript/lib/commonjs/skia/types/Matrix.d.ts +4 -0
- package/lib/typescript/lib/commonjs/skia/types/Matrix4.d.ts +31 -0
- package/lib/typescript/lib/commonjs/skia/types/NativeBuffer/NativeBufferFactory.d.ts +6 -0
- package/lib/typescript/lib/commonjs/skia/types/NativeBuffer/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Paint/BlendMode.d.ts +2 -0
- package/lib/typescript/lib/commonjs/skia/types/Paint/Paint.d.ts +5 -0
- package/lib/typescript/lib/commonjs/skia/types/Paint/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Paragraph/Paragraph.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Paragraph/ParagraphBuilder.d.ts +2 -0
- package/lib/typescript/lib/commonjs/skia/types/Paragraph/ParagraphStyle.d.ts +4 -0
- package/lib/typescript/lib/commonjs/skia/types/Paragraph/TextStyle.d.ts +4 -0
- package/lib/typescript/lib/commonjs/skia/types/Paragraph/TypefaceFontProvider.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Paragraph/TypefaceFontProviderFactory.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Paragraph/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Path/Path.d.ts +5 -0
- package/lib/typescript/lib/commonjs/skia/types/Path/PathFactory.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Path/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/PathEffect.d.ts +3 -0
- package/lib/typescript/lib/commonjs/skia/types/Picture/Picture.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Picture/PictureFactory.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Picture/PictureRecorder.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Picture/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Point.d.ts +2 -0
- package/lib/typescript/lib/commonjs/skia/types/RRect.d.ts +2 -0
- package/lib/typescript/lib/commonjs/skia/types/RSXform.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Rect.d.ts +2 -0
- package/lib/typescript/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffect.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffectFactory.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/RuntimeEffect/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/SVG/SVG.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/SVG/SVGFactory.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/SVG/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Shader/Shader.d.ts +3 -0
- package/lib/typescript/lib/commonjs/skia/types/Shader/ShaderFactory.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Shader/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Size.d.ts +0 -0
- package/lib/typescript/lib/commonjs/skia/types/Skia.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Surface/Surface.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Surface/SurfaceFactory.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Surface/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/TextBlob.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Typeface/Typeface.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Typeface/TypefaceFactory.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Typeface/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Vertices/Vertices.d.ts +2 -0
- package/lib/typescript/lib/commonjs/skia/types/Vertices/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Video/Video.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Video/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/web/CanvasKitWebGLBufferImpl.d.ts +8 -0
- package/lib/typescript/lib/commonjs/skia/web/Host.d.ts +18 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkAnimatedImage.d.ts +10 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkAnimatedImageFactory.d.ts +6 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkCanvas.d.ts +45 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkColor.d.ts +2 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkColorFilter.d.ts +5 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkColorFilterFactory.d.ts +12 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkContourMeasure.d.ts +11 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkContourMeasureIter.d.ts +7 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkData.d.ts +5 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkDataFactory.d.ts +16 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkFont.d.ts +33 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkFontMgr.d.ts +9 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkFontMgrFactory.d.ts +6 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkImage.d.ts +21 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkImageFactory.d.ts +9 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkImageFilter.d.ts +5 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkImageFilterFactory.d.ts +17 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkMaskFilter.d.ts +5 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkMaskFilterFactory.d.ts +6 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkMatrix.d.ts +18 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkNativeBufferFactory.d.ts +6 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkPaint.d.ts +28 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkParagraph.d.ts +17 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkParagraphBuilder.d.ts +14 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.d.ts +6 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkParagraphStyle.d.ts +4 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkPath.d.ts +56 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkPathEffect.d.ts +5 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkPathEffectFactory.d.ts +13 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkPathFactory.d.ts +10 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkPicture.d.ts +8 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkPictureFactory.d.ts +6 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkPictureRecorder.d.ts +9 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkPoint.d.ts +8 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkRRect.d.ts +10 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkRSXform.d.ts +11 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkRect.d.ts +11 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkRuntimeEffect.d.ts +13 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.d.ts +6 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkSVG.d.ts +7 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkSVGFactory.d.ts +7 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkShader.d.ts +5 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkShaderFactory.d.ts +13 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkSurface.d.ts +12 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkSurfaceFactory.d.ts +7 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkTextBlob.d.ts +5 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkTextBlobFactory.d.ts +9 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkTextStyle.d.ts +38 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkTypeface.d.ts +8 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkTypefaceFactory.d.ts +6 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.d.ts +10 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkTypefaceFontProviderFactory.d.ts +6 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkVertices.d.ts +8 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkVerticesFactory.d.ts +3 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkia.d.ts +64 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiVideo.d.ts +23 -0
- package/lib/typescript/lib/commonjs/skia/web/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/specs/NativeSkiaModule.d.ts +4 -0
- package/lib/typescript/lib/commonjs/specs/NativeSkiaModule.web.d.ts +0 -0
- package/lib/typescript/lib/commonjs/specs/SkiaDomViewNativeComponent.d.ts +3 -0
- package/lib/typescript/lib/commonjs/specs/SkiaPictureViewNativeComponent.d.ts +3 -0
- package/lib/typescript/lib/commonjs/views/SkiaBaseWebView.d.ts +53 -0
- package/lib/typescript/lib/commonjs/views/SkiaDomView.d.ts +27 -0
- package/lib/typescript/lib/commonjs/views/SkiaDomView.web.d.ts +5 -0
- package/lib/typescript/lib/commonjs/views/SkiaJSDomView.d.ts +26 -0
- package/lib/typescript/lib/commonjs/views/SkiaJSDomView.web.d.ts +3 -0
- package/lib/typescript/lib/commonjs/views/SkiaPictureView.d.ts +21 -0
- package/lib/typescript/lib/commonjs/views/SkiaPictureView.web.d.ts +5 -0
- package/lib/typescript/lib/commonjs/views/SkiaViewNativeId.d.ts +4 -0
- package/lib/typescript/lib/commonjs/views/api.d.ts +2 -0
- package/lib/typescript/lib/commonjs/views/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/views/types.d.ts +2 -0
- package/lib/typescript/lib/commonjs/views/useTouchHandler.d.ts +12 -0
- package/lib/typescript/lib/commonjs/web/LoadSkiaWeb.d.ts +3 -0
- package/lib/typescript/lib/commonjs/web/WithSkiaWeb.d.ts +6 -0
- package/lib/typescript/lib/commonjs/web/index.d.ts +1 -0
- package/lib/typescript/lib/module/Platform/IPlatform.d.ts +1 -0
- package/lib/typescript/lib/module/Platform/Platform.d.ts +9 -0
- package/lib/typescript/lib/module/Platform/Platform.web.d.ts +17 -0
- package/lib/typescript/lib/module/Platform/index.d.ts +1 -0
- package/lib/typescript/lib/module/animation/functions/index.d.ts +4 -0
- package/lib/typescript/lib/module/animation/functions/interpolate.d.ts +6 -0
- package/lib/typescript/lib/module/animation/functions/interpolateColors.d.ts +2 -0
- package/lib/typescript/lib/module/animation/functions/interpolatePaths.d.ts +1 -0
- package/lib/typescript/lib/module/animation/functions/interpolateVector.d.ts +8 -0
- package/lib/typescript/lib/module/animation/index.d.ts +1 -0
- package/lib/typescript/lib/module/dom/nodes/DrawingNode.d.ts +5 -0
- package/lib/typescript/lib/module/dom/nodes/GroupNode.d.ts +5 -0
- package/lib/typescript/lib/module/dom/nodes/JsiSkDOM.d.ts +119 -0
- package/lib/typescript/lib/module/dom/nodes/LayerNode.d.ts +5 -0
- package/lib/typescript/lib/module/dom/nodes/Node.d.ts +19 -0
- package/lib/typescript/lib/module/dom/nodes/PaintNode.d.ts +5 -0
- package/lib/typescript/lib/module/dom/nodes/RenderNode.d.ts +15 -0
- package/lib/typescript/lib/module/dom/nodes/datatypes/Circle.d.ts +2 -0
- package/lib/typescript/lib/module/dom/nodes/datatypes/Enum.d.ts +1 -0
- package/lib/typescript/lib/module/dom/nodes/datatypes/Fitting.d.ts +44 -0
- package/lib/typescript/lib/module/dom/nodes/datatypes/Gradient.d.ts +15 -0
- package/lib/typescript/lib/module/dom/nodes/datatypes/Path.d.ts +2 -0
- package/lib/typescript/lib/module/dom/nodes/datatypes/Radius.d.ts +1 -0
- package/lib/typescript/lib/module/dom/nodes/datatypes/Rect.d.ts +3 -0
- package/lib/typescript/lib/module/dom/nodes/datatypes/Transform.d.ts +1 -0
- package/lib/typescript/lib/module/dom/nodes/datatypes/index.d.ts +8 -0
- package/lib/typescript/lib/module/dom/nodes/drawings/AtlasNode.d.ts +9 -0
- package/lib/typescript/lib/module/dom/nodes/drawings/BackdropFilterNode.d.ts +9 -0
- package/lib/typescript/lib/module/dom/nodes/drawings/Box.d.ts +14 -0
- package/lib/typescript/lib/module/dom/nodes/drawings/CircleNode.d.ts +9 -0
- package/lib/typescript/lib/module/dom/nodes/drawings/DiffRectNode.d.ts +9 -0
- package/lib/typescript/lib/module/dom/nodes/drawings/FillNode.d.ts +9 -0
- package/lib/typescript/lib/module/dom/nodes/drawings/ImageNode.d.ts +22 -0
- package/lib/typescript/lib/module/dom/nodes/drawings/ImageSVG.d.ts +8 -0
- package/lib/typescript/lib/module/dom/nodes/drawings/LineNode.d.ts +9 -0
- package/lib/typescript/lib/module/dom/nodes/drawings/OvalNode.d.ts +9 -0
- package/lib/typescript/lib/module/dom/nodes/drawings/ParagraphNode.d.ts +8 -0
- package/lib/typescript/lib/module/dom/nodes/drawings/PatchNode.d.ts +13 -0
- package/lib/typescript/lib/module/dom/nodes/drawings/PathNode.d.ts +9 -0
- package/lib/typescript/lib/module/dom/nodes/drawings/PictureNode.d.ts +8 -0
- package/lib/typescript/lib/module/dom/nodes/drawings/PointsNode.d.ts +9 -0
- package/lib/typescript/lib/module/dom/nodes/drawings/RRectNode.d.ts +9 -0
- package/lib/typescript/lib/module/dom/nodes/drawings/RectNode.d.ts +9 -0
- package/lib/typescript/lib/module/dom/nodes/drawings/Text.d.ts +33 -0
- package/lib/typescript/lib/module/dom/nodes/drawings/VerticesNode.d.ts +9 -0
- package/lib/typescript/lib/module/dom/nodes/drawings/index.d.ts +18 -0
- package/lib/typescript/lib/module/dom/nodes/index.d.ts +3 -0
- package/lib/typescript/lib/module/dom/nodes/paint/BlendNode.d.ts +5 -0
- package/lib/typescript/lib/module/dom/nodes/paint/ColorFilters.d.ts +28 -0
- package/lib/typescript/lib/module/dom/nodes/paint/ImageFilters.d.ts +34 -0
- package/lib/typescript/lib/module/dom/nodes/paint/MaskFilters.d.ts +5 -0
- package/lib/typescript/lib/module/dom/nodes/paint/PathEffects.d.ts +33 -0
- package/lib/typescript/lib/module/dom/nodes/paint/Shaders.d.ts +39 -0
- package/lib/typescript/lib/module/dom/nodes/paint/index.d.ts +6 -0
- package/lib/typescript/lib/module/dom/types/ColorFilters.d.ts +1 -0
- package/lib/typescript/lib/module/dom/types/Common.d.ts +1 -0
- package/lib/typescript/lib/module/dom/types/DeclarationContext.d.ts +25 -0
- package/lib/typescript/lib/module/dom/types/DrawingContext.d.ts +12 -0
- package/lib/typescript/lib/module/dom/types/Drawings.d.ts +1 -0
- package/lib/typescript/lib/module/dom/types/ImageFilters.d.ts +1 -0
- package/lib/typescript/lib/module/dom/types/MaskFilters.d.ts +1 -0
- package/lib/typescript/lib/module/dom/types/Node.d.ts +1 -0
- package/lib/typescript/lib/module/dom/types/NodeType.d.ts +1 -0
- package/lib/typescript/lib/module/dom/types/Paragraph.d.ts +1 -0
- package/lib/typescript/lib/module/dom/types/PathEffects.d.ts +1 -0
- package/lib/typescript/lib/module/dom/types/Shaders.d.ts +1 -0
- package/lib/typescript/lib/module/dom/types/SkDOM.d.ts +1 -0
- package/lib/typescript/lib/module/dom/types/index.d.ts +13 -0
- package/lib/typescript/lib/module/external/ModuleProxy.d.ts +6 -0
- package/lib/typescript/lib/module/external/index.d.ts +1 -0
- package/lib/typescript/lib/module/external/reanimated/ReanimatedProxy.d.ts +4 -0
- package/lib/typescript/lib/module/external/reanimated/buffers.d.ts +4 -0
- package/lib/typescript/lib/module/external/reanimated/index.d.ts +7 -0
- package/lib/typescript/lib/module/external/reanimated/interpolators.d.ts +5 -0
- package/lib/typescript/lib/module/external/reanimated/renderHelpers.d.ts +3 -0
- package/lib/typescript/lib/module/external/reanimated/textures.d.ts +5 -0
- package/lib/typescript/lib/module/external/reanimated/useAnimatedImageValue.d.ts +1 -0
- package/lib/typescript/lib/module/external/reanimated/useDerivedValueOnJS.d.ts +1 -0
- package/lib/typescript/lib/module/external/reanimated/useVideo.d.ts +8 -0
- package/lib/typescript/lib/module/external/reanimated/useVideoLoading.d.ts +1 -0
- package/lib/typescript/lib/module/external/reanimated/useVideoLoading.web.d.ts +1 -0
- package/lib/typescript/lib/module/headless/index.d.ts +6 -0
- package/lib/typescript/lib/module/index.d.ts +10 -0
- package/lib/typescript/lib/module/mock/index.d.ts +474 -0
- package/lib/typescript/lib/module/renderer/Canvas.d.ts +3 -0
- package/lib/typescript/lib/module/renderer/Container.d.ts +10 -0
- package/lib/typescript/lib/module/renderer/DrawingContext.d.ts +1 -0
- package/lib/typescript/lib/module/renderer/HostComponents.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/HostConfig.d.ts +37 -0
- package/lib/typescript/lib/module/renderer/Offscreen.d.ts +4 -0
- package/lib/typescript/lib/module/renderer/Reconciler.d.ts +9 -0
- package/lib/typescript/lib/module/renderer/components/Blend.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/Group.d.ts +5 -0
- package/lib/typescript/lib/module/renderer/components/Mask.d.ts +10 -0
- package/lib/typescript/lib/module/renderer/components/Paint.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/Picture.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/backdrop/BackdropBlur.d.ts +10 -0
- package/lib/typescript/lib/module/renderer/components/backdrop/BackdropFilter.d.ts +6 -0
- package/lib/typescript/lib/module/renderer/components/backdrop/index.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/colorFilters/BlendColor.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/colorFilters/Lerp.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/colorFilters/LumaColorFilter.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/colorFilters/Matrix.d.ts +3 -0
- package/lib/typescript/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/colorFilters/index.d.ts +6 -0
- package/lib/typescript/lib/module/renderer/components/image/Image.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/image/ImageSVG.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/image/ImageShader.d.ts +10 -0
- package/lib/typescript/lib/module/renderer/components/image/index.d.ts +3 -0
- package/lib/typescript/lib/module/renderer/components/imageFilters/Blur.d.ts +5 -0
- package/lib/typescript/lib/module/renderer/components/imageFilters/DisplacementMap.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/imageFilters/Morphology.d.ts +5 -0
- package/lib/typescript/lib/module/renderer/components/imageFilters/Offset.d.ts +6 -0
- package/lib/typescript/lib/module/renderer/components/imageFilters/RuntimeShader.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/imageFilters/Shadow.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/imageFilters/index.d.ts +6 -0
- package/lib/typescript/lib/module/renderer/components/index.d.ts +16 -0
- package/lib/typescript/lib/module/renderer/components/maskFilters/Blur.d.ts +6 -0
- package/lib/typescript/lib/module/renderer/components/maskFilters/index.d.ts +1 -0
- package/lib/typescript/lib/module/renderer/components/paragraph/Paragraph.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/paragraph/index.d.ts +1 -0
- package/lib/typescript/lib/module/renderer/components/pathEffects/Corner.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/pathEffects/Dash.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/pathEffects/Discrete.d.ts +5 -0
- package/lib/typescript/lib/module/renderer/components/pathEffects/Line2D.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/pathEffects/Path1D.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/pathEffects/Path2D.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/pathEffects/Sum.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/pathEffects/index.d.ts +7 -0
- package/lib/typescript/lib/module/renderer/components/shaders/Color.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/shaders/FractalNoise.d.ts +7 -0
- package/lib/typescript/lib/module/renderer/components/shaders/LinearGradient.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/shaders/RadialGradient.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/shaders/Shader.d.ts +5 -0
- package/lib/typescript/lib/module/renderer/components/shaders/ShaderLib.d.ts +7 -0
- package/lib/typescript/lib/module/renderer/components/shaders/SweepGradient.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/shaders/Turbulence.d.ts +7 -0
- package/lib/typescript/lib/module/renderer/components/shaders/TwoPointConicalGradient.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/shaders/index.d.ts +9 -0
- package/lib/typescript/lib/module/renderer/components/shapes/Atlas.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/shapes/Box.d.ts +3 -0
- package/lib/typescript/lib/module/renderer/components/shapes/Circle.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/shapes/DiffRect.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/shapes/Fill.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/shapes/FitBox.d.ts +34 -0
- package/lib/typescript/lib/module/renderer/components/shapes/Line.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/shapes/Oval.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/shapes/Patch.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/shapes/Path.d.ts +6 -0
- package/lib/typescript/lib/module/renderer/components/shapes/Points.d.ts +5 -0
- package/lib/typescript/lib/module/renderer/components/shapes/Rect.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/shapes/RoundedRect.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/shapes/Vertices.d.ts +5 -0
- package/lib/typescript/lib/module/renderer/components/shapes/index.d.ts +14 -0
- package/lib/typescript/lib/module/renderer/components/text/Glyphs.d.ts +6 -0
- package/lib/typescript/lib/module/renderer/components/text/Text.d.ts +6 -0
- package/lib/typescript/lib/module/renderer/components/text/TextBlob.d.ts +6 -0
- package/lib/typescript/lib/module/renderer/components/text/TextPath.d.ts +5 -0
- package/lib/typescript/lib/module/renderer/components/text/index.d.ts +4 -0
- package/lib/typescript/lib/module/renderer/index.d.ts +1 -0
- package/lib/typescript/lib/module/renderer/processors/Animations/Animations.d.ts +0 -0
- package/lib/typescript/lib/module/renderer/processors/Animations/index.d.ts +1 -0
- package/lib/typescript/lib/module/renderer/processors/index.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/processors/math/Coordinates.d.ts +24 -0
- package/lib/typescript/lib/module/renderer/processors/math/Math.d.ts +3 -0
- package/lib/typescript/lib/module/renderer/processors/math/Transforms.d.ts +4 -0
- package/lib/typescript/lib/module/renderer/processors/math/index.d.ts +3 -0
- package/lib/typescript/lib/module/renderer/typeddash.d.ts +3 -0
- package/lib/typescript/lib/module/skia/NativeSetup.d.ts +1 -0
- package/lib/typescript/lib/module/skia/Skia.d.ts +4 -0
- package/lib/typescript/lib/module/skia/Skia.web.d.ts +35 -0
- package/lib/typescript/lib/module/skia/core/AnimatedImage.d.ts +1 -0
- package/lib/typescript/lib/module/skia/core/Data.d.ts +4 -0
- package/lib/typescript/lib/module/skia/core/Font.d.ts +4 -0
- package/lib/typescript/lib/module/skia/core/Image.d.ts +2 -0
- package/lib/typescript/lib/module/skia/core/Matrix.d.ts +1 -0
- package/lib/typescript/lib/module/skia/core/Picture.d.ts +1 -0
- package/lib/typescript/lib/module/skia/core/RRect.d.ts +1 -0
- package/lib/typescript/lib/module/skia/core/Rect.d.ts +7 -0
- package/lib/typescript/lib/module/skia/core/SVG.d.ts +1 -0
- package/lib/typescript/lib/module/skia/core/SVG.web.d.ts +1 -0
- package/lib/typescript/lib/module/skia/core/Typeface.d.ts +1 -0
- package/lib/typescript/lib/module/skia/core/Vector.d.ts +6 -0
- package/lib/typescript/lib/module/skia/core/index.d.ts +11 -0
- package/lib/typescript/lib/module/skia/index.d.ts +3 -0
- package/lib/typescript/lib/module/skia/types/AnimatedImage/AnimatedImage.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/AnimatedImage/AnimatedImageFactory.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/AnimatedImage/index.d.ts +2 -0
- package/lib/typescript/lib/module/skia/types/Canvas.d.ts +2 -0
- package/lib/typescript/lib/module/skia/types/Color.d.ts +0 -0
- package/lib/typescript/lib/module/skia/types/ColorFilter/ColorFilter.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/ColorFilter/ColorFilterFactory.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/ColorFilter/index.d.ts +2 -0
- package/lib/typescript/lib/module/skia/types/ContourMeasure.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/Data/Data.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/Data/DataFactory.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/Data/index.d.ts +2 -0
- package/lib/typescript/lib/module/skia/types/Font/Font.d.ts +15 -0
- package/lib/typescript/lib/module/skia/types/Font/FontMgr.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/Font/FontMgrFactory.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/Font/index.d.ts +3 -0
- package/lib/typescript/lib/module/skia/types/Image/Image.d.ts +3 -0
- package/lib/typescript/lib/module/skia/types/Image/ImageFactory.d.ts +2 -0
- package/lib/typescript/lib/module/skia/types/Image/index.d.ts +2 -0
- package/lib/typescript/lib/module/skia/types/ImageFilter/ImageFilter.d.ts +2 -0
- package/lib/typescript/lib/module/skia/types/ImageFilter/ImageFilterFactory.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/ImageFilter/index.d.ts +2 -0
- package/lib/typescript/lib/module/skia/types/JsiInstance.d.ts +0 -0
- package/lib/typescript/lib/module/skia/types/MaskFilter.d.ts +2 -0
- package/lib/typescript/lib/module/skia/types/Matrix.d.ts +3 -0
- package/lib/typescript/lib/module/skia/types/Matrix4.d.ts +15 -0
- package/lib/typescript/lib/module/skia/types/NativeBuffer/NativeBufferFactory.d.ts +5 -0
- package/lib/typescript/lib/module/skia/types/NativeBuffer/index.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/Paint/BlendMode.d.ts +28 -0
- package/lib/typescript/lib/module/skia/types/Paint/Paint.d.ts +4 -0
- package/lib/typescript/lib/module/skia/types/Paint/index.d.ts +2 -0
- package/lib/typescript/lib/module/skia/types/Paragraph/Paragraph.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/Paragraph/ParagraphBuilder.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/Paragraph/ParagraphStyle.d.ts +3 -0
- package/lib/typescript/lib/module/skia/types/Paragraph/TextStyle.d.ts +3 -0
- package/lib/typescript/lib/module/skia/types/Paragraph/TypefaceFontProvider.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/Paragraph/TypefaceFontProviderFactory.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/Paragraph/index.d.ts +6 -0
- package/lib/typescript/lib/module/skia/types/Path/Path.d.ts +7 -0
- package/lib/typescript/lib/module/skia/types/Path/PathFactory.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/Path/index.d.ts +2 -0
- package/lib/typescript/lib/module/skia/types/PathEffect.d.ts +2 -0
- package/lib/typescript/lib/module/skia/types/Picture/Picture.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/Picture/PictureFactory.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/Picture/PictureRecorder.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/Picture/index.d.ts +3 -0
- package/lib/typescript/lib/module/skia/types/Point.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/RRect.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/RSXform.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/Rect.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/RuntimeEffect/RuntimeEffect.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/RuntimeEffect/RuntimeEffectFactory.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/RuntimeEffect/index.d.ts +2 -0
- package/lib/typescript/lib/module/skia/types/SVG/SVG.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/SVG/SVGFactory.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/SVG/index.d.ts +2 -0
- package/lib/typescript/lib/module/skia/types/Shader/Shader.d.ts +2 -0
- package/lib/typescript/lib/module/skia/types/Shader/ShaderFactory.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/Shader/index.d.ts +2 -0
- package/lib/typescript/lib/module/skia/types/Size.d.ts +0 -0
- package/lib/typescript/lib/module/skia/types/Skia.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/Surface/Surface.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/Surface/SurfaceFactory.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/Surface/index.d.ts +2 -0
- package/lib/typescript/lib/module/skia/types/TextBlob.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/Typeface/Typeface.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/Typeface/TypefaceFactory.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/Typeface/index.d.ts +2 -0
- package/lib/typescript/lib/module/skia/types/Vertices/Vertices.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/Vertices/index.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/Video/Video.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/Video/index.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/index.d.ts +30 -0
- package/lib/typescript/lib/module/skia/web/CanvasKitWebGLBufferImpl.d.ts +8 -0
- package/lib/typescript/lib/module/skia/web/Host.d.ts +17 -0
- package/lib/typescript/lib/module/skia/web/JsiSkAnimatedImage.d.ts +9 -0
- package/lib/typescript/lib/module/skia/web/JsiSkAnimatedImageFactory.d.ts +5 -0
- package/lib/typescript/lib/module/skia/web/JsiSkCanvas.d.ts +44 -0
- package/lib/typescript/lib/module/skia/web/JsiSkColor.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkColorFilter.d.ts +4 -0
- package/lib/typescript/lib/module/skia/web/JsiSkColorFilterFactory.d.ts +11 -0
- package/lib/typescript/lib/module/skia/web/JsiSkContourMeasure.d.ts +10 -0
- package/lib/typescript/lib/module/skia/web/JsiSkContourMeasureIter.d.ts +6 -0
- package/lib/typescript/lib/module/skia/web/JsiSkData.d.ts +4 -0
- package/lib/typescript/lib/module/skia/web/JsiSkDataFactory.d.ts +15 -0
- package/lib/typescript/lib/module/skia/web/JsiSkFont.d.ts +32 -0
- package/lib/typescript/lib/module/skia/web/JsiSkFontMgr.d.ts +8 -0
- package/lib/typescript/lib/module/skia/web/JsiSkFontMgrFactory.d.ts +5 -0
- package/lib/typescript/lib/module/skia/web/JsiSkImage.d.ts +20 -0
- package/lib/typescript/lib/module/skia/web/JsiSkImageFactory.d.ts +8 -0
- package/lib/typescript/lib/module/skia/web/JsiSkImageFilter.d.ts +4 -0
- package/lib/typescript/lib/module/skia/web/JsiSkImageFilterFactory.d.ts +16 -0
- package/lib/typescript/lib/module/skia/web/JsiSkMaskFilter.d.ts +4 -0
- package/lib/typescript/lib/module/skia/web/JsiSkMaskFilterFactory.d.ts +5 -0
- package/lib/typescript/lib/module/skia/web/JsiSkMatrix.d.ts +17 -0
- package/lib/typescript/lib/module/skia/web/JsiSkNativeBufferFactory.d.ts +5 -0
- package/lib/typescript/lib/module/skia/web/JsiSkPaint.d.ts +27 -0
- package/lib/typescript/lib/module/skia/web/JsiSkParagraph.d.ts +16 -0
- package/lib/typescript/lib/module/skia/web/JsiSkParagraphBuilder.d.ts +13 -0
- package/lib/typescript/lib/module/skia/web/JsiSkParagraphBuilderFactory.d.ts +5 -0
- package/lib/typescript/lib/module/skia/web/JsiSkParagraphStyle.d.ts +3 -0
- package/lib/typescript/lib/module/skia/web/JsiSkPath.d.ts +55 -0
- package/lib/typescript/lib/module/skia/web/JsiSkPathEffect.d.ts +4 -0
- package/lib/typescript/lib/module/skia/web/JsiSkPathEffectFactory.d.ts +12 -0
- package/lib/typescript/lib/module/skia/web/JsiSkPathFactory.d.ts +9 -0
- package/lib/typescript/lib/module/skia/web/JsiSkPicture.d.ts +7 -0
- package/lib/typescript/lib/module/skia/web/JsiSkPictureFactory.d.ts +5 -0
- package/lib/typescript/lib/module/skia/web/JsiSkPictureRecorder.d.ts +8 -0
- package/lib/typescript/lib/module/skia/web/JsiSkPoint.d.ts +7 -0
- package/lib/typescript/lib/module/skia/web/JsiSkRRect.d.ts +9 -0
- package/lib/typescript/lib/module/skia/web/JsiSkRSXform.d.ts +10 -0
- package/lib/typescript/lib/module/skia/web/JsiSkRect.d.ts +10 -0
- package/lib/typescript/lib/module/skia/web/JsiSkRuntimeEffect.d.ts +12 -0
- package/lib/typescript/lib/module/skia/web/JsiSkRuntimeEffectFactory.d.ts +5 -0
- package/lib/typescript/lib/module/skia/web/JsiSkSVG.d.ts +6 -0
- package/lib/typescript/lib/module/skia/web/JsiSkSVGFactory.d.ts +6 -0
- package/lib/typescript/lib/module/skia/web/JsiSkShader.d.ts +4 -0
- package/lib/typescript/lib/module/skia/web/JsiSkShaderFactory.d.ts +12 -0
- package/lib/typescript/lib/module/skia/web/JsiSkSurface.d.ts +11 -0
- package/lib/typescript/lib/module/skia/web/JsiSkSurfaceFactory.d.ts +6 -0
- package/lib/typescript/lib/module/skia/web/JsiSkTextBlob.d.ts +4 -0
- package/lib/typescript/lib/module/skia/web/JsiSkTextBlobFactory.d.ts +8 -0
- package/lib/typescript/lib/module/skia/web/JsiSkTextStyle.d.ts +37 -0
- package/lib/typescript/lib/module/skia/web/JsiSkTypeface.d.ts +7 -0
- package/lib/typescript/lib/module/skia/web/JsiSkTypefaceFactory.d.ts +5 -0
- package/lib/typescript/lib/module/skia/web/JsiSkTypefaceFontProvider.d.ts +9 -0
- package/lib/typescript/lib/module/skia/web/JsiSkTypefaceFontProviderFactory.d.ts +5 -0
- package/lib/typescript/lib/module/skia/web/JsiSkVertices.d.ts +7 -0
- package/lib/typescript/lib/module/skia/web/JsiSkVerticesFactory.d.ts +2 -0
- package/lib/typescript/lib/module/skia/web/JsiSkia.d.ts +63 -0
- package/lib/typescript/lib/module/skia/web/JsiVideo.d.ts +22 -0
- package/lib/typescript/lib/module/skia/web/index.d.ts +1 -0
- package/lib/typescript/lib/module/specs/NativeSkiaModule.d.ts +2 -0
- package/lib/typescript/lib/module/specs/NativeSkiaModule.web.d.ts +0 -0
- package/lib/typescript/lib/module/specs/SkiaDomViewNativeComponent.d.ts +2 -0
- package/lib/typescript/lib/module/specs/SkiaPictureViewNativeComponent.d.ts +2 -0
- package/lib/typescript/lib/module/views/SkiaBaseWebView.d.ts +50 -0
- package/lib/typescript/lib/module/views/SkiaDomView.d.ts +24 -0
- package/lib/typescript/lib/module/views/SkiaDomView.web.d.ts +4 -0
- package/lib/typescript/lib/module/views/SkiaJSDomView.d.ts +23 -0
- package/lib/typescript/lib/module/views/SkiaJSDomView.web.d.ts +1 -0
- package/lib/typescript/lib/module/views/SkiaPictureView.d.ts +18 -0
- package/lib/typescript/lib/module/views/SkiaPictureView.web.d.ts +4 -0
- package/lib/typescript/lib/module/views/SkiaViewNativeId.d.ts +3 -0
- package/lib/typescript/lib/module/views/api.d.ts +1 -0
- package/lib/typescript/lib/module/views/index.d.ts +4 -0
- package/lib/typescript/lib/module/views/types.d.ts +1 -0
- package/lib/typescript/lib/module/views/useTouchHandler.d.ts +2 -0
- package/lib/typescript/lib/module/web/LoadSkiaWeb.d.ts +2 -0
- package/lib/typescript/lib/module/web/WithSkiaWeb.d.ts +6 -0
- package/lib/typescript/lib/module/web/index.d.ts +2 -0
- package/lib/typescript/src/Platform/IPlatform.d.ts +0 -1
- package/lib/typescript/src/external/reanimated/buffers.d.ts +4 -4
- package/lib/typescript/src/renderer/Canvas.d.ts +2 -2
- package/lib/typescript/src/renderer/Container.d.ts +1 -0
- package/lib/typescript/src/renderer/HostConfig.d.ts +0 -1
- package/lib/typescript/src/skia/core/AnimatedImage.d.ts +1 -1
- package/lib/typescript/src/skia/core/Data.d.ts +3 -3
- package/lib/typescript/src/skia/core/Font.d.ts +1 -1
- package/lib/typescript/src/skia/core/Image.d.ts +2 -3
- package/lib/typescript/src/skia/core/Picture.d.ts +1 -1
- package/lib/typescript/src/skia/core/SVG.d.ts +1 -1
- package/lib/typescript/src/skia/core/SVG.web.d.ts +1 -1
- package/lib/typescript/src/skia/core/Typeface.d.ts +1 -1
- package/lib/typescript/src/skia/types/Data/Data.d.ts +1 -1
- package/lib/typescript/src/skia/types/Image/ImageFactory.d.ts +16 -16
- package/lib/typescript/src/skia/types/MaskFilter.d.ts +3 -3
- package/lib/typescript/src/skia/types/NativeBuffer/NativeBufferFactory.d.ts +3 -3
- package/lib/typescript/src/skia/types/Paint/BlendMode.d.ts +28 -28
- package/lib/typescript/src/skia/types/Path/Path.d.ts +4 -4
- package/lib/typescript/src/skia/web/JsiSkCanvas.d.ts +1 -1
- package/lib/typescript/src/skia/web/JsiSkNativeBufferFactory.d.ts +1 -1
- package/lib/typescript/src/skia/web/JsiSkParagraphStyle.d.ts +1 -1
- package/lib/typescript/src/specs/SkiaDomViewNativeComponent.d.ts +0 -1
- package/lib/typescript/src/specs/SkiaPictureViewNativeComponent.d.ts +0 -1
- package/lib/typescript/src/views/SkiaDomView.d.ts +0 -4
- package/package.json +42 -19
- package/scripts/setup-canvaskit.js +0 -0
- package/src/Platform/Platform.web.tsx +4 -0
- package/src/external/reanimated/buffers.ts +1 -1
- package/src/mock/index.ts +4 -0
- package/src/renderer/Container.tsx +1 -0
- package/src/renderer/HostConfig.ts +7 -3
- package/src/renderer/Reconciler.tsx +1 -0
- package/src/skia/core/Picture.ts +2 -1
- package/src/skia/types/Matrix4.ts +2 -7
- package/src/skia/web/JsiSkCanvas.ts +26 -26
- package/src/skia/web/JsiSkNativeBufferFactory.ts +1 -5
- package/src/skia/web/JsiSkParagraphStyle.ts +2 -1
- package/src/views/SkiaDomView.tsx +0 -8
- package/libs/ios/libskia.xcframework/Info.plist +0 -46
- package/libs/ios/libskia.xcframework/ios-arm64_arm64e/libskia.a +0 -0
- package/libs/ios/libskia.xcframework/ios-arm64_arm64e_x86_64-simulator/libskia.a +0 -0
- package/libs/ios/libskottie.xcframework/Info.plist +0 -46
- package/libs/ios/libskottie.xcframework/ios-arm64_arm64e/libskottie.a +0 -0
- package/libs/ios/libskottie.xcframework/ios-arm64_arm64e_x86_64-simulator/libskottie.a +0 -0
- package/libs/ios/libskparagraph.xcframework/Info.plist +0 -46
- package/libs/ios/libskparagraph.xcframework/ios-arm64_arm64e/libskparagraph.a +0 -0
- package/libs/ios/libskparagraph.xcframework/ios-arm64_arm64e_x86_64-simulator/libskparagraph.a +0 -0
- package/libs/ios/libsksg.xcframework/Info.plist +0 -46
- package/libs/ios/libsksg.xcframework/ios-arm64_arm64e/libsksg.a +0 -0
- package/libs/ios/libsksg.xcframework/ios-arm64_arm64e_x86_64-simulator/libsksg.a +0 -0
- package/libs/ios/libskshaper.xcframework/Info.plist +0 -46
- package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e/libskshaper.a +0 -0
- package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e_x86_64-simulator/libskshaper.a +0 -0
- package/libs/ios/libskunicode.xcframework/Info.plist +0 -46
- package/libs/ios/libskunicode.xcframework/ios-arm64_arm64e/libskunicode.a +0 -0
- package/libs/ios/libskunicode.xcframework/ios-arm64_arm64e_x86_64-simulator/libskunicode.a +0 -0
- package/libs/ios/libsvg.xcframework/Info.plist +0 -46
- package/libs/ios/libsvg.xcframework/ios-arm64_arm64e/libsvg.a +0 -0
- package/libs/ios/libsvg.xcframework/ios-arm64_arm64e_x86_64-simulator/libsvg.a +0 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","useMemo","fitRects","rect2rect","Group","fitbox","fit","src","dst","rotation","rects","x","y","width","height","result","translate","rotate","Math","PI","FitBox","children","transform","createElement"],"sources":["FitBox.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport React, { useMemo } from \"react\";\n\nimport type { Fit } from \"../../../dom/nodes\";\nimport { fitRects, rect2rect } from \"../../../dom/nodes\";\nimport type { SkRect, Transforms3d } from \"../../../skia/types\";\nimport { Group } from \"../Group\";\n\ninterface FitProps {\n fit?: Fit;\n src: SkRect;\n dst: SkRect;\n children: ReactNode | ReactNode[];\n}\n\nexport const fitbox = (\n fit: Fit,\n src: SkRect,\n dst: SkRect,\n rotation: 0 | 90 | 180 | 270 = 0\n) => {\n \"worklet\";\n const rects = fitRects(\n fit,\n rotation === 90 || rotation === 270\n ? { x: 0, y: 0, width: src.height, height: src.width }\n : src,\n dst\n );\n const result = rect2rect(rects.src, rects.dst);\n if (rotation === 90) {\n return [\n ...result,\n { translate: [src.height, 0] },\n { rotate: Math.PI / 2 },\n ] as Transforms3d;\n }\n if (rotation === 180) {\n return [\n ...result,\n { translate: [src.width, src.height] },\n { rotate: Math.PI },\n ] as Transforms3d;\n }\n if (rotation === 270) {\n return [\n ...result,\n { translate: [0, src.width] },\n { rotate: -Math.PI / 2 },\n ] as Transforms3d;\n }\n return result;\n};\n\nexport const FitBox = ({ fit = \"contain\", src, dst, children }: FitProps) => {\n const transform = useMemo(() => fitbox(fit, src, dst), [dst, fit, src]);\n return <Group transform={transform}>{children}</Group>;\n};\n"],"mappings":"AACA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AAGtC,SAASC,QAAQ,EAAEC,SAAS,QAAQ,oBAAoB;AAExD,SAASC,KAAK,QAAQ,UAAU;AAShC,OAAO,MAAMC,MAAM,GAAGA,CACpBC,GAAQ,EACRC,GAAW,EACXC,GAAW,EACXC,QAA4B,GAAG,CAAC,KAC7B;EACH,SAAS;;EACT,MAAMC,KAAK,GAAGR,QAAQ,CACpBI,GAAG,EACHG,QAAQ,KAAK,EAAE,IAAIA,QAAQ,KAAK,GAAG,GAC/B;IAAEE,CAAC,EAAE,CAAC;IAAEC,CAAC,EAAE,CAAC;IAAEC,KAAK,EAAEN,GAAG,CAACO,MAAM;IAAEA,MAAM,EAAEP,GAAG,CAACM;EAAM,CAAC,GACpDN,GAAG,EACPC,GACF,CAAC;EACD,MAAMO,MAAM,GAAGZ,SAAS,CAACO,KAAK,CAACH,GAAG,EAAEG,KAAK,CAACF,GAAG,CAAC;EAC9C,IAAIC,QAAQ,KAAK,EAAE,EAAE;IACnB,OAAO,CACL,GAAGM,MAAM,EACT;MAAEC,SAAS,EAAE,CAACT,GAAG,CAACO,MAAM,EAAE,CAAC;IAAE,CAAC,EAC9B;MAAEG,MAAM,EAAEC,IAAI,CAACC,EAAE,GAAG;IAAE,CAAC,CACxB;EACH;EACA,IAAIV,QAAQ,KAAK,GAAG,EAAE;IACpB,OAAO,CACL,GAAGM,MAAM,EACT;MAAEC,SAAS,EAAE,CAACT,GAAG,CAACM,KAAK,EAAEN,GAAG,CAACO,MAAM;IAAE,CAAC,EACtC;MAAEG,MAAM,EAAEC,IAAI,CAACC;IAAG,CAAC,CACpB;EACH;EACA,IAAIV,QAAQ,KAAK,GAAG,EAAE;IACpB,OAAO,CACL,GAAGM,MAAM,EACT;MAAEC,SAAS,EAAE,CAAC,CAAC,EAAET,GAAG,CAACM,KAAK;IAAE,CAAC,EAC7B;MAAEI,MAAM,EAAE,CAACC,IAAI,CAACC,EAAE,GAAG;IAAE,CAAC,CACzB;EACH;EACA,OAAOJ,MAAM;AACf,CAAC;AAED,OAAO,MAAMK,MAAM,GAAGA,CAAC;EAAEd,GAAG,GAAG,SAAS;EAAEC,GAAG;EAAEC,GAAG;EAAEa;AAAmB,CAAC,KAAK;EAC3E,MAAMC,SAAS,GAAGrB,OAAO,CAAC,MAAMI,MAAM,CAACC,GAAG,EAAEC,GAAG,EAAEC,GAAG,CAAC,EAAE,CAACA,GAAG,EAAEF,GAAG,EAAEC,GAAG,CAAC,CAAC;EACvE,oBAAOP,KAAA,CAAAuB,aAAA,CAACnB,KAAK;IAACkB,SAAS,EAAEA;EAAU,GAAED,QAAgB,CAAC;AACxD,CAAC"}
|
1
|
+
{"version":3,"names":["React","useMemo","fitRects","rect2rect","Group","fitbox","fit","src","dst","rotation","rects","x","y","width","height","result","translate","rotate","Math","PI","FitBox","children","transform","createElement"],"sources":["FitBox.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport React, { useMemo } from \"react\";\n\nimport type { Fit } from \"../../../dom/nodes\";\nimport { fitRects, rect2rect } from \"../../../dom/nodes\";\nimport type { SkRect, Transforms3d } from \"../../../skia/types\";\nimport { Group } from \"../Group\";\n\ninterface FitProps {\n fit?: Fit;\n src: SkRect;\n dst: SkRect;\n children: ReactNode | ReactNode[];\n}\n\nexport const fitbox = (\n fit: Fit,\n src: SkRect,\n dst: SkRect,\n rotation: 0 | 90 | 180 | 270 = 0\n) => {\n \"worklet\";\n const rects = fitRects(\n fit,\n rotation === 90 || rotation === 270\n ? { x: 0, y: 0, width: src.height, height: src.width }\n : src,\n dst\n );\n const result = rect2rect(rects.src, rects.dst);\n if (rotation === 90) {\n return [\n ...result,\n { translate: [src.height, 0] },\n { rotate: Math.PI / 2 },\n ] as Transforms3d;\n }\n if (rotation === 180) {\n return [\n ...result,\n { translate: [src.width, src.height] },\n { rotate: Math.PI },\n ] as Transforms3d;\n }\n if (rotation === 270) {\n return [\n ...result,\n { translate: [0, src.width] },\n { rotate: -Math.PI / 2 },\n ] as Transforms3d;\n }\n return result;\n};\n\nexport const FitBox = ({ fit = \"contain\", src, dst, children }: FitProps) => {\n const transform = useMemo(() => fitbox(fit, src, dst), [dst, fit, src]);\n return <Group transform={transform}>{children}</Group>;\n};\n"],"mappings":"AACA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AAGtC,SAASC,QAAQ,EAAEC,SAAS,QAAQ,oBAAoB;AAExD,SAASC,KAAK,QAAQ,UAAU;AAShC,OAAO,MAAMC,MAAM,GAAGA,CACpBC,GAAQ,EACRC,GAAW,EACXC,GAAW,EACXC,QAA4B,GAAG,CAAC,KAC7B;EACH,SAAS;;EACT,MAAMC,KAAK,GAAGR,QAAQ,CACpBI,GAAG,EACHG,QAAQ,KAAK,EAAE,IAAIA,QAAQ,KAAK,GAAG,GAC/B;IAAEE,CAAC,EAAE,CAAC;IAAEC,CAAC,EAAE,CAAC;IAAEC,KAAK,EAAEN,GAAG,CAACO,MAAM;IAAEA,MAAM,EAAEP,GAAG,CAACM;EAAM,CAAC,GACpDN,GAAG,EACPC,GACF,CAAC;EACD,MAAMO,MAAM,GAAGZ,SAAS,CAACO,KAAK,CAACH,GAAG,EAAEG,KAAK,CAACF,GAAG,CAAC;EAC9C,IAAIC,QAAQ,KAAK,EAAE,EAAE;IACnB,OAAO,CACL,GAAGM,MAAM,EACT;MAAEC,SAAS,EAAE,CAACT,GAAG,CAACO,MAAM,EAAE,CAAC;IAAE,CAAC,EAC9B;MAAEG,MAAM,EAAEC,IAAI,CAACC,EAAE,GAAG;IAAE,CAAC,CACxB;EACH;EACA,IAAIV,QAAQ,KAAK,GAAG,EAAE;IACpB,OAAO,CACL,GAAGM,MAAM,EACT;MAAEC,SAAS,EAAE,CAACT,GAAG,CAACM,KAAK,EAAEN,GAAG,CAACO,MAAM;IAAE,CAAC,EACtC;MAAEG,MAAM,EAAEC,IAAI,CAACC;IAAG,CAAC,CACpB;EACH;EACA,IAAIV,QAAQ,KAAK,GAAG,EAAE;IACpB,OAAO,CACL,GAAGM,MAAM,EACT;MAAEC,SAAS,EAAE,CAAC,CAAC,EAAET,GAAG,CAACM,KAAK;IAAE,CAAC,EAC7B;MAAEI,MAAM,EAAE,CAACC,IAAI,CAACC,EAAE,GAAG;IAAE,CAAC,CACzB;EACH;EACA,OAAOJ,MAAM;AACf,CAAC;AAED,OAAO,MAAMK,MAAM,GAAGA,CAAC;EAAEd,GAAG,GAAG,SAAS;EAAEC,GAAG;EAAEC,GAAG;EAAEa;AAAmB,CAAC,KAAK;EAC3E,MAAMC,SAAS,GAAGrB,OAAO,CAAC,MAAMI,MAAM,CAACC,GAAG,EAAEC,GAAG,EAAEC,GAAG,CAAC,EAAE,CAACA,GAAG,EAAEF,GAAG,EAAEC,GAAG,CAAC,CAAC;EACvE,oBAAOP,KAAA,CAAAuB,aAAA,CAACnB,KAAK;IAACkB,SAAS,EAAEA;EAAU,GAAED,QAAgB,CAAC;AACxD,CAAC","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","Line","props","createElement"],"sources":["Line.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { LineProps } from \"../../../dom/types\";\n\nexport const Line = (props: SkiaProps<LineProps>) => {\n return <skLine {...props} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAKzB,OAAO,MAAMC,IAAI,GAAIC,KAA2B,IAAK;EACnD,oBAAOF,KAAA,CAAAG,aAAA,WAAYD,KAAQ,CAAC;AAC9B,CAAC"}
|
1
|
+
{"version":3,"names":["React","Line","props","createElement"],"sources":["Line.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { LineProps } from \"../../../dom/types\";\n\nexport const Line = (props: SkiaProps<LineProps>) => {\n return <skLine {...props} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAKzB,OAAO,MAAMC,IAAI,GAAIC,KAA2B,IAAK;EACnD,oBAAOF,KAAA,CAAAG,aAAA,WAAYD,KAAQ,CAAC;AAC9B,CAAC","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","Oval","props","createElement"],"sources":["Oval.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { OvalProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const Oval = (props: SkiaProps<OvalProps>) => {\n return <skOval {...props} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAKzB,OAAO,MAAMC,IAAI,GAAIC,KAA2B,IAAK;EACnD,oBAAOF,KAAA,CAAAG,aAAA,WAAYD,KAAQ,CAAC;AAC9B,CAAC"}
|
1
|
+
{"version":3,"names":["React","Oval","props","createElement"],"sources":["Oval.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { OvalProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const Oval = (props: SkiaProps<OvalProps>) => {\n return <skOval {...props} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAKzB,OAAO,MAAMC,IAAI,GAAIC,KAA2B,IAAK;EACnD,oBAAOF,KAAA,CAAAG,aAAA,WAAYD,KAAQ,CAAC;AAC9B,CAAC","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","Patch","props","createElement"],"sources":["Patch.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { PatchProps } from \"../../../dom/types\";\n\nexport const Patch = (props: SkiaProps<PatchProps>) => {\n return <skPatch {...props} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAKzB,OAAO,MAAMC,KAAK,GAAIC,KAA4B,IAAK;EACrD,oBAAOF,KAAA,CAAAG,aAAA,YAAaD,KAAQ,CAAC;AAC/B,CAAC"}
|
1
|
+
{"version":3,"names":["React","Patch","props","createElement"],"sources":["Patch.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { PatchProps } from \"../../../dom/types\";\n\nexport const Patch = (props: SkiaProps<PatchProps>) => {\n return <skPatch {...props} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAKzB,OAAO,MAAMC,KAAK,GAAIC,KAA4B,IAAK;EACrD,oBAAOF,KAAA,CAAAG,aAAA,YAAaD,KAAQ,CAAC;AAC/B,CAAC","ignoreList":[]}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
2
2
|
import React from "react";
|
3
3
|
export const Path = ({
|
4
4
|
start = 0,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","Path","start","end","props","createElement","_extends"],"sources":["Path.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaDefaultProps } from \"../../processors\";\nimport type { PathProps } from \"../../../dom/types\";\n\nexport const Path = ({\n start = 0,\n end = 1,\n ...props\n}: SkiaDefaultProps<PathProps, \"start\" | \"end\">) => {\n return <skPath start={start} end={end} {...props} />;\n};\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAKzB,OAAO,MAAMC,IAAI,GAAGA,CAAC;EACnBC,KAAK,GAAG,CAAC;EACTC,GAAG,GAAG,CAAC;EACP,GAAGC;AACyC,CAAC,KAAK;EAClD,oBAAOJ,KAAA,CAAAK,aAAA,WAAAC,QAAA;IAAQJ,KAAK,EAAEA,KAAM;IAACC,GAAG,EAAEA;EAAI,GAAKC,KAAK,CAAG,CAAC;AACtD,CAAC"}
|
1
|
+
{"version":3,"names":["React","Path","start","end","props","createElement","_extends"],"sources":["Path.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaDefaultProps } from \"../../processors\";\nimport type { PathProps } from \"../../../dom/types\";\n\nexport const Path = ({\n start = 0,\n end = 1,\n ...props\n}: SkiaDefaultProps<PathProps, \"start\" | \"end\">) => {\n return <skPath start={start} end={end} {...props} />;\n};\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAKzB,OAAO,MAAMC,IAAI,GAAGA,CAAC;EACnBC,KAAK,GAAG,CAAC;EACTC,GAAG,GAAG,CAAC;EACP,GAAGC;AACyC,CAAC,KAAK;EAClD,oBAAOJ,KAAA,CAAAK,aAAA,WAAAC,QAAA;IAAQJ,KAAK,EAAEA,KAAM;IAACC,GAAG,EAAEA;EAAI,GAAKC,KAAK,CAAG,CAAC;AACtD,CAAC","ignoreList":[]}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
2
2
|
import React from "react";
|
3
3
|
export const Points = ({
|
4
4
|
mode = "points",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","Points","mode","props","createElement","_extends"],"sources":["Points.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaDefaultProps } from \"../../processors/Animations/Animations\";\nimport type { PointsProps } from \"../../../dom/types\";\n\nexport const Points = ({\n mode = \"points\",\n ...props\n}: SkiaDefaultProps<PointsProps, \"mode\">) => {\n return <skPoints mode={mode} {...props} />;\n};\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAKzB,OAAO,MAAMC,MAAM,GAAGA,CAAC;EACrBC,IAAI,GAAG,QAAQ;EACf,GAAGC;AACkC,CAAC,KAAK;EAC3C,oBAAOH,KAAA,CAAAI,aAAA,aAAAC,QAAA;IAAUH,IAAI,EAAEA;EAAK,GAAKC,KAAK,CAAG,CAAC;AAC5C,CAAC"}
|
1
|
+
{"version":3,"names":["React","Points","mode","props","createElement","_extends"],"sources":["Points.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaDefaultProps } from \"../../processors/Animations/Animations\";\nimport type { PointsProps } from \"../../../dom/types\";\n\nexport const Points = ({\n mode = \"points\",\n ...props\n}: SkiaDefaultProps<PointsProps, \"mode\">) => {\n return <skPoints mode={mode} {...props} />;\n};\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAKzB,OAAO,MAAMC,MAAM,GAAGA,CAAC;EACrBC,IAAI,GAAG,QAAQ;EACf,GAAGC;AACkC,CAAC,KAAK;EAC3C,oBAAOH,KAAA,CAAAI,aAAA,aAAAC,QAAA;IAAUH,IAAI,EAAEA;EAAK,GAAKC,KAAK,CAAG,CAAC;AAC5C,CAAC","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","Rect","props","createElement"],"sources":["Rect.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { RectProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const Rect = (props: SkiaProps<RectProps>) => {\n return <skRect {...props} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAKzB,OAAO,MAAMC,IAAI,GAAIC,KAA2B,IAAK;EACnD,oBAAOF,KAAA,CAAAG,aAAA,WAAYD,KAAQ,CAAC;AAC9B,CAAC"}
|
1
|
+
{"version":3,"names":["React","Rect","props","createElement"],"sources":["Rect.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { RectProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const Rect = (props: SkiaProps<RectProps>) => {\n return <skRect {...props} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAKzB,OAAO,MAAMC,IAAI,GAAIC,KAA2B,IAAK;EACnD,oBAAOF,KAAA,CAAAG,aAAA,WAAYD,KAAQ,CAAC;AAC9B,CAAC","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","RoundedRect","props","createElement"],"sources":["RoundedRect.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { RoundedRectProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const RoundedRect = (props: SkiaProps<RoundedRectProps>) => {\n return <skRRect {...props} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAKzB,OAAO,MAAMC,WAAW,GAAIC,KAAkC,IAAK;EACjE,oBAAOF,KAAA,CAAAG,aAAA,YAAaD,KAAQ,CAAC;AAC/B,CAAC"}
|
1
|
+
{"version":3,"names":["React","RoundedRect","props","createElement"],"sources":["RoundedRect.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { RoundedRectProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const RoundedRect = (props: SkiaProps<RoundedRectProps>) => {\n return <skRRect {...props} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAKzB,OAAO,MAAMC,WAAW,GAAIC,KAAkC,IAAK;EACjE,oBAAOF,KAAA,CAAAG,aAAA,YAAaD,KAAQ,CAAC;AAC/B,CAAC","ignoreList":[]}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
2
2
|
import React from "react";
|
3
3
|
export const Vertices = ({
|
4
4
|
mode = "triangles",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","Vertices","mode","props","createElement","_extends"],"sources":["Vertices.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaDefaultProps } from \"../../processors\";\nimport type { VerticesProps } from \"../../../dom/types\";\n\nexport const Vertices = ({\n mode = \"triangles\",\n ...props\n}: SkiaDefaultProps<VerticesProps, \"mode\">) => {\n return <skVertices mode={mode} {...props} />;\n};\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAKzB,OAAO,MAAMC,QAAQ,GAAGA,CAAC;EACvBC,IAAI,GAAG,WAAW;EAClB,GAAGC;AACoC,CAAC,KAAK;EAC7C,oBAAOH,KAAA,CAAAI,aAAA,eAAAC,QAAA;IAAYH,IAAI,EAAEA;EAAK,GAAKC,KAAK,CAAG,CAAC;AAC9C,CAAC"}
|
1
|
+
{"version":3,"names":["React","Vertices","mode","props","createElement","_extends"],"sources":["Vertices.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaDefaultProps } from \"../../processors\";\nimport type { VerticesProps } from \"../../../dom/types\";\n\nexport const Vertices = ({\n mode = \"triangles\",\n ...props\n}: SkiaDefaultProps<VerticesProps, \"mode\">) => {\n return <skVertices mode={mode} {...props} />;\n};\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAKzB,OAAO,MAAMC,QAAQ,GAAGA,CAAC;EACvBC,IAAI,GAAG,WAAW;EAClB,GAAGC;AACoC,CAAC,KAAK;EAC7C,oBAAOH,KAAA,CAAAI,aAAA,eAAAC,QAAA;IAAYH,IAAI,EAAEA;EAAK,GAAKC,KAAK,CAAG,CAAC;AAC9C,CAAC","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Circle\";\nexport * from \"./Rect\";\nexport * from \"./RoundedRect\";\nexport * from \"./DiffRect\";\nexport * from \"./Line\";\nexport * from \"./Path\";\nexport * from \"./Oval\";\nexport * from \"./Points\";\nexport * from \"./Patch\";\nexport * from \"./Vertices\";\nexport * from \"./Fill\";\nexport * from \"./FitBox\";\nexport * from \"./Box\";\nexport * from \"./Atlas\";\n"],"mappings":"AAAA,cAAc,UAAU;AACxB,cAAc,QAAQ;AACtB,cAAc,eAAe;AAC7B,cAAc,YAAY;AAC1B,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,UAAU;AACxB,cAAc,SAAS;AACvB,cAAc,YAAY;AAC1B,cAAc,QAAQ;AACtB,cAAc,UAAU;AACxB,cAAc,OAAO;AACrB,cAAc,SAAS"}
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Circle\";\nexport * from \"./Rect\";\nexport * from \"./RoundedRect\";\nexport * from \"./DiffRect\";\nexport * from \"./Line\";\nexport * from \"./Path\";\nexport * from \"./Oval\";\nexport * from \"./Points\";\nexport * from \"./Patch\";\nexport * from \"./Vertices\";\nexport * from \"./Fill\";\nexport * from \"./FitBox\";\nexport * from \"./Box\";\nexport * from \"./Atlas\";\n"],"mappings":"AAAA,cAAc,UAAU;AACxB,cAAc,QAAQ;AACtB,cAAc,eAAe;AAC7B,cAAc,YAAY;AAC1B,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,UAAU;AACxB,cAAc,SAAS;AACvB,cAAc,YAAY;AAC1B,cAAc,QAAQ;AACtB,cAAc,UAAU;AACxB,cAAc,OAAO;AACrB,cAAc,SAAS","ignoreList":[]}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
2
2
|
import React from "react";
|
3
3
|
export const Glyphs = ({
|
4
4
|
x = 0,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","Glyphs","x","y","props","createElement","_extends"],"sources":["Glyphs.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { GlyphsProps } from \"../../../dom/types\";\nimport type { SkiaDefaultProps } from \"../../processors/Animations/Animations\";\n\nexport const Glyphs = ({\n x = 0,\n y = 0,\n ...props\n}: SkiaDefaultProps<GlyphsProps, \"x\" | \"y\">) => {\n return <skGlyphs x={x} y={y} {...props} />;\n};\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAKzB,OAAO,MAAMC,MAAM,GAAGA,CAAC;EACrBC,CAAC,GAAG,CAAC;EACLC,CAAC,GAAG,CAAC;EACL,GAAGC;AACqC,CAAC,KAAK;EAC9C,oBAAOJ,KAAA,CAAAK,aAAA,aAAAC,QAAA;IAAUJ,CAAC,EAAEA,CAAE;IAACC,CAAC,EAAEA;EAAE,GAAKC,KAAK,CAAG,CAAC;AAC5C,CAAC"}
|
1
|
+
{"version":3,"names":["React","Glyphs","x","y","props","createElement","_extends"],"sources":["Glyphs.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { GlyphsProps } from \"../../../dom/types\";\nimport type { SkiaDefaultProps } from \"../../processors/Animations/Animations\";\n\nexport const Glyphs = ({\n x = 0,\n y = 0,\n ...props\n}: SkiaDefaultProps<GlyphsProps, \"x\" | \"y\">) => {\n return <skGlyphs x={x} y={y} {...props} />;\n};\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAKzB,OAAO,MAAMC,MAAM,GAAGA,CAAC;EACrBC,CAAC,GAAG,CAAC;EACLC,CAAC,GAAG,CAAC;EACL,GAAGC;AACqC,CAAC,KAAK;EAC9C,oBAAOJ,KAAA,CAAAK,aAAA,aAAAC,QAAA;IAAUJ,CAAC,EAAEA,CAAE;IAACC,CAAC,EAAEA;EAAE,GAAKC,KAAK,CAAG,CAAC;AAC5C,CAAC","ignoreList":[]}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
2
2
|
import React from "react";
|
3
3
|
export const Text = ({
|
4
4
|
x = 0,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","Text","x","y","props","createElement","_extends"],"sources":["Text.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaDefaultProps } from \"../../processors\";\nimport type { TextProps } from \"../../../dom/types\";\n\nexport const Text = ({\n x = 0,\n y = 0,\n ...props\n}: SkiaDefaultProps<TextProps, \"x\" | \"y\">) => {\n return <skText x={x} y={y} {...props} />;\n};\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAKzB,OAAO,MAAMC,IAAI,GAAGA,CAAC;EACnBC,CAAC,GAAG,CAAC;EACLC,CAAC,GAAG,CAAC;EACL,GAAGC;AACmC,CAAC,KAAK;EAC5C,oBAAOJ,KAAA,CAAAK,aAAA,WAAAC,QAAA;IAAQJ,CAAC,EAAEA,CAAE;IAACC,CAAC,EAAEA;EAAE,GAAKC,KAAK,CAAG,CAAC;AAC1C,CAAC"}
|
1
|
+
{"version":3,"names":["React","Text","x","y","props","createElement","_extends"],"sources":["Text.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaDefaultProps } from \"../../processors\";\nimport type { TextProps } from \"../../../dom/types\";\n\nexport const Text = ({\n x = 0,\n y = 0,\n ...props\n}: SkiaDefaultProps<TextProps, \"x\" | \"y\">) => {\n return <skText x={x} y={y} {...props} />;\n};\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAKzB,OAAO,MAAMC,IAAI,GAAGA,CAAC;EACnBC,CAAC,GAAG,CAAC;EACLC,CAAC,GAAG,CAAC;EACL,GAAGC;AACmC,CAAC,KAAK;EAC5C,oBAAOJ,KAAA,CAAAK,aAAA,WAAAC,QAAA;IAAQJ,CAAC,EAAEA,CAAE;IAACC,CAAC,EAAEA;EAAE,GAAKC,KAAK,CAAG,CAAC;AAC1C,CAAC","ignoreList":[]}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
2
2
|
import React from "react";
|
3
3
|
export const TextBlob = ({
|
4
4
|
x = 0,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","TextBlob","x","y","props","createElement","_extends"],"sources":["TextBlob.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaDefaultProps } from \"../../processors\";\nimport type { TextBlobProps } from \"../../../dom/types\";\n\nexport const TextBlob = ({\n x = 0,\n y = 0,\n ...props\n}: SkiaDefaultProps<TextBlobProps, \"x\" | \"y\">) => {\n return <skTextBlob x={x} y={y} {...props} />;\n};\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAKzB,OAAO,MAAMC,QAAQ,GAAGA,CAAC;EACvBC,CAAC,GAAG,CAAC;EACLC,CAAC,GAAG,CAAC;EACL,GAAGC;AACuC,CAAC,KAAK;EAChD,oBAAOJ,KAAA,CAAAK,aAAA,eAAAC,QAAA;IAAYJ,CAAC,EAAEA,CAAE;IAACC,CAAC,EAAEA;EAAE,GAAKC,KAAK,CAAG,CAAC;AAC9C,CAAC"}
|
1
|
+
{"version":3,"names":["React","TextBlob","x","y","props","createElement","_extends"],"sources":["TextBlob.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaDefaultProps } from \"../../processors\";\nimport type { TextBlobProps } from \"../../../dom/types\";\n\nexport const TextBlob = ({\n x = 0,\n y = 0,\n ...props\n}: SkiaDefaultProps<TextBlobProps, \"x\" | \"y\">) => {\n return <skTextBlob x={x} y={y} {...props} />;\n};\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAKzB,OAAO,MAAMC,QAAQ,GAAGA,CAAC;EACvBC,CAAC,GAAG,CAAC;EACLC,CAAC,GAAG,CAAC;EACL,GAAGC;AACuC,CAAC,KAAK;EAChD,oBAAOJ,KAAA,CAAAK,aAAA,eAAAC,QAAA;IAAYJ,CAAC,EAAEA,CAAE;IAACC,CAAC,EAAEA;EAAE,GAAKC,KAAK,CAAG,CAAC;AAC9C,CAAC","ignoreList":[]}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
2
2
|
import React from "react";
|
3
3
|
export const TextPath = ({
|
4
4
|
initialOffset = 0,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","TextPath","initialOffset","props","createElement","_extends"],"sources":["TextPath.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaDefaultProps } from \"../../processors\";\nimport type { TextPathProps } from \"../../../dom/types\";\n\nexport const TextPath = ({\n initialOffset = 0,\n ...props\n}: SkiaDefaultProps<TextPathProps, \"initialOffset\">) => {\n return <skTextPath initialOffset={initialOffset} {...props} />;\n};\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAKzB,OAAO,MAAMC,QAAQ,GAAGA,CAAC;EACvBC,aAAa,GAAG,CAAC;EACjB,GAAGC;AAC6C,CAAC,KAAK;EACtD,oBAAOH,KAAA,CAAAI,aAAA,eAAAC,QAAA;IAAYH,aAAa,EAAEA;EAAc,GAAKC,KAAK,CAAG,CAAC;AAChE,CAAC"}
|
1
|
+
{"version":3,"names":["React","TextPath","initialOffset","props","createElement","_extends"],"sources":["TextPath.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaDefaultProps } from \"../../processors\";\nimport type { TextPathProps } from \"../../../dom/types\";\n\nexport const TextPath = ({\n initialOffset = 0,\n ...props\n}: SkiaDefaultProps<TextPathProps, \"initialOffset\">) => {\n return <skTextPath initialOffset={initialOffset} {...props} />;\n};\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAKzB,OAAO,MAAMC,QAAQ,GAAGA,CAAC;EACvBC,aAAa,GAAG,CAAC;EACjB,GAAGC;AAC6C,CAAC,KAAK;EACtD,oBAAOH,KAAA,CAAAI,aAAA,eAAAC,QAAA;IAAYH,aAAa,EAAEA;EAAc,GAAKC,KAAK,CAAG,CAAC;AAChE,CAAC","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Text\";\nexport * from \"./Glyphs\";\nexport * from \"./TextBlob\";\nexport * from \"./TextPath\";\n"],"mappings":"AAAA,cAAc,QAAQ;AACtB,cAAc,UAAU;AACxB,cAAc,YAAY;AAC1B,cAAc,YAAY"}
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Text\";\nexport * from \"./Glyphs\";\nexport * from \"./TextBlob\";\nexport * from \"./TextPath\";\n"],"mappings":"AAAA,cAAc,QAAQ;AACtB,cAAc,UAAU;AACxB,cAAc,YAAY;AAC1B,cAAc,YAAY","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./components\";\n"],"mappings":"AAAA,cAAc,cAAc"}
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./components\";\n"],"mappings":"AAAA,cAAc,cAAc","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":[],"sources":["Animations.ts"],"sourcesContent":["export type SharedValueType<T = number> = {\n value: T;\n};\n\nexport type AnimatedProp<T> = T | SharedValueType<T>;\n\nexport type AnimatedProps<T, O extends keyof T | never = never> = {\n [K in keyof T]: K extends \"children\"\n ? T[K]\n : K extends O\n ? T[K]\n : AnimatedProp<T[K]>;\n};\n\nexport type SkiaProps<\n P = object,\n O extends keyof P | never = never\n> = AnimatedProps<P, O>;\n\ntype WithOptional<T extends object, N extends keyof T> = Omit<T, N> & {\n [K in N]?: T[K];\n};\n\nexport type SkiaDefaultProps<\n T extends object,\n N extends keyof T\n> = WithOptional<SkiaProps<T>, N>;\n"],"mappings":""}
|
1
|
+
{"version":3,"names":[],"sources":["Animations.ts"],"sourcesContent":["export type SharedValueType<T = number> = {\n value: T;\n};\n\nexport type AnimatedProp<T> = T | SharedValueType<T>;\n\nexport type AnimatedProps<T, O extends keyof T | never = never> = {\n [K in keyof T]: K extends \"children\"\n ? T[K]\n : K extends O\n ? T[K]\n : AnimatedProp<T[K]>;\n};\n\nexport type SkiaProps<\n P = object,\n O extends keyof P | never = never\n> = AnimatedProps<P, O>;\n\ntype WithOptional<T extends object, N extends keyof T> = Omit<T, N> & {\n [K in N]?: T[K];\n};\n\nexport type SkiaDefaultProps<\n T extends object,\n N extends keyof T\n> = WithOptional<SkiaProps<T>, N>;\n"],"mappings":"","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Animations\";\n"],"mappings":"AAAA,cAAc,cAAc"}
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Animations\";\n"],"mappings":"AAAA,cAAc,cAAc","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Animations\";\nexport * from \"./math\";\n"],"mappings":"AAAA,cAAc,cAAc;AAC5B,cAAc,QAAQ"}
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Animations\";\nexport * from \"./math\";\n"],"mappings":"AAAA,cAAc,cAAc;AAC5B,cAAc,QAAQ","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["canvas2Cartesian","v","center","x","y","cartesian2Canvas","cartesian2Polar","theta","Math","atan2","radius","sqrt","polar2Cartesian","p","cos","sin","polar2Canvas","canvas2Polar"],"sources":["Coordinates.ts"],"sourcesContent":["import type { Vector } from \"../../../skia/types\";\n\nexport interface PolarPoint {\n theta: number;\n radius: number;\n}\n\nexport const canvas2Cartesian = (v: Vector, center: Vector) => {\n \"worklet\";\n return {\n x: v.x - center.x,\n y: -1 * (v.y - center.y),\n };\n};\n\nexport const cartesian2Canvas = (v: Vector, center: Vector) => {\n \"worklet\";\n return {\n x: v.x + center.x,\n y: -1 * v.y + center.y,\n };\n};\n\nexport const cartesian2Polar = (v: Vector) => {\n \"worklet\";\n return {\n theta: Math.atan2(v.y, v.x),\n radius: Math.sqrt(v.x ** 2 + v.y ** 2),\n };\n};\n\nexport const polar2Cartesian = (p: PolarPoint) => {\n \"worklet\";\n return {\n x: p.radius * Math.cos(p.theta),\n y: p.radius * Math.sin(p.theta),\n };\n};\n\nexport const polar2Canvas = (p: PolarPoint, center: Vector) => {\n \"worklet\";\n return cartesian2Canvas(polar2Cartesian(p), center);\n};\n\nexport const canvas2Polar = (v: Vector, center: Vector) => {\n \"worklet\";\n return cartesian2Polar(canvas2Cartesian(v, center));\n};\n"],"mappings":"AAOA,OAAO,MAAMA,gBAAgB,GAAGA,CAACC,CAAS,EAAEC,MAAc,KAAK;EAC7D,SAAS;;EACT,OAAO;IACLC,CAAC,EAAEF,CAAC,CAACE,CAAC,GAAGD,MAAM,CAACC,CAAC;IACjBC,CAAC,EAAE,CAAC,CAAC,IAAIH,CAAC,CAACG,CAAC,GAAGF,MAAM,CAACE,CAAC;EACzB,CAAC;AACH,CAAC;AAED,OAAO,MAAMC,gBAAgB,GAAGA,CAACJ,CAAS,EAAEC,MAAc,KAAK;EAC7D,SAAS;;EACT,OAAO;IACLC,CAAC,EAAEF,CAAC,CAACE,CAAC,GAAGD,MAAM,CAACC,CAAC;IACjBC,CAAC,EAAE,CAAC,CAAC,GAAGH,CAAC,CAACG,CAAC,GAAGF,MAAM,CAACE;EACvB,CAAC;AACH,CAAC;AAED,OAAO,MAAME,eAAe,GAAIL,CAAS,IAAK;EAC5C,SAAS;;EACT,OAAO;IACLM,KAAK,EAAEC,IAAI,CAACC,KAAK,CAACR,CAAC,CAACG,CAAC,EAAEH,CAAC,CAACE,CAAC,CAAC;IAC3BO,MAAM,EAAEF,IAAI,CAACG,IAAI,CAACV,CAAC,CAACE,CAAC,IAAI,CAAC,GAAGF,CAAC,CAACG,CAAC,IAAI,CAAC;EACvC,CAAC;AACH,CAAC;AAED,OAAO,MAAMQ,eAAe,GAAIC,CAAa,IAAK;EAChD,SAAS;;EACT,OAAO;IACLV,CAAC,EAAEU,CAAC,CAACH,MAAM,GAAGF,IAAI,CAACM,GAAG,CAACD,CAAC,CAACN,KAAK,CAAC;IAC/BH,CAAC,EAAES,CAAC,CAACH,MAAM,GAAGF,IAAI,CAACO,GAAG,CAACF,CAAC,CAACN,KAAK;EAChC,CAAC;AACH,CAAC;AAED,OAAO,MAAMS,YAAY,GAAGA,CAACH,CAAa,EAAEX,MAAc,KAAK;EAC7D,SAAS;;EACT,OAAOG,gBAAgB,CAACO,eAAe,CAACC,CAAC,CAAC,EAAEX,MAAM,CAAC;AACrD,CAAC;AAED,OAAO,MAAMe,YAAY,GAAGA,CAAChB,CAAS,EAAEC,MAAc,KAAK;EACzD,SAAS;;EACT,OAAOI,eAAe,CAACN,gBAAgB,CAACC,CAAC,EAAEC,MAAM,CAAC,CAAC;AACrD,CAAC"}
|
1
|
+
{"version":3,"names":["canvas2Cartesian","v","center","x","y","cartesian2Canvas","cartesian2Polar","theta","Math","atan2","radius","sqrt","polar2Cartesian","p","cos","sin","polar2Canvas","canvas2Polar"],"sources":["Coordinates.ts"],"sourcesContent":["import type { Vector } from \"../../../skia/types\";\n\nexport interface PolarPoint {\n theta: number;\n radius: number;\n}\n\nexport const canvas2Cartesian = (v: Vector, center: Vector) => {\n \"worklet\";\n return {\n x: v.x - center.x,\n y: -1 * (v.y - center.y),\n };\n};\n\nexport const cartesian2Canvas = (v: Vector, center: Vector) => {\n \"worklet\";\n return {\n x: v.x + center.x,\n y: -1 * v.y + center.y,\n };\n};\n\nexport const cartesian2Polar = (v: Vector) => {\n \"worklet\";\n return {\n theta: Math.atan2(v.y, v.x),\n radius: Math.sqrt(v.x ** 2 + v.y ** 2),\n };\n};\n\nexport const polar2Cartesian = (p: PolarPoint) => {\n \"worklet\";\n return {\n x: p.radius * Math.cos(p.theta),\n y: p.radius * Math.sin(p.theta),\n };\n};\n\nexport const polar2Canvas = (p: PolarPoint, center: Vector) => {\n \"worklet\";\n return cartesian2Canvas(polar2Cartesian(p), center);\n};\n\nexport const canvas2Polar = (v: Vector, center: Vector) => {\n \"worklet\";\n return cartesian2Polar(canvas2Cartesian(v, center));\n};\n"],"mappings":"AAOA,OAAO,MAAMA,gBAAgB,GAAGA,CAACC,CAAS,EAAEC,MAAc,KAAK;EAC7D,SAAS;;EACT,OAAO;IACLC,CAAC,EAAEF,CAAC,CAACE,CAAC,GAAGD,MAAM,CAACC,CAAC;IACjBC,CAAC,EAAE,CAAC,CAAC,IAAIH,CAAC,CAACG,CAAC,GAAGF,MAAM,CAACE,CAAC;EACzB,CAAC;AACH,CAAC;AAED,OAAO,MAAMC,gBAAgB,GAAGA,CAACJ,CAAS,EAAEC,MAAc,KAAK;EAC7D,SAAS;;EACT,OAAO;IACLC,CAAC,EAAEF,CAAC,CAACE,CAAC,GAAGD,MAAM,CAACC,CAAC;IACjBC,CAAC,EAAE,CAAC,CAAC,GAAGH,CAAC,CAACG,CAAC,GAAGF,MAAM,CAACE;EACvB,CAAC;AACH,CAAC;AAED,OAAO,MAAME,eAAe,GAAIL,CAAS,IAAK;EAC5C,SAAS;;EACT,OAAO;IACLM,KAAK,EAAEC,IAAI,CAACC,KAAK,CAACR,CAAC,CAACG,CAAC,EAAEH,CAAC,CAACE,CAAC,CAAC;IAC3BO,MAAM,EAAEF,IAAI,CAACG,IAAI,CAACV,CAAC,CAACE,CAAC,IAAI,CAAC,GAAGF,CAAC,CAACG,CAAC,IAAI,CAAC;EACvC,CAAC;AACH,CAAC;AAED,OAAO,MAAMQ,eAAe,GAAIC,CAAa,IAAK;EAChD,SAAS;;EACT,OAAO;IACLV,CAAC,EAAEU,CAAC,CAACH,MAAM,GAAGF,IAAI,CAACM,GAAG,CAACD,CAAC,CAACN,KAAK,CAAC;IAC/BH,CAAC,EAAES,CAAC,CAACH,MAAM,GAAGF,IAAI,CAACO,GAAG,CAACF,CAAC,CAACN,KAAK;EAChC,CAAC;AACH,CAAC;AAED,OAAO,MAAMS,YAAY,GAAGA,CAACH,CAAa,EAAEX,MAAc,KAAK;EAC7D,SAAS;;EACT,OAAOG,gBAAgB,CAACO,eAAe,CAACC,CAAC,CAAC,EAAEX,MAAM,CAAC;AACrD,CAAC;AAED,OAAO,MAAMe,YAAY,GAAGA,CAAChB,CAAS,EAAEC,MAAc,KAAK;EACzD,SAAS;;EACT,OAAOI,eAAe,CAACN,gBAAgB,CAACC,CAAC,EAAEC,MAAM,CAAC,CAAC;AACrD,CAAC","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["mix","value","x","y","clamp","lowerBound","upperBound","Math","min","max","saturate"],"sources":["Math.ts"],"sourcesContent":["/**\n * Linear interpolation\n * @param value\n * @param x\n * @param y\n */\nexport const mix = (value: number, x: number, y: number) => {\n \"worklet\";\n return x * (1 - value) + y * value;\n};\n\n/**\n * @summary Clamps a node with a lower and upper bound.\n * @example\n clamp(-1, 0, 100); // 0\n clamp(1, 0, 100); // 1\n clamp(101, 0, 100); // 100\n */\nexport const clamp = (\n value: number,\n lowerBound: number,\n upperBound: number\n) => {\n \"worklet\";\n return Math.min(Math.max(lowerBound, value), upperBound);\n};\n\nexport const saturate = (value: number) => {\n \"worklet\";\n return clamp(value, 0, 1);\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,GAAG,GAAGA,CAACC,KAAa,EAAEC,CAAS,EAAEC,CAAS,KAAK;EAC1D,SAAS;;EACT,OAAOD,CAAC,IAAI,CAAC,GAAGD,KAAK,CAAC,GAAGE,CAAC,GAAGF,KAAK;AACpC,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMG,KAAK,GAAGA,CACnBH,KAAa,EACbI,UAAkB,EAClBC,UAAkB,KACf;EACH,SAAS;;EACT,OAAOC,IAAI,CAACC,GAAG,CAACD,IAAI,CAACE,GAAG,CAACJ,UAAU,EAAEJ,KAAK,CAAC,EAAEK,UAAU,CAAC;AAC1D,CAAC;AAED,OAAO,MAAMI,QAAQ,GAAIT,KAAa,IAAK;EACzC,SAAS;;EACT,OAAOG,KAAK,CAACH,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AAC3B,CAAC"}
|
1
|
+
{"version":3,"names":["mix","value","x","y","clamp","lowerBound","upperBound","Math","min","max","saturate"],"sources":["Math.ts"],"sourcesContent":["/**\n * Linear interpolation\n * @param value\n * @param x\n * @param y\n */\nexport const mix = (value: number, x: number, y: number) => {\n \"worklet\";\n return x * (1 - value) + y * value;\n};\n\n/**\n * @summary Clamps a node with a lower and upper bound.\n * @example\n clamp(-1, 0, 100); // 0\n clamp(1, 0, 100); // 1\n clamp(101, 0, 100); // 100\n */\nexport const clamp = (\n value: number,\n lowerBound: number,\n upperBound: number\n) => {\n \"worklet\";\n return Math.min(Math.max(lowerBound, value), upperBound);\n};\n\nexport const saturate = (value: number) => {\n \"worklet\";\n return clamp(value, 0, 1);\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,GAAG,GAAGA,CAACC,KAAa,EAAEC,CAAS,EAAEC,CAAS,KAAK;EAC1D,SAAS;;EACT,OAAOD,CAAC,IAAI,CAAC,GAAGD,KAAK,CAAC,GAAGE,CAAC,GAAGF,KAAK;AACpC,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMG,KAAK,GAAGA,CACnBH,KAAa,EACbI,UAAkB,EAClBC,UAAkB,KACf;EACH,SAAS;;EACT,OAAOC,IAAI,CAACC,GAAG,CAACD,IAAI,CAACE,GAAG,CAACJ,UAAU,EAAEJ,KAAK,CAAC,EAAEK,UAAU,CAAC;AAC1D,CAAC;AAED,OAAO,MAAMI,QAAQ,GAAIT,KAAa,IAAK;EACzC,SAAS;;EACT,OAAOG,KAAK,CAACH,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AAC3B,CAAC","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["canvas2Polar","polar2Canvas","rotate","tr","origin","rotation","radius","theta"],"sources":["Transforms.ts"],"sourcesContent":["import type { Vector } from \"../../../skia/types\";\n\nimport { canvas2Polar, polar2Canvas } from \"./Coordinates\";\n\nexport const rotate = (tr: Vector, origin: Vector, rotation: number) => {\n \"worklet\";\n const { radius, theta } = canvas2Polar(tr, origin);\n return polar2Canvas({ radius, theta: theta + rotation }, origin);\n};\n"],"mappings":"AAEA,SAASA,YAAY,EAAEC,YAAY,QAAQ,eAAe;AAE1D,OAAO,MAAMC,MAAM,GAAGA,CAACC,EAAU,EAAEC,MAAc,EAAEC,QAAgB,KAAK;EACtE,SAAS;;EACT,MAAM;IAAEC,MAAM;IAAEC;EAAM,CAAC,GAAGP,YAAY,CAACG,EAAE,EAAEC,MAAM,CAAC;EAClD,OAAOH,YAAY,CAAC;IAAEK,MAAM;IAAEC,KAAK,EAAEA,KAAK,GAAGF;EAAS,CAAC,EAAED,MAAM,CAAC;AAClE,CAAC"}
|
1
|
+
{"version":3,"names":["canvas2Polar","polar2Canvas","rotate","tr","origin","rotation","radius","theta"],"sources":["Transforms.ts"],"sourcesContent":["import type { Vector } from \"../../../skia/types\";\n\nimport { canvas2Polar, polar2Canvas } from \"./Coordinates\";\n\nexport const rotate = (tr: Vector, origin: Vector, rotation: number) => {\n \"worklet\";\n const { radius, theta } = canvas2Polar(tr, origin);\n return polar2Canvas({ radius, theta: theta + rotation }, origin);\n};\n"],"mappings":"AAEA,SAASA,YAAY,EAAEC,YAAY,QAAQ,eAAe;AAE1D,OAAO,MAAMC,MAAM,GAAGA,CAACC,EAAU,EAAEC,MAAc,EAAEC,QAAgB,KAAK;EACtE,SAAS;;EACT,MAAM;IAAEC,MAAM;IAAEC;EAAM,CAAC,GAAGP,YAAY,CAACG,EAAE,EAAEC,MAAM,CAAC;EAClD,OAAOH,YAAY,CAAC;IAAEK,MAAM;IAAEC,KAAK,EAAEA,KAAK,GAAGF;EAAS,CAAC,EAAED,MAAM,CAAC;AAClE,CAAC","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Coordinates\";\nexport * from \"./Math\";\nexport * from \"./Transforms\";\n"],"mappings":"AAAA,cAAc,eAAe;AAC7B,cAAc,QAAQ;AACtB,cAAc,cAAc"}
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Coordinates\";\nexport * from \"./Math\";\nexport * from \"./Transforms\";\n"],"mappings":"AAAA,cAAc,eAAe;AAC7B,cAAc,QAAQ;AACtB,cAAc,cAAc","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["mapKeys","obj","Object","keys","exhaustiveCheck","a","Error","shallowEq","p1","p2","keys1","keys2","length","key"],"sources":["typeddash.ts"],"sourcesContent":["export const mapKeys = <T extends object>(obj: T) =>\n Object.keys(obj) as (keyof T)[];\n\nexport const exhaustiveCheck = (a: never): never => {\n \"worklet\";\n throw new Error(`Unexhaustive handling for ${a}`);\n};\n\n// Shallow eq on props (without children)\nexport const shallowEq = <P extends object>(p1: P, p2: P): boolean => {\n const keys1 = mapKeys(p1);\n const keys2 = mapKeys(p2);\n if (keys1.length !== keys2.length) {\n return false;\n }\n for (const key of keys1) {\n if (key === \"children\") {\n continue;\n }\n if (p1[key] !== p2[key]) {\n return false;\n }\n }\n return true;\n};\n"],"mappings":"AAAA,OAAO,MAAMA,OAAO,GAAsBC,GAAM,IAC9CC,MAAM,CAACC,IAAI,CAACF,GAAG,CAAgB;AAEjC,OAAO,MAAMG,eAAe,GAAIC,CAAQ,IAAY;EAClD,SAAS;;EACT,MAAM,IAAIC,KAAK,
|
1
|
+
{"version":3,"names":["mapKeys","obj","Object","keys","exhaustiveCheck","a","Error","shallowEq","p1","p2","keys1","keys2","length","key"],"sources":["typeddash.ts"],"sourcesContent":["export const mapKeys = <T extends object>(obj: T) =>\n Object.keys(obj) as (keyof T)[];\n\nexport const exhaustiveCheck = (a: never): never => {\n \"worklet\";\n throw new Error(`Unexhaustive handling for ${a}`);\n};\n\n// Shallow eq on props (without children)\nexport const shallowEq = <P extends object>(p1: P, p2: P): boolean => {\n const keys1 = mapKeys(p1);\n const keys2 = mapKeys(p2);\n if (keys1.length !== keys2.length) {\n return false;\n }\n for (const key of keys1) {\n if (key === \"children\") {\n continue;\n }\n if (p1[key] !== p2[key]) {\n return false;\n }\n }\n return true;\n};\n"],"mappings":"AAAA,OAAO,MAAMA,OAAO,GAAsBC,GAAM,IAC9CC,MAAM,CAACC,IAAI,CAACF,GAAG,CAAgB;AAEjC,OAAO,MAAMG,eAAe,GAAIC,CAAQ,IAAY;EAClD,SAAS;;EACT,MAAM,IAAIC,KAAK,CAAC,6BAA6BD,CAAC,EAAE,CAAC;AACnD,CAAC;;AAED;AACA,OAAO,MAAME,SAAS,GAAGA,CAAmBC,EAAK,EAAEC,EAAK,KAAc;EACpE,MAAMC,KAAK,GAAGV,OAAO,CAACQ,EAAE,CAAC;EACzB,MAAMG,KAAK,GAAGX,OAAO,CAACS,EAAE,CAAC;EACzB,IAAIC,KAAK,CAACE,MAAM,KAAKD,KAAK,CAACC,MAAM,EAAE;IACjC,OAAO,KAAK;EACd;EACA,KAAK,MAAMC,GAAG,IAAIH,KAAK,EAAE;IACvB,IAAIG,GAAG,KAAK,UAAU,EAAE;MACtB;IACF;IACA,IAAIL,EAAE,CAACK,GAAG,CAAC,KAAKJ,EAAE,CAACI,GAAG,CAAC,EAAE;MACvB,OAAO,KAAK;IACd;EACF;EACA,OAAO,IAAI;AACb,CAAC","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["Platform","NativeSkiaModule","OS","global","SkiaApi","SkiaModule","install","Error","result"],"sources":["NativeSetup.ts"],"sourcesContent":["import { Platform } from \"../Platform\";\nimport NativeSkiaModule from \"../specs/NativeSkiaModule\";\n\nif (Platform.OS !== \"web\" && global.SkiaApi == null) {\n // Initialize RN Skia\n const SkiaModule = NativeSkiaModule;\n if (SkiaModule == null || typeof SkiaModule.install !== \"function\") {\n throw new Error(\n \"Native RNSkia Module cannot be found! Make sure you correctly \" +\n \"installed native dependencies and rebuilt your app.\"\n );\n }\n const result = SkiaModule.install();\n if (result !== true) {\n throw new Error(\n `Native Skia Module failed to correctly install JSI Bindings! Result: ${result}`\n );\n }\n}\n"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,aAAa;AACtC,OAAOC,gBAAgB,MAAM,2BAA2B;AAExD,IAAID,QAAQ,CAACE,EAAE,KAAK,KAAK,IAAIC,MAAM,CAACC,OAAO,IAAI,IAAI,EAAE;EACnD;EACA,MAAMC,UAAU,GAAGJ,gBAAgB;EACnC,IAAII,UAAU,IAAI,IAAI,IAAI,OAAOA,UAAU,CAACC,OAAO,KAAK,UAAU,EAAE;IAClE,MAAM,IAAIC,KAAK,CACb,gEAAgE,GAC9D,qDACJ,CAAC;EACH;EACA,MAAMC,MAAM,GAAGH,UAAU,CAACC,OAAO,CAAC,CAAC;EACnC,IAAIE,MAAM,KAAK,IAAI,EAAE;IACnB,MAAM,IAAID,KAAK,
|
1
|
+
{"version":3,"names":["Platform","NativeSkiaModule","OS","global","SkiaApi","SkiaModule","install","Error","result"],"sources":["NativeSetup.ts"],"sourcesContent":["import { Platform } from \"../Platform\";\nimport NativeSkiaModule from \"../specs/NativeSkiaModule\";\n\nif (Platform.OS !== \"web\" && global.SkiaApi == null) {\n // Initialize RN Skia\n const SkiaModule = NativeSkiaModule;\n if (SkiaModule == null || typeof SkiaModule.install !== \"function\") {\n throw new Error(\n \"Native RNSkia Module cannot be found! Make sure you correctly \" +\n \"installed native dependencies and rebuilt your app.\"\n );\n }\n const result = SkiaModule.install();\n if (result !== true) {\n throw new Error(\n `Native Skia Module failed to correctly install JSI Bindings! Result: ${result}`\n );\n }\n}\n"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,aAAa;AACtC,OAAOC,gBAAgB,MAAM,2BAA2B;AAExD,IAAID,QAAQ,CAACE,EAAE,KAAK,KAAK,IAAIC,MAAM,CAACC,OAAO,IAAI,IAAI,EAAE;EACnD;EACA,MAAMC,UAAU,GAAGJ,gBAAgB;EACnC,IAAII,UAAU,IAAI,IAAI,IAAI,OAAOA,UAAU,CAACC,OAAO,KAAK,UAAU,EAAE;IAClE,MAAM,IAAIC,KAAK,CACb,gEAAgE,GAC9D,qDACJ,CAAC;EACH;EACA,MAAMC,MAAM,GAAGH,UAAU,CAACC,OAAO,CAAC,CAAC;EACnC,IAAIE,MAAM,KAAK,IAAI,EAAE;IACnB,MAAM,IAAID,KAAK,CACb,wEAAwEC,MAAM,EAChF,CAAC;EACH;AACF","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["Skia","SkiaApi"],"sources":["Skia.ts"],"sourcesContent":["/*global SkiaApi*/\nimport type { Skia as SkSkiaApi } from \"./types\";\n\n/**\n * Declares the SkiaApi as an available object in the global scope\n */\ndeclare global {\n var SkiaApi: SkSkiaApi;\n}\n\nexport const Skia = SkiaApi;\n"],"mappings":"AAAA;;AAGA;AACA;AACA;;AAKA,OAAO,MAAMA,IAAI,GAAGC,OAAO"}
|
1
|
+
{"version":3,"names":["Skia","SkiaApi"],"sources":["Skia.ts"],"sourcesContent":["/*global SkiaApi*/\nimport type { Skia as SkSkiaApi } from \"./types\";\n\n/**\n * Declares the SkiaApi as an available object in the global scope\n */\ndeclare global {\n var SkiaApi: SkSkiaApi;\n}\n\nexport const Skia = SkiaApi;\n"],"mappings":"AAAA;;AAGA;AACA;AACA;;AAKA,OAAO,MAAMA,IAAI,GAAGC,OAAO","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["JsiSkApi","Skia","global","CanvasKit"],"sources":["Skia.web.ts"],"sourcesContent":["import { JsiSkApi } from \"./web\";\n\nexport const Skia = JsiSkApi(global.CanvasKit);\n"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,OAAO;AAEhC,OAAO,MAAMC,IAAI,GAAGD,QAAQ,CAACE,MAAM,CAACC,SAAS,CAAC"}
|
1
|
+
{"version":3,"names":["JsiSkApi","Skia","global","CanvasKit"],"sources":["Skia.web.ts"],"sourcesContent":["import { JsiSkApi } from \"./web\";\n\nexport const Skia = JsiSkApi(global.CanvasKit);\n"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,OAAO;AAEhC,OAAO,MAAMC,IAAI,GAAGD,QAAQ,CAACE,MAAM,CAACC,SAAS,CAAC","ignoreList":[]}
|
@@ -2,4 +2,4 @@ import type { DataSourceParam } from "../types";
|
|
2
2
|
/**
|
3
3
|
* Returns a Skia Animated Image object
|
4
4
|
* */
|
5
|
-
export declare const useAnimatedImage: (source: DataSourceParam, onError?: (
|
5
|
+
export declare const useAnimatedImage: (source: DataSourceParam, onError?: (err: Error) => void, managed?: boolean) => import("../types").SkAnimatedImage | null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["Skia","useRawData","animatedImgFactory","AnimatedImage","MakeAnimatedImageFromEncoded","bind","useAnimatedImage","source","onError","managed"],"sources":["AnimatedImage.ts"],"sourcesContent":["import { Skia } from \"../Skia\";\nimport type { DataSourceParam } from \"../types\";\n\nimport { useRawData } from \"./Data\";\n\nconst animatedImgFactory = Skia.AnimatedImage.MakeAnimatedImageFromEncoded.bind(\n Skia.AnimatedImage\n);\n\n/**\n * Returns a Skia Animated Image object\n * */\nexport const useAnimatedImage = (\n source: DataSourceParam,\n onError?: (err: Error) => void,\n managed = true\n) => useRawData(source, animatedImgFactory, onError, managed);\n"],"mappings":"AAAA,SAASA,IAAI,QAAQ,SAAS;AAG9B,SAASC,UAAU,QAAQ,QAAQ;AAEnC,MAAMC,kBAAkB,GAAGF,IAAI,CAACG,aAAa,CAACC,4BAA4B,CAACC,IAAI,CAC7EL,IAAI,CAACG,aACP,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAMG,gBAAgB,GAAGA,CAC9BC,MAAuB,EACvBC,OAA8B,EAC9BC,OAAO,GAAG,IAAI,KACXR,UAAU,CAACM,MAAM,EAAEL,kBAAkB,EAAEM,OAAO,EAAEC,OAAO,CAAC"}
|
1
|
+
{"version":3,"names":["Skia","useRawData","animatedImgFactory","AnimatedImage","MakeAnimatedImageFromEncoded","bind","useAnimatedImage","source","onError","managed"],"sources":["AnimatedImage.ts"],"sourcesContent":["import { Skia } from \"../Skia\";\nimport type { DataSourceParam } from \"../types\";\n\nimport { useRawData } from \"./Data\";\n\nconst animatedImgFactory = Skia.AnimatedImage.MakeAnimatedImageFromEncoded.bind(\n Skia.AnimatedImage\n);\n\n/**\n * Returns a Skia Animated Image object\n * */\nexport const useAnimatedImage = (\n source: DataSourceParam,\n onError?: (err: Error) => void,\n managed = true\n) => useRawData(source, animatedImgFactory, onError, managed);\n"],"mappings":"AAAA,SAASA,IAAI,QAAQ,SAAS;AAG9B,SAASC,UAAU,QAAQ,QAAQ;AAEnC,MAAMC,kBAAkB,GAAGF,IAAI,CAACG,aAAa,CAACC,4BAA4B,CAACC,IAAI,CAC7EL,IAAI,CAACG,aACP,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAMG,gBAAgB,GAAGA,CAC9BC,MAAuB,EACvBC,OAA8B,EAC9BC,OAAO,GAAG,IAAI,KACXR,UAAU,CAACM,MAAM,EAAEL,kBAAkB,EAAEM,OAAO,EAAEC,OAAO,CAAC","ignoreList":[]}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { SkData, DataSourceParam, SkJSIInstance } from "../types";
|
2
|
-
export declare const loadData: <T>(source: DataSourceParam, factory: (data: SkData) => T | null, onError?: (
|
2
|
+
export declare const loadData: <T>(source: DataSourceParam, factory: (data: SkData) => T | null, onError?: (err: Error) => void) => Promise<T | null>;
|
3
3
|
export declare const useCollectionLoading: <T extends SkJSIInstance<string>>(source: DataSourceParam[], loader: () => Promise<(T | null)[]>) => T[] | null;
|
4
|
-
export declare const useRawData: <T extends SkJSIInstance<string>>(source: DataSourceParam, factory: (data: SkData) => T | null, onError?: (
|
5
|
-
export declare const useData: (source: DataSourceParam, onError?: (
|
4
|
+
export declare const useRawData: <T extends SkJSIInstance<string>>(source: DataSourceParam, factory: (data: SkData) => T | null, onError?: (err: Error) => void, manage?: boolean) => T | null;
|
5
|
+
export declare const useData: (source: DataSourceParam, onError?: (err: Error) => void) => SkData | null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["useEffect","useRef","useState","Skia","Platform","factoryWrapper","data2","factory","onError","factoryResult","Error","loadData","source","undefined","Promise","resolve","Uint8Array","Data","fromBytes","uri","resolveAsset","fromURI","then","d","useLoading","loader","manage","mounted","data","setData","dataRef","current","value","_dataRef$current","dispose","useCollectionLoading","result","filter","r","_dataRef$current2","forEach","instance","useRawData","identity","useData"],"sources":["Data.ts"],"sourcesContent":["import { useEffect, useRef, useState } from \"react\";\n\nimport { Skia } from \"../Skia\";\nimport type { SkData, DataSourceParam, SkJSIInstance } from \"../types\";\nimport { Platform } from \"../../Platform\";\n\nconst factoryWrapper = <T>(\n data2: SkData,\n factory: (data: SkData) => T,\n onError?: (err: Error) => void\n) => {\n const factoryResult = factory(data2);\n if (factoryResult === null) {\n onError && onError(new Error(\"Could not load data\"));\n return null;\n } else {\n return factoryResult;\n }\n};\n\nexport const loadData = <T>(\n source: DataSourceParam,\n factory: (data: SkData) => T | null,\n onError?: (err: Error) => void\n): Promise<T | null> => {\n if (source === null || source === undefined) {\n return new Promise((resolve) => resolve(null));\n } else if (source instanceof Uint8Array) {\n return new Promise((resolve) =>\n resolve(factoryWrapper(Skia.Data.fromBytes(source), factory, onError))\n );\n } else {\n const uri =\n typeof source === \"string\" ? source : Platform.resolveAsset(source);\n return Skia.Data.fromURI(uri).then((d) =>\n factoryWrapper(d, factory, onError)\n );\n }\n};\n\nconst useLoading = <T extends SkJSIInstance<string>>(\n source: DataSourceParam,\n loader: () => Promise<T | null>,\n manage = true\n) => {\n const mounted = useRef(false);\n const [data, setData] = useState<T | null>(null);\n const dataRef = useRef<T | null>(null);\n useEffect(() => {\n mounted.current = true;\n loader().then((value) => {\n if (mounted.current) {\n setData(value);\n dataRef.current = value;\n }\n });\n return () => {\n if (manage) {\n dataRef.current?.dispose();\n }\n mounted.current = false;\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [source]);\n return data;\n};\n\nexport const useCollectionLoading = <T extends SkJSIInstance<string>>(\n source: DataSourceParam[],\n loader: () => Promise<(T | null)[]>\n) => {\n const mounted = useRef(false);\n const [data, setData] = useState<T[] | null>(null);\n const dataRef = useRef<T[] | null>(null);\n\n useEffect(() => {\n mounted.current = true;\n loader().then((result) => {\n const value = result.filter((r) => r !== null) as T[];\n if (mounted.current) {\n setData(value);\n dataRef.current = value;\n }\n });\n\n return () => {\n dataRef.current?.forEach((instance) => instance?.dispose());\n mounted.current = false;\n };\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [source]);\n\n return data;\n};\n\nexport const useRawData = <T extends SkJSIInstance<string>>(\n source: DataSourceParam,\n factory: (data: SkData) => T | null,\n onError?: (err: Error) => void,\n manage = true\n) => useLoading(source, () => loadData<T>(source, factory, onError), manage);\n\nconst identity = (data: SkData) => data;\n\nexport const useData = (\n source: DataSourceParam,\n onError?: (err: Error) => void\n) => useRawData(source, identity, onError);\n"],"mappings":"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"}
|
1
|
+
{"version":3,"names":["useEffect","useRef","useState","Skia","Platform","factoryWrapper","data2","factory","onError","factoryResult","Error","loadData","source","undefined","Promise","resolve","Uint8Array","Data","fromBytes","uri","resolveAsset","fromURI","then","d","useLoading","loader","manage","mounted","data","setData","dataRef","current","value","_dataRef$current","dispose","useCollectionLoading","result","filter","r","_dataRef$current2","forEach","instance","useRawData","identity","useData"],"sources":["Data.ts"],"sourcesContent":["import { useEffect, useRef, useState } from \"react\";\n\nimport { Skia } from \"../Skia\";\nimport type { SkData, DataSourceParam, SkJSIInstance } from \"../types\";\nimport { Platform } from \"../../Platform\";\n\nconst factoryWrapper = <T>(\n data2: SkData,\n factory: (data: SkData) => T,\n onError?: (err: Error) => void\n) => {\n const factoryResult = factory(data2);\n if (factoryResult === null) {\n onError && onError(new Error(\"Could not load data\"));\n return null;\n } else {\n return factoryResult;\n }\n};\n\nexport const loadData = <T>(\n source: DataSourceParam,\n factory: (data: SkData) => T | null,\n onError?: (err: Error) => void\n): Promise<T | null> => {\n if (source === null || source === undefined) {\n return new Promise((resolve) => resolve(null));\n } else if (source instanceof Uint8Array) {\n return new Promise((resolve) =>\n resolve(factoryWrapper(Skia.Data.fromBytes(source), factory, onError))\n );\n } else {\n const uri =\n typeof source === \"string\" ? source : Platform.resolveAsset(source);\n return Skia.Data.fromURI(uri).then((d) =>\n factoryWrapper(d, factory, onError)\n );\n }\n};\n\nconst useLoading = <T extends SkJSIInstance<string>>(\n source: DataSourceParam,\n loader: () => Promise<T | null>,\n manage = true\n) => {\n const mounted = useRef(false);\n const [data, setData] = useState<T | null>(null);\n const dataRef = useRef<T | null>(null);\n useEffect(() => {\n mounted.current = true;\n loader().then((value) => {\n if (mounted.current) {\n setData(value);\n dataRef.current = value;\n }\n });\n return () => {\n if (manage) {\n dataRef.current?.dispose();\n }\n mounted.current = false;\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [source]);\n return data;\n};\n\nexport const useCollectionLoading = <T extends SkJSIInstance<string>>(\n source: DataSourceParam[],\n loader: () => Promise<(T | null)[]>\n) => {\n const mounted = useRef(false);\n const [data, setData] = useState<T[] | null>(null);\n const dataRef = useRef<T[] | null>(null);\n\n useEffect(() => {\n mounted.current = true;\n loader().then((result) => {\n const value = result.filter((r) => r !== null) as T[];\n if (mounted.current) {\n setData(value);\n dataRef.current = value;\n }\n });\n\n return () => {\n dataRef.current?.forEach((instance) => instance?.dispose());\n mounted.current = false;\n };\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [source]);\n\n return data;\n};\n\nexport const useRawData = <T extends SkJSIInstance<string>>(\n source: DataSourceParam,\n factory: (data: SkData) => T | null,\n onError?: (err: Error) => void,\n manage = true\n) => useLoading(source, () => loadData<T>(source, factory, onError), manage);\n\nconst identity = (data: SkData) => data;\n\nexport const useData = (\n source: DataSourceParam,\n onError?: (err: Error) => void\n) => useRawData(source, identity, onError);\n"],"mappings":"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","ignoreList":[]}
|
@@ -3,7 +3,7 @@ import type { SkTypefaceFontProvider } from "../types/Paragraph/TypefaceFontProv
|
|
3
3
|
/**
|
4
4
|
* Returns a Skia Font object
|
5
5
|
* */
|
6
|
-
export declare const useFont: (font: DataSourceParam, size?: number, onError?: (
|
6
|
+
export declare const useFont: (font: DataSourceParam, size?: number, onError?: (err: Error) => void) => import("../types").SkFont | null;
|
7
7
|
type Slant = "normal" | "italic" | "oblique";
|
8
8
|
type Weight = "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
9
9
|
interface RNFontStyle {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["useEffect","useMemo","useState","Skia","FontSlant","Platform","useTypeface","defaultFontSize","useFont","font","size","onError","typeface","Font","defaultFontStyle","fontFamily","fontSize","fontStyle","fontWeight","slant","s","Italic","Oblique","Upright","weight","parseInt","matchFont","inputStyle","fontMgr","FontMgr","System","style","width","matchFamilyStyle","listFontFamilies","Array","countFamilies","fill","map","_","i","getFamilyName","loadTypefaces","typefacesToLoad","promises","Object","keys","flatMap","familyName","typefaceToLoad","Data","fromURI","resolveAsset","then","data","tf","Typeface","MakeFreeTypeFaceFromData","Error","Promise","all","useFonts","sources","setFontMgr","result","fMgr","TypefaceFontProvider","Make","forEach","registerFont"],"sources":["Font.ts"],"sourcesContent":["/*global SkiaApi*/\nimport { useEffect, useMemo, useState } from \"react\";\n\nimport { Skia } from \"../Skia\";\nimport { FontSlant } from \"../types\";\nimport type { DataModule, DataSourceParam, SkFontMgr } from \"../types\";\nimport { Platform } from \"../../Platform\";\nimport type { SkTypefaceFontProvider } from \"../types/Paragraph/TypefaceFontProvider\";\n\nimport { useTypeface } from \"./Typeface\";\n\nconst defaultFontSize = 14;\n\n/**\n * Returns a Skia Font object\n * */\nexport const useFont = (\n font: DataSourceParam,\n size = defaultFontSize,\n onError?: (err: Error) => void\n) => {\n const typeface = useTypeface(font, onError);\n return useMemo(() => {\n if (typeface) {\n return Skia.Font(typeface, size);\n } else {\n return null;\n }\n }, [size, typeface]);\n};\n\ntype Slant = \"normal\" | \"italic\" | \"oblique\";\ntype Weight =\n | \"normal\"\n | \"bold\"\n | \"100\"\n | \"200\"\n | \"300\"\n | \"400\"\n | \"500\"\n | \"600\"\n | \"700\"\n | \"800\"\n | \"900\";\n\ninterface RNFontStyle {\n fontFamily: string;\n fontSize: number;\n fontStyle: Slant;\n fontWeight: Weight;\n}\n\nconst defaultFontStyle: RNFontStyle = {\n fontFamily: \"System\",\n fontSize: defaultFontSize,\n fontStyle: \"normal\",\n fontWeight: \"normal\",\n};\n\nconst slant = (s: Slant) => {\n if (s === \"italic\") {\n return FontSlant.Italic;\n } else if (s === \"oblique\") {\n return FontSlant.Oblique;\n } else {\n return FontSlant.Upright;\n }\n};\n\nconst weight = (fontWeight: Weight) => {\n switch (fontWeight) {\n case \"normal\":\n return 400;\n case \"bold\":\n return 700;\n default:\n return parseInt(fontWeight, 10);\n }\n};\n\nexport const matchFont = (\n inputStyle: Partial<RNFontStyle> = {},\n fontMgr: SkFontMgr = Skia.FontMgr.System()\n) => {\n const fontStyle = {\n ...defaultFontStyle,\n ...inputStyle,\n };\n const style = {\n weight: weight(fontStyle.fontWeight),\n width: 5,\n slant: slant(fontStyle.fontStyle),\n };\n const typeface = fontMgr.matchFamilyStyle(fontStyle.fontFamily, style);\n return Skia.Font(typeface, fontStyle.fontSize);\n};\n\nexport const listFontFamilies = (fontMgr: SkFontMgr = Skia.FontMgr.System()) =>\n new Array(fontMgr.countFamilies())\n .fill(0)\n .map((_, i) => fontMgr.getFamilyName(i));\n\nconst loadTypefaces = (typefacesToLoad: Record<string, DataModule[]>) => {\n const promises = Object.keys(typefacesToLoad).flatMap((familyName) => {\n return typefacesToLoad[familyName].map((typefaceToLoad) => {\n return Skia.Data.fromURI(Platform.resolveAsset(typefaceToLoad)).then(\n (data) => {\n const tf = Skia.Typeface.MakeFreeTypeFaceFromData(data);\n if (tf === null) {\n throw new Error(`Couldn't create typeface for ${familyName}`);\n }\n return [familyName, tf] as const;\n }\n );\n });\n });\n return Promise.all(promises);\n};\n\nexport const useFonts = (sources: Record<string, DataModule[]>) => {\n const [fontMgr, setFontMgr] = useState<null | SkTypefaceFontProvider>(null);\n\n useEffect(() => {\n loadTypefaces(sources).then((result) => {\n const fMgr = Skia.TypefaceFontProvider.Make();\n result.forEach(([familyName, typeface]) => {\n fMgr.registerFont(typeface, familyName);\n });\n setFontMgr(fMgr);\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n return fontMgr;\n};\n"],"mappings":"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
|
1
|
+
{"version":3,"names":["useEffect","useMemo","useState","Skia","FontSlant","Platform","useTypeface","defaultFontSize","useFont","font","size","onError","typeface","Font","defaultFontStyle","fontFamily","fontSize","fontStyle","fontWeight","slant","s","Italic","Oblique","Upright","weight","parseInt","matchFont","inputStyle","fontMgr","FontMgr","System","style","width","matchFamilyStyle","listFontFamilies","Array","countFamilies","fill","map","_","i","getFamilyName","loadTypefaces","typefacesToLoad","promises","Object","keys","flatMap","familyName","typefaceToLoad","Data","fromURI","resolveAsset","then","data","tf","Typeface","MakeFreeTypeFaceFromData","Error","Promise","all","useFonts","sources","setFontMgr","result","fMgr","TypefaceFontProvider","Make","forEach","registerFont"],"sources":["Font.ts"],"sourcesContent":["/*global SkiaApi*/\nimport { useEffect, useMemo, useState } from \"react\";\n\nimport { Skia } from \"../Skia\";\nimport { FontSlant } from \"../types\";\nimport type { DataModule, DataSourceParam, SkFontMgr } from \"../types\";\nimport { Platform } from \"../../Platform\";\nimport type { SkTypefaceFontProvider } from \"../types/Paragraph/TypefaceFontProvider\";\n\nimport { useTypeface } from \"./Typeface\";\n\nconst defaultFontSize = 14;\n\n/**\n * Returns a Skia Font object\n * */\nexport const useFont = (\n font: DataSourceParam,\n size = defaultFontSize,\n onError?: (err: Error) => void\n) => {\n const typeface = useTypeface(font, onError);\n return useMemo(() => {\n if (typeface) {\n return Skia.Font(typeface, size);\n } else {\n return null;\n }\n }, [size, typeface]);\n};\n\ntype Slant = \"normal\" | \"italic\" | \"oblique\";\ntype Weight =\n | \"normal\"\n | \"bold\"\n | \"100\"\n | \"200\"\n | \"300\"\n | \"400\"\n | \"500\"\n | \"600\"\n | \"700\"\n | \"800\"\n | \"900\";\n\ninterface RNFontStyle {\n fontFamily: string;\n fontSize: number;\n fontStyle: Slant;\n fontWeight: Weight;\n}\n\nconst defaultFontStyle: RNFontStyle = {\n fontFamily: \"System\",\n fontSize: defaultFontSize,\n fontStyle: \"normal\",\n fontWeight: \"normal\",\n};\n\nconst slant = (s: Slant) => {\n if (s === \"italic\") {\n return FontSlant.Italic;\n } else if (s === \"oblique\") {\n return FontSlant.Oblique;\n } else {\n return FontSlant.Upright;\n }\n};\n\nconst weight = (fontWeight: Weight) => {\n switch (fontWeight) {\n case \"normal\":\n return 400;\n case \"bold\":\n return 700;\n default:\n return parseInt(fontWeight, 10);\n }\n};\n\nexport const matchFont = (\n inputStyle: Partial<RNFontStyle> = {},\n fontMgr: SkFontMgr = Skia.FontMgr.System()\n) => {\n const fontStyle = {\n ...defaultFontStyle,\n ...inputStyle,\n };\n const style = {\n weight: weight(fontStyle.fontWeight),\n width: 5,\n slant: slant(fontStyle.fontStyle),\n };\n const typeface = fontMgr.matchFamilyStyle(fontStyle.fontFamily, style);\n return Skia.Font(typeface, fontStyle.fontSize);\n};\n\nexport const listFontFamilies = (fontMgr: SkFontMgr = Skia.FontMgr.System()) =>\n new Array(fontMgr.countFamilies())\n .fill(0)\n .map((_, i) => fontMgr.getFamilyName(i));\n\nconst loadTypefaces = (typefacesToLoad: Record<string, DataModule[]>) => {\n const promises = Object.keys(typefacesToLoad).flatMap((familyName) => {\n return typefacesToLoad[familyName].map((typefaceToLoad) => {\n return Skia.Data.fromURI(Platform.resolveAsset(typefaceToLoad)).then(\n (data) => {\n const tf = Skia.Typeface.MakeFreeTypeFaceFromData(data);\n if (tf === null) {\n throw new Error(`Couldn't create typeface for ${familyName}`);\n }\n return [familyName, tf] as const;\n }\n );\n });\n });\n return Promise.all(promises);\n};\n\nexport const useFonts = (sources: Record<string, DataModule[]>) => {\n const [fontMgr, setFontMgr] = useState<null | SkTypefaceFontProvider>(null);\n\n useEffect(() => {\n loadTypefaces(sources).then((result) => {\n const fMgr = Skia.TypefaceFontProvider.Make();\n result.forEach(([familyName, typeface]) => {\n fMgr.registerFont(typeface, familyName);\n });\n setFontMgr(fMgr);\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n return fontMgr;\n};\n"],"mappings":"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","ignoreList":[]}
|
@@ -1,9 +1,8 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import type { DataSourceParam, SkImage } from "../types";
|
3
2
|
/**
|
4
3
|
* Returns a Skia Image object
|
5
4
|
* */
|
6
|
-
export declare const useImage: (source: DataSourceParam, onError?: (
|
5
|
+
export declare const useImage: (source: DataSourceParam, onError?: (err: Error) => void) => SkImage | null;
|
7
6
|
/**
|
8
7
|
* Creates an image from a given view reference. NOTE: This method has different implementations
|
9
8
|
* on web/native. On web, the callback is called with the view ref and the callback is expected to
|
@@ -14,4 +13,4 @@ export declare const useImage: (source: DataSourceParam, onError?: ((err: Error)
|
|
14
13
|
* @returns A promise that resolves to a Skia Image object or rejects
|
15
14
|
* with an error id the view tag is invalid.
|
16
15
|
*/
|
17
|
-
export declare const makeImageFromView: <T extends number |
|
16
|
+
export declare const makeImageFromView: <T extends number | React.Component<unknown, unknown> | React.ComponentClass<unknown>>(viewRef: React.RefObject<T>, callback?: null | ((viewRef: React.RefObject<T>) => Promise<SkImage | null>)) => Promise<SkImage | null>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["Platform","Skia","useRawData","imgFactory","Image","MakeImageFromEncoded","bind","useImage","source","onError","makeImageFromView","viewRef","callback","OS","Promise","reject","Error","viewTag","findNodeHandle","current","MakeImageFromViewTag"],"sources":["Image.ts"],"sourcesContent":["import { Platform } from \"../../Platform\";\nimport { Skia } from \"../Skia\";\nimport type { DataSourceParam, SkImage } from \"../types\";\n\nimport { useRawData } from \"./Data\";\n\nconst imgFactory = Skia.Image.MakeImageFromEncoded.bind(Skia.Image);\n\n/**\n * Returns a Skia Image object\n * */\nexport const useImage = (\n source: DataSourceParam,\n onError?: (err: Error) => void\n) => useRawData(source, imgFactory, onError);\n\n/**\n * Creates an image from a given view reference. NOTE: This method has different implementations\n * on web/native. On web, the callback is called with the view ref and the callback is expected to\n * return a promise that resolves to a Skia Image object. On native, the view ref is used to\n * find the view tag and the Skia Image object is created from the view tag. This means that on web\n * you will need to implement the logic to create the image from the view ref yourself.\n * @param viewRef Ref to the view we're creating an image from\n * @returns A promise that resolves to a Skia Image object or rejects\n * with an error id the view tag is invalid.\n */\nexport const makeImageFromView = <\n T extends\n | number\n | React.Component<unknown, unknown>\n | React.ComponentClass<unknown>\n>(\n viewRef: React.RefObject<T>,\n callback:\n | null\n | ((viewRef: React.RefObject<T>) => Promise<SkImage | null>) = null\n) => {\n // In web implementation we just delegate the work to the provided callback\n if (Platform.OS === \"web\") {\n if (callback) {\n return callback(viewRef);\n } else {\n Promise.reject(\n new Error(\n \"Callback is required on web in the makeImageFromView function.\"\n )\n );\n }\n }\n const viewTag = Platform.findNodeHandle(viewRef.current);\n if (viewTag !== null && viewTag !== 0) {\n return Skia.Image.MakeImageFromViewTag(viewTag);\n }\n return Promise.reject(new Error(\"Invalid view tag\"));\n};\n"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,gBAAgB;AACzC,SAASC,IAAI,QAAQ,SAAS;AAG9B,SAASC,UAAU,QAAQ,QAAQ;AAEnC,MAAMC,UAAU,GAAGF,IAAI,CAACG,KAAK,CAACC,oBAAoB,CAACC,IAAI,CAACL,IAAI,CAACG,KAAK,CAAC;;AAEnE;AACA;AACA;AACA,OAAO,MAAMG,QAAQ,GAAGA,CACtBC,MAAuB,EACvBC,OAA8B,KAC3BP,UAAU,CAACM,MAAM,EAAEL,UAAU,EAAEM,OAAO,CAAC;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,iBAAiB,GAAGA,CAM/BC,OAA2B,EAC3BC,QAE8D,GAAG,IAAI,KAClE;EACH;EACA,IAAIZ,QAAQ,CAACa,EAAE,KAAK,KAAK,EAAE;IACzB,IAAID,QAAQ,EAAE;MACZ,OAAOA,QAAQ,CAACD,OAAO,CAAC;IAC1B,CAAC,MAAM;MACLG,OAAO,CAACC,MAAM,CACZ,IAAIC,KAAK,CACP,gEACF,CACF,CAAC;IACH;EACF;EACA,MAAMC,OAAO,GAAGjB,QAAQ,CAACkB,cAAc,CAACP,OAAO,CAACQ,OAAO,CAAC;EACxD,IAAIF,OAAO,KAAK,IAAI,IAAIA,OAAO,KAAK,CAAC,EAAE;IACrC,OAAOhB,IAAI,CAACG,KAAK,CAACgB,oBAAoB,CAACH,OAAO,CAAC;EACjD;EACA,OAAOH,OAAO,CAACC,MAAM,CAAC,IAAIC,KAAK,CAAC,kBAAkB,CAAC,CAAC;AACtD,CAAC"}
|
1
|
+
{"version":3,"names":["Platform","Skia","useRawData","imgFactory","Image","MakeImageFromEncoded","bind","useImage","source","onError","makeImageFromView","viewRef","callback","OS","Promise","reject","Error","viewTag","findNodeHandle","current","MakeImageFromViewTag"],"sources":["Image.ts"],"sourcesContent":["import { Platform } from \"../../Platform\";\nimport { Skia } from \"../Skia\";\nimport type { DataSourceParam, SkImage } from \"../types\";\n\nimport { useRawData } from \"./Data\";\n\nconst imgFactory = Skia.Image.MakeImageFromEncoded.bind(Skia.Image);\n\n/**\n * Returns a Skia Image object\n * */\nexport const useImage = (\n source: DataSourceParam,\n onError?: (err: Error) => void\n) => useRawData(source, imgFactory, onError);\n\n/**\n * Creates an image from a given view reference. NOTE: This method has different implementations\n * on web/native. On web, the callback is called with the view ref and the callback is expected to\n * return a promise that resolves to a Skia Image object. On native, the view ref is used to\n * find the view tag and the Skia Image object is created from the view tag. This means that on web\n * you will need to implement the logic to create the image from the view ref yourself.\n * @param viewRef Ref to the view we're creating an image from\n * @returns A promise that resolves to a Skia Image object or rejects\n * with an error id the view tag is invalid.\n */\nexport const makeImageFromView = <\n T extends\n | number\n | React.Component<unknown, unknown>\n | React.ComponentClass<unknown>\n>(\n viewRef: React.RefObject<T>,\n callback:\n | null\n | ((viewRef: React.RefObject<T>) => Promise<SkImage | null>) = null\n) => {\n // In web implementation we just delegate the work to the provided callback\n if (Platform.OS === \"web\") {\n if (callback) {\n return callback(viewRef);\n } else {\n Promise.reject(\n new Error(\n \"Callback is required on web in the makeImageFromView function.\"\n )\n );\n }\n }\n const viewTag = Platform.findNodeHandle(viewRef.current);\n if (viewTag !== null && viewTag !== 0) {\n return Skia.Image.MakeImageFromViewTag(viewTag);\n }\n return Promise.reject(new Error(\"Invalid view tag\"));\n};\n"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,gBAAgB;AACzC,SAASC,IAAI,QAAQ,SAAS;AAG9B,SAASC,UAAU,QAAQ,QAAQ;AAEnC,MAAMC,UAAU,GAAGF,IAAI,CAACG,KAAK,CAACC,oBAAoB,CAACC,IAAI,CAACL,IAAI,CAACG,KAAK,CAAC;;AAEnE;AACA;AACA;AACA,OAAO,MAAMG,QAAQ,GAAGA,CACtBC,MAAuB,EACvBC,OAA8B,KAC3BP,UAAU,CAACM,MAAM,EAAEL,UAAU,EAAEM,OAAO,CAAC;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,iBAAiB,GAAGA,CAM/BC,OAA2B,EAC3BC,QAE8D,GAAG,IAAI,KAClE;EACH;EACA,IAAIZ,QAAQ,CAACa,EAAE,KAAK,KAAK,EAAE;IACzB,IAAID,QAAQ,EAAE;MACZ,OAAOA,QAAQ,CAACD,OAAO,CAAC;IAC1B,CAAC,MAAM;MACLG,OAAO,CAACC,MAAM,CACZ,IAAIC,KAAK,CACP,gEACF,CACF,CAAC;IACH;EACF;EACA,MAAMC,OAAO,GAAGjB,QAAQ,CAACkB,cAAc,CAACP,OAAO,CAACQ,OAAO,CAAC;EACxD,IAAIF,OAAO,KAAK,IAAI,IAAIA,OAAO,KAAK,CAAC,EAAE;IACrC,OAAOhB,IAAI,CAACG,KAAK,CAACgB,oBAAoB,CAACH,OAAO,CAAC;EACjD;EACA,OAAOH,OAAO,CAACC,MAAM,CAAC,IAAIC,KAAK,CAAC,kBAAkB,CAAC,CAAC;AACtD,CAAC","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["Skia","processTransform","processTransform2d","transforms","Matrix"],"sources":["Matrix.ts"],"sourcesContent":["import { Skia } from \"../Skia\";\nimport type { Transforms3d } from \"../types\";\nimport { processTransform } from \"../types\";\n\nexport const processTransform2d = (transforms: Transforms3d) => {\n \"worklet\";\n return processTransform(Skia.Matrix(), transforms);\n};\n"],"mappings":"AAAA,SAASA,IAAI,QAAQ,SAAS;AAE9B,SAASC,gBAAgB,QAAQ,UAAU;AAE3C,OAAO,MAAMC,kBAAkB,GAAIC,UAAwB,IAAK;EAC9D,SAAS;;EACT,OAAOF,gBAAgB,CAACD,IAAI,CAACI,MAAM,CAAC,CAAC,EAAED,UAAU,CAAC;AACpD,CAAC"}
|
1
|
+
{"version":3,"names":["Skia","processTransform","processTransform2d","transforms","Matrix"],"sources":["Matrix.ts"],"sourcesContent":["import { Skia } from \"../Skia\";\nimport type { Transforms3d } from \"../types\";\nimport { processTransform } from \"../types\";\n\nexport const processTransform2d = (transforms: Transforms3d) => {\n \"worklet\";\n return processTransform(Skia.Matrix(), transforms);\n};\n"],"mappings":"AAAA,SAASA,IAAI,QAAQ,SAAS;AAE9B,SAASC,gBAAgB,QAAQ,UAAU;AAE3C,OAAO,MAAMC,kBAAkB,GAAIC,UAAwB,IAAK;EAC9D,SAAS;;EACT,OAAOF,gBAAgB,CAACD,IAAI,CAACI,MAAM,CAAC,CAAC,EAAED,UAAU,CAAC;AACpD,CAAC","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["Skia","isRect","createPicture","cb","rect","recorder","PictureRecorder","bounds","XYWHRect","width","height","canvas","beginRecording","finishRecordingAsPicture"],"sources":["Picture.ts"],"sourcesContent":["import { Skia } from \"../Skia\";\nimport {
|
1
|
+
{"version":3,"names":["Skia","isRect","createPicture","cb","rect","recorder","PictureRecorder","bounds","XYWHRect","width","height","canvas","beginRecording","finishRecordingAsPicture"],"sources":["Picture.ts"],"sourcesContent":["import { Skia } from \"../Skia\";\nimport type { SkCanvas, SkRect, SkSize } from \"../types\";\nimport { isRect } from \"../types\";\n\n/**\n * Memoizes and returns an SkPicture that can be drawn to another canvas.\n * @param rect Picture bounds\n * @param cb Callback for drawing to the canvas\n * @returns SkPicture\n */\nexport const createPicture = (\n cb: (canvas: SkCanvas) => void,\n rect?: SkRect | SkSize\n) => {\n \"worklet\";\n const recorder = Skia.PictureRecorder();\n let bounds: undefined | SkRect;\n if (rect) {\n bounds = isRect(rect) ? rect : Skia.XYWHRect(0, 0, rect.width, rect.height);\n }\n const canvas = recorder.beginRecording(bounds);\n cb(canvas);\n return recorder.finishRecordingAsPicture();\n};\n"],"mappings":"AAAA,SAASA,IAAI,QAAQ,SAAS;AAE9B,SAASC,MAAM,QAAQ,UAAU;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,aAAa,GAAGA,CAC3BC,EAA8B,EAC9BC,IAAsB,KACnB;EACH,SAAS;;EACT,MAAMC,QAAQ,GAAGL,IAAI,CAACM,eAAe,CAAC,CAAC;EACvC,IAAIC,MAA0B;EAC9B,IAAIH,IAAI,EAAE;IACRG,MAAM,GAAGN,MAAM,CAACG,IAAI,CAAC,GAAGA,IAAI,GAAGJ,IAAI,CAACQ,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAEJ,IAAI,CAACK,KAAK,EAAEL,IAAI,CAACM,MAAM,CAAC;EAC7E;EACA,MAAMC,MAAM,GAAGN,QAAQ,CAACO,cAAc,CAACL,MAAM,CAAC;EAC9CJ,EAAE,CAACQ,MAAM,CAAC;EACV,OAAON,QAAQ,CAACQ,wBAAwB,CAAC,CAAC;AAC5C,CAAC","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["Skia","rrect","r","rx","ry","RRectXY"],"sources":["RRect.tsx"],"sourcesContent":["import { Skia } from \"../Skia\";\nimport type { SkRect } from \"../types\";\n\nexport const rrect = (r: SkRect, rx: number, ry: number) => {\n \"worklet\";\n return Skia.RRectXY(r, rx, ry);\n};\n"],"mappings":"AAAA,SAASA,IAAI,QAAQ,SAAS;AAG9B,OAAO,MAAMC,KAAK,GAAGA,CAACC,CAAS,EAAEC,EAAU,EAAEC,EAAU,KAAK;EAC1D,SAAS;;EACT,OAAOJ,IAAI,CAACK,OAAO,CAACH,CAAC,EAAEC,EAAE,EAAEC,EAAE,CAAC;AAChC,CAAC"}
|
1
|
+
{"version":3,"names":["Skia","rrect","r","rx","ry","RRectXY"],"sources":["RRect.tsx"],"sourcesContent":["import { Skia } from \"../Skia\";\nimport type { SkRect } from \"../types\";\n\nexport const rrect = (r: SkRect, rx: number, ry: number) => {\n \"worklet\";\n return Skia.RRectXY(r, rx, ry);\n};\n"],"mappings":"AAAA,SAASA,IAAI,QAAQ,SAAS;AAG9B,OAAO,MAAMC,KAAK,GAAGA,CAACC,CAAS,EAAEC,EAAU,EAAEC,EAAU,KAAK;EAC1D,SAAS;;EACT,OAAOJ,IAAI,CAACK,OAAO,CAACH,CAAC,EAAEC,EAAE,EAAEC,EAAE,CAAC;AAChC,CAAC","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["Skia","isRRect","vec","rect","x","y","width","height","XYWHRect","bounds","rects","Math","min","map","r","max","topLeft","topRight","bottomLeft","bottomRight","center"],"sources":["Rect.ts"],"sourcesContent":["import { Skia } from \"../Skia\";\nimport type { SkRect, SkRRect } from \"../types\";\nimport { isRRect } from \"../types\";\n\nimport { vec } from \"./Vector\";\n\nexport const rect = (x: number, y: number, width: number, height: number) => {\n \"worklet\";\n return Skia.XYWHRect(x, y, width, height);\n};\n\nexport const bounds = (rects: SkRect[]) => {\n \"worklet\";\n const x = Math.min(...rects.map((r) => r.x));\n const y = Math.min(...rects.map((r) => r.y));\n const width = Math.max(...rects.map((r) => r.x + r.width));\n const height = Math.max(...rects.map((r) => r.y + r.height));\n return rect(x, y, width - x, height - y);\n};\n\nexport const topLeft = (r: SkRect | SkRRect) => {\n \"worklet\";\n return isRRect(r) ? vec(r.rect.x, r.rect.y) : vec(r.x, r.y);\n};\n\nexport const topRight = (r: SkRect | SkRRect) => {\n \"worklet\";\n return isRRect(r)\n ? vec(r.rect.x + r.rect.width, r.rect.y)\n : vec(r.x + r.width, r.y);\n};\n\nexport const bottomLeft = (r: SkRect | SkRRect) => {\n \"worklet\";\n return isRRect(r)\n ? vec(r.rect.x, r.rect.y + r.rect.height)\n : vec(r.x, r.y + r.height);\n};\nexport const bottomRight = (r: SkRect | SkRRect) => {\n \"worklet\";\n return isRRect(r)\n ? vec(r.rect.x + r.rect.width, r.rect.y + r.rect.height)\n : vec(r.x + r.width, r.y + r.height);\n};\nexport const center = (r: SkRect | SkRRect) => {\n \"worklet\";\n return isRRect(r)\n ? vec(r.rect.x + r.rect.width / 2, r.rect.y + r.rect.height / 2)\n : vec(r.x + r.width / 2, r.y + r.height / 2);\n};\n"],"mappings":"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"}
|
1
|
+
{"version":3,"names":["Skia","isRRect","vec","rect","x","y","width","height","XYWHRect","bounds","rects","Math","min","map","r","max","topLeft","topRight","bottomLeft","bottomRight","center"],"sources":["Rect.ts"],"sourcesContent":["import { Skia } from \"../Skia\";\nimport type { SkRect, SkRRect } from \"../types\";\nimport { isRRect } from \"../types\";\n\nimport { vec } from \"./Vector\";\n\nexport const rect = (x: number, y: number, width: number, height: number) => {\n \"worklet\";\n return Skia.XYWHRect(x, y, width, height);\n};\n\nexport const bounds = (rects: SkRect[]) => {\n \"worklet\";\n const x = Math.min(...rects.map((r) => r.x));\n const y = Math.min(...rects.map((r) => r.y));\n const width = Math.max(...rects.map((r) => r.x + r.width));\n const height = Math.max(...rects.map((r) => r.y + r.height));\n return rect(x, y, width - x, height - y);\n};\n\nexport const topLeft = (r: SkRect | SkRRect) => {\n \"worklet\";\n return isRRect(r) ? vec(r.rect.x, r.rect.y) : vec(r.x, r.y);\n};\n\nexport const topRight = (r: SkRect | SkRRect) => {\n \"worklet\";\n return isRRect(r)\n ? vec(r.rect.x + r.rect.width, r.rect.y)\n : vec(r.x + r.width, r.y);\n};\n\nexport const bottomLeft = (r: SkRect | SkRRect) => {\n \"worklet\";\n return isRRect(r)\n ? vec(r.rect.x, r.rect.y + r.rect.height)\n : vec(r.x, r.y + r.height);\n};\nexport const bottomRight = (r: SkRect | SkRRect) => {\n \"worklet\";\n return isRRect(r)\n ? vec(r.rect.x + r.rect.width, r.rect.y + r.rect.height)\n : vec(r.x + r.width, r.y + r.height);\n};\nexport const center = (r: SkRect | SkRRect) => {\n \"worklet\";\n return isRRect(r)\n ? vec(r.rect.x + r.rect.width / 2, r.rect.y + r.rect.height / 2)\n : vec(r.x + r.width / 2, r.y + r.height / 2);\n};\n"],"mappings":"AAAA,SAASA,IAAI,QAAQ,SAAS;AAE9B,SAASC,OAAO,QAAQ,UAAU;AAElC,SAASC,GAAG,QAAQ,UAAU;AAE9B,OAAO,MAAMC,IAAI,GAAGA,CAACC,CAAS,EAAEC,CAAS,EAAEC,KAAa,EAAEC,MAAc,KAAK;EAC3E,SAAS;;EACT,OAAOP,IAAI,CAACQ,QAAQ,CAACJ,CAAC,EAAEC,CAAC,EAAEC,KAAK,EAAEC,MAAM,CAAC;AAC3C,CAAC;AAED,OAAO,MAAME,MAAM,GAAIC,KAAe,IAAK;EACzC,SAAS;;EACT,MAAMN,CAAC,GAAGO,IAAI,CAACC,GAAG,CAAC,GAAGF,KAAK,CAACG,GAAG,CAAEC,CAAC,IAAKA,CAAC,CAACV,CAAC,CAAC,CAAC;EAC5C,MAAMC,CAAC,GAAGM,IAAI,CAACC,GAAG,CAAC,GAAGF,KAAK,CAACG,GAAG,CAAEC,CAAC,IAAKA,CAAC,CAACT,CAAC,CAAC,CAAC;EAC5C,MAAMC,KAAK,GAAGK,IAAI,CAACI,GAAG,CAAC,GAAGL,KAAK,CAACG,GAAG,CAAEC,CAAC,IAAKA,CAAC,CAACV,CAAC,GAAGU,CAAC,CAACR,KAAK,CAAC,CAAC;EAC1D,MAAMC,MAAM,GAAGI,IAAI,CAACI,GAAG,CAAC,GAAGL,KAAK,CAACG,GAAG,CAAEC,CAAC,IAAKA,CAAC,CAACT,CAAC,GAAGS,CAAC,CAACP,MAAM,CAAC,CAAC;EAC5D,OAAOJ,IAAI,CAACC,CAAC,EAAEC,CAAC,EAAEC,KAAK,GAAGF,CAAC,EAAEG,MAAM,GAAGF,CAAC,CAAC;AAC1C,CAAC;AAED,OAAO,MAAMW,OAAO,GAAIF,CAAmB,IAAK;EAC9C,SAAS;;EACT,OAAOb,OAAO,CAACa,CAAC,CAAC,GAAGZ,GAAG,CAACY,CAAC,CAACX,IAAI,CAACC,CAAC,EAAEU,CAAC,CAACX,IAAI,CAACE,CAAC,CAAC,GAAGH,GAAG,CAACY,CAAC,CAACV,CAAC,EAAEU,CAAC,CAACT,CAAC,CAAC;AAC7D,CAAC;AAED,OAAO,MAAMY,QAAQ,GAAIH,CAAmB,IAAK;EAC/C,SAAS;;EACT,OAAOb,OAAO,CAACa,CAAC,CAAC,GACbZ,GAAG,CAACY,CAAC,CAACX,IAAI,CAACC,CAAC,GAAGU,CAAC,CAACX,IAAI,CAACG,KAAK,EAAEQ,CAAC,CAACX,IAAI,CAACE,CAAC,CAAC,GACtCH,GAAG,CAACY,CAAC,CAACV,CAAC,GAAGU,CAAC,CAACR,KAAK,EAAEQ,CAAC,CAACT,CAAC,CAAC;AAC7B,CAAC;AAED,OAAO,MAAMa,UAAU,GAAIJ,CAAmB,IAAK;EACjD,SAAS;;EACT,OAAOb,OAAO,CAACa,CAAC,CAAC,GACbZ,GAAG,CAACY,CAAC,CAACX,IAAI,CAACC,CAAC,EAAEU,CAAC,CAACX,IAAI,CAACE,CAAC,GAAGS,CAAC,CAACX,IAAI,CAACI,MAAM,CAAC,GACvCL,GAAG,CAACY,CAAC,CAACV,CAAC,EAAEU,CAAC,CAACT,CAAC,GAAGS,CAAC,CAACP,MAAM,CAAC;AAC9B,CAAC;AACD,OAAO,MAAMY,WAAW,GAAIL,CAAmB,IAAK;EAClD,SAAS;;EACT,OAAOb,OAAO,CAACa,CAAC,CAAC,GACbZ,GAAG,CAACY,CAAC,CAACX,IAAI,CAACC,CAAC,GAAGU,CAAC,CAACX,IAAI,CAACG,KAAK,EAAEQ,CAAC,CAACX,IAAI,CAACE,CAAC,GAAGS,CAAC,CAACX,IAAI,CAACI,MAAM,CAAC,GACtDL,GAAG,CAACY,CAAC,CAACV,CAAC,GAAGU,CAAC,CAACR,KAAK,EAAEQ,CAAC,CAACT,CAAC,GAAGS,CAAC,CAACP,MAAM,CAAC;AACxC,CAAC;AACD,OAAO,MAAMa,MAAM,GAAIN,CAAmB,IAAK;EAC7C,SAAS;;EACT,OAAOb,OAAO,CAACa,CAAC,CAAC,GACbZ,GAAG,CAACY,CAAC,CAACX,IAAI,CAACC,CAAC,GAAGU,CAAC,CAACX,IAAI,CAACG,KAAK,GAAG,CAAC,EAAEQ,CAAC,CAACX,IAAI,CAACE,CAAC,GAAGS,CAAC,CAACX,IAAI,CAACI,MAAM,GAAG,CAAC,CAAC,GAC9DL,GAAG,CAACY,CAAC,CAACV,CAAC,GAAGU,CAAC,CAACR,KAAK,GAAG,CAAC,EAAEQ,CAAC,CAACT,CAAC,GAAGS,CAAC,CAACP,MAAM,GAAG,CAAC,CAAC;AAChD,CAAC","ignoreList":[]}
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import type { DataSourceParam } from "../types";
|
2
|
-
export declare const useSVG: (source: DataSourceParam, onError?: (
|
2
|
+
export declare const useSVG: (source: DataSourceParam, onError?: (err: Error) => void) => import("../types").SkSVG | null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["Skia","useRawData","svgFactory","SVG","MakeFromData","bind","useSVG","source","onError"],"sources":["SVG.ts"],"sourcesContent":["import { Skia } from \"../Skia\";\nimport type { DataSourceParam } from \"../types\";\n\nimport { useRawData } from \"./Data\";\n\nconst svgFactory = Skia.SVG.MakeFromData.bind(Skia.SVG);\n\nexport const useSVG = (\n source: DataSourceParam,\n onError?: (err: Error) => void\n) => useRawData(source, svgFactory, onError);\n"],"mappings":"AAAA,SAASA,IAAI,QAAQ,SAAS;AAG9B,SAASC,UAAU,QAAQ,QAAQ;AAEnC,MAAMC,UAAU,GAAGF,IAAI,CAACG,GAAG,CAACC,YAAY,CAACC,IAAI,CAACL,IAAI,CAACG,GAAG,CAAC;AAEvD,OAAO,MAAMG,MAAM,GAAGA,CACpBC,MAAuB,EACvBC,OAA8B,KAC3BP,UAAU,CAACM,MAAM,EAAEL,UAAU,EAAEM,OAAO,CAAC"}
|
1
|
+
{"version":3,"names":["Skia","useRawData","svgFactory","SVG","MakeFromData","bind","useSVG","source","onError"],"sources":["SVG.ts"],"sourcesContent":["import { Skia } from \"../Skia\";\nimport type { DataSourceParam } from \"../types\";\n\nimport { useRawData } from \"./Data\";\n\nconst svgFactory = Skia.SVG.MakeFromData.bind(Skia.SVG);\n\nexport const useSVG = (\n source: DataSourceParam,\n onError?: (err: Error) => void\n) => useRawData(source, svgFactory, onError);\n"],"mappings":"AAAA,SAASA,IAAI,QAAQ,SAAS;AAG9B,SAASC,UAAU,QAAQ,QAAQ;AAEnC,MAAMC,UAAU,GAAGF,IAAI,CAACG,GAAG,CAACC,YAAY,CAACC,IAAI,CAACL,IAAI,CAACG,GAAG,CAAC;AAEvD,OAAO,MAAMG,MAAM,GAAGA,CACpBC,MAAuB,EACvBC,OAA8B,KAC3BP,UAAU,CAACM,MAAM,EAAEL,UAAU,EAAEM,OAAO,CAAC","ignoreList":[]}
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import type { DataSourceParam } from "../types";
|
2
|
-
export declare const useSVG: (source: DataSourceParam, onError?: (
|
2
|
+
export declare const useSVG: (source: DataSourceParam, onError?: (err: Error) => void) => import("../types").SkSVG | null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["Skia","useSVG","source","onError","undefined","Error","Uint8Array","default","JSON","stringify","svg","SVG","MakeFromString"],"sources":["SVG.web.ts"],"sourcesContent":["import { Skia } from \"../Skia\";\nimport type { DataSourceParam } from \"../types\";\n\nexport const useSVG = (\n source: DataSourceParam,\n onError?: (err: Error) => void\n) => {\n if (source === null || source === undefined) {\n throw new Error(`Invalid svg data source. Got: ${source}`);\n }\n if (\n typeof source !== \"object\" ||\n source instanceof Uint8Array ||\n typeof source.default !== \"string\"\n ) {\n throw new Error(\n `Invalid svg data source. Make sure that the source resolves to a string. Got: ${JSON.stringify(\n source,\n null,\n 2\n )}`\n );\n }\n const svg = Skia.SVG.MakeFromString(source.default);\n if (svg === null && onError !== undefined) {\n onError(new Error(\"Failed to create SVG from source.\"));\n }\n return svg;\n};\n"],"mappings":"AAAA,SAASA,IAAI,QAAQ,SAAS;AAG9B,OAAO,MAAMC,MAAM,GAAGA,CACpBC,MAAuB,EACvBC,OAA8B,KAC3B;EACH,IAAID,MAAM,KAAK,IAAI,IAAIA,MAAM,KAAKE,SAAS,EAAE;IAC3C,MAAM,IAAIC,KAAK,
|
1
|
+
{"version":3,"names":["Skia","useSVG","source","onError","undefined","Error","Uint8Array","default","JSON","stringify","svg","SVG","MakeFromString"],"sources":["SVG.web.ts"],"sourcesContent":["import { Skia } from \"../Skia\";\nimport type { DataSourceParam } from \"../types\";\n\nexport const useSVG = (\n source: DataSourceParam,\n onError?: (err: Error) => void\n) => {\n if (source === null || source === undefined) {\n throw new Error(`Invalid svg data source. Got: ${source}`);\n }\n if (\n typeof source !== \"object\" ||\n source instanceof Uint8Array ||\n typeof source.default !== \"string\"\n ) {\n throw new Error(\n `Invalid svg data source. Make sure that the source resolves to a string. Got: ${JSON.stringify(\n source,\n null,\n 2\n )}`\n );\n }\n const svg = Skia.SVG.MakeFromString(source.default);\n if (svg === null && onError !== undefined) {\n onError(new Error(\"Failed to create SVG from source.\"));\n }\n return svg;\n};\n"],"mappings":"AAAA,SAASA,IAAI,QAAQ,SAAS;AAG9B,OAAO,MAAMC,MAAM,GAAGA,CACpBC,MAAuB,EACvBC,OAA8B,KAC3B;EACH,IAAID,MAAM,KAAK,IAAI,IAAIA,MAAM,KAAKE,SAAS,EAAE;IAC3C,MAAM,IAAIC,KAAK,CAAC,iCAAiCH,MAAM,EAAE,CAAC;EAC5D;EACA,IACE,OAAOA,MAAM,KAAK,QAAQ,IAC1BA,MAAM,YAAYI,UAAU,IAC5B,OAAOJ,MAAM,CAACK,OAAO,KAAK,QAAQ,EAClC;IACA,MAAM,IAAIF,KAAK,CACb,iFAAiFG,IAAI,CAACC,SAAS,CAC7FP,MAAM,EACN,IAAI,EACJ,CACF,CAAC,EACH,CAAC;EACH;EACA,MAAMQ,GAAG,GAAGV,IAAI,CAACW,GAAG,CAACC,cAAc,CAACV,MAAM,CAACK,OAAO,CAAC;EACnD,IAAIG,GAAG,KAAK,IAAI,IAAIP,OAAO,KAAKC,SAAS,EAAE;IACzCD,OAAO,CAAC,IAAIE,KAAK,CAAC,mCAAmC,CAAC,CAAC;EACzD;EACA,OAAOK,GAAG;AACZ,CAAC","ignoreList":[]}
|
@@ -2,4 +2,4 @@ import type { DataSourceParam } from "../types";
|
|
2
2
|
/**
|
3
3
|
* Returns a Skia Typeface object
|
4
4
|
* */
|
5
|
-
export declare const useTypeface: (source: DataSourceParam, onError?: (
|
5
|
+
export declare const useTypeface: (source: DataSourceParam, onError?: (err: Error) => void) => import("../types").SkTypeface | null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["Skia","useRawData","tfFactory","Typeface","MakeFreeTypeFaceFromData","bind","useTypeface","source","onError"],"sources":["Typeface.ts"],"sourcesContent":["import { Skia } from \"../Skia\";\nimport type { DataSourceParam } from \"../types\";\n\nimport { useRawData } from \"./Data\";\n\nconst tfFactory = Skia.Typeface.MakeFreeTypeFaceFromData.bind(Skia.Typeface);\n\n/**\n * Returns a Skia Typeface object\n * */\nexport const useTypeface = (\n source: DataSourceParam,\n onError?: (err: Error) => void\n) => useRawData(source, tfFactory, onError);\n"],"mappings":"AAAA,SAASA,IAAI,QAAQ,SAAS;AAG9B,SAASC,UAAU,QAAQ,QAAQ;AAEnC,MAAMC,SAAS,GAAGF,IAAI,CAACG,QAAQ,CAACC,wBAAwB,CAACC,IAAI,CAACL,IAAI,CAACG,QAAQ,CAAC;;AAE5E;AACA;AACA;AACA,OAAO,MAAMG,WAAW,GAAGA,CACzBC,MAAuB,EACvBC,OAA8B,KAC3BP,UAAU,CAACM,MAAM,EAAEL,SAAS,EAAEM,OAAO,CAAC"}
|
1
|
+
{"version":3,"names":["Skia","useRawData","tfFactory","Typeface","MakeFreeTypeFaceFromData","bind","useTypeface","source","onError"],"sources":["Typeface.ts"],"sourcesContent":["import { Skia } from \"../Skia\";\nimport type { DataSourceParam } from \"../types\";\n\nimport { useRawData } from \"./Data\";\n\nconst tfFactory = Skia.Typeface.MakeFreeTypeFaceFromData.bind(Skia.Typeface);\n\n/**\n * Returns a Skia Typeface object\n * */\nexport const useTypeface = (\n source: DataSourceParam,\n onError?: (err: Error) => void\n) => useRawData(source, tfFactory, onError);\n"],"mappings":"AAAA,SAASA,IAAI,QAAQ,SAAS;AAG9B,SAASC,UAAU,QAAQ,QAAQ;AAEnC,MAAMC,SAAS,GAAGF,IAAI,CAACG,QAAQ,CAACC,wBAAwB,CAACC,IAAI,CAACL,IAAI,CAACG,QAAQ,CAAC;;AAE5E;AACA;AACA;AACA,OAAO,MAAMG,WAAW,GAAGA,CACzBC,MAAuB,EACvBC,OAA8B,KAC3BP,UAAU,CAACM,MAAM,EAAEL,SAAS,EAAEM,OAAO,CAAC","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["Skia","vec","x","y","Point","point","neg","a","add","b","sub","dist","Math","hypot"],"sources":["Vector.ts"],"sourcesContent":["import { Skia } from \"../Skia\";\nimport type { Vector } from \"../types\";\n\nexport const vec = (x = 0, y?: number) => {\n \"worklet\";\n return Skia.Point(x, y ?? x);\n};\nexport const point = vec;\nexport const neg = (a: Vector) => {\n \"worklet\";\n return vec(-a.x, -a.y);\n};\nexport const add = (a: Vector, b: Vector) => {\n \"worklet\";\n return vec(a.x + b.x, a.y + b.y);\n};\nexport const sub = (a: Vector, b: Vector) => {\n \"worklet\";\n return vec(a.x - b.x, a.y - b.y);\n};\nexport const dist = (a: Vector, b: Vector) => {\n \"worklet\";\n return Math.hypot(a.x - b.x, a.y - b.y);\n};\n"],"mappings":"AAAA,SAASA,IAAI,QAAQ,SAAS;AAG9B,OAAO,MAAMC,GAAG,GAAGA,CAACC,CAAC,GAAG,CAAC,EAAEC,CAAU,KAAK;EACxC,SAAS;;EACT,OAAOH,IAAI,CAACI,KAAK,CAACF,CAAC,EAAEC,CAAC,aAADA,CAAC,cAADA,CAAC,GAAID,CAAC,CAAC;AAC9B,CAAC;AACD,OAAO,MAAMG,KAAK,GAAGJ,GAAG;AACxB,OAAO,MAAMK,GAAG,GAAIC,CAAS,IAAK;EAChC,SAAS;;EACT,OAAON,GAAG,CAAC,CAACM,CAAC,CAACL,CAAC,EAAE,CAACK,CAAC,CAACJ,CAAC,CAAC;AACxB,CAAC;AACD,OAAO,MAAMK,GAAG,GAAGA,CAACD,CAAS,EAAEE,CAAS,KAAK;EAC3C,SAAS;;EACT,OAAOR,GAAG,CAACM,CAAC,CAACL,CAAC,GAAGO,CAAC,CAACP,CAAC,EAAEK,CAAC,CAACJ,CAAC,GAAGM,CAAC,CAACN,CAAC,CAAC;AAClC,CAAC;AACD,OAAO,MAAMO,GAAG,GAAGA,CAACH,CAAS,EAAEE,CAAS,KAAK;EAC3C,SAAS;;EACT,OAAOR,GAAG,CAACM,CAAC,CAACL,CAAC,GAAGO,CAAC,CAACP,CAAC,EAAEK,CAAC,CAACJ,CAAC,GAAGM,CAAC,CAACN,CAAC,CAAC;AAClC,CAAC;AACD,OAAO,MAAMQ,IAAI,GAAGA,CAACJ,CAAS,EAAEE,CAAS,KAAK;EAC5C,SAAS;;EACT,OAAOG,IAAI,CAACC,KAAK,CAACN,CAAC,CAACL,CAAC,GAAGO,CAAC,CAACP,CAAC,EAAEK,CAAC,CAACJ,CAAC,GAAGM,CAAC,CAACN,CAAC,CAAC;AACzC,CAAC"}
|
1
|
+
{"version":3,"names":["Skia","vec","x","y","Point","point","neg","a","add","b","sub","dist","Math","hypot"],"sources":["Vector.ts"],"sourcesContent":["import { Skia } from \"../Skia\";\nimport type { Vector } from \"../types\";\n\nexport const vec = (x = 0, y?: number) => {\n \"worklet\";\n return Skia.Point(x, y ?? x);\n};\nexport const point = vec;\nexport const neg = (a: Vector) => {\n \"worklet\";\n return vec(-a.x, -a.y);\n};\nexport const add = (a: Vector, b: Vector) => {\n \"worklet\";\n return vec(a.x + b.x, a.y + b.y);\n};\nexport const sub = (a: Vector, b: Vector) => {\n \"worklet\";\n return vec(a.x - b.x, a.y - b.y);\n};\nexport const dist = (a: Vector, b: Vector) => {\n \"worklet\";\n return Math.hypot(a.x - b.x, a.y - b.y);\n};\n"],"mappings":"AAAA,SAASA,IAAI,QAAQ,SAAS;AAG9B,OAAO,MAAMC,GAAG,GAAGA,CAACC,CAAC,GAAG,CAAC,EAAEC,CAAU,KAAK;EACxC,SAAS;;EACT,OAAOH,IAAI,CAACI,KAAK,CAACF,CAAC,EAAEC,CAAC,aAADA,CAAC,cAADA,CAAC,GAAID,CAAC,CAAC;AAC9B,CAAC;AACD,OAAO,MAAMG,KAAK,GAAGJ,GAAG;AACxB,OAAO,MAAMK,GAAG,GAAIC,CAAS,IAAK;EAChC,SAAS;;EACT,OAAON,GAAG,CAAC,CAACM,CAAC,CAACL,CAAC,EAAE,CAACK,CAAC,CAACJ,CAAC,CAAC;AACxB,CAAC;AACD,OAAO,MAAMK,GAAG,GAAGA,CAACD,CAAS,EAAEE,CAAS,KAAK;EAC3C,SAAS;;EACT,OAAOR,GAAG,CAACM,CAAC,CAACL,CAAC,GAAGO,CAAC,CAACP,CAAC,EAAEK,CAAC,CAACJ,CAAC,GAAGM,CAAC,CAACN,CAAC,CAAC;AAClC,CAAC;AACD,OAAO,MAAMO,GAAG,GAAGA,CAACH,CAAS,EAAEE,CAAS,KAAK;EAC3C,SAAS;;EACT,OAAOR,GAAG,CAACM,CAAC,CAACL,CAAC,GAAGO,CAAC,CAACP,CAAC,EAAEK,CAAC,CAACJ,CAAC,GAAGM,CAAC,CAACN,CAAC,CAAC;AAClC,CAAC;AACD,OAAO,MAAMQ,IAAI,GAAGA,CAACJ,CAAS,EAAEE,CAAS,KAAK;EAC5C,SAAS;;EACT,OAAOG,IAAI,CAACC,KAAK,CAACN,CAAC,CAACL,CAAC,GAAGO,CAAC,CAACP,CAAC,EAAEK,CAAC,CAACJ,CAAC,GAAGM,CAAC,CAACN,CAAC,CAAC;AACzC,CAAC","ignoreList":[]}
|