@shopify/react-native-skia 0.1.171 → 0.1.172
Sign up to get free protection for your applications and to get access to all the features.
- package/cpp/rnskia/RNSkJsiViewApi.h +2 -2
- package/cpp/rnskia/dom/nodes/JsiCustomDrawingNode.h +8 -1
- package/ios/RNSkia-iOS/RNSkMetalCanvasProvider.mm +5 -1
- package/lib/commonjs/animation/decay/decay.d.ts +2 -0
- package/lib/commonjs/animation/decay/index.d.ts +1 -0
- package/lib/commonjs/animation/decay/runDecay.d.ts +10 -0
- package/lib/commonjs/animation/decay/types.d.ts +21 -0
- package/lib/commonjs/animation/functions/index.d.ts +4 -0
- package/lib/commonjs/animation/functions/interpolate.d.ts +17 -0
- package/lib/commonjs/animation/functions/interpolateColors.d.ts +3 -0
- package/lib/commonjs/animation/functions/interpolatePaths.d.ts +19 -0
- package/lib/commonjs/animation/functions/interpolateVector.d.ts +10 -0
- package/lib/commonjs/animation/index.d.ts +4 -0
- package/lib/commonjs/animation/spring/Spring.d.ts +65 -0
- package/lib/commonjs/animation/spring/functions/index.d.ts +1 -0
- package/lib/commonjs/animation/spring/functions/spring.d.ts +10 -0
- package/lib/commonjs/animation/spring/index.d.ts +3 -0
- package/lib/commonjs/animation/spring/runSpring.d.ts +16 -0
- package/lib/commonjs/animation/spring/types.d.ts +6 -0
- package/lib/commonjs/animation/spring/useSpring.d.ts +10 -0
- package/lib/commonjs/animation/timing/Easing.d.ts +19 -0
- package/lib/commonjs/animation/timing/createTiming.d.ts +17 -0
- package/lib/commonjs/animation/timing/functions/bezier.d.ts +1 -0
- package/lib/commonjs/animation/timing/functions/getResolvedParams.d.ts +7 -0
- package/lib/commonjs/animation/timing/functions/index.d.ts +4 -0
- package/lib/commonjs/animation/timing/functions/timing.d.ts +17 -0
- package/lib/commonjs/animation/timing/functions/types.d.ts +7 -0
- package/lib/commonjs/animation/timing/index.d.ts +4 -0
- package/lib/commonjs/animation/timing/runTiming.d.ts +16 -0
- package/lib/commonjs/animation/timing/useLoop.d.ts +8 -0
- package/lib/commonjs/animation/timing/useTiming.d.ts +10 -0
- package/lib/commonjs/animation/types.d.ts +18 -0
- package/lib/commonjs/dom/nodes/DrawingNode.d.ts +14 -0
- package/lib/commonjs/dom/nodes/GroupNode.d.ts +7 -0
- package/lib/commonjs/dom/nodes/JsiSkDOM.d.ts +65 -0
- package/lib/commonjs/dom/nodes/LayerNode.d.ts +8 -0
- package/lib/commonjs/dom/nodes/Node.d.ts +43 -0
- package/lib/commonjs/dom/nodes/PaintContext.d.ts +18 -0
- package/lib/commonjs/dom/nodes/PaintNode.d.ts +8 -0
- package/lib/commonjs/dom/nodes/RenderNode.d.ts +27 -0
- package/lib/commonjs/dom/nodes/datatypes/Circle.d.ts +7 -0
- package/lib/commonjs/dom/nodes/datatypes/Enum.d.ts +1 -0
- package/lib/commonjs/dom/nodes/datatypes/Fitting.d.ts +33 -0
- package/lib/commonjs/dom/nodes/datatypes/Gradient.d.ts +92 -0
- package/lib/commonjs/dom/nodes/datatypes/Path.d.ts +4 -0
- package/lib/commonjs/dom/nodes/datatypes/Radius.d.ts +3 -0
- package/lib/commonjs/dom/nodes/datatypes/Rect.d.ts +5 -0
- package/lib/commonjs/dom/nodes/datatypes/Transform.d.ts +3 -0
- package/lib/commonjs/dom/nodes/datatypes/index.d.ts +8 -0
- package/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.d.ts +8 -0
- package/lib/commonjs/dom/nodes/drawings/Box.d.ts +13 -0
- package/lib/commonjs/dom/nodes/drawings/CircleNode.d.ts +9 -0
- package/lib/commonjs/dom/nodes/drawings/CustomDrawingNode.d.ts +8 -0
- package/lib/commonjs/dom/nodes/drawings/DiffRectNode.d.ts +8 -0
- package/lib/commonjs/dom/nodes/drawings/FillNode.d.ts +8 -0
- package/lib/commonjs/dom/nodes/drawings/ImageNode.d.ts +25 -0
- package/lib/commonjs/dom/nodes/drawings/ImageSVG.d.ts +8 -0
- package/lib/commonjs/dom/nodes/drawings/LineNode.d.ts +8 -0
- package/lib/commonjs/dom/nodes/drawings/OvalNode.d.ts +9 -0
- package/lib/commonjs/dom/nodes/drawings/PatchNode.d.ts +18 -0
- package/lib/commonjs/dom/nodes/drawings/PathNode.d.ts +9 -0
- package/lib/commonjs/dom/nodes/drawings/PictureNode.d.ts +8 -0
- package/lib/commonjs/dom/nodes/drawings/PointsNode.d.ts +8 -0
- package/lib/commonjs/dom/nodes/drawings/RRectNode.d.ts +10 -0
- package/lib/commonjs/dom/nodes/drawings/RectNode.d.ts +9 -0
- package/lib/commonjs/dom/nodes/drawings/Text.d.ts +30 -0
- package/lib/commonjs/dom/nodes/drawings/VerticesNode.d.ts +9 -0
- package/lib/commonjs/dom/nodes/drawings/index.d.ts +18 -0
- package/lib/commonjs/dom/nodes/index.d.ts +3 -0
- package/lib/commonjs/dom/nodes/paint/BlendNode.d.ts +12 -0
- package/lib/commonjs/dom/nodes/paint/ColorFilters.d.ts +36 -0
- package/lib/commonjs/dom/nodes/paint/ImageFilters.d.ts +42 -0
- package/lib/commonjs/dom/nodes/paint/MaskFilters.d.ts +8 -0
- package/lib/commonjs/dom/nodes/paint/PathEffects.d.ts +42 -0
- package/lib/commonjs/dom/nodes/paint/Shaders.d.ts +44 -0
- package/lib/commonjs/dom/nodes/paint/index.d.ts +6 -0
- package/lib/commonjs/dom/types/ColorFilters.d.ts +12 -0
- package/lib/commonjs/dom/types/Common.d.ts +56 -0
- package/lib/commonjs/dom/types/DrawingContext.d.ts +5 -0
- package/lib/commonjs/dom/types/Drawings.d.ts +104 -0
- package/lib/commonjs/dom/types/ImageFilters.d.ts +37 -0
- package/lib/commonjs/dom/types/MaskFilters.d.ts +7 -0
- package/lib/commonjs/dom/types/Node.d.ts +29 -0
- package/lib/commonjs/dom/types/NodeType.d.ts +67 -0
- package/lib/commonjs/dom/types/PathEffects.d.ts +28 -0
- package/lib/commonjs/dom/types/Shaders.d.ts +59 -0
- package/lib/commonjs/dom/types/SkDOM.d.ts +72 -0
- package/lib/commonjs/dom/types/index.d.ts +11 -0
- package/lib/commonjs/external/index.d.ts +1 -0
- package/lib/commonjs/external/reanimated/index.d.ts +1 -0
- package/lib/commonjs/external/reanimated/useSharedValueEffect.d.ts +11 -0
- package/lib/commonjs/index.d.ts +10 -0
- package/lib/commonjs/mock/index.d.ts +16 -0
- package/lib/commonjs/renderer/Canvas.d.ts +11 -0
- package/lib/commonjs/renderer/Container.d.ts +12 -0
- package/lib/commonjs/renderer/DependencyManager.d.ts +46 -0
- package/lib/commonjs/renderer/DrawingContext.d.ts +6 -0
- package/lib/commonjs/renderer/HostComponents.d.ts +132 -0
- package/lib/commonjs/renderer/HostConfig.d.ts +19 -0
- package/lib/commonjs/renderer/Reconciler.d.ts +13 -0
- package/lib/commonjs/renderer/components/Blend.d.ts +4 -0
- package/lib/commonjs/renderer/components/Drawing.d.ts +3 -0
- package/lib/commonjs/renderer/components/Group.d.ts +8 -0
- package/lib/commonjs/renderer/components/Mask.d.ts +9 -0
- package/lib/commonjs/renderer/components/Paint.d.ts +4 -0
- package/lib/commonjs/renderer/components/Picture.d.ts +4 -0
- package/lib/commonjs/renderer/components/backdrop/BackdropBlur.d.ts +9 -0
- package/lib/commonjs/renderer/components/backdrop/BackdropFilter.d.ts +7 -0
- package/lib/commonjs/renderer/components/backdrop/index.d.ts +2 -0
- package/lib/commonjs/renderer/components/colorFilters/BlendColor.d.ts +4 -0
- package/lib/commonjs/renderer/components/colorFilters/Lerp.d.ts +4 -0
- package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.d.ts +4 -0
- package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.d.ts +4 -0
- package/lib/commonjs/renderer/components/colorFilters/Matrix.d.ts +5 -0
- package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.d.ts +4 -0
- package/lib/commonjs/renderer/components/colorFilters/index.d.ts +6 -0
- package/lib/commonjs/renderer/components/image/Image.d.ts +4 -0
- package/lib/commonjs/renderer/components/image/ImageSVG.d.ts +4 -0
- package/lib/commonjs/renderer/components/image/ImageShader.d.ts +4 -0
- package/lib/commonjs/renderer/components/image/index.d.ts +3 -0
- package/lib/commonjs/renderer/components/imageFilters/Blur.d.ts +4 -0
- package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.d.ts +4 -0
- package/lib/commonjs/renderer/components/imageFilters/Morphology.d.ts +4 -0
- package/lib/commonjs/renderer/components/imageFilters/Offset.d.ts +4 -0
- package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.d.ts +4 -0
- package/lib/commonjs/renderer/components/imageFilters/Shadow.d.ts +4 -0
- package/lib/commonjs/renderer/components/imageFilters/index.d.ts +6 -0
- package/lib/commonjs/renderer/components/index.d.ts +16 -0
- package/lib/commonjs/renderer/components/maskFilters/Blur.d.ts +4 -0
- package/lib/commonjs/renderer/components/maskFilters/index.d.ts +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Corner.d.ts +4 -0
- package/lib/commonjs/renderer/components/pathEffects/Dash.d.ts +4 -0
- package/lib/commonjs/renderer/components/pathEffects/Discrete.d.ts +4 -0
- package/lib/commonjs/renderer/components/pathEffects/Line2D.d.ts +4 -0
- package/lib/commonjs/renderer/components/pathEffects/Path1D.d.ts +4 -0
- package/lib/commonjs/renderer/components/pathEffects/Path2D.d.ts +4 -0
- package/lib/commonjs/renderer/components/pathEffects/Sum.d.ts +3 -0
- package/lib/commonjs/renderer/components/pathEffects/index.d.ts +7 -0
- package/lib/commonjs/renderer/components/shaders/Color.d.ts +4 -0
- package/lib/commonjs/renderer/components/shaders/FractalNoise.d.ts +4 -0
- package/lib/commonjs/renderer/components/shaders/LinearGradient.d.ts +4 -0
- package/lib/commonjs/renderer/components/shaders/RadialGradient.d.ts +4 -0
- package/lib/commonjs/renderer/components/shaders/Shader.d.ts +4 -0
- package/lib/commonjs/renderer/components/shaders/ShaderLib.d.ts +4 -0
- package/lib/commonjs/renderer/components/shaders/SweepGradient.d.ts +4 -0
- package/lib/commonjs/renderer/components/shaders/Turbulence.d.ts +4 -0
- package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.d.ts +4 -0
- package/lib/commonjs/renderer/components/shaders/index.d.ts +9 -0
- package/lib/commonjs/renderer/components/shapes/Box.d.ts +5 -0
- package/lib/commonjs/renderer/components/shapes/Circle.d.ts +4 -0
- package/lib/commonjs/renderer/components/shapes/DiffRect.d.ts +4 -0
- package/lib/commonjs/renderer/components/shapes/Fill.d.ts +4 -0
- package/lib/commonjs/renderer/components/shapes/FitBox.d.ts +20 -0
- package/lib/commonjs/renderer/components/shapes/Line.d.ts +4 -0
- package/lib/commonjs/renderer/components/shapes/Oval.d.ts +4 -0
- package/lib/commonjs/renderer/components/shapes/Patch.d.ts +4 -0
- package/lib/commonjs/renderer/components/shapes/Path.d.ts +4 -0
- package/lib/commonjs/renderer/components/shapes/Points.d.ts +4 -0
- package/lib/commonjs/renderer/components/shapes/Rect.d.ts +4 -0
- package/lib/commonjs/renderer/components/shapes/RoundedRect.d.ts +4 -0
- package/lib/commonjs/renderer/components/shapes/Vertices.d.ts +4 -0
- package/lib/commonjs/renderer/components/shapes/index.d.ts +13 -0
- package/lib/commonjs/renderer/components/text/Glyphs.d.ts +4 -0
- package/lib/commonjs/renderer/components/text/Text.d.ts +4 -0
- package/lib/commonjs/renderer/components/text/TextBlob.d.ts +4 -0
- package/lib/commonjs/renderer/components/text/TextPath.d.ts +4 -0
- package/lib/commonjs/renderer/components/text/index.d.ts +4 -0
- package/lib/commonjs/renderer/index.d.ts +2 -0
- package/lib/commonjs/renderer/index.js +0 -13
- package/lib/commonjs/renderer/index.js.map +1 -1
- package/lib/commonjs/renderer/processors/Animations/Animations.d.ts +17 -0
- package/lib/commonjs/renderer/processors/Animations/index.d.ts +1 -0
- package/lib/commonjs/renderer/processors/index.d.ts +2 -0
- package/lib/commonjs/renderer/processors/math/Coordinates.d.ts +29 -0
- package/lib/commonjs/renderer/processors/math/Math.d.ts +15 -0
- package/lib/commonjs/renderer/processors/math/Transforms.d.ts +5 -0
- package/lib/commonjs/renderer/processors/math/index.d.ts +3 -0
- package/lib/commonjs/renderer/typeddash.d.ts +3 -0
- package/lib/commonjs/skia/NativeSetup.d.ts +1 -0
- package/lib/commonjs/skia/Skia.d.ts +8 -0
- package/lib/commonjs/skia/Skia.web.d.ts +1 -0
- package/lib/commonjs/skia/core/Data.d.ts +3 -0
- package/lib/commonjs/skia/core/Font.d.ts +5 -0
- package/lib/commonjs/skia/core/Image.d.ts +5 -0
- package/lib/commonjs/skia/core/Matrix.d.ts +2 -0
- package/lib/commonjs/skia/core/Picture.d.ts +8 -0
- package/lib/commonjs/skia/core/RRect.d.ts +2 -0
- package/lib/commonjs/skia/core/Rect.d.ts +8 -0
- package/lib/commonjs/skia/core/SVG.d.ts +2 -0
- package/lib/commonjs/skia/core/Typeface.d.ts +5 -0
- package/lib/commonjs/skia/core/Vector.d.ts +12 -0
- package/lib/commonjs/skia/core/index.d.ts +10 -0
- package/lib/commonjs/skia/index.d.ts +3 -0
- package/lib/commonjs/skia/types/Canvas.d.ts +381 -0
- package/lib/commonjs/skia/types/Color.d.ts +2 -0
- package/lib/commonjs/skia/types/ColorFilter/ColorFilter.d.ts +3 -0
- package/lib/commonjs/skia/types/ColorFilter/ColorFilterFactory.d.ts +43 -0
- package/lib/commonjs/skia/types/ColorFilter/index.d.ts +2 -0
- package/lib/commonjs/skia/types/ContourMeasure.d.ts +41 -0
- package/lib/commonjs/skia/types/Data/Data.d.ts +12 -0
- package/lib/commonjs/skia/types/Data/DataFactory.d.ts +18 -0
- package/lib/commonjs/skia/types/Data/index.d.ts +2 -0
- package/lib/commonjs/skia/types/Font/Font.d.ts +180 -0
- package/lib/commonjs/skia/types/Font/index.d.ts +1 -0
- package/lib/commonjs/skia/types/Image/Image.d.ts +75 -0
- package/lib/commonjs/skia/types/Image/ImageFactory.d.ts +62 -0
- package/lib/commonjs/skia/types/Image/index.d.ts +2 -0
- package/lib/commonjs/skia/types/ImageFilter/ImageFilter.d.ts +23 -0
- package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.d.ts +130 -0
- package/lib/commonjs/skia/types/ImageFilter/index.d.ts +2 -0
- package/lib/commonjs/skia/types/JsiInstance.d.ts +3 -0
- package/lib/commonjs/skia/types/MaskFilter.d.ts +21 -0
- package/lib/commonjs/skia/types/Matrix.d.ts +34 -0
- package/lib/commonjs/skia/types/Paint/BlendMode.d.ts +58 -0
- package/lib/commonjs/skia/types/Paint/Paint.d.ts +136 -0
- package/lib/commonjs/skia/types/Paint/index.d.ts +2 -0
- package/lib/commonjs/skia/types/Path/Path.d.ts +474 -0
- package/lib/commonjs/skia/types/Path/PathFactory.d.ts +29 -0
- package/lib/commonjs/skia/types/Path/index.d.ts +2 -0
- package/lib/commonjs/skia/types/PathEffect.d.ts +75 -0
- package/lib/commonjs/skia/types/Picture/Picture.d.ts +27 -0
- package/lib/commonjs/skia/types/Picture/PictureFactory.d.ts +8 -0
- package/lib/commonjs/skia/types/Picture/PictureRecorder.d.ts +15 -0
- package/lib/commonjs/skia/types/Picture/index.d.ts +3 -0
- package/lib/commonjs/skia/types/Point.d.ts +10 -0
- package/lib/commonjs/skia/types/RRect.d.ts +7 -0
- package/lib/commonjs/skia/types/RSXform.d.ts +2 -0
- package/lib/commonjs/skia/types/Rect.d.ts +6 -0
- package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffect.d.ts +52 -0
- package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffectFactory.d.ts +10 -0
- package/lib/commonjs/skia/types/RuntimeEffect/index.d.ts +2 -0
- package/lib/commonjs/skia/types/SVG/SVG.d.ts +2 -0
- package/lib/commonjs/skia/types/SVG/SVGFactory.d.ts +6 -0
- package/lib/commonjs/skia/types/SVG/index.d.ts +2 -0
- package/lib/commonjs/skia/types/Shader/Shader.d.ts +10 -0
- package/lib/commonjs/skia/types/Shader/ShaderFactory.d.ts +104 -0
- package/lib/commonjs/skia/types/Shader/index.d.ts +2 -0
- package/lib/commonjs/skia/types/Size.d.ts +4 -0
- package/lib/commonjs/skia/types/Skia.d.ts +66 -0
- package/lib/commonjs/skia/types/Surface/Surface.d.ts +25 -0
- package/lib/commonjs/skia/types/Surface/SurfaceFactory.d.ts +11 -0
- package/lib/commonjs/skia/types/Surface/index.d.ts +2 -0
- package/lib/commonjs/skia/types/TextBlob.d.ts +44 -0
- package/lib/commonjs/skia/types/Typeface/Typeface.d.ts +2 -0
- package/lib/commonjs/skia/types/Typeface/TypefaceFactory.d.ts +5 -0
- package/lib/commonjs/skia/types/Typeface/index.d.ts +2 -0
- package/lib/commonjs/skia/types/Vertices/Vertices.d.ts +17 -0
- package/lib/commonjs/skia/types/Vertices/index.d.ts +1 -0
- package/lib/commonjs/skia/types/index.d.ts +28 -0
- package/lib/commonjs/skia/web/Host.d.ts +19 -0
- package/lib/commonjs/skia/web/JsiSkCanvas.d.ts +44 -0
- package/lib/commonjs/skia/web/JsiSkColor.d.ts +2 -0
- package/lib/commonjs/skia/web/JsiSkColorFilter.d.ts +6 -0
- package/lib/commonjs/skia/web/JsiSkColorFilterFactory.d.ts +14 -0
- package/lib/commonjs/skia/web/JsiSkContourMeasure.d.ts +12 -0
- package/lib/commonjs/skia/web/JsiSkContourMeasureIter.d.ts +8 -0
- package/lib/commonjs/skia/web/JsiSkData.d.ts +8 -0
- package/lib/commonjs/skia/web/JsiSkDataFactory.d.ts +19 -0
- package/lib/commonjs/skia/web/JsiSkFont.d.ts +33 -0
- package/lib/commonjs/skia/web/JsiSkImage.d.ts +12 -0
- package/lib/commonjs/skia/web/JsiSkImageFactory.d.ts +10 -0
- package/lib/commonjs/skia/web/JsiSkImageFilter.d.ts +6 -0
- package/lib/commonjs/skia/web/JsiSkImageFilterFactory.d.ts +19 -0
- package/lib/commonjs/skia/web/JsiSkMaskFilter.d.ts +6 -0
- package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.d.ts +9 -0
- package/lib/commonjs/skia/web/JsiSkMatrix.d.ts +13 -0
- package/lib/commonjs/skia/web/JsiSkPaint.d.ts +28 -0
- package/lib/commonjs/skia/web/JsiSkPath.d.ts +57 -0
- package/lib/commonjs/skia/web/JsiSkPathEffect.d.ts +6 -0
- package/lib/commonjs/skia/web/JsiSkPathEffectFactory.d.ts +15 -0
- package/lib/commonjs/skia/web/JsiSkPathFactory.d.ts +13 -0
- package/lib/commonjs/skia/web/JsiSkPicture.d.ts +9 -0
- package/lib/commonjs/skia/web/JsiSkPictureFactory.d.ts +8 -0
- package/lib/commonjs/skia/web/JsiSkPictureRecorder.d.ts +11 -0
- package/lib/commonjs/skia/web/JsiSkPoint.d.ts +9 -0
- package/lib/commonjs/skia/web/JsiSkRRect.d.ts +11 -0
- package/lib/commonjs/skia/web/JsiSkRSXform.d.ts +7 -0
- package/lib/commonjs/skia/web/JsiSkRect.d.ts +11 -0
- package/lib/commonjs/skia/web/JsiSkRuntimeEffect.d.ts +16 -0
- package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.d.ts +8 -0
- package/lib/commonjs/skia/web/JsiSkSVGFactory.d.ts +9 -0
- package/lib/commonjs/skia/web/JsiSkShader.d.ts +6 -0
- package/lib/commonjs/skia/web/JsiSkShaderFactory.d.ts +16 -0
- package/lib/commonjs/skia/web/JsiSkSurface.d.ts +8 -0
- package/lib/commonjs/skia/web/JsiSkSurfaceFactory.d.ts +8 -0
- package/lib/commonjs/skia/web/JsiSkTextBlob.d.ts +6 -0
- package/lib/commonjs/skia/web/JsiSkTextBlobFactory.d.ts +13 -0
- package/lib/commonjs/skia/web/JsiSkTypeface.d.ts +8 -0
- package/lib/commonjs/skia/web/JsiSkTypefaceFactory.d.ts +8 -0
- package/lib/commonjs/skia/web/JsiSkVertices.d.ts +9 -0
- package/lib/commonjs/skia/web/JsiSkVerticesFactory.d.ts +4 -0
- package/lib/commonjs/skia/web/JsiSkia.d.ts +3 -0
- package/lib/commonjs/skia/web/index.d.ts +1 -0
- package/lib/commonjs/values/api.d.ts +5 -0
- package/lib/commonjs/values/api.web.d.ts +2 -0
- package/lib/commonjs/values/hooks/index.d.ts +4 -0
- package/lib/commonjs/values/hooks/useClockValue.d.ts +6 -0
- package/lib/commonjs/values/hooks/useComputedValue.d.ts +8 -0
- package/lib/commonjs/values/hooks/useValue.d.ts +7 -0
- package/lib/commonjs/values/hooks/useValueEffect.d.ts +7 -0
- package/lib/commonjs/values/index.d.ts +4 -0
- package/lib/commonjs/values/selector.d.ts +14 -0
- package/lib/commonjs/values/types.d.ts +63 -0
- package/lib/commonjs/values/web/RNSkAnimation.d.ts +9 -0
- package/lib/commonjs/values/web/RNSkClockValue.d.ts +13 -0
- package/lib/commonjs/values/web/RNSkComputedValue.d.ts +10 -0
- package/lib/commonjs/values/web/RNSkReadonlyValue.d.ts +12 -0
- package/lib/commonjs/values/web/RNSkValue.d.ts +14 -0
- package/lib/commonjs/values/web/api.d.ts +2 -0
- package/lib/commonjs/values/web/index.d.ts +1 -0
- package/lib/commonjs/views/SkiaBaseWebView.d.ts +62 -0
- package/lib/commonjs/views/SkiaDomView.d.ts +31 -0
- package/lib/commonjs/views/SkiaDomView.web.d.ts +7 -0
- package/lib/commonjs/views/SkiaPictureView.d.ts +27 -0
- package/lib/commonjs/views/SkiaPictureView.web.d.ts +7 -0
- package/lib/commonjs/views/SkiaView.d.ts +30 -0
- package/lib/commonjs/views/SkiaView.web.d.ts +7 -0
- package/lib/commonjs/views/api.d.ts +5 -0
- package/lib/commonjs/views/index.d.ts +6 -0
- package/lib/commonjs/views/types.d.ts +91 -0
- package/lib/commonjs/views/useDrawCallback.d.ts +8 -0
- package/lib/commonjs/views/useTouchHandler.d.ts +22 -0
- package/lib/commonjs/web/LoadSkiaWeb.d.ts +6 -0
- package/lib/commonjs/web/WithSkiaWeb.d.ts +12 -0
- package/lib/commonjs/web/index.d.ts +2 -0
- package/lib/module/animation/decay/decay.d.ts +2 -0
- package/lib/module/animation/decay/index.d.ts +1 -0
- package/lib/module/animation/decay/runDecay.d.ts +10 -0
- package/lib/module/animation/decay/types.d.ts +21 -0
- package/lib/module/animation/functions/index.d.ts +4 -0
- package/lib/module/animation/functions/interpolate.d.ts +17 -0
- package/lib/module/animation/functions/interpolateColors.d.ts +3 -0
- package/lib/module/animation/functions/interpolatePaths.d.ts +19 -0
- package/lib/module/animation/functions/interpolateVector.d.ts +10 -0
- package/lib/module/animation/index.d.ts +4 -0
- package/lib/module/animation/spring/Spring.d.ts +65 -0
- package/lib/module/animation/spring/functions/index.d.ts +1 -0
- package/lib/module/animation/spring/functions/spring.d.ts +10 -0
- package/lib/module/animation/spring/index.d.ts +3 -0
- package/lib/module/animation/spring/runSpring.d.ts +16 -0
- package/lib/module/animation/spring/types.d.ts +6 -0
- package/lib/module/animation/spring/useSpring.d.ts +10 -0
- package/lib/module/animation/timing/Easing.d.ts +19 -0
- package/lib/module/animation/timing/createTiming.d.ts +17 -0
- package/lib/module/animation/timing/functions/bezier.d.ts +1 -0
- package/lib/module/animation/timing/functions/getResolvedParams.d.ts +7 -0
- package/lib/module/animation/timing/functions/index.d.ts +4 -0
- package/lib/module/animation/timing/functions/timing.d.ts +17 -0
- package/lib/module/animation/timing/functions/types.d.ts +7 -0
- package/lib/module/animation/timing/index.d.ts +4 -0
- package/lib/module/animation/timing/runTiming.d.ts +16 -0
- package/lib/module/animation/timing/useLoop.d.ts +8 -0
- package/lib/module/animation/timing/useTiming.d.ts +10 -0
- package/lib/module/animation/types.d.ts +18 -0
- package/lib/module/dom/nodes/DrawingNode.d.ts +14 -0
- package/lib/module/dom/nodes/GroupNode.d.ts +7 -0
- package/lib/module/dom/nodes/JsiSkDOM.d.ts +65 -0
- package/lib/module/dom/nodes/LayerNode.d.ts +8 -0
- package/lib/module/dom/nodes/Node.d.ts +43 -0
- package/lib/module/dom/nodes/PaintContext.d.ts +18 -0
- package/lib/module/dom/nodes/PaintNode.d.ts +8 -0
- package/lib/module/dom/nodes/RenderNode.d.ts +27 -0
- package/lib/module/dom/nodes/datatypes/Circle.d.ts +7 -0
- package/lib/module/dom/nodes/datatypes/Enum.d.ts +1 -0
- package/lib/module/dom/nodes/datatypes/Fitting.d.ts +33 -0
- package/lib/module/dom/nodes/datatypes/Gradient.d.ts +92 -0
- package/lib/module/dom/nodes/datatypes/Path.d.ts +4 -0
- package/lib/module/dom/nodes/datatypes/Radius.d.ts +3 -0
- package/lib/module/dom/nodes/datatypes/Rect.d.ts +5 -0
- package/lib/module/dom/nodes/datatypes/Transform.d.ts +3 -0
- package/lib/module/dom/nodes/datatypes/index.d.ts +8 -0
- package/lib/module/dom/nodes/drawings/BackdropFilterNode.d.ts +8 -0
- package/lib/module/dom/nodes/drawings/Box.d.ts +13 -0
- package/lib/module/dom/nodes/drawings/CircleNode.d.ts +9 -0
- package/lib/module/dom/nodes/drawings/CustomDrawingNode.d.ts +8 -0
- package/lib/module/dom/nodes/drawings/DiffRectNode.d.ts +8 -0
- package/lib/module/dom/nodes/drawings/FillNode.d.ts +8 -0
- package/lib/module/dom/nodes/drawings/ImageNode.d.ts +25 -0
- package/lib/module/dom/nodes/drawings/ImageSVG.d.ts +8 -0
- package/lib/module/dom/nodes/drawings/LineNode.d.ts +8 -0
- package/lib/module/dom/nodes/drawings/OvalNode.d.ts +9 -0
- package/lib/module/dom/nodes/drawings/PatchNode.d.ts +18 -0
- package/lib/module/dom/nodes/drawings/PathNode.d.ts +9 -0
- package/lib/module/dom/nodes/drawings/PictureNode.d.ts +8 -0
- package/lib/module/dom/nodes/drawings/PointsNode.d.ts +8 -0
- package/lib/module/dom/nodes/drawings/RRectNode.d.ts +10 -0
- package/lib/module/dom/nodes/drawings/RectNode.d.ts +9 -0
- package/lib/module/dom/nodes/drawings/Text.d.ts +30 -0
- package/lib/module/dom/nodes/drawings/VerticesNode.d.ts +9 -0
- package/lib/module/dom/nodes/drawings/index.d.ts +18 -0
- package/lib/module/dom/nodes/index.d.ts +3 -0
- package/lib/module/dom/nodes/paint/BlendNode.d.ts +12 -0
- package/lib/module/dom/nodes/paint/ColorFilters.d.ts +36 -0
- package/lib/module/dom/nodes/paint/ImageFilters.d.ts +42 -0
- package/lib/module/dom/nodes/paint/MaskFilters.d.ts +8 -0
- package/lib/module/dom/nodes/paint/PathEffects.d.ts +42 -0
- package/lib/module/dom/nodes/paint/Shaders.d.ts +44 -0
- package/lib/module/dom/nodes/paint/index.d.ts +6 -0
- package/lib/module/dom/types/ColorFilters.d.ts +12 -0
- package/lib/module/dom/types/Common.d.ts +56 -0
- package/lib/module/dom/types/DrawingContext.d.ts +5 -0
- package/lib/module/dom/types/Drawings.d.ts +104 -0
- package/lib/module/dom/types/ImageFilters.d.ts +37 -0
- package/lib/module/dom/types/MaskFilters.d.ts +7 -0
- package/lib/module/dom/types/Node.d.ts +29 -0
- package/lib/module/dom/types/NodeType.d.ts +67 -0
- package/lib/module/dom/types/PathEffects.d.ts +28 -0
- package/lib/module/dom/types/Shaders.d.ts +59 -0
- package/lib/module/dom/types/SkDOM.d.ts +72 -0
- package/lib/module/dom/types/index.d.ts +11 -0
- package/lib/module/external/index.d.ts +1 -0
- package/lib/module/external/reanimated/index.d.ts +1 -0
- package/lib/module/external/reanimated/useSharedValueEffect.d.ts +11 -0
- package/lib/module/index.d.ts +10 -0
- package/lib/module/mock/index.d.ts +16 -0
- package/lib/module/renderer/Canvas.d.ts +11 -0
- package/lib/module/renderer/Container.d.ts +12 -0
- package/lib/module/renderer/DependencyManager.d.ts +46 -0
- package/lib/module/renderer/DrawingContext.d.ts +6 -0
- package/lib/module/renderer/HostComponents.d.ts +132 -0
- package/lib/module/renderer/HostConfig.d.ts +19 -0
- package/lib/module/renderer/Reconciler.d.ts +13 -0
- package/lib/module/renderer/components/Blend.d.ts +4 -0
- package/lib/module/renderer/components/Drawing.d.ts +3 -0
- package/lib/module/renderer/components/Group.d.ts +8 -0
- package/lib/module/renderer/components/Mask.d.ts +9 -0
- package/lib/module/renderer/components/Paint.d.ts +4 -0
- package/lib/module/renderer/components/Picture.d.ts +4 -0
- package/lib/module/renderer/components/backdrop/BackdropBlur.d.ts +9 -0
- package/lib/module/renderer/components/backdrop/BackdropFilter.d.ts +7 -0
- package/lib/module/renderer/components/backdrop/index.d.ts +2 -0
- package/lib/module/renderer/components/colorFilters/BlendColor.d.ts +4 -0
- package/lib/module/renderer/components/colorFilters/Lerp.d.ts +4 -0
- package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.d.ts +4 -0
- package/lib/module/renderer/components/colorFilters/LumaColorFilter.d.ts +4 -0
- package/lib/module/renderer/components/colorFilters/Matrix.d.ts +5 -0
- package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.d.ts +4 -0
- package/lib/module/renderer/components/colorFilters/index.d.ts +6 -0
- package/lib/module/renderer/components/image/Image.d.ts +4 -0
- package/lib/module/renderer/components/image/ImageSVG.d.ts +4 -0
- package/lib/module/renderer/components/image/ImageShader.d.ts +4 -0
- package/lib/module/renderer/components/image/index.d.ts +3 -0
- package/lib/module/renderer/components/imageFilters/Blur.d.ts +4 -0
- package/lib/module/renderer/components/imageFilters/DisplacementMap.d.ts +4 -0
- package/lib/module/renderer/components/imageFilters/Morphology.d.ts +4 -0
- package/lib/module/renderer/components/imageFilters/Offset.d.ts +4 -0
- package/lib/module/renderer/components/imageFilters/RuntimeShader.d.ts +4 -0
- package/lib/module/renderer/components/imageFilters/Shadow.d.ts +4 -0
- package/lib/module/renderer/components/imageFilters/index.d.ts +6 -0
- package/lib/module/renderer/components/index.d.ts +16 -0
- package/lib/module/renderer/components/maskFilters/Blur.d.ts +4 -0
- package/lib/module/renderer/components/maskFilters/index.d.ts +1 -0
- package/lib/module/renderer/components/pathEffects/Corner.d.ts +4 -0
- package/lib/module/renderer/components/pathEffects/Dash.d.ts +4 -0
- package/lib/module/renderer/components/pathEffects/Discrete.d.ts +4 -0
- package/lib/module/renderer/components/pathEffects/Line2D.d.ts +4 -0
- package/lib/module/renderer/components/pathEffects/Path1D.d.ts +4 -0
- package/lib/module/renderer/components/pathEffects/Path2D.d.ts +4 -0
- package/lib/module/renderer/components/pathEffects/Sum.d.ts +3 -0
- package/lib/module/renderer/components/pathEffects/index.d.ts +7 -0
- package/lib/module/renderer/components/shaders/Color.d.ts +4 -0
- package/lib/module/renderer/components/shaders/FractalNoise.d.ts +4 -0
- package/lib/module/renderer/components/shaders/LinearGradient.d.ts +4 -0
- package/lib/module/renderer/components/shaders/RadialGradient.d.ts +4 -0
- package/lib/module/renderer/components/shaders/Shader.d.ts +4 -0
- package/lib/module/renderer/components/shaders/ShaderLib.d.ts +4 -0
- package/lib/module/renderer/components/shaders/SweepGradient.d.ts +4 -0
- package/lib/module/renderer/components/shaders/Turbulence.d.ts +4 -0
- package/lib/module/renderer/components/shaders/TwoPointConicalGradient.d.ts +4 -0
- package/lib/module/renderer/components/shaders/index.d.ts +9 -0
- package/lib/module/renderer/components/shapes/Box.d.ts +5 -0
- package/lib/module/renderer/components/shapes/Circle.d.ts +4 -0
- package/lib/module/renderer/components/shapes/DiffRect.d.ts +4 -0
- package/lib/module/renderer/components/shapes/Fill.d.ts +4 -0
- package/lib/module/renderer/components/shapes/FitBox.d.ts +20 -0
- package/lib/module/renderer/components/shapes/Line.d.ts +4 -0
- package/lib/module/renderer/components/shapes/Oval.d.ts +4 -0
- package/lib/module/renderer/components/shapes/Patch.d.ts +4 -0
- package/lib/module/renderer/components/shapes/Path.d.ts +4 -0
- package/lib/module/renderer/components/shapes/Points.d.ts +4 -0
- package/lib/module/renderer/components/shapes/Rect.d.ts +4 -0
- package/lib/module/renderer/components/shapes/RoundedRect.d.ts +4 -0
- package/lib/module/renderer/components/shapes/Vertices.d.ts +4 -0
- package/lib/module/renderer/components/shapes/index.d.ts +13 -0
- package/lib/module/renderer/components/text/Glyphs.d.ts +4 -0
- package/lib/module/renderer/components/text/Text.d.ts +4 -0
- package/lib/module/renderer/components/text/TextBlob.d.ts +4 -0
- package/lib/module/renderer/components/text/TextPath.d.ts +4 -0
- package/lib/module/renderer/components/text/index.d.ts +4 -0
- package/lib/module/renderer/index.d.ts +2 -0
- package/lib/module/renderer/index.js +0 -1
- package/lib/module/renderer/index.js.map +1 -1
- package/lib/module/renderer/processors/Animations/Animations.d.ts +17 -0
- package/lib/module/renderer/processors/Animations/index.d.ts +1 -0
- package/lib/module/renderer/processors/index.d.ts +2 -0
- package/lib/module/renderer/processors/math/Coordinates.d.ts +29 -0
- package/lib/module/renderer/processors/math/Math.d.ts +15 -0
- package/lib/module/renderer/processors/math/Transforms.d.ts +5 -0
- package/lib/module/renderer/processors/math/index.d.ts +3 -0
- package/lib/module/renderer/typeddash.d.ts +3 -0
- package/lib/module/skia/NativeSetup.d.ts +1 -0
- package/lib/module/skia/Skia.d.ts +8 -0
- package/lib/module/skia/Skia.web.d.ts +1 -0
- package/lib/module/skia/core/Data.d.ts +3 -0
- package/lib/module/skia/core/Font.d.ts +5 -0
- package/lib/module/skia/core/Image.d.ts +5 -0
- package/lib/module/skia/core/Matrix.d.ts +2 -0
- package/lib/module/skia/core/Picture.d.ts +8 -0
- package/lib/module/skia/core/RRect.d.ts +2 -0
- package/lib/module/skia/core/Rect.d.ts +8 -0
- package/lib/module/skia/core/SVG.d.ts +2 -0
- package/lib/module/skia/core/Typeface.d.ts +5 -0
- package/lib/module/skia/core/Vector.d.ts +12 -0
- package/lib/module/skia/core/index.d.ts +10 -0
- package/lib/module/skia/index.d.ts +3 -0
- package/lib/module/skia/types/Canvas.d.ts +381 -0
- package/lib/module/skia/types/Color.d.ts +2 -0
- package/lib/module/skia/types/ColorFilter/ColorFilter.d.ts +3 -0
- package/lib/module/skia/types/ColorFilter/ColorFilterFactory.d.ts +43 -0
- package/lib/module/skia/types/ColorFilter/index.d.ts +2 -0
- package/lib/module/skia/types/ContourMeasure.d.ts +41 -0
- package/lib/module/skia/types/Data/Data.d.ts +12 -0
- package/lib/module/skia/types/Data/DataFactory.d.ts +18 -0
- package/lib/module/skia/types/Data/index.d.ts +2 -0
- package/lib/module/skia/types/Font/Font.d.ts +180 -0
- package/lib/module/skia/types/Font/index.d.ts +1 -0
- package/lib/module/skia/types/Image/Image.d.ts +75 -0
- package/lib/module/skia/types/Image/ImageFactory.d.ts +62 -0
- package/lib/module/skia/types/Image/index.d.ts +2 -0
- package/lib/module/skia/types/ImageFilter/ImageFilter.d.ts +23 -0
- package/lib/module/skia/types/ImageFilter/ImageFilterFactory.d.ts +130 -0
- package/lib/module/skia/types/ImageFilter/index.d.ts +2 -0
- package/lib/module/skia/types/JsiInstance.d.ts +3 -0
- package/lib/module/skia/types/MaskFilter.d.ts +21 -0
- package/lib/module/skia/types/Matrix.d.ts +34 -0
- package/lib/module/skia/types/Paint/BlendMode.d.ts +58 -0
- package/lib/module/skia/types/Paint/Paint.d.ts +136 -0
- package/lib/module/skia/types/Paint/index.d.ts +2 -0
- package/lib/module/skia/types/Path/Path.d.ts +474 -0
- package/lib/module/skia/types/Path/PathFactory.d.ts +29 -0
- package/lib/module/skia/types/Path/index.d.ts +2 -0
- package/lib/module/skia/types/PathEffect.d.ts +75 -0
- package/lib/module/skia/types/Picture/Picture.d.ts +27 -0
- package/lib/module/skia/types/Picture/PictureFactory.d.ts +8 -0
- package/lib/module/skia/types/Picture/PictureRecorder.d.ts +15 -0
- package/lib/module/skia/types/Picture/index.d.ts +3 -0
- package/lib/module/skia/types/Point.d.ts +10 -0
- package/lib/module/skia/types/RRect.d.ts +7 -0
- package/lib/module/skia/types/RSXform.d.ts +2 -0
- package/lib/module/skia/types/Rect.d.ts +6 -0
- package/lib/module/skia/types/RuntimeEffect/RuntimeEffect.d.ts +52 -0
- package/lib/module/skia/types/RuntimeEffect/RuntimeEffectFactory.d.ts +10 -0
- package/lib/module/skia/types/RuntimeEffect/index.d.ts +2 -0
- package/lib/module/skia/types/SVG/SVG.d.ts +2 -0
- package/lib/module/skia/types/SVG/SVGFactory.d.ts +6 -0
- package/lib/module/skia/types/SVG/index.d.ts +2 -0
- package/lib/module/skia/types/Shader/Shader.d.ts +10 -0
- package/lib/module/skia/types/Shader/ShaderFactory.d.ts +104 -0
- package/lib/module/skia/types/Shader/index.d.ts +2 -0
- package/lib/module/skia/types/Size.d.ts +4 -0
- package/lib/module/skia/types/Skia.d.ts +66 -0
- package/lib/module/skia/types/Surface/Surface.d.ts +25 -0
- package/lib/module/skia/types/Surface/SurfaceFactory.d.ts +11 -0
- package/lib/module/skia/types/Surface/index.d.ts +2 -0
- package/lib/module/skia/types/TextBlob.d.ts +44 -0
- package/lib/module/skia/types/Typeface/Typeface.d.ts +2 -0
- package/lib/module/skia/types/Typeface/TypefaceFactory.d.ts +5 -0
- package/lib/module/skia/types/Typeface/index.d.ts +2 -0
- package/lib/module/skia/types/Vertices/Vertices.d.ts +17 -0
- package/lib/module/skia/types/Vertices/index.d.ts +1 -0
- package/lib/module/skia/types/index.d.ts +28 -0
- package/lib/module/skia/web/Host.d.ts +19 -0
- package/lib/module/skia/web/JsiSkCanvas.d.ts +44 -0
- package/lib/module/skia/web/JsiSkColor.d.ts +2 -0
- package/lib/module/skia/web/JsiSkColorFilter.d.ts +6 -0
- package/lib/module/skia/web/JsiSkColorFilterFactory.d.ts +14 -0
- package/lib/module/skia/web/JsiSkContourMeasure.d.ts +12 -0
- package/lib/module/skia/web/JsiSkContourMeasureIter.d.ts +8 -0
- package/lib/module/skia/web/JsiSkData.d.ts +8 -0
- package/lib/module/skia/web/JsiSkDataFactory.d.ts +19 -0
- package/lib/module/skia/web/JsiSkFont.d.ts +33 -0
- package/lib/module/skia/web/JsiSkImage.d.ts +12 -0
- package/lib/module/skia/web/JsiSkImageFactory.d.ts +10 -0
- package/lib/module/skia/web/JsiSkImageFilter.d.ts +6 -0
- package/lib/module/skia/web/JsiSkImageFilterFactory.d.ts +19 -0
- package/lib/module/skia/web/JsiSkMaskFilter.d.ts +6 -0
- package/lib/module/skia/web/JsiSkMaskFilterFactory.d.ts +9 -0
- package/lib/module/skia/web/JsiSkMatrix.d.ts +13 -0
- package/lib/module/skia/web/JsiSkPaint.d.ts +28 -0
- package/lib/module/skia/web/JsiSkPath.d.ts +57 -0
- package/lib/module/skia/web/JsiSkPathEffect.d.ts +6 -0
- package/lib/module/skia/web/JsiSkPathEffectFactory.d.ts +15 -0
- package/lib/module/skia/web/JsiSkPathFactory.d.ts +13 -0
- package/lib/module/skia/web/JsiSkPicture.d.ts +9 -0
- package/lib/module/skia/web/JsiSkPictureFactory.d.ts +8 -0
- package/lib/module/skia/web/JsiSkPictureRecorder.d.ts +11 -0
- package/lib/module/skia/web/JsiSkPoint.d.ts +9 -0
- package/lib/module/skia/web/JsiSkRRect.d.ts +11 -0
- package/lib/module/skia/web/JsiSkRSXform.d.ts +7 -0
- package/lib/module/skia/web/JsiSkRect.d.ts +11 -0
- package/lib/module/skia/web/JsiSkRuntimeEffect.d.ts +16 -0
- package/lib/module/skia/web/JsiSkRuntimeEffectFactory.d.ts +8 -0
- package/lib/module/skia/web/JsiSkSVGFactory.d.ts +9 -0
- package/lib/module/skia/web/JsiSkShader.d.ts +6 -0
- package/lib/module/skia/web/JsiSkShaderFactory.d.ts +16 -0
- package/lib/module/skia/web/JsiSkSurface.d.ts +8 -0
- package/lib/module/skia/web/JsiSkSurfaceFactory.d.ts +8 -0
- package/lib/module/skia/web/JsiSkTextBlob.d.ts +6 -0
- package/lib/module/skia/web/JsiSkTextBlobFactory.d.ts +13 -0
- package/lib/module/skia/web/JsiSkTypeface.d.ts +8 -0
- package/lib/module/skia/web/JsiSkTypefaceFactory.d.ts +8 -0
- package/lib/module/skia/web/JsiSkVertices.d.ts +9 -0
- package/lib/module/skia/web/JsiSkVerticesFactory.d.ts +4 -0
- package/lib/module/skia/web/JsiSkia.d.ts +3 -0
- package/lib/module/skia/web/index.d.ts +1 -0
- package/lib/module/values/api.d.ts +5 -0
- package/lib/module/values/api.web.d.ts +2 -0
- package/lib/module/values/hooks/index.d.ts +4 -0
- package/lib/module/values/hooks/useClockValue.d.ts +6 -0
- package/lib/module/values/hooks/useComputedValue.d.ts +8 -0
- package/lib/module/values/hooks/useValue.d.ts +7 -0
- package/lib/module/values/hooks/useValueEffect.d.ts +7 -0
- package/lib/module/values/index.d.ts +4 -0
- package/lib/module/values/selector.d.ts +14 -0
- package/lib/module/values/types.d.ts +63 -0
- package/lib/module/values/web/RNSkAnimation.d.ts +9 -0
- package/lib/module/values/web/RNSkClockValue.d.ts +13 -0
- package/lib/module/values/web/RNSkComputedValue.d.ts +10 -0
- package/lib/module/values/web/RNSkReadonlyValue.d.ts +12 -0
- package/lib/module/values/web/RNSkValue.d.ts +14 -0
- package/lib/module/values/web/api.d.ts +2 -0
- package/lib/module/values/web/index.d.ts +1 -0
- package/lib/module/views/SkiaBaseWebView.d.ts +62 -0
- package/lib/module/views/SkiaDomView.d.ts +31 -0
- package/lib/module/views/SkiaDomView.web.d.ts +7 -0
- package/lib/module/views/SkiaPictureView.d.ts +27 -0
- package/lib/module/views/SkiaPictureView.web.d.ts +7 -0
- package/lib/module/views/SkiaView.d.ts +30 -0
- package/lib/module/views/SkiaView.web.d.ts +7 -0
- package/lib/module/views/api.d.ts +5 -0
- package/lib/module/views/index.d.ts +6 -0
- package/lib/module/views/types.d.ts +91 -0
- package/lib/module/views/useDrawCallback.d.ts +8 -0
- package/lib/module/views/useTouchHandler.d.ts +22 -0
- package/lib/module/web/LoadSkiaWeb.d.ts +6 -0
- package/lib/module/web/WithSkiaWeb.d.ts +12 -0
- package/lib/module/web/index.d.ts +2 -0
- package/lib/typescript/src/renderer/index.d.ts +0 -1
- package/package.json +5 -4
- package/src/renderer/index.ts +0 -1
- package/lib/commonjs/renderer/useContextBridge.js +0 -35
- package/lib/commonjs/renderer/useContextBridge.js.map +0 -1
- package/lib/module/renderer/useContextBridge.js +0 -21
- package/lib/module/renderer/useContextBridge.js.map +0 -1
- package/lib/typescript/src/renderer/useContextBridge.d.ts +0 -5
- package/src/renderer/useContextBridge.tsx +0 -21
@@ -0,0 +1,27 @@
|
|
1
|
+
import type { SkMatrix, SkRect, SkRRect, SkPath, SkPaint } from "../../skia/types";
|
2
|
+
import type { RenderNode, GroupProps, DrawingContext, NodeType, Node } from "../types";
|
3
|
+
import type { NodeContext } from "./Node";
|
4
|
+
import { JsiNode } from "./Node";
|
5
|
+
interface PaintCache {
|
6
|
+
parent: SkPaint;
|
7
|
+
child: SkPaint;
|
8
|
+
}
|
9
|
+
export declare abstract class JsiRenderNode<P extends GroupProps> extends JsiNode<P> implements RenderNode<P> {
|
10
|
+
paintCache: PaintCache | null;
|
11
|
+
matrix: SkMatrix;
|
12
|
+
clipRect?: SkRect;
|
13
|
+
clipRRect?: SkRRect;
|
14
|
+
clipPath?: SkPath;
|
15
|
+
constructor(ctx: NodeContext, type: NodeType, props: P);
|
16
|
+
setProps(props: P): void;
|
17
|
+
setProp<K extends keyof P>(key: K, value: P[K]): boolean;
|
18
|
+
protected onPropChange(): void;
|
19
|
+
addChild(child: Node<unknown>): void;
|
20
|
+
insertChildBefore(child: Node<unknown>, before: Node<unknown>): void;
|
21
|
+
private computeClip;
|
22
|
+
private computeMatrix;
|
23
|
+
private getPaintCtx;
|
24
|
+
render(parentCtx: DrawingContext): void;
|
25
|
+
abstract renderNode(ctx: DrawingContext): void;
|
26
|
+
}
|
27
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import type { Skia } from "../../../skia/types";
|
2
|
+
import type { CircleDef, ScalarCircleDef } from "../../types";
|
3
|
+
export declare const isCircleScalarDef: (def: CircleDef) => def is ScalarCircleDef;
|
4
|
+
export declare const processCircle: (Skia: Skia, def: CircleDef) => {
|
5
|
+
c: import("../../../skia/types").SkPoint;
|
6
|
+
r: number;
|
7
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const enumKey: <K extends string>(k: K) => Capitalize<K>;
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import type { SkRect } from "../../../skia/types";
|
2
|
+
import type { Fit } from "../../types";
|
3
|
+
export interface Size {
|
4
|
+
width: number;
|
5
|
+
height: number;
|
6
|
+
}
|
7
|
+
export declare const size: (width?: number, height?: number) => {
|
8
|
+
width: number;
|
9
|
+
height: number;
|
10
|
+
};
|
11
|
+
export declare const rect2rect: (src: SkRect, dst: SkRect) => readonly [{
|
12
|
+
readonly translateX: number;
|
13
|
+
}, {
|
14
|
+
readonly translateY: number;
|
15
|
+
}, {
|
16
|
+
readonly scaleX: number;
|
17
|
+
}, {
|
18
|
+
readonly scaleY: number;
|
19
|
+
}];
|
20
|
+
export declare const fitRects: (fit: Fit, rect: SkRect, { x, y, width, height }: SkRect) => {
|
21
|
+
src: {
|
22
|
+
x: number;
|
23
|
+
y: number;
|
24
|
+
width: number;
|
25
|
+
height: number;
|
26
|
+
};
|
27
|
+
dst: {
|
28
|
+
x: number;
|
29
|
+
y: number;
|
30
|
+
width: number;
|
31
|
+
height: number;
|
32
|
+
};
|
33
|
+
};
|
@@ -0,0 +1,92 @@
|
|
1
|
+
import type { Skia, SkRect, Transforms2d, Vector } from "../../../skia/types";
|
2
|
+
import { TileMode } from "../../../skia/types";
|
3
|
+
import type { GradientProps, ImageShaderProps } from "../../types";
|
4
|
+
export declare const transformOrigin: (origin: Vector, transform: Transforms2d) => (Pick<{
|
5
|
+
readonly translateX: number;
|
6
|
+
readonly translateY: number;
|
7
|
+
readonly scale: number;
|
8
|
+
readonly skewX: number;
|
9
|
+
readonly skewY: number;
|
10
|
+
readonly scaleX: number;
|
11
|
+
readonly scaleY: number;
|
12
|
+
readonly rotateZ: number;
|
13
|
+
readonly rotate: number;
|
14
|
+
}, "translateX"> | Pick<{
|
15
|
+
readonly translateX: number;
|
16
|
+
readonly translateY: number;
|
17
|
+
readonly scale: number;
|
18
|
+
readonly skewX: number;
|
19
|
+
readonly skewY: number;
|
20
|
+
readonly scaleX: number;
|
21
|
+
readonly scaleY: number;
|
22
|
+
readonly rotateZ: number;
|
23
|
+
readonly rotate: number;
|
24
|
+
}, "translateY"> | Pick<{
|
25
|
+
readonly translateX: number;
|
26
|
+
readonly translateY: number;
|
27
|
+
readonly scale: number;
|
28
|
+
readonly skewX: number;
|
29
|
+
readonly skewY: number;
|
30
|
+
readonly scaleX: number;
|
31
|
+
readonly scaleY: number;
|
32
|
+
readonly rotateZ: number;
|
33
|
+
readonly rotate: number;
|
34
|
+
}, "scale"> | Pick<{
|
35
|
+
readonly translateX: number;
|
36
|
+
readonly translateY: number;
|
37
|
+
readonly scale: number;
|
38
|
+
readonly skewX: number;
|
39
|
+
readonly skewY: number;
|
40
|
+
readonly scaleX: number;
|
41
|
+
readonly scaleY: number;
|
42
|
+
readonly rotateZ: number;
|
43
|
+
readonly rotate: number;
|
44
|
+
}, "scaleX"> | Pick<{
|
45
|
+
readonly translateX: number;
|
46
|
+
readonly translateY: number;
|
47
|
+
readonly scale: number;
|
48
|
+
readonly skewX: number;
|
49
|
+
readonly skewY: number;
|
50
|
+
readonly scaleX: number;
|
51
|
+
readonly scaleY: number;
|
52
|
+
readonly rotateZ: number;
|
53
|
+
readonly rotate: number;
|
54
|
+
}, "scaleY"> | Pick<{
|
55
|
+
readonly translateX: number;
|
56
|
+
readonly translateY: number;
|
57
|
+
readonly scale: number;
|
58
|
+
readonly skewX: number;
|
59
|
+
readonly skewY: number;
|
60
|
+
readonly scaleX: number;
|
61
|
+
readonly scaleY: number;
|
62
|
+
readonly rotateZ: number;
|
63
|
+
readonly rotate: number;
|
64
|
+
}, "skewX"> | Pick<{
|
65
|
+
readonly translateX: number;
|
66
|
+
readonly translateY: number;
|
67
|
+
readonly scale: number;
|
68
|
+
readonly skewX: number;
|
69
|
+
readonly skewY: number;
|
70
|
+
readonly scaleX: number;
|
71
|
+
readonly scaleY: number;
|
72
|
+
readonly rotateZ: number;
|
73
|
+
readonly rotate: number;
|
74
|
+
}, "skewY"> | Pick<{
|
75
|
+
readonly translateX: number;
|
76
|
+
readonly translateY: number;
|
77
|
+
readonly scale: number;
|
78
|
+
readonly skewX: number;
|
79
|
+
readonly skewY: number;
|
80
|
+
readonly scaleX: number;
|
81
|
+
readonly scaleY: number;
|
82
|
+
readonly rotateZ: number;
|
83
|
+
readonly rotate: number;
|
84
|
+
}, "rotate">)[];
|
85
|
+
export declare const processGradientProps: (Skia: Skia, { colors, positions, mode, flags, ...transform }: GradientProps) => {
|
86
|
+
colors: Float32Array[];
|
87
|
+
positions: number[] | null;
|
88
|
+
mode: TileMode;
|
89
|
+
flags: number | undefined;
|
90
|
+
localMatrix: import("../../../skia/types").SkMatrix;
|
91
|
+
};
|
92
|
+
export declare const getRect: (Skia: Skia, props: Omit<ImageShaderProps, "tx" | "ty" | "fm" | "mm" | "fit" | "image">) => SkRect | undefined;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import type { Skia, SkRect, Vector } from "../../../skia/types";
|
2
|
+
import type { RectDef, RRectDef } from "../../types";
|
3
|
+
export declare const isEdge: (pos: Vector, b: SkRect) => boolean;
|
4
|
+
export declare const processRect: (Skia: Skia, def: RectDef) => SkRect;
|
5
|
+
export declare const processRRect: (Skia: Skia, def: RRectDef) => import("../../../skia/types").SkRRect;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { ChildrenProps, DrawingContext } from "../../types";
|
2
|
+
import { JsiDrawingNode } from "../DrawingNode";
|
3
|
+
import type { NodeContext } from "../Node";
|
4
|
+
export declare class BackdropFilterNode extends JsiDrawingNode<ChildrenProps, null> {
|
5
|
+
constructor(ctx: NodeContext, props: ChildrenProps);
|
6
|
+
protected deriveProps(): null;
|
7
|
+
draw({ canvas }: DrawingContext): void;
|
8
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { DrawingContext } from "../../types";
|
2
|
+
import type { BoxShadowProps, BoxProps } from "../../types/Drawings";
|
3
|
+
import type { NodeContext } from "../Node";
|
4
|
+
import { JsiDeclarationNode } from "../Node";
|
5
|
+
import { JsiRenderNode } from "../RenderNode";
|
6
|
+
export declare class BoxShadowNode extends JsiDeclarationNode<BoxShadowProps, BoxShadowProps> {
|
7
|
+
constructor(ctx: NodeContext, props: BoxShadowProps);
|
8
|
+
materialize(): BoxShadowProps;
|
9
|
+
}
|
10
|
+
export declare class BoxNode extends JsiRenderNode<BoxProps> {
|
11
|
+
constructor(ctx: NodeContext, props: BoxProps);
|
12
|
+
renderNode({ canvas, paint }: DrawingContext): void;
|
13
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import type { SkPoint } from "../../../skia/types";
|
2
|
+
import type { CircleProps, DrawingContext } from "../../types";
|
3
|
+
import { JsiDrawingNode } from "../DrawingNode";
|
4
|
+
import type { NodeContext } from "../Node";
|
5
|
+
export declare class CircleNode extends JsiDrawingNode<CircleProps, SkPoint> {
|
6
|
+
constructor(ctx: NodeContext, props: CircleProps);
|
7
|
+
protected deriveProps(): SkPoint;
|
8
|
+
draw({ canvas, paint }: DrawingContext): void;
|
9
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { CustomDrawingNodeProps, DrawingContext } from "../../types";
|
2
|
+
import { JsiDrawingNode } from "../DrawingNode";
|
3
|
+
import type { NodeContext } from "../Node";
|
4
|
+
export declare class CustomDrawingNode extends JsiDrawingNode<CustomDrawingNodeProps, null> {
|
5
|
+
constructor(ctx: NodeContext, props: CustomDrawingNodeProps);
|
6
|
+
deriveProps(): null;
|
7
|
+
draw(ctx: DrawingContext): void;
|
8
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { DiffRectProps, DrawingContext } from "../../types";
|
2
|
+
import { JsiDrawingNode } from "../DrawingNode";
|
3
|
+
import type { NodeContext } from "../Node";
|
4
|
+
export declare class DiffRectNode extends JsiDrawingNode<DiffRectProps, null> {
|
5
|
+
constructor(ctx: NodeContext, props: DiffRectProps);
|
6
|
+
deriveProps(): null;
|
7
|
+
draw({ canvas, paint }: DrawingContext): void;
|
8
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { DrawingContext, DrawingNodeProps } from "../../types";
|
2
|
+
import { JsiDrawingNode } from "../DrawingNode";
|
3
|
+
import type { NodeContext } from "../Node";
|
4
|
+
export declare class FillNode extends JsiDrawingNode<DrawingNodeProps, null> {
|
5
|
+
constructor(ctx: NodeContext, props?: DrawingNodeProps);
|
6
|
+
deriveProps(): null;
|
7
|
+
draw({ canvas, paint }: DrawingContext): void;
|
8
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import type { SkRect } from "../../../skia/types";
|
2
|
+
import type { DrawingContext, ImageProps } from "../../types";
|
3
|
+
import { JsiDrawingNode } from "../DrawingNode";
|
4
|
+
import type { NodeContext } from "../Node";
|
5
|
+
export declare class ImageNode extends JsiDrawingNode<ImageProps, {
|
6
|
+
src: SkRect;
|
7
|
+
dst: SkRect;
|
8
|
+
}> {
|
9
|
+
constructor(ctx: NodeContext, props: ImageProps);
|
10
|
+
deriveProps(): {
|
11
|
+
src: {
|
12
|
+
x: number;
|
13
|
+
y: number;
|
14
|
+
width: number;
|
15
|
+
height: number;
|
16
|
+
};
|
17
|
+
dst: {
|
18
|
+
x: number;
|
19
|
+
y: number;
|
20
|
+
width: number;
|
21
|
+
height: number;
|
22
|
+
};
|
23
|
+
};
|
24
|
+
draw({ canvas, paint }: DrawingContext): void;
|
25
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { DrawingContext, ImageSVGProps } from "../../types";
|
2
|
+
import { JsiDrawingNode } from "../DrawingNode";
|
3
|
+
import type { NodeContext } from "../Node";
|
4
|
+
export declare class ImageSVGNode extends JsiDrawingNode<ImageSVGProps, null> {
|
5
|
+
constructor(ctx: NodeContext, props: ImageSVGProps);
|
6
|
+
deriveProps(): null;
|
7
|
+
draw({ canvas }: DrawingContext): void;
|
8
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { DrawingContext, LineProps } from "../../types";
|
2
|
+
import { JsiDrawingNode } from "../DrawingNode";
|
3
|
+
import type { NodeContext } from "../Node";
|
4
|
+
export declare class LineNode extends JsiDrawingNode<LineProps, null> {
|
5
|
+
constructor(ctx: NodeContext, props: LineProps);
|
6
|
+
deriveProps(): null;
|
7
|
+
draw({ canvas, paint }: DrawingContext): void;
|
8
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import type { SkRect } from "../../../skia/types";
|
2
|
+
import type { DrawingContext, OvalProps } from "../../types";
|
3
|
+
import { JsiDrawingNode } from "../DrawingNode";
|
4
|
+
import type { NodeContext } from "../Node";
|
5
|
+
export declare class OvalNode extends JsiDrawingNode<OvalProps, SkRect> {
|
6
|
+
constructor(ctx: NodeContext, props: OvalProps);
|
7
|
+
deriveProps(): SkRect;
|
8
|
+
draw({ canvas, paint }: DrawingContext): void;
|
9
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import type { SkColor, SkPoint } from "../../../skia/types";
|
2
|
+
import { BlendMode } from "../../../skia/types";
|
3
|
+
import type { DrawingContext, PatchProps } from "../../types";
|
4
|
+
import { JsiDrawingNode } from "../DrawingNode";
|
5
|
+
import type { NodeContext } from "../Node";
|
6
|
+
export declare class PatchNode extends JsiDrawingNode<PatchProps, {
|
7
|
+
points: SkPoint[];
|
8
|
+
colors: SkColor[] | undefined;
|
9
|
+
mode: BlendMode;
|
10
|
+
}> {
|
11
|
+
constructor(ctx: NodeContext, props: PatchProps);
|
12
|
+
deriveProps(): {
|
13
|
+
mode: BlendMode;
|
14
|
+
points: SkPoint[];
|
15
|
+
colors: Float32Array[] | undefined;
|
16
|
+
};
|
17
|
+
draw({ canvas, paint }: DrawingContext): void;
|
18
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import type { SkPath } from "../../../skia/types";
|
2
|
+
import type { DrawingContext, PathProps } from "../../types";
|
3
|
+
import { JsiDrawingNode } from "../DrawingNode";
|
4
|
+
import type { NodeContext } from "../Node";
|
5
|
+
export declare class PathNode extends JsiDrawingNode<PathProps, SkPath> {
|
6
|
+
constructor(ctx: NodeContext, props: PathProps);
|
7
|
+
protected deriveProps(): SkPath;
|
8
|
+
draw({ canvas, paint }: DrawingContext): void;
|
9
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { DrawingContext, PictureProps } from "../../types";
|
2
|
+
import { JsiDrawingNode } from "../DrawingNode";
|
3
|
+
import type { NodeContext } from "../Node";
|
4
|
+
export declare class PictureNode extends JsiDrawingNode<PictureProps, null> {
|
5
|
+
constructor(ctx: NodeContext, props: PictureProps);
|
6
|
+
deriveProps(): null;
|
7
|
+
draw({ canvas }: DrawingContext): void;
|
8
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { DrawingContext, PointsProps } from "../../types";
|
2
|
+
import { JsiDrawingNode } from "../DrawingNode";
|
3
|
+
import type { NodeContext } from "../Node";
|
4
|
+
export declare class PointsNode extends JsiDrawingNode<PointsProps, null> {
|
5
|
+
constructor(ctx: NodeContext, props: PointsProps);
|
6
|
+
deriveProps(): null;
|
7
|
+
draw({ canvas, paint }: DrawingContext): void;
|
8
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { SkRRect } from "../../../skia/types";
|
2
|
+
import type { DrawingContext, RoundedRectProps } from "../../types";
|
3
|
+
import { JsiDrawingNode } from "../DrawingNode";
|
4
|
+
import type { NodeContext } from "../Node";
|
5
|
+
export declare class RRectNode extends JsiDrawingNode<RoundedRectProps, SkRRect> {
|
6
|
+
rect?: SkRRect;
|
7
|
+
constructor(ctx: NodeContext, props: RoundedRectProps);
|
8
|
+
protected deriveProps(): SkRRect;
|
9
|
+
draw({ canvas, paint }: DrawingContext): void;
|
10
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import type { SkRect } from "../../../skia/types/Rect";
|
2
|
+
import type { DrawingContext, RectProps } from "../../types";
|
3
|
+
import { JsiDrawingNode } from "../DrawingNode";
|
4
|
+
import type { NodeContext } from "../Node";
|
5
|
+
export declare class RectNode extends JsiDrawingNode<RectProps, SkRect> {
|
6
|
+
constructor(ctx: NodeContext, props: RectProps);
|
7
|
+
deriveProps(): SkRect;
|
8
|
+
draw({ canvas, paint }: DrawingContext): void;
|
9
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import type { SkTextBlob, SkPoint } from "../../../skia/types";
|
2
|
+
import type { DrawingContext, TextBlobProps, TextPathProps, TextProps } from "../../types";
|
3
|
+
import type { GlyphsProps } from "../../types/Drawings";
|
4
|
+
import { JsiDrawingNode } from "../DrawingNode";
|
5
|
+
import type { NodeContext } from "../Node";
|
6
|
+
export declare class TextNode extends JsiDrawingNode<TextProps, null> {
|
7
|
+
constructor(ctx: NodeContext, props: TextProps);
|
8
|
+
protected deriveProps(): null;
|
9
|
+
draw({ canvas, paint }: DrawingContext): void;
|
10
|
+
}
|
11
|
+
export declare class TextPathNode extends JsiDrawingNode<TextPathProps, SkTextBlob> {
|
12
|
+
constructor(ctx: NodeContext, props: TextPathProps);
|
13
|
+
deriveProps(): SkTextBlob;
|
14
|
+
draw({ canvas, paint }: DrawingContext): void;
|
15
|
+
}
|
16
|
+
export declare class TextBlobNode extends JsiDrawingNode<TextBlobProps, null> {
|
17
|
+
constructor(ctx: NodeContext, props: TextBlobProps);
|
18
|
+
protected deriveProps(): null;
|
19
|
+
draw({ canvas, paint }: DrawingContext): void;
|
20
|
+
}
|
21
|
+
interface ProcessedGlyphs {
|
22
|
+
glyphs: number[];
|
23
|
+
positions: SkPoint[];
|
24
|
+
}
|
25
|
+
export declare class GlyphsNode extends JsiDrawingNode<GlyphsProps, ProcessedGlyphs> {
|
26
|
+
constructor(ctx: NodeContext, props: GlyphsProps);
|
27
|
+
deriveProps(): ProcessedGlyphs;
|
28
|
+
draw({ canvas, paint }: DrawingContext): void;
|
29
|
+
}
|
30
|
+
export {};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import type { SkVertices } from "../../../skia/types";
|
2
|
+
import type { DrawingContext, VerticesProps } from "../../types";
|
3
|
+
import { JsiDrawingNode } from "../DrawingNode";
|
4
|
+
import type { NodeContext } from "../Node";
|
5
|
+
export declare class VerticesNode extends JsiDrawingNode<VerticesProps, SkVertices> {
|
6
|
+
constructor(ctx: NodeContext, props: VerticesProps);
|
7
|
+
protected deriveProps(): SkVertices;
|
8
|
+
draw({ canvas, paint }: DrawingContext): void;
|
9
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
export * from "./CircleNode";
|
2
|
+
export * from "./FillNode";
|
3
|
+
export * from "./ImageNode";
|
4
|
+
export * from "./PointsNode";
|
5
|
+
export * from "./PathNode";
|
6
|
+
export * from "./RectNode";
|
7
|
+
export * from "./RRectNode";
|
8
|
+
export * from "./OvalNode";
|
9
|
+
export * from "./LineNode";
|
10
|
+
export * from "./PatchNode";
|
11
|
+
export * from "./VerticesNode";
|
12
|
+
export * from "./CustomDrawingNode";
|
13
|
+
export * from "./Text";
|
14
|
+
export * from "./PictureNode";
|
15
|
+
export * from "./DiffRectNode";
|
16
|
+
export * from "./ImageSVG";
|
17
|
+
export * from "./BackdropFilterNode";
|
18
|
+
export * from "./Box";
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { BlendProps } from "../../types/ImageFilters";
|
2
|
+
import type { SkShader, SkImageFilter } from "../../../skia/types";
|
3
|
+
import type { NodeContext } from "../Node";
|
4
|
+
import { JsiDeclarationNode } from "../Node";
|
5
|
+
import type { Node } from "../../types";
|
6
|
+
export declare class BlendNode extends JsiDeclarationNode<BlendProps, SkShader | SkImageFilter> {
|
7
|
+
constructor(ctx: NodeContext, props: BlendProps);
|
8
|
+
private checkChild;
|
9
|
+
addChild(child: Node<unknown>): void;
|
10
|
+
insertChildBefore(child: Node<unknown>, before: Node<unknown>): void;
|
11
|
+
materialize(): SkImageFilter | SkShader;
|
12
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import type { SkColorFilter } from "../../../skia/types";
|
2
|
+
import type { NodeContext } from "../Node";
|
3
|
+
import { JsiDeclarationNode } from "../Node";
|
4
|
+
import type { BlendColorFilterProps, MatrixColorFilterProps, Node } from "../../types";
|
5
|
+
import { NodeType } from "../../types";
|
6
|
+
import type { LerpColorFilterProps } from "../../types/ColorFilters";
|
7
|
+
export declare abstract class ColorFilterDeclaration<P, Nullable extends null | never = never> extends JsiDeclarationNode<P, SkColorFilter, Nullable> {
|
8
|
+
constructor(ctx: NodeContext, type: NodeType, props: P);
|
9
|
+
addChild(child: Node<unknown>): void;
|
10
|
+
insertChildBefore(child: Node<unknown>, before: Node<unknown>): void;
|
11
|
+
compose(filter: SkColorFilter): SkColorFilter;
|
12
|
+
}
|
13
|
+
export declare class MatrixColorFilterNode extends ColorFilterDeclaration<MatrixColorFilterProps> {
|
14
|
+
constructor(ctx: NodeContext, props: MatrixColorFilterProps);
|
15
|
+
materialize(): SkColorFilter;
|
16
|
+
}
|
17
|
+
export declare class BlendColorFilterNode extends ColorFilterDeclaration<BlendColorFilterProps> {
|
18
|
+
constructor(ctx: NodeContext, props: BlendColorFilterProps);
|
19
|
+
materialize(): SkColorFilter;
|
20
|
+
}
|
21
|
+
export declare class LinearToSRGBGammaColorFilterNode extends ColorFilterDeclaration<null> {
|
22
|
+
constructor(ctx: NodeContext);
|
23
|
+
materialize(): SkColorFilter;
|
24
|
+
}
|
25
|
+
export declare class SRGBToLinearGammaColorFilterNode extends ColorFilterDeclaration<null> {
|
26
|
+
constructor(ctx: NodeContext);
|
27
|
+
materialize(): SkColorFilter;
|
28
|
+
}
|
29
|
+
export declare class LumaColorFilterNode extends ColorFilterDeclaration<null> {
|
30
|
+
constructor(ctx: NodeContext);
|
31
|
+
materialize(): SkColorFilter;
|
32
|
+
}
|
33
|
+
export declare class LerpColorFilterNode extends ColorFilterDeclaration<LerpColorFilterProps> {
|
34
|
+
constructor(ctx: NodeContext, props: LerpColorFilterProps);
|
35
|
+
materialize(): SkColorFilter;
|
36
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import type { SkImageFilter } from "../../../skia/types";
|
2
|
+
import type { BlendImageFilterProps, BlurImageFilterProps, DisplacementMapImageFilterProps, DropShadowImageFilterProps, MorphologyImageFilterProps, OffsetImageFilterProps, RuntimeShaderImageFilterProps } from "../../types";
|
3
|
+
import { NodeType } from "../../types";
|
4
|
+
import type { NodeContext } from "../Node";
|
5
|
+
import { JsiDeclarationNode } from "../Node";
|
6
|
+
export declare abstract class ImageFilterDeclaration<P, Nullable extends null | never = never> extends JsiDeclarationNode<P, SkImageFilter, Nullable> {
|
7
|
+
constructor(ctx: NodeContext, type: NodeType, props: P);
|
8
|
+
getOptionalChildInstance(index: number): any;
|
9
|
+
getMandatoryChildInstance(index: number): any;
|
10
|
+
}
|
11
|
+
export declare class OffsetImageFilterNode extends ImageFilterDeclaration<OffsetImageFilterProps> {
|
12
|
+
constructor(ctx: NodeContext, props: OffsetImageFilterProps);
|
13
|
+
materialize(): SkImageFilter;
|
14
|
+
}
|
15
|
+
export declare class DisplacementMapImageFilterNode extends ImageFilterDeclaration<DisplacementMapImageFilterProps> {
|
16
|
+
constructor(ctx: NodeContext, props: DisplacementMapImageFilterProps);
|
17
|
+
materialize(): SkImageFilter;
|
18
|
+
}
|
19
|
+
export declare class BlurImageFilterNode extends ImageFilterDeclaration<BlurImageFilterProps> {
|
20
|
+
constructor(ctx: NodeContext, props: BlurImageFilterProps);
|
21
|
+
materialize(): SkImageFilter;
|
22
|
+
}
|
23
|
+
export declare class DropShadowImageFilterNode extends ImageFilterDeclaration<DropShadowImageFilterProps> {
|
24
|
+
constructor(ctx: NodeContext, props: DropShadowImageFilterProps);
|
25
|
+
materialize(): SkImageFilter;
|
26
|
+
}
|
27
|
+
export declare enum MorphologyOperator {
|
28
|
+
Erode = 0,
|
29
|
+
Dilate = 1
|
30
|
+
}
|
31
|
+
export declare class MorphologyImageFilterNode extends ImageFilterDeclaration<MorphologyImageFilterProps> {
|
32
|
+
constructor(ctx: NodeContext, props: MorphologyImageFilterProps);
|
33
|
+
materialize(): SkImageFilter;
|
34
|
+
}
|
35
|
+
export declare class BlendImageFilterNode extends ImageFilterDeclaration<BlendImageFilterProps> {
|
36
|
+
constructor(ctx: NodeContext, props: BlendImageFilterProps);
|
37
|
+
materialize(): SkImageFilter;
|
38
|
+
}
|
39
|
+
export declare class RuntimeShaderImageFilterNode extends ImageFilterDeclaration<RuntimeShaderImageFilterProps> {
|
40
|
+
constructor(ctx: NodeContext, props: RuntimeShaderImageFilterProps);
|
41
|
+
materialize(): SkImageFilter;
|
42
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { SkMaskFilter } from "../../../skia/types";
|
2
|
+
import type { NodeContext } from "../Node";
|
3
|
+
import { JsiDeclarationNode } from "../Node";
|
4
|
+
import type { BlurMaskFilterProps } from "../../types";
|
5
|
+
export declare class BlurMaskFilterNode extends JsiDeclarationNode<BlurMaskFilterProps, SkMaskFilter> {
|
6
|
+
constructor(ctx: NodeContext, props: BlurMaskFilterProps);
|
7
|
+
materialize(): SkMaskFilter;
|
8
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import type { SkPathEffect } from "../../../skia/types";
|
2
|
+
import type { NodeContext } from "../Node";
|
3
|
+
import { JsiDeclarationNode } from "../Node";
|
4
|
+
import type { CornerPathEffectProps, DashPathEffectProps, DiscretePathEffectProps, Line2DPathEffectProps, Node, Path1DPathEffectProps, Path2DPathEffectProps } from "../../types";
|
5
|
+
import { NodeType } from "../../types";
|
6
|
+
declare abstract class PathEffectDeclaration<P, Nullable extends null | never = never> extends JsiDeclarationNode<P, SkPathEffect, Nullable> {
|
7
|
+
constructor(ctx: NodeContext, type: NodeType, props: P);
|
8
|
+
addChild(child: Node<unknown>): void;
|
9
|
+
insertChildBefore(child: Node<unknown>, before: Node<unknown>): void;
|
10
|
+
compose(pe: SkPathEffect): SkPathEffect;
|
11
|
+
getOptionalChildInstance(index: number): any;
|
12
|
+
getMandatoryChildInstance(index: number): any;
|
13
|
+
}
|
14
|
+
export declare class DiscretePathEffectNode extends PathEffectDeclaration<DiscretePathEffectProps> {
|
15
|
+
constructor(ctx: NodeContext, props: DiscretePathEffectProps);
|
16
|
+
materialize(): SkPathEffect;
|
17
|
+
}
|
18
|
+
export declare class Path2DPathEffectNode extends PathEffectDeclaration<Path2DPathEffectProps, null> {
|
19
|
+
constructor(ctx: NodeContext, props: Path2DPathEffectProps);
|
20
|
+
materialize(): SkPathEffect | null;
|
21
|
+
}
|
22
|
+
export declare class DashPathEffectNode extends PathEffectDeclaration<DashPathEffectProps> {
|
23
|
+
constructor(ctx: NodeContext, props: DashPathEffectProps);
|
24
|
+
materialize(): SkPathEffect;
|
25
|
+
}
|
26
|
+
export declare class CornerPathEffectNode extends PathEffectDeclaration<CornerPathEffectProps, null> {
|
27
|
+
constructor(ctx: NodeContext, props: CornerPathEffectProps);
|
28
|
+
materialize(): SkPathEffect | null;
|
29
|
+
}
|
30
|
+
export declare class SumPathEffectNode extends PathEffectDeclaration<null> {
|
31
|
+
constructor(ctx: NodeContext);
|
32
|
+
materialize(): SkPathEffect;
|
33
|
+
}
|
34
|
+
export declare class Line2DPathEffectNode extends PathEffectDeclaration<Line2DPathEffectProps, null> {
|
35
|
+
constructor(ctx: NodeContext, props: Line2DPathEffectProps);
|
36
|
+
materialize(): SkPathEffect | null;
|
37
|
+
}
|
38
|
+
export declare class Path1DPathEffectNode extends PathEffectDeclaration<Path1DPathEffectProps, null> {
|
39
|
+
constructor(ctx: NodeContext, props: Path1DPathEffectProps);
|
40
|
+
materialize(): SkPathEffect | null;
|
41
|
+
}
|
42
|
+
export {};
|