@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,136 @@
|
|
1
|
+
import type { SkImageFilter } from "../ImageFilter";
|
2
|
+
import type { SkMaskFilter } from "../MaskFilter";
|
3
|
+
import type { SkColorFilter } from "../ColorFilter";
|
4
|
+
import type { SkColor } from "../Color";
|
5
|
+
import type { SkPathEffect } from "../PathEffect";
|
6
|
+
import type { SkJSIInstance } from "../JsiInstance";
|
7
|
+
import type { SkShader } from "../Shader";
|
8
|
+
import type { BlendMode } from "./BlendMode";
|
9
|
+
export declare enum PaintStyle {
|
10
|
+
Fill = 0,
|
11
|
+
Stroke = 1
|
12
|
+
}
|
13
|
+
export declare enum StrokeCap {
|
14
|
+
Butt = 0,
|
15
|
+
Round = 1,
|
16
|
+
Square = 2
|
17
|
+
}
|
18
|
+
export declare enum StrokeJoin {
|
19
|
+
Miter = 0,
|
20
|
+
Round = 1,
|
21
|
+
Bevel = 2
|
22
|
+
}
|
23
|
+
export declare const isPaint: (obj: SkJSIInstance<string> | null) => obj is SkPaint;
|
24
|
+
export interface SkPaint extends SkJSIInstance<"Paint"> {
|
25
|
+
/**
|
26
|
+
* Retrieves alpha from the color used when stroking and filling.
|
27
|
+
*/
|
28
|
+
getAlphaf(): number;
|
29
|
+
/**
|
30
|
+
* Returns a copy of this paint.
|
31
|
+
*/
|
32
|
+
copy(): SkPaint;
|
33
|
+
/**
|
34
|
+
* Sets all SkPaint contents to their initial values. This is equivalent to replacing
|
35
|
+
SkPaint with the result of SkPaint().
|
36
|
+
*/
|
37
|
+
reset(): void;
|
38
|
+
/**
|
39
|
+
* Retrieves the alpha and RGB unpremultiplied. RGB are extended sRGB values
|
40
|
+
* (sRGB gamut, and encoded with the sRGB transfer function).
|
41
|
+
*/
|
42
|
+
getColor(): SkColor;
|
43
|
+
/**
|
44
|
+
* Returns the geometry drawn at the beginning and end of strokes.
|
45
|
+
*/
|
46
|
+
getStrokeCap(): StrokeCap;
|
47
|
+
/**
|
48
|
+
* Returns the geometry drawn at the corners of strokes.
|
49
|
+
*/
|
50
|
+
getStrokeJoin(): StrokeJoin;
|
51
|
+
/**
|
52
|
+
* Returns the limit at which a sharp corner is drawn beveled.
|
53
|
+
*/
|
54
|
+
getStrokeMiter(): number;
|
55
|
+
/**
|
56
|
+
* Returns the thickness of the pen used to outline the shape.
|
57
|
+
*/
|
58
|
+
getStrokeWidth(): number;
|
59
|
+
/**
|
60
|
+
* Replaces alpha, leaving RGBA unchanged. 0 means fully transparent, 1.0 means opaque.
|
61
|
+
* @param alpha
|
62
|
+
*/
|
63
|
+
setAlphaf(alpha: number): void;
|
64
|
+
/**
|
65
|
+
* Requests, but does not require, that edge pixels draw opaque or with
|
66
|
+
* partial transparency.
|
67
|
+
* @param aa
|
68
|
+
*/
|
69
|
+
setAntiAlias: (aa: boolean) => void;
|
70
|
+
/**
|
71
|
+
* Sets the blend mode that is, the mode used to combine source color
|
72
|
+
* with destination color.
|
73
|
+
* @param mode
|
74
|
+
*/
|
75
|
+
setBlendMode: (blendMode: BlendMode) => void;
|
76
|
+
/**
|
77
|
+
* Sets alpha and RGB used when stroking and filling. The color is a 32-bit
|
78
|
+
* value, unpremultiplied, packing 8-bit components for alpha, red, blue,
|
79
|
+
* and green.
|
80
|
+
*
|
81
|
+
* @param color unpremultiplied ARGB
|
82
|
+
*
|
83
|
+
* example: https://fiddle.skia.org/c/@Paint_setColor
|
84
|
+
*/
|
85
|
+
setColor(color: SkColor): void;
|
86
|
+
/**
|
87
|
+
* Sets the current color filter, replacing the existing one if there was one.
|
88
|
+
* @param filter
|
89
|
+
*/
|
90
|
+
setColorFilter(filter: SkColorFilter | null): void;
|
91
|
+
/**
|
92
|
+
* Sets the current image filter, replacing the existing one if there was one.
|
93
|
+
* @param filter
|
94
|
+
*/
|
95
|
+
setImageFilter(filter: SkImageFilter | null): void;
|
96
|
+
/**
|
97
|
+
* Sets the current mask filter, replacing the existing one if there was one.
|
98
|
+
* @param filter
|
99
|
+
*/
|
100
|
+
setMaskFilter(filter: SkMaskFilter | null): void;
|
101
|
+
/**
|
102
|
+
* Sets the current path effect, replacing the existing one if there was one.
|
103
|
+
* @param effect
|
104
|
+
*/
|
105
|
+
setPathEffect(effect: SkPathEffect | null): void;
|
106
|
+
/**
|
107
|
+
* Sets the current shader, replacing the existing one if there was one.
|
108
|
+
* @param shader
|
109
|
+
*/
|
110
|
+
setShader(shader: SkShader | null): void;
|
111
|
+
/**
|
112
|
+
* Sets the geometry drawn at the beginning and end of strokes.
|
113
|
+
* @param cap
|
114
|
+
*/
|
115
|
+
setStrokeCap(cap: StrokeCap): void;
|
116
|
+
/**
|
117
|
+
* Sets the geometry drawn at the corners of strokes.
|
118
|
+
* @param join
|
119
|
+
*/
|
120
|
+
setStrokeJoin(join: StrokeJoin): void;
|
121
|
+
/**
|
122
|
+
* Sets the limit at which a sharp corner is drawn beveled.
|
123
|
+
* @param limit
|
124
|
+
*/
|
125
|
+
setStrokeMiter(limit: number): void;
|
126
|
+
/**
|
127
|
+
* Sets the thickness of the pen used to outline the shape.
|
128
|
+
* @param width
|
129
|
+
*/
|
130
|
+
setStrokeWidth(width: number): void;
|
131
|
+
/**
|
132
|
+
* Sets whether the geometry is filled or stroked.
|
133
|
+
* @param style
|
134
|
+
*/
|
135
|
+
setStyle(style: PaintStyle): void;
|
136
|
+
}
|
@@ -0,0 +1,474 @@
|
|
1
|
+
import type { SkRect } from "../Rect";
|
2
|
+
import type { SkPoint } from "../Point";
|
3
|
+
import type { SkRRect } from "../RRect";
|
4
|
+
import type { StrokeJoin, StrokeCap } from "../Paint";
|
5
|
+
import type { SkMatrix } from "../Matrix";
|
6
|
+
import type { SkJSIInstance } from "../JsiInstance";
|
7
|
+
/**
|
8
|
+
* Options used for Path.stroke(). If an option is omitted, a sensible default will be used.
|
9
|
+
*/
|
10
|
+
export interface StrokeOpts {
|
11
|
+
/** The width of the stroked lines. */
|
12
|
+
width?: number;
|
13
|
+
miter_limit?: number;
|
14
|
+
/**
|
15
|
+
* if > 1, increase precision, else if (0 < resScale < 1) reduce precision to
|
16
|
+
* favor speed and size
|
17
|
+
*/
|
18
|
+
precision?: number;
|
19
|
+
join?: StrokeJoin;
|
20
|
+
cap?: StrokeCap;
|
21
|
+
}
|
22
|
+
export declare enum FillType {
|
23
|
+
Winding = 0,
|
24
|
+
EvenOdd = 1,
|
25
|
+
InverseWinding = 2,
|
26
|
+
InverseEvenOdd = 3
|
27
|
+
}
|
28
|
+
export declare enum PathOp {
|
29
|
+
Difference = 0,
|
30
|
+
Intersect = 1,
|
31
|
+
Union = 2,
|
32
|
+
XOR = 3,
|
33
|
+
ReverseDifference = 4
|
34
|
+
}
|
35
|
+
export declare enum PathVerb {
|
36
|
+
Move = 0,
|
37
|
+
Line = 1,
|
38
|
+
Quad = 2,
|
39
|
+
Conic = 3,
|
40
|
+
Cubic = 4,
|
41
|
+
Close = 5
|
42
|
+
}
|
43
|
+
export declare type PathCommand = number[];
|
44
|
+
export declare const isPath: (obj: SkJSIInstance<string> | null) => obj is SkPath;
|
45
|
+
export interface SkPath extends SkJSIInstance<"Path"> {
|
46
|
+
/**
|
47
|
+
* Appends arc to Path, as the start of new contour. Arc added is part of ellipse
|
48
|
+
* bounded by oval, from startAngle through sweepAngle. Both startAngle and
|
49
|
+
* sweepAngle are measured in degrees, where zero degrees is aligned with the
|
50
|
+
* positive x-axis, and positive sweeps extends arc clockwise.
|
51
|
+
* Returns the modified path for easier chaining.
|
52
|
+
* @param oval
|
53
|
+
* @param startAngle
|
54
|
+
* @param sweepAngle
|
55
|
+
*/
|
56
|
+
addArc(oval: SkRect, startAngleInDegrees: number, sweepAngleInDegrees: number): SkPath;
|
57
|
+
/**
|
58
|
+
* Adds oval to Path, appending kMove_Verb, four kConic_Verb, and kClose_Verb.
|
59
|
+
* Oval is upright ellipse bounded by Rect oval with radii equal to half oval width
|
60
|
+
* and half oval height. Oval begins at start and continues clockwise by default.
|
61
|
+
* Returns the modified path for easier chaining.
|
62
|
+
* @param oval
|
63
|
+
* @param isCCW - if the path should be drawn counter-clockwise or not
|
64
|
+
* @param startIndex - index of initial point of ellipse
|
65
|
+
*/
|
66
|
+
addOval(oval: SkRect, isCCW?: boolean, startIndex?: number): SkPath;
|
67
|
+
/**
|
68
|
+
* Returns the number of points in this path. Initially zero.
|
69
|
+
*/
|
70
|
+
countPoints(): number;
|
71
|
+
/**
|
72
|
+
* Adds contour created from array of n points, adding (count - 1) line segments.
|
73
|
+
* Contour added starts at pts[0], then adds a line for every additional point
|
74
|
+
* in pts array. If close is true, appends kClose_Verb to Path, connecting
|
75
|
+
* pts[count - 1] and pts[0].
|
76
|
+
* Returns the modified path for easier chaining.
|
77
|
+
* @param points
|
78
|
+
* @param close - if true, will add a line connecting last point to the first point.
|
79
|
+
*/
|
80
|
+
addPoly(points: SkPoint[], close: boolean): SkPath;
|
81
|
+
/** Adds beginning of contour at SkPoint (x, y).
|
82
|
+
|
83
|
+
@param x x-axis value of contour start
|
84
|
+
@param y y-axis value of contour start
|
85
|
+
@return reference to SkPath
|
86
|
+
|
87
|
+
example: https://fiddle.skia.org/c/@Path_moveTo
|
88
|
+
*/
|
89
|
+
moveTo(x: number, y: number): SkPath;
|
90
|
+
/** Adds line from last point to (x, y). If SkPath is empty, or last SkPath::Verb is
|
91
|
+
kClose_Verb, last point is set to (0, 0) before adding line.
|
92
|
+
|
93
|
+
lineTo() appends kMove_Verb to verb array and (0, 0) to SkPoint array, if needed.
|
94
|
+
lineTo() then appends kLine_Verb to verb array and (x, y) to SkPoint array.
|
95
|
+
|
96
|
+
@param x end of added line on x-axis
|
97
|
+
@param y end of added line on y-axis
|
98
|
+
@return reference to SkPath
|
99
|
+
|
100
|
+
example: https://fiddle.skia.org/c/@Path_lineTo
|
101
|
+
*/
|
102
|
+
lineTo(x: number, y: number): SkPath;
|
103
|
+
/**
|
104
|
+
* Returns a new path that covers the same area as the original path, but with the
|
105
|
+
* Winding FillType. This may re-draw some contours in the path as counter-clockwise
|
106
|
+
* instead of clockwise to achieve that effect. If such a transformation cannot
|
107
|
+
* be done, null is returned.
|
108
|
+
*/
|
109
|
+
makeAsWinding(): SkPath | null;
|
110
|
+
/**
|
111
|
+
* Translates all the points in the path by dx, dy.
|
112
|
+
* @param dx
|
113
|
+
* @param dy
|
114
|
+
*/
|
115
|
+
offset(dx: number, dy: number): SkPath;
|
116
|
+
/**
|
117
|
+
* Relative version of arcToRotated.
|
118
|
+
* @param rx
|
119
|
+
* @param ry
|
120
|
+
* @param xAxisRotate
|
121
|
+
* @param useSmallArc
|
122
|
+
* @param isCCW
|
123
|
+
* @param dx
|
124
|
+
* @param dy
|
125
|
+
*/
|
126
|
+
rArcTo(rx: number, ry: number, xAxisRotateInDegrees: number, useSmallArc: boolean, isCCW: boolean, dx: number, dy: number): SkPath;
|
127
|
+
/**
|
128
|
+
* Relative version of conicTo.
|
129
|
+
* @param dx1
|
130
|
+
* @param dy1
|
131
|
+
* @param dx2
|
132
|
+
* @param dy2
|
133
|
+
* @param w
|
134
|
+
*/
|
135
|
+
rConicTo(dx1: number, dy1: number, dx2: number, dy2: number, w: number): SkPath;
|
136
|
+
/**
|
137
|
+
* Relative version of cubicTo.
|
138
|
+
* @param cpx1
|
139
|
+
* @param cpy1
|
140
|
+
* @param cpx2
|
141
|
+
* @param cpy2
|
142
|
+
* @param x
|
143
|
+
* @param y
|
144
|
+
*/
|
145
|
+
rCubicTo(cpx1: number, cpy1: number, cpx2: number, cpy2: number, x: number, y: number): SkPath;
|
146
|
+
/**
|
147
|
+
* Relative version of moveTo.
|
148
|
+
* @param x
|
149
|
+
* @param y
|
150
|
+
*/
|
151
|
+
rMoveTo(x: number, y: number): SkPath;
|
152
|
+
/**
|
153
|
+
* Relative version of lineTo.
|
154
|
+
* @param x
|
155
|
+
* @param y
|
156
|
+
*/
|
157
|
+
rLineTo(x: number, y: number): SkPath;
|
158
|
+
/**
|
159
|
+
* Relative version of quadTo.
|
160
|
+
* @param x1
|
161
|
+
* @param y1
|
162
|
+
* @param x2
|
163
|
+
* @param y2
|
164
|
+
*/
|
165
|
+
rQuadTo(x1: number, y1: number, x2: number, y2: number): SkPath;
|
166
|
+
/**
|
167
|
+
* Sets FillType, the rule used to fill Path.
|
168
|
+
* @param fill
|
169
|
+
*/
|
170
|
+
setFillType(fill: FillType): void;
|
171
|
+
/**
|
172
|
+
* Specifies whether Path is volatile; whether it will be altered or discarded
|
173
|
+
* by the caller after it is drawn. Path by default have volatile set false.
|
174
|
+
*
|
175
|
+
* Mark animating or temporary paths as volatile to improve performance.
|
176
|
+
* Mark unchanging Path non-volatile to improve repeated rendering.
|
177
|
+
* @param volatile
|
178
|
+
*/
|
179
|
+
setIsVolatile(volatile: boolean): void;
|
180
|
+
/**
|
181
|
+
* Turns this path into the filled equivalent of the stroked path. Returns false if the operation
|
182
|
+
* fails (e.g. the path is a hairline).
|
183
|
+
* @param opts - describe how stroked path should look.
|
184
|
+
* If such a transformation cannot be done, null is returned.
|
185
|
+
*/
|
186
|
+
stroke(opts?: StrokeOpts): null | SkPath;
|
187
|
+
/**
|
188
|
+
* Appends CLOSE_VERB to Path. A closed contour connects the first and last point
|
189
|
+
* with a line, forming a continuous loop.
|
190
|
+
*/
|
191
|
+
close(): void;
|
192
|
+
/**
|
193
|
+
* Sets Path to its initial state.
|
194
|
+
* Removes verb array, point array, and weights, and sets FillType to Winding.
|
195
|
+
* Internal storage associated with Path is released
|
196
|
+
*/
|
197
|
+
reset(): void;
|
198
|
+
/**
|
199
|
+
* Sets Path to its initial state.
|
200
|
+
* Removes verb array, point array, and weights, and sets FillType to Winding.
|
201
|
+
* Internal storage associated with Path is *not* released.
|
202
|
+
* Use rewind() instead of reset() if Path storage will be reused and performance
|
203
|
+
* is critical.
|
204
|
+
*/
|
205
|
+
rewind(): void;
|
206
|
+
/**
|
207
|
+
* Returns minimum and maximum axes values of the lines and curves in Path.
|
208
|
+
* Returns (0, 0, 0, 0) if Path contains no points.
|
209
|
+
* Returned bounds width and height may be larger or smaller than area affected
|
210
|
+
* when Path is drawn.
|
211
|
+
*
|
212
|
+
* Behaves identically to getBounds() when Path contains
|
213
|
+
* only lines. If Path contains curves, computed bounds includes
|
214
|
+
* the maximum extent of the quad, conic, or cubic; is slower than getBounds();
|
215
|
+
* and unlike getBounds(), does not cache the result.
|
216
|
+
*/
|
217
|
+
computeTightBounds(): SkRect;
|
218
|
+
/**
|
219
|
+
* Appends arc to Path. Arc added is part of ellipse
|
220
|
+
* bounded by oval, from startAngle through sweepAngle. Both startAngle and
|
221
|
+
* sweepAngle are measured in degrees, where zero degrees is aligned with the
|
222
|
+
* positive x-axis, and positive sweeps extends arc clockwise.
|
223
|
+
* Returns the modified path for easier chaining.
|
224
|
+
* @param oval
|
225
|
+
* @param startAngleInDegrees
|
226
|
+
* @param sweepAngleInDegrees
|
227
|
+
* @param forceMoveTo
|
228
|
+
*/
|
229
|
+
arcToOval(oval: SkRect, startAngleInDegrees: number, sweepAngleInDegrees: number, forceMoveTo: boolean): SkPath;
|
230
|
+
/**
|
231
|
+
* Appends arc to Path. Arc is implemented by one or more conics weighted to
|
232
|
+
* describe part of oval with radii (rx, ry) rotated by xAxisRotate degrees. Arc
|
233
|
+
* curves from last Path Point to (x, y), choosing one of four possible routes:
|
234
|
+
* clockwise or counterclockwise, and smaller or larger. See SkPath.h for more details.
|
235
|
+
* Returns the modified path for easier chaining.
|
236
|
+
* @param rx
|
237
|
+
* @param ry
|
238
|
+
* @param xAxisRotate
|
239
|
+
* @param useSmallArc
|
240
|
+
* @param isCCW
|
241
|
+
* @param x
|
242
|
+
* @param y
|
243
|
+
*/
|
244
|
+
arcToRotated(rx: number, ry: number, xAxisRotateInDegrees: number, useSmallArc: boolean, isCCW: boolean, x: number, y: number): SkPath;
|
245
|
+
/**
|
246
|
+
* Appends arc to Path, after appending line if needed. Arc is implemented by conic
|
247
|
+
* weighted to describe part of circle. Arc is contained by tangent from
|
248
|
+
* last Path point to (x1, y1), and tangent from (x1, y1) to (x2, y2). Arc
|
249
|
+
* is part of circle sized to radius, positioned so it touches both tangent lines.
|
250
|
+
* Returns the modified path for easier chaining.
|
251
|
+
* @param x1
|
252
|
+
* @param y1
|
253
|
+
* @param x2
|
254
|
+
* @param y2
|
255
|
+
* @param radius
|
256
|
+
*/
|
257
|
+
arcToTangent(x1: number, y1: number, x2: number, y2: number, radius: number): SkPath;
|
258
|
+
/**
|
259
|
+
* Adds conic from last point towards (x1, y1), to (x2, y2), weighted by w.
|
260
|
+
* If Path is empty, or path is closed, the last point is set to (0, 0)
|
261
|
+
* before adding conic.
|
262
|
+
* Returns the modified path for easier chaining.
|
263
|
+
* @param x1
|
264
|
+
* @param y1
|
265
|
+
* @param x2
|
266
|
+
* @param y2
|
267
|
+
* @param w
|
268
|
+
*/
|
269
|
+
conicTo(x1: number, y1: number, x2: number, y2: number, w: number): SkPath;
|
270
|
+
/**
|
271
|
+
* Returns true if the point (x, y) is contained by Path, taking into
|
272
|
+
* account FillType.
|
273
|
+
* @param x
|
274
|
+
* @param y
|
275
|
+
*/
|
276
|
+
contains(x: number, y: number): boolean;
|
277
|
+
/**
|
278
|
+
* Returns a copy of this Path.
|
279
|
+
*/
|
280
|
+
copy(): SkPath;
|
281
|
+
/**
|
282
|
+
* Adds cubic from last point towards (x1, y1), then towards (x2, y2), ending at
|
283
|
+
* (x3, y3). If Path is empty, or path is closed, the last point is set to
|
284
|
+
* (0, 0) before adding cubic.
|
285
|
+
* @param cpx1
|
286
|
+
* @param cpy1
|
287
|
+
* @param cpx2
|
288
|
+
* @param cpy2
|
289
|
+
* @param x
|
290
|
+
* @param y
|
291
|
+
*/
|
292
|
+
cubicTo(cpx1: number, cpy1: number, cpx2: number, cpy2: number, x: number, y: number): SkPath;
|
293
|
+
/**
|
294
|
+
* Changes this path to be the dashed version of itself. This is the same effect as creating
|
295
|
+
* a DashPathEffect and calling filterPath on this path.
|
296
|
+
* @param on
|
297
|
+
* @param off
|
298
|
+
* @param phase
|
299
|
+
*/
|
300
|
+
dash(on: number, off: number, phase: number): boolean;
|
301
|
+
/**
|
302
|
+
* Returns true if other path is equal to this path.
|
303
|
+
* @param other
|
304
|
+
*/
|
305
|
+
equals(other: SkPath): boolean;
|
306
|
+
/**
|
307
|
+
* Returns minimum and maximum axes values of Point array.
|
308
|
+
* Returns (0, 0, 0, 0) if Path contains no points. Returned bounds width and height may
|
309
|
+
* be larger or smaller than area affected when Path is drawn.
|
310
|
+
*/
|
311
|
+
getBounds(): SkRect;
|
312
|
+
/**
|
313
|
+
* Return the FillType for this path.
|
314
|
+
*/
|
315
|
+
getFillType(): FillType;
|
316
|
+
/**
|
317
|
+
Adds quad from last point towards (x1, y1), to (x2, y2).
|
318
|
+
|
319
|
+
If SkPath is empty, or last SkPath::Verb is kClose_Verb, last point is set to (0, 0) before adding quad.
|
320
|
+
|
321
|
+
Appends kMove_Verb to verb array and (0, 0) to SkPoint array, if needed; then appends kQuad_Verb to verb array;
|
322
|
+
and (x1, y1), (x2, y2) to SkPoint array.
|
323
|
+
|
324
|
+
Parameters
|
325
|
+
x1 control SkPoint of quad on x-axis
|
326
|
+
y1 control SkPoint of quad on y-axis
|
327
|
+
x2 end SkPoint of quad on x-axis
|
328
|
+
y2 end SkPoint of quad on y-axis
|
329
|
+
Returns
|
330
|
+
reference to SkPath
|
331
|
+
example: https://fiddle.skia.org/c/@Path_quadTo
|
332
|
+
*/
|
333
|
+
quadTo(x1: number, y1: number, x2: number, y2: number): void;
|
334
|
+
/**
|
335
|
+
* Adds Rect to Path, appending kMove_Verb, three kLine_Verb, and kClose_Verb,
|
336
|
+
* starting with top-left corner of Rect; followed by top-right, bottom-right,
|
337
|
+
* and bottom-left if isCCW is false; or followed by bottom-left,
|
338
|
+
* bottom-right, and top-right if isCCW is true.
|
339
|
+
* Returns the modified path for easier chaining.
|
340
|
+
* @param rect
|
341
|
+
* @param isCCW
|
342
|
+
*/
|
343
|
+
addRect(rect: SkRect, isCCW?: boolean): void;
|
344
|
+
/**
|
345
|
+
* Adds rrect to Path, creating a new closed contour.
|
346
|
+
* Returns the modified path for easier chaining.
|
347
|
+
* @param rrect
|
348
|
+
* @param isCCW
|
349
|
+
*/
|
350
|
+
addRRect(rrect: SkRRect, isCCW?: boolean): SkPath;
|
351
|
+
/** Appends src to SkPath, transformed by matrix. Transformed curves may have
|
352
|
+
different verbs, SkPoint, and conic weights.
|
353
|
+
|
354
|
+
If mode is kAppend_AddPathMode, src verb array, SkPoint array, and conic
|
355
|
+
weights are added unaltered. If mode is kExtend_AddPathMode, add line
|
356
|
+
before appending verbs, SkPoint, and conic weights.
|
357
|
+
|
358
|
+
@param src SkPath verbs, SkPoint, and conic weights to add
|
359
|
+
@param matrix transform applied to src
|
360
|
+
@param extend extends path with line if true
|
361
|
+
@return reference to SkPath
|
362
|
+
*/
|
363
|
+
addPath(src: SkPath, matrix?: SkMatrix, extend?: boolean): SkPath;
|
364
|
+
/**
|
365
|
+
* Returns the Point at index in Point array. Valid range for index is
|
366
|
+
* 0 to countPoints() - 1.
|
367
|
+
* @param index
|
368
|
+
*/
|
369
|
+
getPoint(index: number): SkPoint;
|
370
|
+
/**
|
371
|
+
* Returns true if there are no verbs in the path.
|
372
|
+
*/
|
373
|
+
isEmpty(): boolean;
|
374
|
+
/**
|
375
|
+
* Returns true if the path is volatile; it will not be altered or discarded
|
376
|
+
* by the caller after it is drawn. Path by default have volatile set false, allowing
|
377
|
+
* Surface to attach a cache of data which speeds repeated drawing. If true, Surface
|
378
|
+
* may not speed repeated drawing.
|
379
|
+
*/
|
380
|
+
isVolatile(): boolean;
|
381
|
+
/** Adds circle centered at (x, y) of size radius to SkPath, appending kMove_Verb,
|
382
|
+
four kConic_Verb, and kClose_Verb. Circle begins at: (x + radius, y), continuing
|
383
|
+
clockwise if dir is kCW_Direction, and counterclockwise if dir is kCCW_Direction.
|
384
|
+
|
385
|
+
Has no effect if radius is zero or negative.
|
386
|
+
|
387
|
+
@param x center of circle
|
388
|
+
@param y center of circle
|
389
|
+
@param radius distance from center to edge
|
390
|
+
@return reference to SkPath
|
391
|
+
*/
|
392
|
+
addCircle(x: number, y: number, r: number): SkPath;
|
393
|
+
getLastPt(): {
|
394
|
+
x: number;
|
395
|
+
y: number;
|
396
|
+
};
|
397
|
+
/** Set this path to the result of applying the Op to this path and the
|
398
|
+
specified path: this = (this op operand).
|
399
|
+
The resulting path will be constructed from non-overlapping contours.
|
400
|
+
The curve order is reduced where possible so that cubics may be turned
|
401
|
+
into quadratics, and quadratics maybe turned into lines.
|
402
|
+
|
403
|
+
Returns true if operation was able to produce a result;
|
404
|
+
otherwise, result is unmodified.
|
405
|
+
|
406
|
+
@param path The second path (for difference, the subtrahend)
|
407
|
+
@param op The operator to apply.
|
408
|
+
@param result The product of the operands. The result may be one of the
|
409
|
+
inputs.
|
410
|
+
@return True if the operation succeeded.
|
411
|
+
*/
|
412
|
+
op(path: SkPath, op: PathOp): boolean;
|
413
|
+
/** Set this path to a set of non-overlapping contours that describe the
|
414
|
+
same area as the original path.
|
415
|
+
The curve order is reduced where possible so that cubics may
|
416
|
+
be turned into quadratics, and quadratics maybe turned into lines.
|
417
|
+
|
418
|
+
Returns true if operation was able to produce a result;
|
419
|
+
otherwise, result is unmodified.
|
420
|
+
|
421
|
+
@param result The simplified path. The result may be the input.
|
422
|
+
@return True if simplification succeeded.
|
423
|
+
*/
|
424
|
+
simplify(): boolean;
|
425
|
+
/**
|
426
|
+
* Returns this path as an SVG string.
|
427
|
+
*/
|
428
|
+
toSVGString(): string;
|
429
|
+
/**
|
430
|
+
* Take start and stop "t" values (values between 0...1), and modify this path such that
|
431
|
+
* it is a subset of the original path.
|
432
|
+
* The trim values apply to the entire path, so if it contains several contours, all of them
|
433
|
+
* are including in the calculation.
|
434
|
+
* Null is returned if either input value is NaN.
|
435
|
+
* @param startT - a value in the range [0.0, 1.0]. 0.0 is the beginning of the path.
|
436
|
+
* @param stopT - a value in the range [0.0, 1.0]. 1.0 is the end of the path.
|
437
|
+
* @param isComplement
|
438
|
+
*/
|
439
|
+
trim(startT: number, stopT: number, isComplement: boolean): null | SkPath;
|
440
|
+
/**
|
441
|
+
* Transforms the path by the specified matrix.
|
442
|
+
*/
|
443
|
+
transform(m3: SkMatrix): void;
|
444
|
+
/**
|
445
|
+
* Interpolates between Path with point array of equal size.
|
446
|
+
* Copy verb array and weights to result, and set result path to a weighted
|
447
|
+
* average of this path array and ending path.
|
448
|
+
|
449
|
+
* weight is most useful when between zero (ending path) and
|
450
|
+
one (this path); will work with values outside of this
|
451
|
+
range.
|
452
|
+
|
453
|
+
* interpolate() returns undefined if path is not
|
454
|
+
* the same size as ending path. Call isInterpolatable() to check Path
|
455
|
+
* compatibility prior to calling interpolate().
|
456
|
+
|
457
|
+
* @param ending path to interpolate with
|
458
|
+
* @param weight contribution of this path, and
|
459
|
+
* one minus contribution of ending path
|
460
|
+
* @return Path replaced by interpolated averages or null if
|
461
|
+
* not interpolatable
|
462
|
+
* */
|
463
|
+
interpolate(end: SkPath, weight: number): SkPath | null;
|
464
|
+
/** Returns true if Path contain equal verbs and equal weights.
|
465
|
+
* @param compare path to compare
|
466
|
+
* @return true if Path can be interpolated equivalent
|
467
|
+
*
|
468
|
+
* */
|
469
|
+
isInterpolatable(compare: SkPath): boolean;
|
470
|
+
/**
|
471
|
+
* Serializes the contents of this path as a series of commands.
|
472
|
+
*/
|
473
|
+
toCmds(): PathCommand[];
|
474
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import type { SkFont } from "../Font";
|
2
|
+
import type { SkPath, PathOp, PathCommand } from "./Path";
|
3
|
+
export interface PathFactory {
|
4
|
+
Make(): SkPath;
|
5
|
+
/**
|
6
|
+
* Creates a new path from the provided SVG string. If this fails, null will be
|
7
|
+
* returned instead.
|
8
|
+
* @param str
|
9
|
+
*/
|
10
|
+
MakeFromSVGString(str: string): SkPath | null;
|
11
|
+
/**
|
12
|
+
* Creates a new path by combining the given paths according to op. If this fails, null will
|
13
|
+
* be returned instead.
|
14
|
+
* @param one
|
15
|
+
* @param two
|
16
|
+
* @param op
|
17
|
+
*/
|
18
|
+
MakeFromOp(one: SkPath, two: SkPath, op: PathOp): SkPath | null;
|
19
|
+
/**
|
20
|
+
* Creates a new path from the given list of path commands. If this fails, null will be
|
21
|
+
* returned instead.
|
22
|
+
* @param cmds
|
23
|
+
*/
|
24
|
+
MakeFromCmds(cmds: PathCommand[]): SkPath | null;
|
25
|
+
/**
|
26
|
+
* Converts the text to a path with the given font at location x / y.
|
27
|
+
*/
|
28
|
+
MakeFromText(text: string, x: number, y: number, font: SkFont): SkPath | null;
|
29
|
+
}
|