@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,75 @@
|
|
1
|
+
import type { SkJSIInstance } from "./JsiInstance";
|
2
|
+
import type { SkPath } from "./Path/Path";
|
3
|
+
import type { SkMatrix } from "./Matrix";
|
4
|
+
export declare type SkPathEffect = SkJSIInstance<"PathEffect">;
|
5
|
+
export declare const isPathEffect: (obj: SkJSIInstance<string> | null) => obj is SkPathEffect;
|
6
|
+
export declare enum Path1DEffectStyle {
|
7
|
+
Translate = 0,
|
8
|
+
Rotate = 1,
|
9
|
+
Morph = 2
|
10
|
+
}
|
11
|
+
export interface PathEffectFactory {
|
12
|
+
/**
|
13
|
+
* Returns a PathEffect that can turn sharp corners into rounded corners.
|
14
|
+
* @param radius - if <=0, returns null
|
15
|
+
*/
|
16
|
+
MakeCorner(radius: number): SkPathEffect | null;
|
17
|
+
/**
|
18
|
+
* Returns a PathEffect that add dashes to the path.
|
19
|
+
*
|
20
|
+
* See SkDashPathEffect.h for more details.
|
21
|
+
*
|
22
|
+
* @param intervals - even number of entries with even indicies specifying the length of
|
23
|
+
* the "on" intervals, and the odd indices specifying the length of "off".
|
24
|
+
* @param phase - offset length into the intervals array. Defaults to 0.
|
25
|
+
*/
|
26
|
+
MakeDash(intervals: number[], phase?: number): SkPathEffect;
|
27
|
+
/**
|
28
|
+
* Returns a PathEffect that breaks path into segments of segLength length, and randomly move
|
29
|
+
* the endpoints away from the original path by a maximum of deviation.
|
30
|
+
* @param segLength - length of the subsegments.
|
31
|
+
* @param dev - limit of the movement of the endpoints.
|
32
|
+
* @param seedAssist - modifies the randomness. See SkDiscretePathEffect.h for more.
|
33
|
+
*/
|
34
|
+
MakeDiscrete(segLength: number, dev: number, seedAssist: number): SkPathEffect;
|
35
|
+
/**
|
36
|
+
*
|
37
|
+
* A pathEffect whose effect is to apply first the inner pathEffect and the the
|
38
|
+
* outer pathEffect (i.e. outer(inner(path))).
|
39
|
+
*
|
40
|
+
*/
|
41
|
+
MakeCompose(outer: SkPathEffect, inner: SkPathEffect): SkPathEffect;
|
42
|
+
/**
|
43
|
+
*
|
44
|
+
* A pathEffect pathEffect whose effect is to apply two effects,
|
45
|
+
* in sequence (i.e. first(path) + second(path)).
|
46
|
+
*
|
47
|
+
*/
|
48
|
+
MakeSum(outer: SkPathEffect, inner: SkPathEffect): SkPathEffect;
|
49
|
+
/**
|
50
|
+
* Returns a PathEffect that will fill the drawing path with a pattern made by applying
|
51
|
+
* the given matrix to a repeating set of infinitely long lines of the given width.
|
52
|
+
* For example, the scale of the provided matrix will determine how far apart the lines
|
53
|
+
* should be drawn its rotation affects the lines' orientation.
|
54
|
+
* @param width - must be >= 0
|
55
|
+
* @param matrix
|
56
|
+
*/
|
57
|
+
MakeLine2D(width: number, matrix: SkMatrix): SkPathEffect | null;
|
58
|
+
/**
|
59
|
+
* Returns a PathEffect which implements dashing by replicating the specified path.
|
60
|
+
* @param path The path to replicate (dash)
|
61
|
+
* @param advance The space between instances of path
|
62
|
+
* @param phase distance (mod advance) along path for its initial position
|
63
|
+
* @param style how to transform path at each point (based on the current
|
64
|
+
* position and tangent)
|
65
|
+
*/
|
66
|
+
MakePath1D(path: SkPath, advance: number, phase: number, style: Path1DEffectStyle): SkPathEffect | null;
|
67
|
+
/**
|
68
|
+
* Returns a PathEffect that will fill the drawing path with a pattern by repeating the
|
69
|
+
* given path according to the provided matrix. For example, the scale of the matrix
|
70
|
+
* determines how far apart the path instances should be drawn.
|
71
|
+
* @param matrix
|
72
|
+
* @param path
|
73
|
+
*/
|
74
|
+
MakePath2D(matrix: SkMatrix, path: SkPath): SkPathEffect | null;
|
75
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import type { FilterMode } from "../Image";
|
2
|
+
import type { TileMode } from "../ImageFilter";
|
3
|
+
import type { SkRect } from "../Rect";
|
4
|
+
import type { SkShader } from "../Shader";
|
5
|
+
import type { SkMatrix } from "../Matrix";
|
6
|
+
import type { SkJSIInstance } from "../JsiInstance";
|
7
|
+
export interface SkPicture extends SkJSIInstance<"Picture"> {
|
8
|
+
/**
|
9
|
+
* Returns a new shader that will draw with this picture.
|
10
|
+
*
|
11
|
+
* @param tmx The tiling mode to use when sampling in the x-direction.
|
12
|
+
* @param tmy The tiling mode to use when sampling in the y-direction.
|
13
|
+
* @param mode How to filter the tiles
|
14
|
+
* @param localMatrix Optional matrix used when sampling
|
15
|
+
* @param tileRect The tile rectangle in picture coordinates: this represents the subset
|
16
|
+
* (or superset) of the picture used when building a tile. It is not
|
17
|
+
* affected by localMatrix and does not imply scaling (only translation
|
18
|
+
* and cropping). If null, the tile rect is considered equal to the picture
|
19
|
+
* bounds.
|
20
|
+
*/
|
21
|
+
makeShader(tmx: TileMode, tmy: TileMode, mode: FilterMode, localMatrix?: SkMatrix, tileRect?: SkRect): SkShader;
|
22
|
+
/**
|
23
|
+
* Returns the serialized format of this SkPicture. The format may change at anytime and
|
24
|
+
* no promises are made for backwards or forward compatibility.
|
25
|
+
*/
|
26
|
+
serialize(): Uint8Array | null;
|
27
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import type { SkCanvas } from "../Canvas";
|
2
|
+
import type { SkRect } from "../Rect";
|
3
|
+
import type { SkPicture } from "./Picture";
|
4
|
+
export interface SkPictureRecorder {
|
5
|
+
/**
|
6
|
+
* Returns a canvas on which to draw. When done drawing, call finishRecordingAsPicture()
|
7
|
+
*
|
8
|
+
* @param bounds - a rect to cull the results.
|
9
|
+
*/
|
10
|
+
beginRecording(bounds: SkRect): SkCanvas;
|
11
|
+
/**
|
12
|
+
* Returns the captured draw commands as a picture and invalidates the canvas returned earlier.
|
13
|
+
*/
|
14
|
+
finishRecordingAsPicture(): SkPicture;
|
15
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
import type { SkShader } from "../Shader";
|
2
|
+
import type { SkJSIInstance } from "../JsiInstance";
|
3
|
+
import type { SkMatrix } from "../Matrix";
|
4
|
+
export interface SkSLUniform {
|
5
|
+
columns: number;
|
6
|
+
rows: number;
|
7
|
+
/** The index into the uniforms array that this uniform begins. */
|
8
|
+
slot: number;
|
9
|
+
isInteger: boolean;
|
10
|
+
}
|
11
|
+
export interface SkRuntimeShaderBuilder extends SkJSIInstance<"RuntimeShaderBuilder"> {
|
12
|
+
setUniform(name: string, value: readonly number[]): void;
|
13
|
+
}
|
14
|
+
export interface SkRuntimeEffect extends SkJSIInstance<"RuntimeEffect"> {
|
15
|
+
/**
|
16
|
+
* Returns a shader executed using the given uniform data.
|
17
|
+
* @param uniforms
|
18
|
+
* @param localMatrix
|
19
|
+
*/
|
20
|
+
makeShader(uniforms: number[], localMatrix?: SkMatrix): SkShader;
|
21
|
+
/**
|
22
|
+
* Returns a shader executed using the given uniform data and the children as inputs.
|
23
|
+
* @param uniforms
|
24
|
+
* @param children
|
25
|
+
* @param localMatrix
|
26
|
+
*/
|
27
|
+
makeShaderWithChildren(uniforms: number[], children?: SkShader[], localMatrix?: SkMatrix): SkShader;
|
28
|
+
/**
|
29
|
+
* Returns the nth uniform from the effect.
|
30
|
+
* @param index
|
31
|
+
*/
|
32
|
+
getUniform(index: number): SkSLUniform;
|
33
|
+
/**
|
34
|
+
* Returns the number of uniforms in the effect.
|
35
|
+
*/
|
36
|
+
getUniformCount(): number;
|
37
|
+
/**
|
38
|
+
* Returns the total number of floats across all uniforms on the effect. This is the length
|
39
|
+
* of the uniforms array expected by makeShader. For example, an effect with a single float3
|
40
|
+
* uniform, would return 1 from `getUniformCount()`, but 3 from `getUniformFloatCount()`.
|
41
|
+
*/
|
42
|
+
getUniformFloatCount(): number;
|
43
|
+
/**
|
44
|
+
* Returns the name of the nth effect uniform.
|
45
|
+
* @param index
|
46
|
+
*/
|
47
|
+
getUniformName(index: number): string;
|
48
|
+
/**
|
49
|
+
* Returns the SkSL source of the runtime effect shader.
|
50
|
+
*/
|
51
|
+
source(): string;
|
52
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { SkRuntimeEffect } from "./RuntimeEffect";
|
2
|
+
export interface RuntimeEffectFactory {
|
3
|
+
/**
|
4
|
+
* Compiles a RuntimeEffect from the given shader code.
|
5
|
+
* @param sksl - Source code for a shader written in SkSL
|
6
|
+
* @param callback - will be called with any compilation error. If not provided, errors will
|
7
|
+
* be printed to console.log().
|
8
|
+
*/
|
9
|
+
Make: (sksl: string) => SkRuntimeEffect | null;
|
10
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { SkJSIInstance } from "../JsiInstance";
|
2
|
+
import type { Vector } from "../Point";
|
3
|
+
import type { SkRuntimeEffect, SkRuntimeShaderBuilder } from "../RuntimeEffect";
|
4
|
+
export declare const isShader: (obj: SkJSIInstance<string> | null) => obj is SkShader;
|
5
|
+
export declare type SkShader = SkJSIInstance<"Shader">;
|
6
|
+
export declare type Uniform = number | Vector | Float32Array | Uniform[];
|
7
|
+
export interface Uniforms {
|
8
|
+
[name: string]: Uniform;
|
9
|
+
}
|
10
|
+
export declare const processUniforms: (source: SkRuntimeEffect, uniforms: Uniforms, builder?: SkRuntimeShaderBuilder) => number[];
|
@@ -0,0 +1,104 @@
|
|
1
|
+
import type { TileMode } from "../ImageFilter";
|
2
|
+
import type { SkPoint } from "../Point";
|
3
|
+
import type { SkMatrix } from "../Matrix";
|
4
|
+
import type { SkColor } from "../Color";
|
5
|
+
import type { BlendMode } from "../Paint/BlendMode";
|
6
|
+
import type { SkShader } from "./Shader";
|
7
|
+
export interface ShaderFactory {
|
8
|
+
/**
|
9
|
+
* Returns a shader that generates a linear gradient between the two specified points.
|
10
|
+
* See SkGradientShader.h for more.
|
11
|
+
* @param start
|
12
|
+
* @param end
|
13
|
+
* @param colors - colors to be distributed between start and end.
|
14
|
+
* @param pos - May be null. The relative positions of colors. If supplied must be same length
|
15
|
+
* as colors.
|
16
|
+
* @param mode
|
17
|
+
* @param localMatrix
|
18
|
+
* @param flags - By default gradients will interpolate their colors in unpremul space
|
19
|
+
* and then premultiply each of the results. By setting this to 1, the
|
20
|
+
* gradients will premultiply their colors first, and then interpolate
|
21
|
+
* between them.
|
22
|
+
*/
|
23
|
+
MakeLinearGradient(start: SkPoint, end: SkPoint, colors: SkColor[], pos: number[] | null, mode: TileMode, localMatrix?: SkMatrix, flags?: number): SkShader;
|
24
|
+
/**
|
25
|
+
* Returns a shader that generates a radial gradient given the center and radius.
|
26
|
+
* See SkGradientShader.h for more.
|
27
|
+
* @param center
|
28
|
+
* @param radius
|
29
|
+
* @param colors - colors to be distributed between the center and edge.
|
30
|
+
* @param pos - May be null. The relative positions of colors. If supplied must be same length
|
31
|
+
* as colors. Range [0.0, 1.0]
|
32
|
+
* @param mode
|
33
|
+
* @param localMatrix
|
34
|
+
* @param flags - 0 to interpolate colors in unpremul, 1 to interpolate colors in premul.
|
35
|
+
*/
|
36
|
+
MakeRadialGradient(center: SkPoint, radius: number, colors: SkColor[], pos: number[] | null, mode: TileMode, localMatrix?: SkMatrix, flags?: number): SkShader;
|
37
|
+
/**
|
38
|
+
* Returns a shader that generates a conical gradient given two circles.
|
39
|
+
* See SkGradientShader.h for more.
|
40
|
+
* @param start
|
41
|
+
* @param startRadius
|
42
|
+
* @param end
|
43
|
+
* @param endRadius
|
44
|
+
* @param colors
|
45
|
+
* @param pos
|
46
|
+
* @param mode
|
47
|
+
* @param localMatrix
|
48
|
+
* @param flags
|
49
|
+
*/
|
50
|
+
MakeTwoPointConicalGradient(start: SkPoint, startRadius: number, end: SkPoint, endRadius: number, colors: SkColor[], pos: number[] | null, mode: TileMode, localMatrix?: SkMatrix, flags?: number): SkShader;
|
51
|
+
/**
|
52
|
+
* Returns a shader that generates a sweep gradient given a center.
|
53
|
+
* See SkGradientShader.h for more.
|
54
|
+
* @param cx
|
55
|
+
* @param cy
|
56
|
+
* @param colors - colors to be distributed around the center, within the provided angles.
|
57
|
+
* @param pos - May be null. The relative positions of colors. If supplied must be same length
|
58
|
+
* as colors. Range [0.0, 1.0]
|
59
|
+
* @param mode
|
60
|
+
* @param localMatrix
|
61
|
+
* @param flags - 0 to interpolate colors in unpremul, 1 to interpolate colors in premul.
|
62
|
+
* @param startAngle - angle corresponding to 0.0. Defaults to 0 degrees.
|
63
|
+
* @param endAngle - angle corresponding to 1.0. Defaults to 360 degrees.
|
64
|
+
*/
|
65
|
+
MakeSweepGradient(cx: number, cy: number, colors: SkColor[], pos: number[] | null, mode: TileMode, localMatrix?: SkMatrix | null, flags?: number, startAngleInDegrees?: number, endAngleInDegrees?: number): SkShader;
|
66
|
+
/**
|
67
|
+
* Returns a shader with Perlin Turbulence.
|
68
|
+
* See SkPerlinNoiseShader.h for more details
|
69
|
+
* @param baseFreqX - base frequency in the X direction; range [0.0, 1.0]
|
70
|
+
* @param baseFreqY - base frequency in the Y direction; range [0.0, 1.0]
|
71
|
+
* @param octaves
|
72
|
+
* @param seed
|
73
|
+
* @param tileW - if this and tileH are non-zero, the frequencies will be modified so that the
|
74
|
+
* noise will be tileable for the given size.
|
75
|
+
* @param tileH - if this and tileW are non-zero, the frequencies will be modified so that the
|
76
|
+
* noise will be tileable for the given size.
|
77
|
+
*/
|
78
|
+
MakeTurbulence(baseFreqX: number, baseFreqY: number, octaves: number, seed: number, tileW: number, tileH: number): SkShader;
|
79
|
+
/**
|
80
|
+
* Returns a shader with Perlin Fractal Noise.
|
81
|
+
* See SkPerlinNoiseShader.h for more details
|
82
|
+
* @param baseFreqX - base frequency in the X direction; range [0.0, 1.0]
|
83
|
+
* @param baseFreqY - base frequency in the Y direction; range [0.0, 1.0]
|
84
|
+
* @param octaves
|
85
|
+
* @param seed
|
86
|
+
* @param tileW - if this and tileH are non-zero, the frequencies will be modified so that the
|
87
|
+
* noise will be tileable for the given size.
|
88
|
+
* @param tileH - if this and tileW are non-zero, the frequencies will be modified so that the
|
89
|
+
* noise will be tileable for the given size.
|
90
|
+
*/
|
91
|
+
MakeFractalNoise(baseFreqX: number, baseFreqY: number, octaves: number, seed: number, tileW: number, tileH: number): SkShader;
|
92
|
+
/**
|
93
|
+
* Returns a shader that combines the given shaders with a BlendMode.
|
94
|
+
* @param mode
|
95
|
+
* @param one
|
96
|
+
* @param two
|
97
|
+
*/
|
98
|
+
MakeBlend(mode: BlendMode, one: SkShader, two: SkShader): SkShader;
|
99
|
+
/**
|
100
|
+
* Returns a shader with a given color and colorspace.
|
101
|
+
* @param color
|
102
|
+
*/
|
103
|
+
MakeColor(color: SkColor): SkShader;
|
104
|
+
}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
import type { ImageFilterFactory } from "./ImageFilter";
|
2
|
+
import type { PathFactory } from "./Path";
|
3
|
+
import type { ColorFilterFactory } from "./ColorFilter";
|
4
|
+
import type { SkFont } from "./Font";
|
5
|
+
import type { SkTypeface, TypefaceFactory } from "./Typeface";
|
6
|
+
import type { ImageFactory } from "./Image";
|
7
|
+
import type { MaskFilterFactory } from "./MaskFilter";
|
8
|
+
import type { SkPaint } from "./Paint";
|
9
|
+
import type { SkRect } from "./Rect";
|
10
|
+
import type { SkRRect } from "./RRect";
|
11
|
+
import type { RuntimeEffectFactory, SkRuntimeEffect, SkRuntimeShaderBuilder } from "./RuntimeEffect";
|
12
|
+
import type { ShaderFactory } from "./Shader";
|
13
|
+
import type { SkMatrix } from "./Matrix";
|
14
|
+
import type { PathEffectFactory } from "./PathEffect";
|
15
|
+
import type { SkPoint } from "./Point";
|
16
|
+
import type { SkVertices, VertexMode } from "./Vertices/Vertices";
|
17
|
+
import type { DataFactory } from "./Data";
|
18
|
+
import type { SVGFactory } from "./SVG";
|
19
|
+
import type { TextBlobFactory } from "./TextBlob";
|
20
|
+
import type { SurfaceFactory } from "./Surface";
|
21
|
+
import type { SkRSXform } from "./RSXform";
|
22
|
+
import type { SkPath } from "./Path/Path";
|
23
|
+
import type { SkContourMeasureIter } from "./ContourMeasure";
|
24
|
+
import type { PictureFactory, SkPictureRecorder } from "./Picture";
|
25
|
+
import type { Color, SkColor } from "./Color";
|
26
|
+
/**
|
27
|
+
* Declares the interface for the native Skia API
|
28
|
+
*/
|
29
|
+
export interface Skia {
|
30
|
+
Point: (x: number, y: number) => SkPoint;
|
31
|
+
XYWHRect: (x: number, y: number, width: number, height: number) => SkRect;
|
32
|
+
RuntimeShaderBuilder: (rt: SkRuntimeEffect) => SkRuntimeShaderBuilder;
|
33
|
+
RRectXY: (rect: SkRect, rx: number, ry: number) => SkRRect;
|
34
|
+
RSXform: (scos: number, ssin: number, tx: number, ty: number) => SkRSXform;
|
35
|
+
Color: (color: Color) => SkColor;
|
36
|
+
ContourMeasureIter: (path: SkPath, forceClosed: boolean, resScale: number) => SkContourMeasureIter;
|
37
|
+
Paint: () => SkPaint;
|
38
|
+
PictureRecorder: () => SkPictureRecorder;
|
39
|
+
Picture: PictureFactory;
|
40
|
+
Path: PathFactory;
|
41
|
+
Matrix: (matrix?: readonly number[]) => SkMatrix;
|
42
|
+
ColorFilter: ColorFilterFactory;
|
43
|
+
Font: (typeface?: SkTypeface, size?: number) => SkFont;
|
44
|
+
Typeface: TypefaceFactory;
|
45
|
+
MaskFilter: MaskFilterFactory;
|
46
|
+
RuntimeEffect: RuntimeEffectFactory;
|
47
|
+
ImageFilter: ImageFilterFactory;
|
48
|
+
Shader: ShaderFactory;
|
49
|
+
PathEffect: PathEffectFactory;
|
50
|
+
/**
|
51
|
+
* Returns an Vertices based on the given positions and optional parameters.
|
52
|
+
* See SkVertices.h (especially the Builder) for more details.
|
53
|
+
* @param mode
|
54
|
+
* @param positions
|
55
|
+
* @param textureCoordinates
|
56
|
+
* @param colors - either a list of int colors or a flattened color array.
|
57
|
+
* @param indices
|
58
|
+
* @param isVolatile
|
59
|
+
*/
|
60
|
+
MakeVertices(mode: VertexMode, positions: SkPoint[], textureCoordinates?: SkPoint[] | null, colors?: SkColor[], indices?: number[] | null, isVolatile?: boolean): SkVertices;
|
61
|
+
Data: DataFactory;
|
62
|
+
Image: ImageFactory;
|
63
|
+
SVG: SVGFactory;
|
64
|
+
TextBlob: TextBlobFactory;
|
65
|
+
Surface: SurfaceFactory;
|
66
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import type { SkImage } from "../Image";
|
2
|
+
import type { SkCanvas } from "../Canvas";
|
3
|
+
import type { SkJSIInstance } from "../JsiInstance";
|
4
|
+
import type { SkRect } from "../Rect";
|
5
|
+
export interface SkSurface extends SkJSIInstance<"Surface"> {
|
6
|
+
/** Returns Canvas that draws into the surface. Subsequent calls return the
|
7
|
+
same Canvas. Canvas returned is managed and owned by Surface, and is
|
8
|
+
deleted when Surface is deleted.
|
9
|
+
|
10
|
+
@return drawing Canvas for Surface
|
11
|
+
|
12
|
+
example: https://fiddle.skia.org/c/@Surface_getCanvas
|
13
|
+
*/
|
14
|
+
getCanvas(): SkCanvas;
|
15
|
+
/** Returns Image capturing Surface contents. Subsequent drawing to
|
16
|
+
Surface contents are not captured.
|
17
|
+
|
18
|
+
@param bounds A rectangle specifying the subset of the surface that
|
19
|
+
is of interest.
|
20
|
+
@return Image initialized with Surface contents
|
21
|
+
|
22
|
+
example: https://fiddle.skia.org/c/@Surface_makeImageSnapshot
|
23
|
+
*/
|
24
|
+
makeImageSnapshot(bounds?: SkRect): SkImage;
|
25
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { SkSurface } from "./Surface";
|
2
|
+
export interface SurfaceFactory {
|
3
|
+
/**
|
4
|
+
* Returns a CPU backed surface with the given dimensions, an SRGB colorspace, Unpremul
|
5
|
+
* alphaType and 8888 color type. The pixels belonging to this surface will be in memory and
|
6
|
+
* not visible.
|
7
|
+
* @param width - number of pixels of the width of the drawable area.
|
8
|
+
* @param height - number of pixels of the height of the drawable area.
|
9
|
+
*/
|
10
|
+
Make: (width: number, height: number) => SkSurface | null;
|
11
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import type { SkJSIInstance } from "./JsiInstance";
|
2
|
+
import type { SkFont } from "./Font/Font";
|
3
|
+
import type { SkRSXform } from "./RSXform";
|
4
|
+
export declare type SkTextBlob = SkJSIInstance<"TextBlob">;
|
5
|
+
export interface TextBlobFactory {
|
6
|
+
/**
|
7
|
+
* Return a TextBlob with a single run of text.
|
8
|
+
*
|
9
|
+
* It uses the default character-to-glyph mapping from the typeface in the font.
|
10
|
+
* It does not perform typeface fallback for characters not found in the Typeface.
|
11
|
+
* It does not perform kerning or other complex shaping; glyphs are positioned based on their
|
12
|
+
* default advances.
|
13
|
+
* @param str
|
14
|
+
* @param font
|
15
|
+
*/
|
16
|
+
MakeFromText(str: string, font: SkFont): SkTextBlob;
|
17
|
+
/**
|
18
|
+
* Return a TextBlob with a single run of text.
|
19
|
+
*
|
20
|
+
* It does not perform typeface fallback for characters not found in the Typeface.
|
21
|
+
* It does not perform kerning or other complex shaping; glyphs are positioned based on their
|
22
|
+
* default advances.
|
23
|
+
* @param glyphs - if using Malloc'd array, be sure to use CanvasKit.MallocGlyphIDs().
|
24
|
+
* @param font
|
25
|
+
*/
|
26
|
+
MakeFromGlyphs(glyphs: number[], font: SkFont): SkTextBlob;
|
27
|
+
/**
|
28
|
+
* Returns a TextBlob built from a single run of text with rotation, scale, and translations.
|
29
|
+
*
|
30
|
+
* It uses the default character-to-glyph mapping from the typeface in the font.
|
31
|
+
* @param str
|
32
|
+
* @param rsxforms
|
33
|
+
* @param font
|
34
|
+
*/
|
35
|
+
MakeFromRSXform(str: string, rsxforms: SkRSXform[], font: SkFont): SkTextBlob;
|
36
|
+
/**
|
37
|
+
* Returns a TextBlob built from a single run of text with rotation, scale, and translations.
|
38
|
+
*
|
39
|
+
* @param glyphs - if using Malloc'd array, be sure to use CanvasKit.MallocGlyphIDs().
|
40
|
+
* @param rsxforms
|
41
|
+
* @param font
|
42
|
+
*/
|
43
|
+
MakeFromRSXformGlyphs(glyphs: number[], rsxforms: SkRSXform[], font: SkFont): SkTextBlob;
|
44
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import type { SkRect } from "../Rect";
|
2
|
+
import type { SkJSIInstance } from "../JsiInstance";
|
3
|
+
export declare enum VertexMode {
|
4
|
+
Triangles = 0,
|
5
|
+
TrianglesStrip = 1,
|
6
|
+
TriangleFan = 2
|
7
|
+
}
|
8
|
+
export interface SkVertices extends SkJSIInstance<"Vertices"> {
|
9
|
+
/**
|
10
|
+
* Return the bounding area for the vertices.
|
11
|
+
*/
|
12
|
+
bounds(): SkRect;
|
13
|
+
/**
|
14
|
+
* Return a unique ID for this vertices object.
|
15
|
+
*/
|
16
|
+
uniqueID(): number;
|
17
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./Vertices";
|
@@ -0,0 +1,28 @@
|
|
1
|
+
export * from "./Picture";
|
2
|
+
export * from "./Data";
|
3
|
+
export * from "./SVG";
|
4
|
+
export * from "./Surface";
|
5
|
+
export * from "./Vertices";
|
6
|
+
export * from "./RuntimeEffect";
|
7
|
+
export * from "./Shader";
|
8
|
+
export * from "./Image";
|
9
|
+
export * from "./ColorFilter";
|
10
|
+
export * from "./ImageFilter";
|
11
|
+
export * from "./Font";
|
12
|
+
export * from "./Typeface";
|
13
|
+
export * from "./Paint";
|
14
|
+
export * from "./Path";
|
15
|
+
export * from "./Color";
|
16
|
+
export * from "./Canvas";
|
17
|
+
export * from "./ContourMeasure";
|
18
|
+
export * from "./MaskFilter";
|
19
|
+
export * from "./Matrix";
|
20
|
+
export * from "./PathEffect";
|
21
|
+
export * from "./Point";
|
22
|
+
export * from "./Rect";
|
23
|
+
export * from "./RRect";
|
24
|
+
export * from "./RSXform";
|
25
|
+
export * from "./JsiInstance";
|
26
|
+
export * from "./Skia";
|
27
|
+
export * from "./TextBlob";
|
28
|
+
export * from "./Size";
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import type { CanvasKit, EmbindEnumEntity } from "canvaskit-wasm";
|
2
|
+
import type { SkJSIInstance } from "../types";
|
3
|
+
export declare class NotImplementedOnRNWeb extends Error {
|
4
|
+
constructor(msg?: string);
|
5
|
+
}
|
6
|
+
export declare abstract class Host {
|
7
|
+
readonly CanvasKit: CanvasKit;
|
8
|
+
constructor(CanvasKit: CanvasKit);
|
9
|
+
}
|
10
|
+
export declare abstract class BaseHostObject<T, N extends string> extends Host implements SkJSIInstance<N> {
|
11
|
+
readonly __typename__: N;
|
12
|
+
ref: T;
|
13
|
+
constructor(CanvasKit: CanvasKit, ref: T, typename: N);
|
14
|
+
}
|
15
|
+
export declare abstract class HostObject<T, N extends string> extends BaseHostObject<T, N> {
|
16
|
+
static fromValue<T>(value: SkJSIInstance<string>): T;
|
17
|
+
}
|
18
|
+
export declare const ckEnum: (value: number) => EmbindEnumEntity;
|
19
|
+
export declare const optEnum: (value: number | undefined) => EmbindEnumEntity | undefined;
|