@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,8 @@
|
|
1
|
+
import type { SkCanvas, SkRect } from "../types";
|
2
|
+
/**
|
3
|
+
* Memoizes and returns an SkPicture that can be drawn to another canvas.
|
4
|
+
* @param rect Picture bounds
|
5
|
+
* @param cb Callback for drawing to the canvas
|
6
|
+
* @returns SkPicture
|
7
|
+
*/
|
8
|
+
export declare const createPicture: (rect: SkRect, cb: (canvas: SkCanvas) => void) => import("../types").SkPicture;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { SkRect, SkRRect } from "../types";
|
2
|
+
export declare const rect: (x: number, y: number, width: number, height: number) => SkRect;
|
3
|
+
export declare const bounds: (rects: SkRect[]) => SkRect;
|
4
|
+
export declare const topLeft: (r: SkRect | SkRRect) => import("../types").SkPoint;
|
5
|
+
export declare const topRight: (r: SkRect | SkRRect) => import("../types").SkPoint;
|
6
|
+
export declare const bottomLeft: (r: SkRect | SkRRect) => import("../types").SkPoint;
|
7
|
+
export declare const bottomRight: (r: SkRect | SkRRect) => import("../types").SkPoint;
|
8
|
+
export declare const center: (r: SkRect | SkRRect) => import("../types").SkPoint;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { Vector } from "../types";
|
2
|
+
export declare const vec: (x?: number, y?: number) => import("../types").SkPoint;
|
3
|
+
export declare const point: (x?: number, y?: number) => import("../types").SkPoint;
|
4
|
+
export declare const neg: (a: Vector) => import("../types").SkPoint;
|
5
|
+
export declare const add: (a: Vector, b: Vector) => import("../types").SkPoint;
|
6
|
+
export declare const sub: (a: Vector, b: Vector) => import("../types").SkPoint;
|
7
|
+
export declare const dist: (a: Vector, b: Vector) => number;
|
8
|
+
export declare const translate: ({ x, y }: Vector) => readonly [{
|
9
|
+
readonly translateX: number;
|
10
|
+
}, {
|
11
|
+
readonly translateY: number;
|
12
|
+
}];
|
@@ -0,0 +1,10 @@
|
|
1
|
+
export * from "./Data";
|
2
|
+
export * from "./Font";
|
3
|
+
export * from "./Typeface";
|
4
|
+
export * from "./Image";
|
5
|
+
export * from "./Picture";
|
6
|
+
export * from "./SVG";
|
7
|
+
export * from "./Vector";
|
8
|
+
export * from "./Rect";
|
9
|
+
export * from "./RRect";
|
10
|
+
export * from "./Matrix";
|
@@ -0,0 +1,381 @@
|
|
1
|
+
import type { SkPaint } from "./Paint";
|
2
|
+
import type { SkRect } from "./Rect";
|
3
|
+
import type { SkFont } from "./Font";
|
4
|
+
import type { SkPath } from "./Path";
|
5
|
+
import type { SkImage, MipmapMode, FilterMode } from "./Image";
|
6
|
+
import type { SkSVG } from "./SVG";
|
7
|
+
import type { SkColor } from "./Color";
|
8
|
+
import type { SkRRect } from "./RRect";
|
9
|
+
import type { BlendMode } from "./Paint/BlendMode";
|
10
|
+
import type { SkPoint, PointMode } from "./Point";
|
11
|
+
import type { SkMatrix } from "./Matrix";
|
12
|
+
import type { SkImageFilter } from "./ImageFilter";
|
13
|
+
import type { SkVertices } from "./Vertices";
|
14
|
+
import type { SkTextBlob } from "./TextBlob";
|
15
|
+
import type { SkPicture } from "./Picture";
|
16
|
+
export declare enum ClipOp {
|
17
|
+
Difference = 0,
|
18
|
+
Intersect = 1
|
19
|
+
}
|
20
|
+
export declare enum SaveLayerFlag {
|
21
|
+
SaveLayerInitWithPrevious = 4,
|
22
|
+
SaveLayerF16ColorType = 16
|
23
|
+
}
|
24
|
+
export interface SkCanvas {
|
25
|
+
/**
|
26
|
+
* Draws the given image with its top-left corner at (left, top) using the current clip,
|
27
|
+
* the current matrix, and optionally-provided paint.
|
28
|
+
* @param img
|
29
|
+
* @param left
|
30
|
+
* @param top
|
31
|
+
* @param paint
|
32
|
+
*/
|
33
|
+
drawImage: (image: SkImage, x: number, y: number, paint?: SkPaint) => void;
|
34
|
+
/**
|
35
|
+
* Draws sub-rectangle src from provided image, scaled and translated to fill dst rectangle.
|
36
|
+
* @param img
|
37
|
+
* @param src
|
38
|
+
* @param dest
|
39
|
+
* @param paint
|
40
|
+
* @param fastSample - if false, will filter strictly within src.
|
41
|
+
*/
|
42
|
+
drawImageRect(img: SkImage, src: SkRect, dest: SkRect, paint: SkPaint, fastSample?: boolean): void;
|
43
|
+
/**
|
44
|
+
* Draws the given image with its top-left corner at (left, top) using the current clip,
|
45
|
+
* the current matrix. It will use the cubic sampling options B and C if necessary.
|
46
|
+
* @param img
|
47
|
+
* @param left
|
48
|
+
* @param top
|
49
|
+
* @param B - See CubicResampler in SkSamplingOptions.h for more information
|
50
|
+
* @param C - See CubicResampler in SkSamplingOptions.h for more information
|
51
|
+
* @param paint
|
52
|
+
*/
|
53
|
+
drawImageCubic(img: SkImage, left: number, top: number, B: number, C: number, paint?: SkPaint | null): void;
|
54
|
+
/**
|
55
|
+
* Draws the given image with its top-left corner at (left, top) using the current clip,
|
56
|
+
* the current matrix. It will use the provided sampling options if necessary.
|
57
|
+
* @param img
|
58
|
+
* @param left
|
59
|
+
* @param top
|
60
|
+
* @param fm - The filter mode.
|
61
|
+
* @param mm - The mipmap mode. Note: for settings other than None, the image must have mipmaps
|
62
|
+
* calculated with makeCopyWithDefaultMipmaps;
|
63
|
+
* @param paint
|
64
|
+
*/
|
65
|
+
drawImageOptions(img: SkImage, left: number, top: number, fm: FilterMode, mm: MipmapMode, paint?: SkPaint | null): void;
|
66
|
+
/**
|
67
|
+
* Draws the provided image stretched proportionally to fit into dst rectangle.
|
68
|
+
* The center rectangle divides the image into nine sections: four sides, four corners, and
|
69
|
+
* the center.
|
70
|
+
* @param img
|
71
|
+
* @param center
|
72
|
+
* @param dest
|
73
|
+
* @param filter - what technique to use when sampling the image
|
74
|
+
* @param paint
|
75
|
+
*/
|
76
|
+
drawImageNine(img: SkImage, center: SkRect, dest: SkRect, filter: FilterMode, paint?: SkPaint | null): void;
|
77
|
+
/**
|
78
|
+
* Draws sub-rectangle src from provided image, scaled and translated to fill dst rectangle.
|
79
|
+
* It will use the cubic sampling options B and C if necessary.
|
80
|
+
* @param img
|
81
|
+
* @param src
|
82
|
+
* @param dest
|
83
|
+
* @param B - See CubicResampler in SkSamplingOptions.h for more information
|
84
|
+
* @param C - See CubicResampler in SkSamplingOptions.h for more information
|
85
|
+
* @param paint
|
86
|
+
*/
|
87
|
+
drawImageRectCubic(img: SkImage, src: SkRect, dest: SkRect, B: number, C: number, paint?: SkPaint | null): void;
|
88
|
+
/**
|
89
|
+
* Draws sub-rectangle src from provided image, scaled and translated to fill dst rectangle.
|
90
|
+
* It will use the provided sampling options if necessary.
|
91
|
+
* @param img
|
92
|
+
* @param src
|
93
|
+
* @param dest
|
94
|
+
* @param fm - The filter mode.
|
95
|
+
* @param mm - The mipmap mode. Note: for settings other than None, the image must have mipmaps
|
96
|
+
* calculated with makeCopyWithDefaultMipmaps;
|
97
|
+
* @param paint
|
98
|
+
*/
|
99
|
+
drawImageRectOptions(img: SkImage, src: SkRect, dest: SkRect, fm: FilterMode, mm: MipmapMode, paint?: SkPaint | null): void;
|
100
|
+
/** Fills clip with SkPaint paint. SkPaint components, SkShader,
|
101
|
+
SkColorFilter, SkImageFilter, and SkBlendMode affect drawing;
|
102
|
+
SkMaskFilter and SkPathEffect in paint are ignored.
|
103
|
+
|
104
|
+
@param paint graphics state used to fill SkCanvas
|
105
|
+
|
106
|
+
example: https://fiddle.skia.org/c/@Canvas_drawPaint
|
107
|
+
*/
|
108
|
+
drawPaint: (paint: SkPaint) => void;
|
109
|
+
/** Draws line segment from (x0, y0) to (x1, y1) using clip, SkMatrix, and SkPaint paint.
|
110
|
+
In paint: SkPaint stroke width describes the line thickness;
|
111
|
+
SkPaint::Cap draws the end rounded or square;
|
112
|
+
SkPaint::Style is ignored, as if were set to SkPaint::kStroke_Style.
|
113
|
+
|
114
|
+
@param x0 start of line segment on x-axis
|
115
|
+
@param y0 start of line segment on y-axis
|
116
|
+
@param x1 end of line segment on x-axis
|
117
|
+
@param y1 end of line segment on y-axis
|
118
|
+
@param paint stroke, blend, color, and so on, used to draw
|
119
|
+
|
120
|
+
example: https://fiddle.skia.org/c/@Canvas_drawLine
|
121
|
+
*/
|
122
|
+
drawLine: (x0: number, y0: number, x1: number, y1: number, paint: SkPaint) => void;
|
123
|
+
/** Draws SkRect rect using clip, SkMatrix, and SkPaint paint.
|
124
|
+
In paint: SkPaint::Style determines if rectangle is stroked or filled;
|
125
|
+
if stroked, SkPaint stroke width describes the line thickness, and
|
126
|
+
SkPaint::Join draws the corners rounded or square.
|
127
|
+
|
128
|
+
@param rect rectangle to draw
|
129
|
+
@param paint stroke or fill, blend, color, and so on, used to draw
|
130
|
+
|
131
|
+
example: https://fiddle.skia.org/c/@Canvas_drawRect
|
132
|
+
*/
|
133
|
+
drawRect: (rect: SkRect, paint: SkPaint) => void;
|
134
|
+
/**
|
135
|
+
* Draws a circle at (cx, cy) with the given radius.
|
136
|
+
* @param cx
|
137
|
+
* @param cy
|
138
|
+
* @param radius
|
139
|
+
* @param paint
|
140
|
+
*/
|
141
|
+
drawCircle(cx: number, cy: number, radius: number, paint: SkPaint): void;
|
142
|
+
/**
|
143
|
+
* Draws the given vertices (a triangle mesh) using the current clip, current matrix, and the
|
144
|
+
* provided paint.
|
145
|
+
* If paint contains an Shader and vertices does not contain texCoords, the shader
|
146
|
+
* is mapped using the vertices' positions.
|
147
|
+
* If vertices colors are defined in vertices, and Paint paint contains Shader,
|
148
|
+
* BlendMode mode combines vertices colors with Shader.
|
149
|
+
* @param verts
|
150
|
+
* @param mode
|
151
|
+
* @param paint
|
152
|
+
*/
|
153
|
+
drawVertices(verts: SkVertices, mode: BlendMode, paint: SkPaint): void;
|
154
|
+
/**
|
155
|
+
* Draws a cubic patch defined by 12 control points [top, right, bottom, left] with optional
|
156
|
+
* colors and shader-coordinates [4] specifed for each corner [top-left, top-right, bottom-right, bottom-left]
|
157
|
+
* @param cubics 12 points : 4 connected cubics specifying the boundary of the patch
|
158
|
+
* @param colors optional colors interpolated across the patch
|
159
|
+
* @param texs optional shader coordinates interpolated across the patch
|
160
|
+
* @param mode Specifies how shader and colors blend (if both are specified)
|
161
|
+
* @param paint
|
162
|
+
*/
|
163
|
+
drawPatch(cubics: readonly SkPoint[], colors?: readonly SkColor[] | null, texs?: readonly SkPoint[] | null, mode?: BlendMode | null, paint?: SkPaint): void;
|
164
|
+
/**
|
165
|
+
* Restores state to a previous stack value.
|
166
|
+
* @param saveCount
|
167
|
+
*/
|
168
|
+
restoreToCount(saveCount: number): void;
|
169
|
+
/**
|
170
|
+
* Draws the given points using the current clip, current matrix, and the provided paint.
|
171
|
+
*
|
172
|
+
* See Canvas.h for more on the mode and its interaction with paint.
|
173
|
+
* @param mode
|
174
|
+
* @param points
|
175
|
+
* @param paint
|
176
|
+
*/
|
177
|
+
drawPoints(mode: PointMode, points: SkPoint[], paint: SkPaint): void;
|
178
|
+
/** Draws arc using clip, SkMatrix, and SkPaint paint.
|
179
|
+
|
180
|
+
Arc is part of oval bounded by oval, sweeping from startAngle to startAngle plus
|
181
|
+
sweepAngle. startAngle and sweepAngle are in degrees.
|
182
|
+
|
183
|
+
startAngle of zero places start point at the right middle edge of oval.
|
184
|
+
A positive sweepAngle places arc end point clockwise from start point;
|
185
|
+
a negative sweepAngle places arc end point counterclockwise from start point.
|
186
|
+
sweepAngle may exceed 360 degrees, a full circle.
|
187
|
+
If useCenter is true, draw a wedge that includes lines from oval
|
188
|
+
center to arc end points. If useCenter is false, draw arc between end points.
|
189
|
+
|
190
|
+
If SkRect oval is empty or sweepAngle is zero, nothing is drawn.
|
191
|
+
|
192
|
+
@param oval SkRect bounds of oval containing arc to draw
|
193
|
+
@param startAngle angle in degrees where arc begins
|
194
|
+
@param sweepAngle sweep angle in degrees; positive is clockwise
|
195
|
+
@param useCenter if true, include the center of the oval
|
196
|
+
@param paint SkPaint stroke or fill, blend, color, and so on, used to draw
|
197
|
+
*/
|
198
|
+
drawArc: (oval: SkRect, startAngle: number, sweepAngle: number, useCenter: boolean, paint: SkPaint) => void;
|
199
|
+
/**
|
200
|
+
* Draws the given rectangle with rounded corners using the current clip, current matrix,
|
201
|
+
* and the provided paint.
|
202
|
+
* @param rrect
|
203
|
+
* @param paint
|
204
|
+
*/
|
205
|
+
drawRRect(rrect: SkRRect, paint: SkPaint): void;
|
206
|
+
/**
|
207
|
+
* Draws RRect outer and inner using clip, Matrix, and Paint paint.
|
208
|
+
* outer must contain inner or the drawing is undefined.
|
209
|
+
* @param outer
|
210
|
+
* @param inner
|
211
|
+
* @param paint
|
212
|
+
*/
|
213
|
+
drawDRRect(outer: SkRRect, inner: SkRRect, paint: SkPaint): void;
|
214
|
+
/**
|
215
|
+
* Draws an oval bounded by the given rectangle using the current clip, current matrix,
|
216
|
+
* and the provided paint.
|
217
|
+
* @param oval
|
218
|
+
* @param paint
|
219
|
+
*/
|
220
|
+
drawOval(oval: SkRect, paint: SkPaint): void;
|
221
|
+
/** Draws SkPath path using clip, SkMatrix, and SkPaint paint.
|
222
|
+
SkPath contains an array of path contour, each of which may be open or closed.
|
223
|
+
|
224
|
+
In paint: SkPaint::Style determines if SkRRect is stroked or filled:
|
225
|
+
if filled, SkPath::FillType determines whether path contour describes inside or
|
226
|
+
outside of fill; if stroked, SkPaint stroke width describes the line thickness,
|
227
|
+
SkPaint::Cap describes line ends, and SkPaint::Join describes how
|
228
|
+
corners are drawn.
|
229
|
+
|
230
|
+
@param path SkPath to draw
|
231
|
+
@param paint stroke, blend, color, and so on, used to draw
|
232
|
+
|
233
|
+
example: https://fiddle.skia.org/c/@Canvas_drawPath
|
234
|
+
*/
|
235
|
+
drawPath: (path: SkPath, paint: SkPaint) => void;
|
236
|
+
/**
|
237
|
+
* Draw the given text at the location (x, y) using the provided paint and font. The text will
|
238
|
+
* be drawn as is; no shaping, left-to-right, etc.
|
239
|
+
* @param str
|
240
|
+
* @param x
|
241
|
+
* @param y
|
242
|
+
* @param paint
|
243
|
+
* @param font
|
244
|
+
*/
|
245
|
+
drawText(str: string, x: number, y: number, paint: SkPaint, font: SkFont): void;
|
246
|
+
/**
|
247
|
+
* Draws the given TextBlob at (x, y) using the current clip, current matrix, and the
|
248
|
+
* provided paint. Reminder that the fonts used to draw TextBlob are part of the blob.
|
249
|
+
* @param blob
|
250
|
+
* @param x
|
251
|
+
* @param y
|
252
|
+
* @param paint
|
253
|
+
*/
|
254
|
+
drawTextBlob(blob: SkTextBlob, x: number, y: number, paint: SkPaint): void;
|
255
|
+
/**
|
256
|
+
* Draws a run of glyphs, at corresponding positions, in a given font.
|
257
|
+
* @param glyphs the array of glyph IDs (Uint16TypedArray)
|
258
|
+
* @param positions the array of x,y floats to position each glyph
|
259
|
+
* @param x x-coordinate of the origin of the entire run
|
260
|
+
* @param y y-coordinate of the origin of the entire run
|
261
|
+
* @param font the font that contains the glyphs
|
262
|
+
* @param paint
|
263
|
+
*/
|
264
|
+
drawGlyphs(glyphs: number[], positions: SkPoint[], x: number, y: number, font: SkFont, paint: SkPaint): void;
|
265
|
+
/**
|
266
|
+
* Renders the SVG Dom object to the canvas. If width/height are omitted,
|
267
|
+
* the SVG will be rendered to fit the canvas.
|
268
|
+
*/
|
269
|
+
drawSvg: (svgDom: SkSVG, width?: number, height?: number) => void;
|
270
|
+
/** Saves SkMatrix and clip.
|
271
|
+
Calling restore() discards changes to SkMatrix and clip,
|
272
|
+
restoring the SkMatrix and clip to their state when save() was called.
|
273
|
+
|
274
|
+
SkMatrix may be changed by translate(), scale(), rotate(), skew(), concat(), setMatrix(),
|
275
|
+
and resetMatrix(). Clip may be changed by clipRect(), clipRRect(), clipPath(), clipRegion().
|
276
|
+
|
277
|
+
Saved SkCanvas state is put on a stack; multiple calls to save() should be balance
|
278
|
+
by an equal number of calls to restore().
|
279
|
+
|
280
|
+
Call restoreToCount() with result to restore this and subsequent saves.
|
281
|
+
|
282
|
+
@return depth of saved stack
|
283
|
+
|
284
|
+
example: https://fiddle.skia.org/c/@Canvas_save
|
285
|
+
*/
|
286
|
+
save: () => number;
|
287
|
+
/**
|
288
|
+
* Saves Matrix and clip, and allocates a SkBitmap for subsequent drawing.
|
289
|
+
* Calling restore() discards changes to Matrix and clip, and draws the SkBitmap.
|
290
|
+
* It returns the height of the stack.
|
291
|
+
* See Canvas.h for more.
|
292
|
+
* @param paint
|
293
|
+
* @param bounds
|
294
|
+
* @param backdrop
|
295
|
+
* @param flags
|
296
|
+
*/
|
297
|
+
saveLayer(paint?: SkPaint, bounds?: SkRect | null, backdrop?: SkImageFilter | null, flags?: SaveLayerFlag): number;
|
298
|
+
/** Removes changes to SkMatrix and clip since SkCanvas state was
|
299
|
+
last saved. The state is removed from the stack.
|
300
|
+
|
301
|
+
Does nothing if the stack is empty.
|
302
|
+
|
303
|
+
example: https://fiddle.skia.org/c/@AutoCanvasRestore_restore
|
304
|
+
|
305
|
+
example: https://fiddle.skia.org/c/@Canvas_restore
|
306
|
+
*/
|
307
|
+
restore: () => void;
|
308
|
+
/**
|
309
|
+
* Rotates the current matrix by the number of degrees.
|
310
|
+
* @param rot - angle of rotation in degrees.
|
311
|
+
* @param rx
|
312
|
+
* @param ry
|
313
|
+
*/
|
314
|
+
rotate(rotationInDegrees: number, rx: number, ry: number): void;
|
315
|
+
/**
|
316
|
+
* Scales the current matrix by sx on the x-axis and sy on the y-axis.
|
317
|
+
* @param sx
|
318
|
+
* @param sy
|
319
|
+
*/
|
320
|
+
scale(sx: number, sy: number): void;
|
321
|
+
/**
|
322
|
+
* Skews Matrix by sx on the x-axis and sy on the y-axis. A positive value of sx
|
323
|
+
* skews the drawing right as y-axis values increase; a positive value of sy skews
|
324
|
+
* the drawing down as x-axis values increase.
|
325
|
+
* @param sx
|
326
|
+
* @param sy
|
327
|
+
*/
|
328
|
+
skew(sx: number, sy: number): void;
|
329
|
+
/**
|
330
|
+
* Translates Matrix by dx along the x-axis and dy along the y-axis.
|
331
|
+
* @param dx
|
332
|
+
* @param dy
|
333
|
+
*/
|
334
|
+
translate(dx: number, dy: number): void;
|
335
|
+
/**
|
336
|
+
* Fills clip with the given color.
|
337
|
+
* @param color
|
338
|
+
* @param blendMode - defaults to SrcOver.
|
339
|
+
*/
|
340
|
+
drawColor(color: SkColor, blendMode?: BlendMode): void;
|
341
|
+
/**
|
342
|
+
* Fills the current clip with the given color using Src BlendMode.
|
343
|
+
* This has the effect of replacing all pixels contained by clip with color.
|
344
|
+
* @param color
|
345
|
+
*/
|
346
|
+
clear(color: SkColor): void;
|
347
|
+
/**
|
348
|
+
* Replaces clip with the intersection or difference of the current clip and path,
|
349
|
+
* with an aliased or anti-aliased clip edge.
|
350
|
+
* @param path
|
351
|
+
* @param op
|
352
|
+
* @param doAntiAlias
|
353
|
+
*/
|
354
|
+
clipPath(path: SkPath, op: ClipOp, doAntiAlias: boolean): void;
|
355
|
+
/**
|
356
|
+
* Replaces clip with the intersection or difference of the current clip and rect,
|
357
|
+
* with an aliased or anti-aliased clip edge.
|
358
|
+
* @param rect
|
359
|
+
* @param op
|
360
|
+
* @param doAntiAlias
|
361
|
+
*/
|
362
|
+
clipRect(rect: SkRect, op: ClipOp, doAntiAlias: boolean): void;
|
363
|
+
/**
|
364
|
+
* Replaces clip with the intersection or difference of the current clip and rrect,
|
365
|
+
* with an aliased or anti-aliased clip edge.
|
366
|
+
* @param rrect
|
367
|
+
* @param op
|
368
|
+
* @param doAntiAlias
|
369
|
+
*/
|
370
|
+
clipRRect(rrect: SkRRect, op: ClipOp, doAntiAlias: boolean): void;
|
371
|
+
/**
|
372
|
+
* Replaces current matrix with m premultiplied with the existing matrix.
|
373
|
+
* @param m
|
374
|
+
*/
|
375
|
+
concat(m: SkMatrix): void;
|
376
|
+
/**
|
377
|
+
* Draws the given picture using the current clip, current matrix, and the provided paint.
|
378
|
+
* @param skp
|
379
|
+
*/
|
380
|
+
drawPicture(skp: SkPicture): void;
|
381
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import type { SkColor } from "../Color";
|
2
|
+
import type { BlendMode } from "../Paint";
|
3
|
+
import type { SkColorFilter } from "./ColorFilter";
|
4
|
+
export declare type InputColorMatrix = number[];
|
5
|
+
export interface ColorFilterFactory {
|
6
|
+
/**
|
7
|
+
* Creates a color filter using the provided color matrix.
|
8
|
+
* @param cMatrix
|
9
|
+
*/
|
10
|
+
MakeMatrix(cMatrix: InputColorMatrix): SkColorFilter;
|
11
|
+
/**
|
12
|
+
* Makes a color filter with the given color and blend mode.
|
13
|
+
* @param color
|
14
|
+
* @param mode
|
15
|
+
*/
|
16
|
+
MakeBlend(color: SkColor, mode: BlendMode): SkColorFilter;
|
17
|
+
/**
|
18
|
+
* Makes a color filter composing two color filters.
|
19
|
+
* @param outer
|
20
|
+
* @param inner
|
21
|
+
*/
|
22
|
+
MakeCompose(outer: SkColorFilter, inner: SkColorFilter): SkColorFilter;
|
23
|
+
/**
|
24
|
+
* Makes a color filter that is linearly interpolated between two other color filters.
|
25
|
+
* @param t - a float in the range of 0.0 to 1.0.
|
26
|
+
* @param dst
|
27
|
+
* @param src
|
28
|
+
*/
|
29
|
+
MakeLerp(t: number, dst: SkColorFilter, src: SkColorFilter): SkColorFilter;
|
30
|
+
/**
|
31
|
+
* Makes a color filter that converts between linear colors and sRGB colors.
|
32
|
+
*/
|
33
|
+
MakeLinearToSRGBGamma(): SkColorFilter;
|
34
|
+
/**
|
35
|
+
* Makes a color filter that converts between sRGB colors and linear colors.
|
36
|
+
*/
|
37
|
+
MakeSRGBToLinearGamma(): SkColorFilter;
|
38
|
+
/**
|
39
|
+
* Makes a color filter that multiplies the luma of its input into the alpha channel,
|
40
|
+
* and sets the red, green, and blue channels to zero.
|
41
|
+
*/
|
42
|
+
MakeLumaColorFilter(): SkColorFilter;
|
43
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import type { SkJSIInstance } from "./JsiInstance";
|
2
|
+
import type { SkPath } from "./Path/Path";
|
3
|
+
import type { SkPoint } from "./Point";
|
4
|
+
export interface PosTan {
|
5
|
+
px: number;
|
6
|
+
py: number;
|
7
|
+
tx: number;
|
8
|
+
ty: number;
|
9
|
+
}
|
10
|
+
export interface SkContourMeasure extends SkJSIInstance<"ContourMeasure"> {
|
11
|
+
/**
|
12
|
+
* Returns the given position and tangent line for the distance on the given contour.
|
13
|
+
* The return value an array of 2 vectors: [position, tangent]
|
14
|
+
* @param distance - will be pinned between 0 and length().
|
15
|
+
*/
|
16
|
+
getPosTan(distance: number): [position: SkPoint, tangent: SkPoint];
|
17
|
+
/**
|
18
|
+
* Returns an Path representing the segment of this contour.
|
19
|
+
* @param startD - will be pinned between 0 and length()
|
20
|
+
* @param stopD - will be pinned between 0 and length()
|
21
|
+
* @param startWithMoveTo
|
22
|
+
*/
|
23
|
+
getSegment(startD: number, stopD: number, startWithMoveTo: boolean): SkPath;
|
24
|
+
/**
|
25
|
+
* Returns true if the contour is closed.
|
26
|
+
*/
|
27
|
+
isClosed(): boolean;
|
28
|
+
/**
|
29
|
+
* Returns the length of this contour.
|
30
|
+
*/
|
31
|
+
length(): number;
|
32
|
+
}
|
33
|
+
export interface SkContourMeasureIter extends SkJSIInstance<"ContourMeasureIter"> {
|
34
|
+
/**
|
35
|
+
* Iterates through contours in path, returning a contour-measure object for each contour
|
36
|
+
* in the path. Returns null when it is done.
|
37
|
+
*
|
38
|
+
* See SkContourMeasure.h for more details.
|
39
|
+
*/
|
40
|
+
next(): SkContourMeasure | null;
|
41
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { SkJSIInstance } from "../JsiInstance";
|
2
|
+
export declare type SkData = SkJSIInstance<"Data">;
|
3
|
+
declare type RNModule = number;
|
4
|
+
declare type ESModule = {
|
5
|
+
__esModule: true;
|
6
|
+
default: string;
|
7
|
+
};
|
8
|
+
export declare type DataModule = RNModule | ESModule;
|
9
|
+
export declare type DataSource = DataModule | string | Uint8Array;
|
10
|
+
export declare type DataSourceParam = DataSource | null | undefined;
|
11
|
+
export declare const isRNModule: (mod: DataModule) => mod is number;
|
12
|
+
export {};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import type { SkData } from "./Data";
|
2
|
+
export interface DataFactory {
|
3
|
+
/**
|
4
|
+
* Creates a new Data object from an Uri, either locally or remotely.
|
5
|
+
* @param uri Uri to a valid resource
|
6
|
+
*/
|
7
|
+
fromURI(uri: string): Promise<SkData>;
|
8
|
+
/**
|
9
|
+
* Creates a new Data object from a byte array.
|
10
|
+
* @param bytes An array of bytes representing the data
|
11
|
+
*/
|
12
|
+
fromBytes(bytes: Uint8Array): SkData;
|
13
|
+
/**
|
14
|
+
* Creates a new Data object from a base64 encoded string.
|
15
|
+
* @param base64 A Base64 encoded string representing the data
|
16
|
+
*/
|
17
|
+
fromBase64(base64: string): SkData;
|
18
|
+
}
|