@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,44 @@
|
|
1
|
+
import type { SkShader } from "../../../skia/types";
|
2
|
+
import type { NodeContext } from "../Node";
|
3
|
+
import { JsiDeclarationNode } from "../Node";
|
4
|
+
import type { ColorProps, FractalNoiseProps, ImageShaderProps, LinearGradientProps, RadialGradientProps, ShaderProps, SweepGradientProps, TurbulenceProps, TwoPointConicalGradientProps } from "../../types";
|
5
|
+
import { NodeType } from "../../types";
|
6
|
+
export declare abstract class ShaderDeclaration<P> extends JsiDeclarationNode<P, SkShader> {
|
7
|
+
constructor(ctx: NodeContext, type: NodeType, props: P);
|
8
|
+
}
|
9
|
+
export declare class ShaderNode extends ShaderDeclaration<ShaderProps> {
|
10
|
+
constructor(ctx: NodeContext, props: ShaderProps);
|
11
|
+
materialize(): SkShader;
|
12
|
+
}
|
13
|
+
export declare class ImageShaderNode extends ShaderDeclaration<ImageShaderProps> {
|
14
|
+
constructor(ctx: NodeContext, props: ImageShaderProps);
|
15
|
+
materialize(): SkShader;
|
16
|
+
}
|
17
|
+
export declare class ColorNode extends ShaderDeclaration<ColorProps> {
|
18
|
+
constructor(ctx: NodeContext, props: ColorProps);
|
19
|
+
materialize(): SkShader;
|
20
|
+
}
|
21
|
+
export declare class TurbulenceNode extends ShaderDeclaration<TurbulenceProps> {
|
22
|
+
constructor(ctx: NodeContext, props: TurbulenceProps);
|
23
|
+
materialize(): SkShader;
|
24
|
+
}
|
25
|
+
export declare class FractalNoiseNode extends ShaderDeclaration<FractalNoiseProps> {
|
26
|
+
constructor(ctx: NodeContext, props: FractalNoiseProps);
|
27
|
+
materialize(): SkShader;
|
28
|
+
}
|
29
|
+
export declare class LinearGradientNode extends ShaderDeclaration<LinearGradientProps> {
|
30
|
+
constructor(ctx: NodeContext, props: LinearGradientProps);
|
31
|
+
materialize(): SkShader;
|
32
|
+
}
|
33
|
+
export declare class RadialGradientNode extends ShaderDeclaration<RadialGradientProps> {
|
34
|
+
constructor(ctx: NodeContext, props: RadialGradientProps);
|
35
|
+
materialize(): SkShader;
|
36
|
+
}
|
37
|
+
export declare class SweepGradientNode extends ShaderDeclaration<SweepGradientProps> {
|
38
|
+
constructor(ctx: NodeContext, props: SweepGradientProps);
|
39
|
+
materialize(): SkShader;
|
40
|
+
}
|
41
|
+
export declare class TwoPointConicalGradientNode extends ShaderDeclaration<TwoPointConicalGradientProps> {
|
42
|
+
constructor(ctx: NodeContext, props: TwoPointConicalGradientProps);
|
43
|
+
materialize(): SkShader;
|
44
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { BlendMode, Color } from "../../skia/types";
|
2
|
+
import type { ChildrenProps, SkEnum } from "./Common";
|
3
|
+
export interface MatrixColorFilterProps extends ChildrenProps {
|
4
|
+
matrix: number[];
|
5
|
+
}
|
6
|
+
export interface BlendColorFilterProps extends ChildrenProps {
|
7
|
+
mode: SkEnum<typeof BlendMode>;
|
8
|
+
color: Color;
|
9
|
+
}
|
10
|
+
export interface LerpColorFilterProps extends ChildrenProps {
|
11
|
+
t: number;
|
12
|
+
}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import type { ReactNode } from "react";
|
2
|
+
import type { BlendMode, Color, PaintStyle, SkMatrix, SkPaint, SkPath, SkRect, SkRRect, StrokeCap, StrokeJoin, Transforms2d, Vector } from "../../skia/types";
|
3
|
+
export declare type SkEnum<T> = Uncapitalize<keyof T extends string ? keyof T : never>;
|
4
|
+
export declare type PathDef = string | SkPath;
|
5
|
+
export declare type ClipDef = SkRRect | SkRect | PathDef;
|
6
|
+
export declare type Fit = "cover" | "contain" | "fill" | "fitHeight" | "fitWidth" | "none" | "scaleDown";
|
7
|
+
export declare type Radius = number | Vector;
|
8
|
+
export interface ChildrenProps {
|
9
|
+
children?: ReactNode | ReactNode[];
|
10
|
+
}
|
11
|
+
export interface RectCtor {
|
12
|
+
x?: number;
|
13
|
+
y?: number;
|
14
|
+
width: number;
|
15
|
+
height: number;
|
16
|
+
}
|
17
|
+
export interface RRectCtor extends RectCtor {
|
18
|
+
r?: Radius;
|
19
|
+
}
|
20
|
+
export declare type RectDef = RectCtor | {
|
21
|
+
rect: SkRect;
|
22
|
+
};
|
23
|
+
export declare type RRectDef = RRectCtor | {
|
24
|
+
rect: SkRRect;
|
25
|
+
};
|
26
|
+
export interface PointCircleDef {
|
27
|
+
c?: Vector;
|
28
|
+
r: number;
|
29
|
+
}
|
30
|
+
export interface ScalarCircleDef {
|
31
|
+
cx: number;
|
32
|
+
cy: number;
|
33
|
+
r: number;
|
34
|
+
}
|
35
|
+
export declare type CircleDef = PointCircleDef | ScalarCircleDef;
|
36
|
+
export interface TransformProps {
|
37
|
+
transform?: Transforms2d;
|
38
|
+
origin?: Vector;
|
39
|
+
matrix?: SkMatrix;
|
40
|
+
}
|
41
|
+
export interface PaintProps extends ChildrenProps {
|
42
|
+
color?: Color;
|
43
|
+
strokeWidth?: number;
|
44
|
+
blendMode?: SkEnum<typeof BlendMode>;
|
45
|
+
style?: SkEnum<typeof PaintStyle>;
|
46
|
+
strokeJoin?: SkEnum<typeof StrokeJoin>;
|
47
|
+
strokeCap?: SkEnum<typeof StrokeCap>;
|
48
|
+
strokeMiter?: number;
|
49
|
+
opacity?: number;
|
50
|
+
antiAlias?: boolean;
|
51
|
+
}
|
52
|
+
export interface GroupProps extends PaintProps, TransformProps {
|
53
|
+
clip?: ClipDef;
|
54
|
+
invertClip?: boolean;
|
55
|
+
layer?: SkPaint | boolean;
|
56
|
+
}
|
@@ -0,0 +1,104 @@
|
|
1
|
+
import type { FillType, SkImage, StrokeOpts, Vector, Color, SkPoint, BlendMode, PointMode, VertexMode, SkFont, SkRRect, SkTextBlob, SkPicture, SkSVG, SkPaint, SkRect } from "../../skia/types";
|
2
|
+
import type { CircleDef, Fit, GroupProps, PathDef, RectDef, RRectDef, SkEnum } from "./Common";
|
3
|
+
import type { DrawingContext } from "./DrawingContext";
|
4
|
+
export interface DrawingNodeProps extends GroupProps {
|
5
|
+
paint?: SkPaint;
|
6
|
+
}
|
7
|
+
export declare type ImageProps = DrawingNodeProps & RectDef & {
|
8
|
+
fit?: Fit;
|
9
|
+
image: SkImage;
|
10
|
+
};
|
11
|
+
export declare type CircleProps = CircleDef & DrawingNodeProps;
|
12
|
+
export interface PathProps extends DrawingNodeProps {
|
13
|
+
path: PathDef;
|
14
|
+
start: number;
|
15
|
+
end: number;
|
16
|
+
stroke?: StrokeOpts;
|
17
|
+
fillType?: SkEnum<typeof FillType>;
|
18
|
+
}
|
19
|
+
export interface CustomDrawingNodeProps extends DrawingNodeProps {
|
20
|
+
drawing: (ctx: DrawingContext) => void;
|
21
|
+
}
|
22
|
+
export interface LineProps extends DrawingNodeProps {
|
23
|
+
p1: Vector;
|
24
|
+
p2: Vector;
|
25
|
+
}
|
26
|
+
export declare type OvalProps = RectDef & DrawingNodeProps;
|
27
|
+
export declare type RectProps = RectDef & DrawingNodeProps;
|
28
|
+
export declare type RoundedRectProps = RRectDef & DrawingNodeProps;
|
29
|
+
export interface CubicBezierHandle {
|
30
|
+
pos: Vector;
|
31
|
+
c1: Vector;
|
32
|
+
c2: Vector;
|
33
|
+
}
|
34
|
+
export interface PatchProps extends DrawingNodeProps {
|
35
|
+
colors?: Color[];
|
36
|
+
patch: [
|
37
|
+
CubicBezierHandle,
|
38
|
+
CubicBezierHandle,
|
39
|
+
CubicBezierHandle,
|
40
|
+
CubicBezierHandle
|
41
|
+
];
|
42
|
+
texture?: readonly [SkPoint, SkPoint, SkPoint, SkPoint];
|
43
|
+
blendMode?: SkEnum<typeof BlendMode>;
|
44
|
+
}
|
45
|
+
export interface VerticesProps extends DrawingNodeProps {
|
46
|
+
colors?: string[];
|
47
|
+
vertices: SkPoint[];
|
48
|
+
textures?: SkPoint[];
|
49
|
+
mode: SkEnum<typeof VertexMode>;
|
50
|
+
blendMode?: SkEnum<typeof BlendMode>;
|
51
|
+
indices?: number[];
|
52
|
+
}
|
53
|
+
export declare type ImageSVGProps = RectDef & {
|
54
|
+
svg: SkSVG;
|
55
|
+
} & DrawingNodeProps;
|
56
|
+
export interface PictureProps extends DrawingNodeProps {
|
57
|
+
picture: SkPicture;
|
58
|
+
}
|
59
|
+
export interface PointsProps extends DrawingNodeProps {
|
60
|
+
points: SkPoint[];
|
61
|
+
mode: SkEnum<typeof PointMode>;
|
62
|
+
}
|
63
|
+
export interface DiffRectProps extends DrawingNodeProps {
|
64
|
+
inner: SkRRect;
|
65
|
+
outer: SkRRect;
|
66
|
+
}
|
67
|
+
export interface TextProps extends DrawingNodeProps {
|
68
|
+
font: SkFont;
|
69
|
+
text: string;
|
70
|
+
x: number;
|
71
|
+
y: number;
|
72
|
+
}
|
73
|
+
export interface TextPathProps extends DrawingNodeProps {
|
74
|
+
font: SkFont;
|
75
|
+
text: string;
|
76
|
+
path: PathDef;
|
77
|
+
initialOffset: number;
|
78
|
+
}
|
79
|
+
export interface TextBlobProps extends DrawingNodeProps {
|
80
|
+
blob: SkTextBlob;
|
81
|
+
x: number;
|
82
|
+
y: number;
|
83
|
+
}
|
84
|
+
export interface Glyph {
|
85
|
+
id: number;
|
86
|
+
pos: SkPoint;
|
87
|
+
}
|
88
|
+
export interface GlyphsProps extends DrawingNodeProps {
|
89
|
+
font: SkFont;
|
90
|
+
x: number;
|
91
|
+
y: number;
|
92
|
+
glyphs: Glyph[];
|
93
|
+
}
|
94
|
+
export interface BoxProps extends DrawingNodeProps {
|
95
|
+
box: SkRRect | SkRect;
|
96
|
+
}
|
97
|
+
export interface BoxShadowProps {
|
98
|
+
dx?: number;
|
99
|
+
dy?: number;
|
100
|
+
spread?: number;
|
101
|
+
blur: number;
|
102
|
+
color?: Color;
|
103
|
+
inner?: boolean;
|
104
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import type { BlendMode, Color, ColorChannel, SkRuntimeEffect, TileMode, Uniforms } from "../../skia/types";
|
2
|
+
import type { Radius, SkEnum, ChildrenProps } from "./Common";
|
3
|
+
export interface BlurImageFilterProps extends ChildrenProps {
|
4
|
+
blur: Radius;
|
5
|
+
mode: SkEnum<typeof TileMode>;
|
6
|
+
}
|
7
|
+
export interface OffsetImageFilterProps extends ChildrenProps {
|
8
|
+
x: number;
|
9
|
+
y: number;
|
10
|
+
}
|
11
|
+
export interface RuntimeShaderImageFilterProps extends ChildrenProps {
|
12
|
+
source: SkRuntimeEffect;
|
13
|
+
uniforms?: Uniforms;
|
14
|
+
}
|
15
|
+
export interface BlendImageFilterProps extends ChildrenProps {
|
16
|
+
mode: BlendMode;
|
17
|
+
}
|
18
|
+
export interface MorphologyImageFilterProps extends ChildrenProps {
|
19
|
+
operator: "erode" | "dilate";
|
20
|
+
radius: Radius;
|
21
|
+
}
|
22
|
+
export interface DropShadowImageFilterProps extends ChildrenProps {
|
23
|
+
dx: number;
|
24
|
+
dy: number;
|
25
|
+
blur: number;
|
26
|
+
color: Color;
|
27
|
+
inner?: boolean;
|
28
|
+
shadowOnly?: boolean;
|
29
|
+
}
|
30
|
+
export interface DisplacementMapImageFilterProps extends ChildrenProps {
|
31
|
+
channelX: SkEnum<typeof ColorChannel>;
|
32
|
+
channelY: SkEnum<typeof ColorChannel>;
|
33
|
+
scale: number;
|
34
|
+
}
|
35
|
+
export interface BlendProps extends ChildrenProps {
|
36
|
+
mode: SkEnum<typeof BlendMode>;
|
37
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import type { SkColorFilter, SkImageFilter, SkMaskFilter, SkPaint, SkPathEffect, SkShader } from "../../skia/types";
|
2
|
+
import type { GroupProps } from "./Common";
|
3
|
+
import type { DrawingContext } from "./DrawingContext";
|
4
|
+
import type { DeclarationType, NodeType } from "./NodeType";
|
5
|
+
export interface Node<P> {
|
6
|
+
type: NodeType;
|
7
|
+
setProps(props: P): void;
|
8
|
+
setProp<K extends keyof P>(name: K, v: P[K]): boolean;
|
9
|
+
getProps(): P;
|
10
|
+
children(): Node<unknown>[];
|
11
|
+
addChild(child: Node<unknown>): void;
|
12
|
+
removeChild(child: Node<unknown>): void;
|
13
|
+
insertChildBefore(child: Node<unknown>, before: Node<unknown>): void;
|
14
|
+
}
|
15
|
+
export declare type Invalidate = () => void;
|
16
|
+
export interface DeclarationNode<P, T, Nullable extends null | never = never> extends Node<P> {
|
17
|
+
declarationType: DeclarationType;
|
18
|
+
materialize(): T | Nullable;
|
19
|
+
setInvalidate(invalidate: Invalidate): void;
|
20
|
+
isPaint(): this is DeclarationNode<unknown, SkPaint>;
|
21
|
+
isImageFilter(): this is DeclarationNode<unknown, SkImageFilter>;
|
22
|
+
isColorFilter(): this is DeclarationNode<unknown, SkColorFilter>;
|
23
|
+
isShader(): this is DeclarationNode<unknown, SkShader>;
|
24
|
+
isMaskFilter(): this is DeclarationNode<unknown, SkMaskFilter>;
|
25
|
+
isPathEffect(): this is DeclarationNode<unknown, SkPathEffect>;
|
26
|
+
}
|
27
|
+
export interface RenderNode<P extends GroupProps> extends Node<P> {
|
28
|
+
render(ctx: DrawingContext): void;
|
29
|
+
}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
export declare const enum NodeType {
|
2
|
+
Layer = "skLayer",
|
3
|
+
Shader = "skShader",
|
4
|
+
ImageShader = "skImageShader",
|
5
|
+
ColorShader = "skColorShader",
|
6
|
+
Turbulence = "skTurbulence",
|
7
|
+
FractalNoise = "skFractalNoise",
|
8
|
+
LinearGradient = "skLinearGradient",
|
9
|
+
RadialGradient = "skRadialGradient",
|
10
|
+
SweepGradient = "skSweepGradient",
|
11
|
+
TwoPointConicalGradient = "skTwoPointConicalGradient",
|
12
|
+
BlurMaskFilter = "skBlurMaskFilter",
|
13
|
+
DiscretePathEffect = "skDiscretePathEffect",
|
14
|
+
DashPathEffect = "skDashPathEffect",
|
15
|
+
Path1DPathEffect = "skPath1DPathEffect",
|
16
|
+
Path2DPathEffect = "skPath2DPathEffect",
|
17
|
+
CornerPathEffect = "skCornerPathEffect",
|
18
|
+
SumPathEffect = "skSumPathEffect",
|
19
|
+
Line2DPathEffect = "skLine2DPathEffect",
|
20
|
+
MatrixColorFilter = "skMatrixColorFilter",
|
21
|
+
BlendColorFilter = "skBlendColorFilter",
|
22
|
+
LinearToSRGBGammaColorFilter = "skLinearToSRGBGammaColorFilter",
|
23
|
+
SRGBToLinearGammaColorFilter = "skSRGBToLinearGammaColorFilter",
|
24
|
+
LumaColorFilter = "skLumaColorFilter",
|
25
|
+
LerpColorFilter = "skLerpColorFilter",
|
26
|
+
OffsetImageFilter = "skOffsetImageFilter",
|
27
|
+
DisplacementMapImageFilter = "skDisplacementMapImageFilter",
|
28
|
+
BlurImageFilter = "skBlurImageFilter",
|
29
|
+
DropShadowImageFilter = "skDropShadowImageFilter",
|
30
|
+
MorphologyImageFilter = "skMorphologyImageFilter",
|
31
|
+
BlendImageFilter = "skBlendImageFilter",
|
32
|
+
RuntimeShaderImageFilter = "skRuntimeShaderImageFilter",
|
33
|
+
Blend = "skBlend",
|
34
|
+
BackdropFilter = "skBackdropFilter",
|
35
|
+
Box = "skBox",
|
36
|
+
BoxShadow = "skBoxShadow",
|
37
|
+
Group = "skGroup",
|
38
|
+
Drawing = "skDrawing",
|
39
|
+
Paint = "skPaint",
|
40
|
+
Circle = "skCircle",
|
41
|
+
Fill = "skFill",
|
42
|
+
Image = "skImage",
|
43
|
+
Points = "skPoints",
|
44
|
+
Path = "skPath",
|
45
|
+
Rect = "skRect",
|
46
|
+
RRect = "skRRect",
|
47
|
+
Oval = "skOval",
|
48
|
+
Line = "skLine",
|
49
|
+
Patch = "skPatch",
|
50
|
+
Vertices = "skVertices",
|
51
|
+
DiffRect = "skDiffRect",
|
52
|
+
Text = "skText",
|
53
|
+
TextPath = "skTextPath",
|
54
|
+
TextBlob = "skTextBlob",
|
55
|
+
Glyphs = "skGlyphs",
|
56
|
+
Picture = "skPicture",
|
57
|
+
ImageSVG = "skImageSVG"
|
58
|
+
}
|
59
|
+
export declare const enum DeclarationType {
|
60
|
+
Paint = 0,
|
61
|
+
Shader = 1,
|
62
|
+
ImageFilter = 2,
|
63
|
+
ColorFilter = 3,
|
64
|
+
PathEffect = 4,
|
65
|
+
MaskFilter = 5,
|
66
|
+
Unknown = 6
|
67
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import type { Path1DEffectStyle, SkMatrix } from "../../skia/types";
|
2
|
+
import type { ChildrenProps, PathDef, SkEnum } from "./Common";
|
3
|
+
export interface CornerPathEffectProps extends ChildrenProps {
|
4
|
+
r: number;
|
5
|
+
}
|
6
|
+
export interface DiscretePathEffectProps extends ChildrenProps {
|
7
|
+
length: number;
|
8
|
+
deviation: number;
|
9
|
+
seed: number;
|
10
|
+
}
|
11
|
+
export interface DashPathEffectProps extends ChildrenProps {
|
12
|
+
intervals: number[];
|
13
|
+
phase?: number;
|
14
|
+
}
|
15
|
+
export interface Path1DPathEffectProps extends ChildrenProps {
|
16
|
+
path: PathDef;
|
17
|
+
advance: number;
|
18
|
+
phase: number;
|
19
|
+
style: SkEnum<typeof Path1DEffectStyle>;
|
20
|
+
}
|
21
|
+
export interface Path2DPathEffectProps extends ChildrenProps {
|
22
|
+
matrix: SkMatrix;
|
23
|
+
path: PathDef;
|
24
|
+
}
|
25
|
+
export interface Line2DPathEffectProps extends ChildrenProps {
|
26
|
+
width: number;
|
27
|
+
matrix: SkMatrix;
|
28
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import type { Color, FilterMode, MipmapMode, SkImage, SkRect, SkRuntimeEffect, TileMode, Uniforms, Vector } from "../../skia/types";
|
2
|
+
import type { SkEnum, TransformProps, ChildrenProps, RectCtor, Fit } from "./Common";
|
3
|
+
export interface ShaderProps extends TransformProps, ChildrenProps {
|
4
|
+
source: SkRuntimeEffect;
|
5
|
+
uniforms: Uniforms;
|
6
|
+
}
|
7
|
+
export interface ImageShaderProps extends TransformProps, Partial<RectCtor> {
|
8
|
+
tx: SkEnum<typeof TileMode>;
|
9
|
+
ty: SkEnum<typeof TileMode>;
|
10
|
+
fm: SkEnum<typeof FilterMode>;
|
11
|
+
mm: SkEnum<typeof MipmapMode>;
|
12
|
+
fit: Fit;
|
13
|
+
rect?: SkRect;
|
14
|
+
image: SkImage;
|
15
|
+
}
|
16
|
+
export interface ColorProps {
|
17
|
+
color: Color;
|
18
|
+
}
|
19
|
+
export interface TurbulenceProps {
|
20
|
+
freqX: number;
|
21
|
+
freqY: number;
|
22
|
+
octaves: number;
|
23
|
+
seed: number;
|
24
|
+
tileWidth: number;
|
25
|
+
tileHeight: number;
|
26
|
+
}
|
27
|
+
export interface FractalNoiseProps {
|
28
|
+
freqX: number;
|
29
|
+
freqY: number;
|
30
|
+
octaves: number;
|
31
|
+
seed: number;
|
32
|
+
tileWidth: number;
|
33
|
+
tileHeight: number;
|
34
|
+
}
|
35
|
+
export interface GradientProps extends TransformProps {
|
36
|
+
colors: Color[];
|
37
|
+
positions?: number[];
|
38
|
+
mode?: SkEnum<typeof TileMode>;
|
39
|
+
flags?: number;
|
40
|
+
}
|
41
|
+
export interface LinearGradientProps extends GradientProps {
|
42
|
+
start: Vector;
|
43
|
+
end: Vector;
|
44
|
+
}
|
45
|
+
export interface RadialGradientProps extends GradientProps {
|
46
|
+
c: Vector;
|
47
|
+
r: number;
|
48
|
+
}
|
49
|
+
export interface SweepGradientProps extends GradientProps {
|
50
|
+
c: Vector;
|
51
|
+
start?: number;
|
52
|
+
end?: number;
|
53
|
+
}
|
54
|
+
export interface TwoPointConicalGradientProps extends GradientProps {
|
55
|
+
start: Vector;
|
56
|
+
startR: number;
|
57
|
+
end: Vector;
|
58
|
+
endR: number;
|
59
|
+
}
|
@@ -0,0 +1,72 @@
|
|
1
|
+
import type { SkImageFilter, SkMaskFilter, SkShader, SkColorFilter, SkPathEffect, SkPaint } from "../../skia/types";
|
2
|
+
import type { ChildrenProps, GroupProps, PaintProps } from "./Common";
|
3
|
+
import type { BlendImageFilterProps, BlurImageFilterProps, DropShadowImageFilterProps, OffsetImageFilterProps, RuntimeShaderImageFilterProps, DisplacementMapImageFilterProps, MorphologyImageFilterProps, BlendProps } from "./ImageFilters";
|
4
|
+
import type { DeclarationNode, RenderNode } from "./Node";
|
5
|
+
import type { BlendColorFilterProps, MatrixColorFilterProps, LerpColorFilterProps } from "./ColorFilters";
|
6
|
+
import type { ImageProps, CircleProps, PathProps, CustomDrawingNodeProps, LineProps, OvalProps, PatchProps, PointsProps, RectProps, RoundedRectProps, VerticesProps, TextProps, DiffRectProps, TextPathProps, TextBlobProps, GlyphsProps, PictureProps, ImageSVGProps, DrawingNodeProps, BoxProps, BoxShadowProps } from "./Drawings";
|
7
|
+
import type { BlurMaskFilterProps } from "./MaskFilters";
|
8
|
+
import type { FractalNoiseProps, SweepGradientProps, ImageShaderProps, LinearGradientProps, ShaderProps, TurbulenceProps, TwoPointConicalGradientProps, RadialGradientProps, ColorProps } from "./Shaders";
|
9
|
+
import type { CornerPathEffectProps, DashPathEffectProps, DiscretePathEffectProps, Line2DPathEffectProps, Path1DPathEffectProps, Path2DPathEffectProps } from "./PathEffects";
|
10
|
+
declare type ImageFilterNode<P> = DeclarationNode<P, SkImageFilter>;
|
11
|
+
declare type PathEffectNode<P> = DeclarationNode<P, SkPathEffect>;
|
12
|
+
declare type NullablePathEffectNode<P> = DeclarationNode<P, SkPathEffect, null>;
|
13
|
+
declare type DrawingNode<P extends GroupProps> = RenderNode<P>;
|
14
|
+
export interface SkDOM {
|
15
|
+
Layer(props?: ChildrenProps): RenderNode<ChildrenProps>;
|
16
|
+
Group(props?: GroupProps): RenderNode<GroupProps>;
|
17
|
+
Paint(props: PaintProps): DeclarationNode<PaintProps, SkPaint>;
|
18
|
+
Fill(props?: DrawingNodeProps): DrawingNode<DrawingNodeProps>;
|
19
|
+
Image(props: ImageProps): DrawingNode<ImageProps>;
|
20
|
+
Circle(props: CircleProps): DrawingNode<CircleProps>;
|
21
|
+
Path(props: PathProps): DrawingNode<PathProps>;
|
22
|
+
CustomDrawing(props: CustomDrawingNodeProps): DrawingNode<CustomDrawingNodeProps>;
|
23
|
+
Line(props: LineProps): DrawingNode<LineProps>;
|
24
|
+
Oval(props: OvalProps): DrawingNode<OvalProps>;
|
25
|
+
Patch(props: PatchProps): DrawingNode<PatchProps>;
|
26
|
+
Points(props: PointsProps): DrawingNode<PointsProps>;
|
27
|
+
Rect(props: RectProps): DrawingNode<RectProps>;
|
28
|
+
RRect(props: RoundedRectProps): DrawingNode<RoundedRectProps>;
|
29
|
+
Vertices(props: VerticesProps): DrawingNode<VerticesProps>;
|
30
|
+
Text(props: TextProps): DrawingNode<TextProps>;
|
31
|
+
TextPath(props: TextPathProps): DrawingNode<TextPathProps>;
|
32
|
+
TextBlob(props: TextBlobProps): DrawingNode<TextBlobProps>;
|
33
|
+
Glyphs(props: GlyphsProps): DrawingNode<GlyphsProps>;
|
34
|
+
DiffRect(props: DiffRectProps): DrawingNode<DiffRectProps>;
|
35
|
+
Picture(props: PictureProps): DrawingNode<PictureProps>;
|
36
|
+
ImageSVG(props: ImageSVGProps): DrawingNode<ImageSVGProps>;
|
37
|
+
BlurMaskFilter(props: BlurMaskFilterProps): DeclarationNode<BlurMaskFilterProps, SkMaskFilter>;
|
38
|
+
BlendImageFilter(props: BlendImageFilterProps): ImageFilterNode<BlendImageFilterProps>;
|
39
|
+
BlurImageFilter(props: BlurImageFilterProps): ImageFilterNode<BlurImageFilterProps>;
|
40
|
+
OffsetImageFilter(props: OffsetImageFilterProps): ImageFilterNode<OffsetImageFilterProps>;
|
41
|
+
DropShadowImageFilter(props: DropShadowImageFilterProps): ImageFilterNode<DropShadowImageFilterProps>;
|
42
|
+
MorphologyImageFilter(props: MorphologyImageFilterProps): ImageFilterNode<MorphologyImageFilterProps>;
|
43
|
+
DisplacementMapImageFilter(props: DisplacementMapImageFilterProps): ImageFilterNode<DisplacementMapImageFilterProps>;
|
44
|
+
RuntimeShaderImageFilter(props: RuntimeShaderImageFilterProps): ImageFilterNode<RuntimeShaderImageFilterProps>;
|
45
|
+
MatrixColorFilter(props: MatrixColorFilterProps): DeclarationNode<MatrixColorFilterProps, SkColorFilter>;
|
46
|
+
BlendColorFilter(props: BlendColorFilterProps): DeclarationNode<BlendColorFilterProps, SkColorFilter>;
|
47
|
+
LumaColorFilter(): DeclarationNode<null, SkColorFilter>;
|
48
|
+
LinearToSRGBGammaColorFilter(): DeclarationNode<null, SkColorFilter>;
|
49
|
+
SRGBToLinearGammaColorFilter(): DeclarationNode<null, SkColorFilter>;
|
50
|
+
LerpColorFilter(props: LerpColorFilterProps): DeclarationNode<LerpColorFilterProps, SkColorFilter>;
|
51
|
+
Shader(props: ShaderProps): DeclarationNode<ShaderProps, SkShader>;
|
52
|
+
ImageShader(props: ImageShaderProps): DeclarationNode<ImageShaderProps, SkShader>;
|
53
|
+
ColorShader(props: ColorProps): DeclarationNode<ColorProps, SkShader>;
|
54
|
+
Turbulence(props: TurbulenceProps): DeclarationNode<TurbulenceProps, SkShader>;
|
55
|
+
FractalNoise(props: FractalNoiseProps): DeclarationNode<FractalNoiseProps, SkShader>;
|
56
|
+
LinearGradient(props: LinearGradientProps): DeclarationNode<LinearGradientProps, SkShader>;
|
57
|
+
RadialGradient(props: RadialGradientProps): DeclarationNode<RadialGradientProps, SkShader>;
|
58
|
+
SweepGradient(props: SweepGradientProps): DeclarationNode<SweepGradientProps, SkShader>;
|
59
|
+
TwoPointConicalGradient(props: TwoPointConicalGradientProps): DeclarationNode<TwoPointConicalGradientProps, SkShader>;
|
60
|
+
CornerPathEffect(props: CornerPathEffectProps): NullablePathEffectNode<CornerPathEffectProps>;
|
61
|
+
DiscretePathEffect(props: DiscretePathEffectProps): PathEffectNode<DiscretePathEffectProps>;
|
62
|
+
DashPathEffect(props: DashPathEffectProps): PathEffectNode<DashPathEffectProps>;
|
63
|
+
Path1DPathEffect(props: Path1DPathEffectProps): NullablePathEffectNode<Path1DPathEffectProps>;
|
64
|
+
Path2DPathEffect(props: Path2DPathEffectProps): NullablePathEffectNode<Path2DPathEffectProps>;
|
65
|
+
SumPathEffect(): NullablePathEffectNode<null>;
|
66
|
+
Line2DPathEffect(props: Line2DPathEffectProps): NullablePathEffectNode<Line2DPathEffectProps>;
|
67
|
+
Blend(props: BlendProps): DeclarationNode<BlendProps, SkShader | SkImageFilter>;
|
68
|
+
BackdropFilter(props: ChildrenProps): RenderNode<ChildrenProps>;
|
69
|
+
Box(props: BoxProps): RenderNode<BoxProps>;
|
70
|
+
BoxShadow(props: BoxShadowProps): DeclarationNode<BoxShadowProps, BoxShadowProps>;
|
71
|
+
}
|
72
|
+
export {};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export * from "./DrawingContext";
|
2
|
+
export * from "./Node";
|
3
|
+
export * from "./NodeType";
|
4
|
+
export * from "./SkDOM";
|
5
|
+
export * from "./Common";
|
6
|
+
export * from "./Drawings";
|
7
|
+
export * from "./ImageFilters";
|
8
|
+
export * from "./ColorFilters";
|
9
|
+
export * from "./MaskFilters";
|
10
|
+
export * from "./PathEffects";
|
11
|
+
export * from "./Shaders";
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./reanimated";
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./useSharedValueEffect";
|
@@ -0,0 +1,11 @@
|
|
1
|
+
declare type SharedValueTypeWrapper<T = number> = {
|
2
|
+
value: T;
|
3
|
+
};
|
4
|
+
/**
|
5
|
+
* Connects a shared value from reanimated to a SkiaView or Canvas
|
6
|
+
* so whenever the shared value changes the SkiaView will redraw.
|
7
|
+
* @param cb Callback that will be called whenever the shared value changes.
|
8
|
+
* @param values One or more shared values to listen for.
|
9
|
+
*/
|
10
|
+
export declare const useSharedValueEffect: <T = number>(cb: () => void, value: SharedValueTypeWrapper<T>, ...values: SharedValueTypeWrapper<T>[]) => void;
|
11
|
+
export {};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import "./skia/NativeSetup";
|
2
|
+
export * from "./renderer";
|
3
|
+
export * from "./renderer/Canvas";
|
4
|
+
export * from "./views";
|
5
|
+
export * from "./skia";
|
6
|
+
export * from "./external";
|
7
|
+
export * from "./values";
|
8
|
+
export * from "./animation";
|
9
|
+
export * from "./dom/types";
|
10
|
+
export * from "./dom/nodes";
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import type { Skia as SkiaApi } from "../skia/types";
|
2
|
+
import type * as SkiaExports from "../skia";
|
3
|
+
import type * as ExternalExports from "../external";
|
4
|
+
import type * as ValueExports from "../values";
|
5
|
+
import type * as AnimationExports from "../animation";
|
6
|
+
import { ShaderLib } from "../renderer/components/shaders/ShaderLib";
|
7
|
+
export declare const Skia: SkiaApi;
|
8
|
+
export declare const vec: (x?: number, y?: number) => {
|
9
|
+
x: number;
|
10
|
+
y: number;
|
11
|
+
};
|
12
|
+
export declare const Mock: typeof SkiaExports & typeof ExternalExports & typeof ValueExports & typeof AnimationExports & {
|
13
|
+
createDrawing: () => any;
|
14
|
+
createDeclaration: () => any;
|
15
|
+
ShaderLib: typeof ShaderLib;
|
16
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import type { RefObject, ReactNode } from "react";
|
3
|
+
import { SkiaDomView } from "../views";
|
4
|
+
import type { TouchHandler, SkiaBaseViewProps } from "../views";
|
5
|
+
export declare const useCanvasRef: () => React.RefObject<SkiaDomView>;
|
6
|
+
export interface CanvasProps extends SkiaBaseViewProps {
|
7
|
+
ref?: RefObject<SkiaDomView>;
|
8
|
+
children: ReactNode;
|
9
|
+
onTouch?: TouchHandler;
|
10
|
+
}
|
11
|
+
export declare const Canvas: React.FC<CanvasProps & React.RefAttributes<SkiaDomView>>;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { GroupProps, DrawingContext, RenderNode, SkDOM } from "../dom/types";
|
2
|
+
import type { Skia } from "../skia/types";
|
3
|
+
import type { DependencyManager } from "./DependencyManager";
|
4
|
+
export declare class Container {
|
5
|
+
depMgr: DependencyManager;
|
6
|
+
redraw: () => void;
|
7
|
+
private _root;
|
8
|
+
Sk: SkDOM;
|
9
|
+
constructor(Skia: Skia, depMgr: DependencyManager, redraw?: () => void);
|
10
|
+
draw(ctx: DrawingContext): void;
|
11
|
+
get root(): RenderNode<GroupProps>;
|
12
|
+
}
|