@shopify/react-native-skia 0.1.127 → 0.1.130
Sign up to get free protection for your applications and to get access to all the features.
- package/android/cpp/rnskia-android/SkiaOpenGLRenderer.h +1 -0
- package/cpp/api/JsiSkRuntimeEffect.h +7 -9
- package/cpp/api/JsiSkVertices.h +0 -2
- package/cpp/rnskia/values/RNSkValue.h +1 -1
- package/cpp/skia/include/codec/SkCodec.h +7 -1
- package/cpp/skia/include/core/SkAlphaType.h +45 -0
- package/cpp/skia/include/core/SkBitmap.h +4 -2
- package/cpp/skia/include/core/SkCanvas.h +31 -20
- package/cpp/skia/include/core/SkColor.h +1 -1
- package/cpp/skia/include/core/SkColorFilter.h +1 -0
- package/cpp/skia/include/core/SkColorType.h +66 -0
- package/cpp/skia/include/core/SkDeferredDisplayListRecorder.h +1 -1
- package/cpp/skia/include/core/SkDrawable.h +7 -0
- package/cpp/skia/include/core/SkEncodedImageFormat.h +1 -0
- package/cpp/skia/include/core/SkFont.h +4 -3
- package/cpp/skia/include/core/SkFontArguments.h +33 -1
- package/cpp/skia/include/core/SkGraphics.h +13 -0
- package/cpp/skia/include/core/SkImage.h +67 -22
- package/cpp/skia/include/core/SkImageEncoder.h +0 -3
- package/cpp/skia/include/core/SkImageGenerator.h +4 -3
- package/cpp/skia/include/core/SkImageInfo.h +35 -142
- package/cpp/skia/include/core/SkMesh.h +303 -0
- package/cpp/skia/include/core/SkMilestone.h +1 -1
- package/cpp/skia/include/core/SkOpenTypeSVGDecoder.h +30 -0
- package/cpp/skia/include/core/SkPaint.h +4 -19
- package/cpp/skia/include/core/SkPath.h +20 -33
- package/cpp/skia/include/core/SkPathBuilder.h +1 -6
- package/cpp/skia/include/core/SkPixelRef.h +1 -1
- package/cpp/skia/include/core/SkPixmap.h +3 -2
- package/cpp/skia/include/core/SkRSXform.h +1 -1
- package/cpp/skia/include/core/SkSamplingOptions.h +16 -5
- package/cpp/skia/include/core/SkSpan.h +5 -5
- package/cpp/skia/include/core/SkString.h +5 -8
- package/cpp/skia/include/core/SkSurface.h +21 -0
- package/cpp/skia/include/core/SkTypeface.h +20 -4
- package/cpp/skia/include/core/SkTypes.h +9 -5
- package/cpp/skia/include/effects/SkGradientShader.h +9 -18
- package/cpp/skia/include/effects/SkRuntimeEffect.h +16 -12
- package/cpp/skia/include/gpu/GpuTypes.h +32 -0
- package/cpp/skia/include/gpu/GrBackendSemaphore.h +1 -1
- package/cpp/skia/include/gpu/GrBackendSurface.h +6 -5
- package/cpp/skia/include/gpu/GrBackendSurfaceMutableState.h +1 -1
- package/cpp/skia/include/gpu/GrContextOptions.h +11 -20
- package/cpp/skia/include/gpu/GrContextThreadSafeProxy.h +7 -0
- package/cpp/skia/include/gpu/GrDirectContext.h +16 -11
- package/cpp/skia/include/gpu/GrDriverBugWorkaroundsAutogen.h +0 -2
- package/cpp/skia/include/gpu/GrRecordingContext.h +14 -7
- package/cpp/skia/include/gpu/GrSurfaceInfo.h +6 -6
- package/cpp/skia/include/gpu/dawn/GrDawnTypes.h +1 -1
- package/cpp/skia/include/gpu/gl/GrGLFunctions.h +3 -1
- package/cpp/skia/include/gpu/gl/GrGLInterface.h +2 -2
- package/cpp/skia/include/gpu/graphite/BackendTexture.h +64 -0
- package/cpp/skia/include/gpu/graphite/Context.h +124 -0
- package/cpp/skia/include/gpu/graphite/GraphiteTypes.h +71 -0
- package/cpp/skia/include/gpu/graphite/Recorder.h +104 -0
- package/cpp/skia/include/gpu/graphite/Recording.h +39 -0
- package/cpp/skia/include/gpu/graphite/SkStuff.h +47 -0
- package/cpp/skia/include/gpu/graphite/TextureInfo.h +91 -0
- package/cpp/skia/include/gpu/graphite/mtl/MtlBackendContext.h +24 -0
- package/cpp/skia/include/gpu/graphite/mtl/MtlTypes.h +68 -0
- package/cpp/skia/include/gpu/mock/GrMockTypes.h +1 -2
- package/cpp/skia/include/ports/SkCFObject.h +0 -4
- package/cpp/skia/include/ports/SkTypeface_win.h +2 -2
- package/cpp/skia/include/private/{GrSingleOwner.h → SingleOwner.h} +17 -10
- package/cpp/skia/include/private/SkChecksum.h +11 -0
- package/cpp/skia/include/private/SkEncodedInfo.h +22 -5
- package/cpp/skia/include/private/SkFloatingPoint.h +0 -53
- package/cpp/skia/include/private/SkImageInfoPriv.h +8 -2
- package/cpp/skia/include/private/SkMacros.h +13 -18
- package/cpp/skia/include/private/SkMutex.h +8 -0
- package/cpp/skia/include/private/SkPathRef.h +2 -16
- package/cpp/skia/include/private/SkSLDefines.h +9 -1
- package/cpp/skia/include/private/SkSLIRNode.h +6 -5
- package/cpp/skia/include/private/SkSLLayout.h +11 -10
- package/cpp/skia/include/private/SkSLModifiers.h +4 -3
- package/cpp/skia/include/private/SkSLProgramElement.h +2 -2
- package/cpp/skia/include/private/SkSLProgramKind.h +8 -5
- package/cpp/skia/include/private/SkSLStatement.h +2 -3
- package/cpp/skia/include/private/SkSLString.h +17 -56
- package/cpp/skia/include/private/SkSLSymbol.h +4 -4
- package/cpp/skia/include/private/SkShadowFlags.h +3 -1
- package/cpp/skia/include/private/SkStringView.h +47 -0
- package/cpp/skia/include/private/SkTArray.h +4 -3
- package/cpp/skia/include/private/SkTHash.h +66 -24
- package/cpp/skia/include/private/SkTLogic.h +2 -32
- package/cpp/skia/include/private/SkTemplates.h +2 -2
- package/cpp/skia/include/private/SkThreadAnnotations.h +4 -4
- package/cpp/skia/include/private/SkVx.h +28 -28
- package/cpp/skia/include/private/chromium/GrSlug.h +40 -3
- package/cpp/skia/include/private/chromium/SkChromeRemoteGlyphCache.h +12 -6
- package/cpp/skia/include/private/{GrContext_Base.h → gpu/ganesh/GrContext_Base.h} +7 -0
- package/cpp/skia/include/private/{GrD3DTypesMinimal.h → gpu/ganesh/GrD3DTypesMinimal.h} +0 -0
- package/cpp/skia/include/private/{GrDawnTypesPriv.h → gpu/ganesh/GrDawnTypesPriv.h} +0 -0
- package/cpp/skia/include/private/{GrGLTypesPriv.h → gpu/ganesh/GrGLTypesPriv.h} +1 -0
- package/cpp/skia/include/private/{GrImageContext.h → gpu/ganesh/GrImageContext.h} +4 -4
- package/cpp/skia/include/private/{GrMockTypesPriv.h → gpu/ganesh/GrMockTypesPriv.h} +0 -0
- package/cpp/skia/include/private/{GrMtlTypesPriv.h → gpu/ganesh/GrMtlTypesPriv.h} +0 -0
- package/cpp/skia/include/private/{GrTypesPriv.h → gpu/ganesh/GrTypesPriv.h} +25 -367
- package/cpp/skia/include/private/{GrVkTypesPriv.h → gpu/ganesh/GrVkTypesPriv.h} +0 -0
- package/cpp/skia/include/private/gpu/graphite/MtlTypesPriv.h +74 -0
- package/cpp/skia/include/sksl/DSL.h +4 -0
- package/cpp/skia/include/sksl/DSLBlock.h +8 -3
- package/cpp/skia/include/sksl/DSLCase.h +6 -6
- package/cpp/skia/include/sksl/DSLCore.h +89 -78
- package/cpp/skia/include/sksl/DSLExpression.h +78 -45
- package/cpp/skia/include/sksl/DSLFunction.h +23 -18
- package/cpp/skia/include/sksl/DSLLayout.h +14 -16
- package/cpp/skia/include/sksl/DSLModifiers.h +7 -5
- package/cpp/skia/include/sksl/DSLRuntimeEffects.h +1 -1
- package/cpp/skia/include/sksl/DSLStatement.h +16 -10
- package/cpp/skia/include/sksl/DSLSymbols.h +7 -7
- package/cpp/skia/include/sksl/DSLType.h +27 -23
- package/cpp/skia/include/sksl/DSLVar.h +72 -61
- package/cpp/skia/include/sksl/SkSLErrorReporter.h +12 -49
- package/cpp/skia/include/sksl/SkSLOperator.h +151 -0
- package/cpp/skia/include/sksl/SkSLPosition.h +102 -0
- package/cpp/skia/include/svg/SkSVGCanvas.h +5 -1
- package/cpp/skia/include/utils/SkAnimCodecPlayer.h +7 -0
- package/cpp/skia/include/utils/SkCamera.h +2 -0
- package/cpp/skia/include/utils/SkCanvasStateUtils.h +4 -1
- package/cpp/skia/include/utils/SkCustomTypeface.h +6 -4
- package/cpp/skia/include/utils/SkNWayCanvas.h +34 -0
- package/cpp/skia/include/utils/SkNullCanvas.h +5 -1
- package/cpp/skia/include/utils/SkOrderedFontMgr.h +12 -0
- package/cpp/skia/include/utils/SkPaintFilterCanvas.h +30 -1
- package/cpp/skia/include/utils/SkParse.h +2 -0
- package/cpp/skia/include/utils/SkShadowUtils.h +3 -2
- package/cpp/skia/include/utils/SkTextUtils.h +8 -4
- package/cpp/skia/modules/svg/include/SkSVGAttributeParser.h +27 -1
- package/cpp/skia/modules/svg/include/SkSVGDOM.h +4 -0
- package/cpp/skia/modules/svg/include/SkSVGOpenTypeSVGDecoder.h +32 -0
- package/cpp/skia/modules/svg/include/SkSVGRenderContext.h +3 -3
- package/cpp/skia/modules/svg/include/SkSVGSVG.h +2 -0
- package/cpp/skia/modules/svg/include/SkSVGTypes.h +48 -9
- package/ios/RNSkia-iOS/PlatformContext.h +1 -1
- package/ios/RNSkia-iOS/RNSkDrawViewImpl.mm +1 -0
- package/ios/RNSkia-iOS/SkiaDrawView.mm +1 -1
- package/lib/commonjs/animation/decay/runDecay.js.map +1 -1
- package/lib/commonjs/animation/functions/interpolateColors.js.map +1 -1
- package/lib/commonjs/animation/spring/runSpring.js.map +1 -1
- package/lib/commonjs/animation/spring/useSpring.js.map +1 -1
- package/lib/commonjs/animation/timing/createTiming.js.map +1 -1
- package/lib/commonjs/animation/timing/runTiming.js.map +1 -1
- package/lib/commonjs/animation/timing/useTiming.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/renderer/Canvas.js +1 -3
- package/lib/commonjs/renderer/Canvas.js.map +1 -1
- package/lib/commonjs/renderer/DependencyManager.js.map +1 -1
- package/lib/commonjs/renderer/components/Blend.js +1 -3
- package/lib/commonjs/renderer/components/Blend.js.map +1 -1
- package/lib/commonjs/renderer/components/Compose.js +2 -6
- package/lib/commonjs/renderer/components/Compose.js.map +1 -1
- package/lib/commonjs/renderer/components/colorFilters/Lerp.js +1 -3
- package/lib/commonjs/renderer/components/colorFilters/Lerp.js.map +1 -1
- package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js +2 -4
- package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
- package/lib/commonjs/renderer/components/imageFilters/InnerShadow.js.map +1 -1
- package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
- package/lib/commonjs/renderer/components/imageFilters/Shadow.js +1 -3
- package/lib/commonjs/renderer/components/imageFilters/Shadow.js.map +1 -1
- package/lib/commonjs/renderer/components/maskFilters/Blur.js +1 -3
- package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Corner.js +1 -3
- package/lib/commonjs/renderer/components/pathEffects/Corner.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Dash.js +1 -3
- package/lib/commonjs/renderer/components/pathEffects/Dash.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Discrete.js +1 -3
- package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Line2D.js +1 -3
- package/lib/commonjs/renderer/components/pathEffects/Line2D.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Path1D.js +2 -4
- package/lib/commonjs/renderer/components/pathEffects/Path1D.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Path2D.js +1 -3
- package/lib/commonjs/renderer/components/pathEffects/Path2D.js.map +1 -1
- package/lib/commonjs/renderer/components/pathEffects/Sum.js +1 -3
- package/lib/commonjs/renderer/components/pathEffects/Sum.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/Gradient.js.map +1 -1
- package/lib/commonjs/renderer/components/shaders/Shader.js +1 -2
- package/lib/commonjs/renderer/components/shaders/Shader.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Box.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/DiffRect.js.map +1 -1
- package/lib/commonjs/renderer/components/shapes/Patch.js +1 -3
- package/lib/commonjs/renderer/components/shapes/Patch.js.map +1 -1
- package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -1
- package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -1
- package/lib/commonjs/renderer/index.js +13 -0
- package/lib/commonjs/renderer/index.js.map +1 -1
- package/lib/commonjs/renderer/nodes/Declaration.js.map +1 -1
- package/lib/commonjs/renderer/nodes/Node.js.map +1 -1
- package/lib/commonjs/renderer/processors/Animations/Animations.js.map +1 -1
- package/lib/commonjs/renderer/processors/Clips.js.map +1 -1
- package/lib/commonjs/renderer/processors/Font.js.map +1 -1
- package/lib/commonjs/renderer/processors/Rects.js +5 -1
- package/lib/commonjs/renderer/processors/Rects.js.map +1 -1
- package/lib/commonjs/renderer/processors/Transform.js.map +1 -1
- package/lib/commonjs/skia/Skia.js +2 -36
- package/lib/commonjs/skia/Skia.js.map +1 -1
- package/lib/commonjs/skia/{Color.js → core/Color.js} +1 -1
- package/lib/commonjs/skia/core/Color.js.map +1 -0
- package/lib/commonjs/skia/{Data → core}/Data.js +29 -8
- package/lib/commonjs/skia/core/Data.js.map +1 -0
- package/lib/commonjs/skia/{Font/useFont.js → core/Font.js} +4 -4
- package/lib/commonjs/skia/core/Font.js.map +1 -0
- package/lib/commonjs/skia/{Image/useImage.js → core/Image.js} +4 -4
- package/lib/commonjs/skia/core/Image.js.map +1 -0
- package/lib/commonjs/skia/{Paint/usePaint.js → core/Paint.js} +14 -4
- package/lib/commonjs/skia/core/Paint.js.map +1 -0
- package/lib/commonjs/skia/{Path/usePath.js → core/Path.js} +1 -1
- package/lib/commonjs/skia/core/Path.js.map +1 -0
- package/lib/commonjs/skia/{Picture/usePicture.js → core/Picture.js} +1 -1
- package/lib/commonjs/skia/core/Picture.js.map +1 -0
- package/lib/commonjs/skia/core/SVG.js +15 -0
- package/lib/commonjs/skia/core/SVG.js.map +1 -0
- package/lib/commonjs/skia/{Shader/useShader.js → core/Shader.js} +1 -1
- package/lib/commonjs/skia/core/Shader.js.map +1 -0
- package/lib/commonjs/skia/{Typeface/useTypeface.js → core/Typeface.js} +3 -3
- package/lib/commonjs/skia/core/Typeface.js.map +1 -0
- package/lib/commonjs/skia/core/index.js +136 -0
- package/lib/commonjs/skia/core/index.js.map +1 -0
- package/lib/commonjs/skia/index.js +8 -302
- package/lib/commonjs/skia/index.js.map +1 -1
- package/lib/commonjs/skia/{Canvas.js → types/Canvas.js} +0 -0
- package/lib/commonjs/skia/{Canvas.js.map → types/Canvas.js.map} +0 -0
- package/lib/commonjs/skia/types/Color.js +2 -0
- package/lib/commonjs/skia/{ColorFilter/ColorFilterFactory.js.map → types/Color.js.map} +0 -0
- package/lib/commonjs/skia/{ColorFilter → types/ColorFilter}/ColorFilter.js +0 -0
- package/lib/commonjs/skia/{ColorFilter → types/ColorFilter}/ColorFilter.js.map +0 -0
- package/lib/commonjs/skia/{ColorFilter → types/ColorFilter}/ColorFilterFactory.js +0 -0
- package/lib/{module/skia → commonjs/skia/types}/ColorFilter/ColorFilterFactory.js.map +0 -0
- package/lib/commonjs/skia/{ColorFilter → types/ColorFilter}/index.js +0 -0
- package/lib/commonjs/skia/{ColorFilter → types/ColorFilter}/index.js.map +0 -0
- package/lib/commonjs/skia/{ContourMeasure.js → types/ContourMeasure.js} +0 -0
- package/lib/commonjs/skia/{ContourMeasure.js.map → types/ContourMeasure.js.map} +0 -0
- package/lib/commonjs/skia/types/Data/Data.js +6 -0
- package/lib/commonjs/skia/{Data/DataFactory.js.map → types/Data/Data.js.map} +0 -0
- package/lib/commonjs/skia/{Data → types/Data}/DataFactory.js +0 -0
- package/lib/{module/skia → commonjs/skia/types}/Data/DataFactory.js.map +0 -0
- package/lib/commonjs/skia/{Data → types/Data}/index.js +0 -0
- package/lib/commonjs/skia/{Data → types/Data}/index.js.map +0 -0
- package/lib/commonjs/skia/{Font → types/Font}/Font.js +0 -0
- package/lib/commonjs/skia/types/Font/Font.js.map +1 -0
- package/lib/commonjs/skia/{Font → types/Font}/index.js +0 -13
- package/lib/commonjs/skia/{FontMgr → types/Font}/index.js.map +1 -1
- package/lib/commonjs/skia/{FontMgr → types/FontMgr}/FontMgr.js +0 -0
- package/lib/commonjs/skia/{FontMgr → types/FontMgr}/FontMgr.js.map +0 -0
- package/lib/commonjs/skia/{FontMgr → types/FontMgr}/FontMgrFactory.js +0 -0
- package/lib/commonjs/skia/{FontMgr → types/FontMgr}/FontMgrFactory.js.map +0 -0
- package/lib/commonjs/skia/{FontMgr → types/FontMgr}/index.js +13 -0
- package/lib/commonjs/skia/types/FontMgr/index.js.map +1 -0
- package/lib/commonjs/skia/{Image → types/Image}/Image.js +0 -0
- package/lib/commonjs/skia/{Image → types/Image}/Image.js.map +1 -1
- package/lib/commonjs/skia/{Image → types/Image}/ImageFactory.js +0 -0
- package/lib/commonjs/skia/{Image → types/Image}/ImageFactory.js.map +0 -0
- package/lib/commonjs/skia/{Image → types/Image}/index.js +0 -13
- package/lib/commonjs/skia/types/Image/index.js.map +1 -0
- package/lib/commonjs/skia/{ImageFilter → types/ImageFilter}/ImageFilter.js +0 -0
- package/lib/commonjs/skia/{ImageFilter → types/ImageFilter}/ImageFilter.js.map +0 -0
- package/lib/commonjs/skia/{ImageFilter → types/ImageFilter}/ImageFilterFactory.js +0 -0
- package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -0
- package/lib/commonjs/skia/{ImageFilter → types/ImageFilter}/index.js +0 -0
- package/lib/commonjs/skia/{ImageFilter → types/ImageFilter}/index.js.map +0 -0
- package/lib/commonjs/skia/{JsiInstance.js → types/JsiInstance.js} +0 -0
- package/lib/commonjs/skia/{JsiInstance.js.map → types/JsiInstance.js.map} +0 -0
- package/lib/commonjs/skia/{MaskFilter.js → types/MaskFilter.js} +0 -0
- package/lib/commonjs/skia/types/MaskFilter.js.map +1 -0
- package/lib/commonjs/skia/{Matrix.js → types/Matrix.js} +0 -0
- package/lib/commonjs/skia/{Matrix.js.map → types/Matrix.js.map} +0 -0
- package/lib/commonjs/skia/{Paint → types/Paint}/BlendMode.js +0 -0
- package/lib/commonjs/skia/{Paint → types/Paint}/BlendMode.js.map +0 -0
- package/lib/commonjs/skia/{Paint → types/Paint}/Paint.js +1 -13
- package/lib/commonjs/skia/types/Paint/Paint.js.map +1 -0
- package/lib/commonjs/skia/{Paint → types/Paint}/index.js +0 -13
- package/lib/commonjs/skia/types/Paint/index.js.map +1 -0
- package/lib/commonjs/skia/{Path → types/Path}/Path.js +0 -0
- package/lib/commonjs/skia/{Path → types/Path}/Path.js.map +0 -0
- package/lib/commonjs/skia/{Path → types/Path}/PathFactory.js +0 -0
- package/lib/commonjs/skia/{Path → types/Path}/PathFactory.js.map +0 -0
- package/lib/commonjs/skia/{Path → types/Path}/index.js +0 -13
- package/lib/commonjs/skia/types/Path/index.js.map +1 -0
- package/lib/commonjs/skia/{PathEffect.js → types/PathEffect.js} +0 -0
- package/lib/commonjs/skia/types/PathEffect.js.map +1 -0
- package/lib/commonjs/skia/{Picture → types/Picture}/Picture.js +0 -0
- package/lib/commonjs/skia/{Picture → types/Picture}/Picture.js.map +0 -0
- package/lib/commonjs/skia/{Picture → types/Picture}/PictureFactory.js +0 -0
- package/lib/commonjs/skia/{Picture → types/Picture}/PictureFactory.js.map +0 -0
- package/lib/commonjs/skia/{Picture → types/Picture}/PictureRecorder.js +0 -0
- package/lib/commonjs/skia/{Picture → types/Picture}/PictureRecorder.js.map +0 -0
- package/lib/commonjs/skia/{Picture → types/Picture}/index.js +0 -13
- package/lib/commonjs/skia/{Paint → types/Picture}/index.js.map +1 -1
- package/lib/commonjs/skia/{Point.js → types/Point.js} +0 -0
- package/lib/commonjs/skia/{Point.js.map → types/Point.js.map} +0 -0
- package/lib/commonjs/skia/{RRect.js → types/RRect.js} +0 -0
- package/lib/commonjs/skia/{RRect.js.map → types/RRect.js.map} +0 -0
- package/lib/commonjs/skia/{RSXform.js → types/RSXform.js} +0 -0
- package/lib/commonjs/skia/{RSXform.js.map → types/RSXform.js.map} +0 -0
- package/lib/commonjs/skia/{Rect.js → types/Rect.js} +0 -0
- package/lib/commonjs/skia/{Rect.js.map → types/Rect.js.map} +0 -0
- package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffect.js +0 -0
- package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffect.js.map +0 -0
- package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffectFactory.js +0 -0
- package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffectFactory.js.map +0 -0
- package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/index.js +0 -0
- package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/index.js.map +0 -0
- package/lib/commonjs/skia/{SVG → types/SVG}/SVG.js +0 -0
- package/lib/commonjs/skia/{SVG → types/SVG}/SVG.js.map +0 -0
- package/lib/commonjs/skia/{SVG → types/SVG}/SVGFactory.js +0 -0
- package/lib/commonjs/skia/{SVG → types/SVG}/SVGFactory.js.map +0 -0
- package/lib/commonjs/skia/{SVG → types/SVG}/index.js +0 -13
- package/lib/commonjs/skia/{Font → types/SVG}/index.js.map +1 -1
- package/lib/commonjs/skia/{Shader → types/Shader}/Shader.js +0 -0
- package/lib/commonjs/skia/{Shader → types/Shader}/Shader.js.map +0 -0
- package/lib/commonjs/skia/{Shader → types/Shader}/ShaderFactory.js +0 -0
- package/lib/commonjs/skia/{Shader → types/Shader}/ShaderFactory.js.map +0 -0
- package/lib/commonjs/skia/{Shader → types/Shader}/index.js +0 -13
- package/lib/commonjs/skia/types/Shader/index.js.map +1 -0
- package/lib/commonjs/skia/types/Skia.js +6 -0
- package/lib/commonjs/skia/{Surface/Surface.js.map → types/Skia.js.map} +0 -0
- package/lib/commonjs/skia/{Surface → types/Surface}/Surface.js +0 -0
- package/lib/{module/skia → commonjs/skia/types}/Surface/Surface.js.map +0 -0
- package/lib/commonjs/skia/{Surface → types/Surface}/SurfaceFactory.js +0 -0
- package/lib/commonjs/skia/{Surface → types/Surface}/SurfaceFactory.js.map +0 -0
- package/lib/commonjs/skia/{Surface → types/Surface}/index.js +0 -0
- package/lib/commonjs/skia/{Surface → types/Surface}/index.js.map +0 -0
- package/lib/commonjs/skia/{TextBlob.js → types/TextBlob.js} +0 -0
- package/lib/commonjs/skia/{TextBlob.js.map → types/TextBlob.js.map} +0 -0
- package/lib/commonjs/skia/{Typeface → types/Typeface}/Typeface.js +0 -0
- package/lib/commonjs/skia/{Typeface → types/Typeface}/Typeface.js.map +0 -0
- package/lib/commonjs/skia/{Typeface → types/Typeface}/TypefaceFactory.js +0 -0
- package/lib/commonjs/skia/{Typeface → types/Typeface}/TypefaceFactory.js.map +0 -0
- package/lib/commonjs/skia/{Typeface → types/Typeface}/index.js +0 -13
- package/lib/commonjs/skia/types/Typeface/index.js.map +1 -0
- package/lib/commonjs/skia/{Vertices → types/Vertices}/Vertices.js +0 -0
- package/lib/commonjs/skia/{Vertices → types/Vertices}/Vertices.js.map +0 -0
- package/lib/commonjs/skia/{Vertices → types/Vertices}/index.js +0 -0
- package/lib/commonjs/skia/{Vertices → types/Vertices}/index.js.map +0 -0
- package/lib/commonjs/skia/types/index.js +370 -0
- package/lib/commonjs/skia/types/index.js.map +1 -0
- package/lib/commonjs/skia/web/api/Host.js +66 -0
- package/lib/commonjs/skia/web/api/Host.js.map +1 -0
- package/lib/commonjs/skia/web/api/JsiSkCanvas.js +170 -0
- package/lib/commonjs/skia/web/api/JsiSkCanvas.js.map +1 -0
- package/lib/commonjs/skia/web/api/JsiSkColor.js +180 -0
- package/lib/commonjs/skia/web/api/JsiSkColor.js.map +1 -0
- package/lib/commonjs/skia/web/api/JsiSkColorFilter.js +18 -0
- package/lib/commonjs/skia/web/api/JsiSkColorFilter.js.map +1 -0
- package/lib/commonjs/skia/web/api/JsiSkImage.js +56 -0
- package/lib/commonjs/skia/web/api/JsiSkImage.js.map +1 -0
- package/lib/commonjs/skia/web/api/JsiSkPaint.js +106 -0
- package/lib/commonjs/skia/web/api/JsiSkPaint.js.map +1 -0
- package/lib/commonjs/skia/web/api/JsiSkRect.js +34 -0
- package/lib/commonjs/skia/web/api/JsiSkRect.js.map +1 -0
- package/lib/commonjs/skia/web/api/JsiSkSurface.js +31 -0
- package/lib/commonjs/skia/web/api/JsiSkSurface.js.map +1 -0
- package/lib/commonjs/skia/web/api/JsiSkSurfaceFactory.js +30 -0
- package/lib/commonjs/skia/web/api/JsiSkSurfaceFactory.js.map +1 -0
- package/lib/commonjs/skia/web/api/index.js +26 -0
- package/lib/commonjs/skia/web/api/index.js.map +1 -0
- package/lib/commonjs/skia/web/index.js +19 -0
- package/lib/commonjs/skia/web/index.js.map +1 -0
- package/lib/commonjs/values/hooks/useValue.js.map +1 -1
- package/lib/commonjs/values/hooks/useValueEffect.js.map +1 -1
- package/lib/commonjs/values/web/RNSkReadonlyValue.js.map +1 -1
- package/lib/commonjs/values/web/api.js.map +1 -1
- package/lib/commonjs/views/SkiaView.js.map +1 -1
- package/lib/commonjs/views/types.js.map +1 -1
- package/lib/module/animation/decay/runDecay.js.map +1 -1
- package/lib/module/animation/functions/interpolateColors.js.map +1 -1
- package/lib/module/animation/spring/runSpring.js.map +1 -1
- package/lib/module/animation/spring/useSpring.js.map +1 -1
- package/lib/module/animation/timing/createTiming.js.map +1 -1
- package/lib/module/animation/timing/runTiming.js.map +1 -1
- package/lib/module/animation/timing/useTiming.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/renderer/Canvas.js +1 -2
- package/lib/module/renderer/Canvas.js.map +1 -1
- package/lib/module/renderer/DependencyManager.js.map +1 -1
- package/lib/module/renderer/components/Blend.js +1 -2
- package/lib/module/renderer/components/Blend.js.map +1 -1
- package/lib/module/renderer/components/Compose.js +1 -3
- package/lib/module/renderer/components/Compose.js.map +1 -1
- package/lib/module/renderer/components/colorFilters/Lerp.js +1 -2
- package/lib/module/renderer/components/colorFilters/Lerp.js.map +1 -1
- package/lib/module/renderer/components/imageFilters/DisplacementMap.js +1 -2
- package/lib/module/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
- package/lib/module/renderer/components/imageFilters/InnerShadow.js.map +1 -1
- package/lib/module/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
- package/lib/module/renderer/components/imageFilters/Shadow.js +1 -2
- package/lib/module/renderer/components/imageFilters/Shadow.js.map +1 -1
- package/lib/module/renderer/components/maskFilters/Blur.js +1 -2
- package/lib/module/renderer/components/maskFilters/Blur.js.map +1 -1
- package/lib/module/renderer/components/pathEffects/Corner.js +1 -2
- package/lib/module/renderer/components/pathEffects/Corner.js.map +1 -1
- package/lib/module/renderer/components/pathEffects/Dash.js +1 -2
- package/lib/module/renderer/components/pathEffects/Dash.js.map +1 -1
- package/lib/module/renderer/components/pathEffects/Discrete.js +1 -2
- package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -1
- package/lib/module/renderer/components/pathEffects/Line2D.js +1 -2
- package/lib/module/renderer/components/pathEffects/Line2D.js.map +1 -1
- package/lib/module/renderer/components/pathEffects/Path1D.js +1 -2
- package/lib/module/renderer/components/pathEffects/Path1D.js.map +1 -1
- package/lib/module/renderer/components/pathEffects/Path2D.js +1 -2
- package/lib/module/renderer/components/pathEffects/Path2D.js.map +1 -1
- package/lib/module/renderer/components/pathEffects/Sum.js +1 -2
- package/lib/module/renderer/components/pathEffects/Sum.js.map +1 -1
- package/lib/module/renderer/components/shaders/Gradient.js.map +1 -1
- package/lib/module/renderer/components/shaders/Shader.js +1 -2
- package/lib/module/renderer/components/shaders/Shader.js.map +1 -1
- package/lib/module/renderer/components/shapes/Box.js.map +1 -1
- package/lib/module/renderer/components/shapes/DiffRect.js.map +1 -1
- package/lib/module/renderer/components/shapes/Patch.js +1 -2
- package/lib/module/renderer/components/shapes/Patch.js.map +1 -1
- package/lib/module/renderer/components/text/TextBlob.js.map +1 -1
- package/lib/module/renderer/components/text/TextPath.js.map +1 -1
- package/lib/module/renderer/index.js +1 -0
- package/lib/module/renderer/index.js.map +1 -1
- package/lib/module/renderer/nodes/Declaration.js.map +1 -1
- package/lib/module/renderer/nodes/Node.js.map +1 -1
- package/lib/module/renderer/processors/Animations/Animations.js.map +1 -1
- package/lib/module/renderer/processors/Clips.js.map +1 -1
- package/lib/module/renderer/processors/Font.js.map +1 -1
- package/lib/module/renderer/processors/Rects.js +1 -0
- package/lib/module/renderer/processors/Rects.js.map +1 -1
- package/lib/module/renderer/processors/Transform.js.map +1 -1
- package/lib/module/skia/Skia.js +2 -35
- package/lib/module/skia/Skia.js.map +1 -1
- package/lib/module/skia/{Color.js → core/Color.js} +1 -2
- package/lib/module/skia/core/Color.js.map +1 -0
- package/lib/module/skia/core/Data.js +56 -0
- package/lib/module/skia/core/Data.js.map +1 -0
- package/lib/module/skia/{Font/useFont.js → core/Font.js} +5 -5
- package/lib/module/skia/core/Font.js.map +1 -0
- package/lib/module/skia/core/Image.js +8 -0
- package/lib/module/skia/core/Image.js.map +1 -0
- package/lib/module/skia/{Paint/usePaint.js → core/Paint.js} +8 -3
- package/lib/module/skia/core/Paint.js.map +1 -0
- package/lib/module/skia/{Path/usePath.js → core/Path.js} +1 -1
- package/lib/module/skia/core/Path.js.map +1 -0
- package/lib/module/skia/{Picture/usePicture.js → core/Picture.js} +1 -1
- package/lib/module/skia/core/Picture.js.map +1 -0
- package/lib/module/skia/core/SVG.js +4 -0
- package/lib/module/skia/core/SVG.js.map +1 -0
- package/lib/module/skia/{Shader/useShader.js → core/Shader.js} +1 -1
- package/lib/module/skia/core/Shader.js.map +1 -0
- package/lib/module/skia/core/Typeface.js +8 -0
- package/lib/module/skia/core/Typeface.js.map +1 -0
- package/lib/module/skia/core/index.js +11 -0
- package/lib/module/skia/core/index.js.map +1 -0
- package/lib/module/skia/index.js +2 -23
- package/lib/module/skia/index.js.map +1 -1
- package/lib/module/skia/{Canvas.js → types/Canvas.js} +0 -0
- package/lib/module/skia/{Canvas.js.map → types/Canvas.js.map} +0 -0
- package/lib/module/skia/types/Color.js +2 -0
- package/lib/module/skia/{ContourMeasure.js.map → types/Color.js.map} +0 -0
- package/lib/module/skia/{ColorFilter → types/ColorFilter}/ColorFilter.js +0 -0
- package/lib/module/skia/{ColorFilter → types/ColorFilter}/ColorFilter.js.map +0 -0
- package/lib/module/skia/{ColorFilter → types/ColorFilter}/ColorFilterFactory.js +0 -0
- package/lib/module/skia/{FontMgr/FontMgr.js.map → types/ColorFilter/ColorFilterFactory.js.map} +0 -0
- package/lib/module/skia/{ColorFilter → types/ColorFilter}/index.js +0 -0
- package/lib/module/skia/{ColorFilter → types/ColorFilter}/index.js.map +0 -0
- package/lib/module/skia/{ContourMeasure.js → types/ContourMeasure.js} +0 -0
- package/lib/module/skia/{FontMgr/FontMgrFactory.js.map → types/ContourMeasure.js.map} +0 -0
- package/lib/module/skia/types/Data/Data.js +2 -0
- package/lib/module/skia/{JsiInstance.js.map → types/Data/Data.js.map} +0 -0
- package/lib/module/skia/{Data → types/Data}/DataFactory.js +0 -0
- package/lib/module/skia/{Path/PathFactory.js.map → types/Data/DataFactory.js.map} +0 -0
- package/lib/module/skia/{Data → types/Data}/index.js +0 -0
- package/lib/module/skia/{Data → types/Data}/index.js.map +0 -0
- package/lib/module/skia/{Font → types/Font}/Font.js +0 -0
- package/lib/module/skia/types/Font/Font.js.map +1 -0
- package/lib/module/skia/types/Font/index.js +2 -0
- package/lib/module/skia/types/Font/index.js.map +1 -0
- package/lib/module/skia/{FontMgr → types/FontMgr}/FontMgr.js +0 -0
- package/lib/module/skia/{Picture/Picture.js.map → types/FontMgr/FontMgr.js.map} +0 -0
- package/lib/module/skia/{FontMgr → types/FontMgr}/FontMgrFactory.js +0 -0
- package/lib/module/skia/{Picture/PictureFactory.js.map → types/FontMgr/FontMgrFactory.js.map} +0 -0
- package/lib/module/skia/types/FontMgr/index.js +3 -0
- package/lib/module/skia/types/FontMgr/index.js.map +1 -0
- package/lib/module/skia/{Image → types/Image}/Image.js +0 -0
- package/lib/module/skia/{Image → types/Image}/Image.js.map +1 -1
- package/lib/module/skia/{Image → types/Image}/ImageFactory.js +0 -0
- package/lib/module/skia/{Image → types/Image}/ImageFactory.js.map +0 -0
- package/lib/module/skia/types/Image/index.js +3 -0
- package/lib/module/skia/types/Image/index.js.map +1 -0
- package/lib/module/skia/{ImageFilter → types/ImageFilter}/ImageFilter.js +0 -0
- package/lib/module/skia/{ImageFilter → types/ImageFilter}/ImageFilter.js.map +0 -0
- package/lib/module/skia/{ImageFilter → types/ImageFilter}/ImageFilterFactory.js +0 -0
- package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -0
- package/lib/module/skia/{ImageFilter → types/ImageFilter}/index.js +0 -0
- package/lib/module/skia/{ImageFilter → types/ImageFilter}/index.js.map +0 -0
- package/lib/module/skia/{JsiInstance.js → types/JsiInstance.js} +0 -0
- package/lib/module/skia/{Picture/PictureRecorder.js.map → types/JsiInstance.js.map} +0 -0
- package/lib/module/skia/{MaskFilter.js → types/MaskFilter.js} +0 -0
- package/lib/module/skia/types/MaskFilter.js.map +1 -0
- package/lib/module/skia/{Matrix.js → types/Matrix.js} +0 -0
- package/lib/module/skia/{Matrix.js.map → types/Matrix.js.map} +0 -0
- package/lib/module/skia/{Paint → types/Paint}/BlendMode.js +0 -0
- package/lib/module/skia/{Paint → types/Paint}/BlendMode.js.map +0 -0
- package/lib/module/skia/{Paint → types/Paint}/Paint.js +0 -6
- package/lib/module/skia/types/Paint/Paint.js.map +1 -0
- package/lib/module/skia/types/Paint/index.js +3 -0
- package/lib/module/skia/types/Paint/index.js.map +1 -0
- package/lib/module/skia/{Path → types/Path}/Path.js +0 -0
- package/lib/module/skia/{Path → types/Path}/Path.js.map +0 -0
- package/lib/module/skia/{Path → types/Path}/PathFactory.js +0 -0
- package/lib/module/skia/{RRect.js.map → types/Path/PathFactory.js.map} +0 -0
- package/lib/module/skia/types/Path/index.js +3 -0
- package/lib/module/skia/types/Path/index.js.map +1 -0
- package/lib/module/skia/{PathEffect.js → types/PathEffect.js} +0 -0
- package/lib/module/skia/types/PathEffect.js.map +1 -0
- package/lib/module/skia/{Picture → types/Picture}/Picture.js +0 -0
- package/lib/module/skia/{RSXform.js.map → types/Picture/Picture.js.map} +0 -0
- package/lib/module/skia/{Picture → types/Picture}/PictureFactory.js +0 -0
- package/lib/module/skia/{Rect.js.map → types/Picture/PictureFactory.js.map} +0 -0
- package/lib/module/skia/{Picture → types/Picture}/PictureRecorder.js +0 -0
- package/lib/module/skia/{RuntimeEffect/RuntimeEffect.js.map → types/Picture/PictureRecorder.js.map} +0 -0
- package/lib/module/skia/{Picture → types/Picture}/index.js +0 -1
- package/lib/module/skia/types/Picture/index.js.map +1 -0
- package/lib/module/skia/{Point.js → types/Point.js} +0 -0
- package/lib/module/skia/{Point.js.map → types/Point.js.map} +0 -0
- package/lib/module/skia/{RRect.js → types/RRect.js} +0 -0
- package/lib/module/skia/{RuntimeEffect/RuntimeEffectFactory.js.map → types/RRect.js.map} +0 -0
- package/lib/module/skia/{RSXform.js → types/RSXform.js} +0 -0
- package/lib/module/skia/{SVG/SVG.js.map → types/RSXform.js.map} +0 -0
- package/lib/module/skia/{Rect.js → types/Rect.js} +0 -0
- package/lib/module/skia/{SVG/SVGFactory.js.map → types/Rect.js.map} +0 -0
- package/lib/module/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffect.js +0 -0
- package/lib/module/skia/{Shader/ShaderFactory.js.map → types/RuntimeEffect/RuntimeEffect.js.map} +0 -0
- package/lib/module/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffectFactory.js +0 -0
- package/lib/module/skia/{Surface/SurfaceFactory.js.map → types/RuntimeEffect/RuntimeEffectFactory.js.map} +0 -0
- package/lib/module/skia/{RuntimeEffect → types/RuntimeEffect}/index.js +0 -0
- package/lib/module/skia/{RuntimeEffect → types/RuntimeEffect}/index.js.map +0 -0
- package/lib/module/skia/{SVG → types/SVG}/SVG.js +0 -0
- package/lib/module/skia/{TextBlob.js.map → types/SVG/SVG.js.map} +0 -0
- package/lib/module/skia/{SVG → types/SVG}/SVGFactory.js +0 -0
- package/lib/module/skia/{Typeface/Typeface.js.map → types/SVG/SVGFactory.js.map} +0 -0
- package/lib/module/skia/types/SVG/index.js +3 -0
- package/lib/module/skia/types/SVG/index.js.map +1 -0
- package/lib/module/skia/{Shader → types/Shader}/Shader.js +0 -0
- package/lib/module/skia/{Shader → types/Shader}/Shader.js.map +0 -0
- package/lib/module/skia/{Shader → types/Shader}/ShaderFactory.js +0 -0
- package/lib/module/skia/{Typeface/TypefaceFactory.js.map → types/Shader/ShaderFactory.js.map} +0 -0
- package/lib/module/skia/types/Shader/index.js +3 -0
- package/lib/module/skia/types/Shader/index.js.map +1 -0
- package/lib/module/skia/types/Skia.js +2 -0
- package/lib/module/skia/types/Skia.js.map +1 -0
- package/lib/module/skia/{Surface → types/Surface}/Surface.js +0 -0
- package/lib/module/skia/types/Surface/Surface.js.map +1 -0
- package/lib/module/skia/{Surface → types/Surface}/SurfaceFactory.js +0 -0
- package/lib/module/skia/types/Surface/SurfaceFactory.js.map +1 -0
- package/lib/module/skia/{Surface → types/Surface}/index.js +0 -0
- package/lib/module/skia/{Surface → types/Surface}/index.js.map +0 -0
- package/lib/module/skia/{TextBlob.js → types/TextBlob.js} +0 -0
- package/lib/module/skia/types/TextBlob.js.map +1 -0
- package/lib/module/skia/{Typeface → types/Typeface}/Typeface.js +0 -0
- package/lib/module/skia/types/Typeface/Typeface.js.map +1 -0
- package/lib/module/skia/{Typeface → types/Typeface}/TypefaceFactory.js +0 -0
- package/lib/module/skia/types/Typeface/TypefaceFactory.js.map +1 -0
- package/lib/module/skia/types/Typeface/index.js +3 -0
- package/lib/module/skia/types/Typeface/index.js.map +1 -0
- package/lib/module/skia/{Vertices → types/Vertices}/Vertices.js +0 -0
- package/lib/module/skia/{Vertices → types/Vertices}/Vertices.js.map +0 -0
- package/lib/module/skia/{Vertices → types/Vertices}/index.js +0 -0
- package/lib/module/skia/{Vertices → types/Vertices}/index.js.map +0 -0
- package/lib/module/skia/types/index.js +29 -0
- package/lib/module/skia/types/index.js.map +1 -0
- package/lib/module/skia/web/api/Host.js +36 -0
- package/lib/module/skia/web/api/Host.js.map +1 -0
- package/lib/module/skia/web/api/JsiSkCanvas.js +160 -0
- package/lib/module/skia/web/api/JsiSkCanvas.js.map +1 -0
- package/lib/module/skia/web/api/JsiSkColor.js +170 -0
- package/lib/module/skia/web/api/JsiSkColor.js.map +1 -0
- package/lib/module/skia/web/api/JsiSkColorFilter.js +8 -0
- package/lib/module/skia/web/api/JsiSkColorFilter.js.map +1 -0
- package/lib/module/skia/web/api/JsiSkImage.js +46 -0
- package/lib/module/skia/web/api/JsiSkImage.js.map +1 -0
- package/lib/module/skia/web/api/JsiSkPaint.js +96 -0
- package/lib/module/skia/web/api/JsiSkPaint.js.map +1 -0
- package/lib/module/skia/web/api/JsiSkRect.js +24 -0
- package/lib/module/skia/web/api/JsiSkRect.js.map +1 -0
- package/lib/module/skia/web/api/JsiSkSurface.js +19 -0
- package/lib/module/skia/web/api/JsiSkSurface.js.map +1 -0
- package/lib/module/skia/web/api/JsiSkSurfaceFactory.js +19 -0
- package/lib/module/skia/web/api/JsiSkSurfaceFactory.js.map +1 -0
- package/lib/module/skia/web/api/index.js +13 -0
- package/lib/module/skia/web/api/index.js.map +1 -0
- package/lib/module/skia/web/index.js +2 -0
- package/lib/module/skia/web/index.js.map +1 -0
- package/lib/module/values/hooks/useValue.js.map +1 -1
- package/lib/module/values/hooks/useValueEffect.js.map +1 -1
- package/lib/module/values/web/RNSkReadonlyValue.js.map +1 -1
- package/lib/module/values/web/api.js.map +1 -1
- package/lib/module/views/SkiaView.js.map +1 -1
- package/lib/module/views/types.js.map +1 -1
- package/lib/typescript/src/animation/decay/runDecay.d.ts +2 -2
- package/lib/typescript/src/animation/spring/runSpring.d.ts +2 -2
- package/lib/typescript/src/animation/spring/useSpring.d.ts +2 -2
- package/lib/typescript/src/animation/timing/createTiming.d.ts +2 -2
- package/lib/typescript/src/animation/timing/runTiming.d.ts +2 -2
- package/lib/typescript/src/animation/timing/useLoop.d.ts +1 -1
- package/lib/typescript/src/animation/timing/useTiming.d.ts +2 -2
- package/lib/typescript/src/renderer/Canvas.d.ts +4 -4
- package/lib/typescript/src/renderer/DependencyManager.d.ts +2 -2
- package/lib/typescript/src/renderer/DrawingContext.d.ts +1 -2
- package/lib/typescript/src/renderer/components/colorFilters/Compose.d.ts +1 -1
- package/lib/typescript/src/renderer/components/imageFilters/DisplacementMap.d.ts +1 -1
- package/lib/typescript/src/renderer/components/imageFilters/InnerShadow.d.ts +1 -2
- package/lib/typescript/src/renderer/components/imageFilters/RuntimeShader.d.ts +1 -1
- package/lib/typescript/src/renderer/components/imageFilters/Shadow.d.ts +1 -1
- package/lib/typescript/src/renderer/components/maskFilters/Blur.d.ts +1 -1
- package/lib/typescript/src/renderer/components/pathEffects/Line2D.d.ts +1 -1
- package/lib/typescript/src/renderer/components/pathEffects/Path1D.d.ts +1 -1
- package/lib/typescript/src/renderer/components/pathEffects/Path2D.d.ts +1 -1
- package/lib/typescript/src/renderer/components/shaders/Gradient.d.ts +1 -1
- package/lib/typescript/src/renderer/components/shaders/Shader.d.ts +0 -1
- package/lib/typescript/src/renderer/components/shapes/Box.d.ts +1 -2
- package/lib/typescript/src/renderer/components/shapes/DiffRect.d.ts +1 -1
- package/lib/typescript/src/renderer/components/text/TextBlob.d.ts +1 -1
- package/lib/typescript/src/renderer/components/text/TextPath.d.ts +1 -1
- package/lib/typescript/src/renderer/index.d.ts +1 -0
- package/lib/typescript/src/renderer/nodes/Declaration.d.ts +1 -1
- package/lib/typescript/src/renderer/nodes/Node.d.ts +1 -1
- package/lib/typescript/src/renderer/processors/Animations/Animations.d.ts +3 -3
- package/lib/typescript/src/renderer/processors/Clips.d.ts +1 -2
- package/lib/typescript/src/renderer/processors/Font.d.ts +1 -2
- package/lib/typescript/src/renderer/processors/Rects.d.ts +2 -0
- package/lib/typescript/src/renderer/processors/Transform.d.ts +1 -1
- package/lib/typescript/src/skia/Skia.d.ts +2 -35
- package/lib/typescript/src/skia/{Color.d.ts → core/Color.d.ts} +1 -2
- package/lib/typescript/src/skia/core/Data.d.ts +5 -0
- package/lib/typescript/src/skia/core/Font.d.ts +5 -0
- package/lib/typescript/src/skia/core/Image.d.ts +5 -0
- package/lib/typescript/src/skia/{Paint/usePaint.d.ts → core/Paint.d.ts} +2 -1
- package/lib/typescript/src/skia/{Path/usePath.d.ts → core/Path.d.ts} +1 -2
- package/lib/typescript/src/skia/{Picture/usePicture.d.ts → core/Picture.d.ts} +1 -3
- package/lib/typescript/src/skia/core/SVG.d.ts +2 -0
- package/lib/typescript/src/skia/{Shader/useShader.d.ts → core/Shader.d.ts} +0 -0
- package/lib/typescript/src/skia/core/Typeface.d.ts +5 -0
- package/lib/typescript/src/skia/core/index.d.ts +10 -0
- package/lib/typescript/src/skia/index.d.ts +2 -23
- package/lib/typescript/src/skia/{Canvas.d.ts → types/Canvas.d.ts} +0 -0
- package/lib/typescript/src/skia/types/Color.d.ts +2 -0
- package/lib/typescript/src/skia/{ColorFilter → types/ColorFilter}/ColorFilter.d.ts +0 -0
- package/lib/typescript/src/skia/{ColorFilter → types/ColorFilter}/ColorFilterFactory.d.ts +1 -1
- package/lib/typescript/src/skia/{ColorFilter → types/ColorFilter}/index.d.ts +0 -0
- package/lib/typescript/src/skia/{ContourMeasure.d.ts → types/ContourMeasure.d.ts} +0 -0
- package/lib/typescript/src/skia/types/Data/Data.d.ts +5 -0
- package/lib/typescript/src/skia/{Data → types/Data}/DataFactory.d.ts +0 -0
- package/lib/typescript/src/skia/{Data → types/Data}/index.d.ts +0 -0
- package/lib/typescript/src/skia/{Font → types/Font}/Font.d.ts +1 -1
- package/lib/typescript/src/skia/types/Font/index.d.ts +1 -0
- package/lib/typescript/src/skia/{FontMgr → types/FontMgr}/FontMgr.d.ts +1 -1
- package/lib/typescript/src/skia/{FontMgr → types/FontMgr}/FontMgrFactory.d.ts +0 -0
- package/lib/typescript/src/skia/{FontMgr → types/FontMgr}/index.d.ts +1 -0
- package/lib/typescript/src/skia/{Image → types/Image}/Image.d.ts +2 -2
- package/lib/typescript/src/skia/{Image → types/Image}/ImageFactory.d.ts +0 -0
- package/lib/typescript/src/skia/{Image → types/Image}/index.d.ts +0 -1
- package/lib/typescript/src/skia/{ImageFilter → types/ImageFilter}/ImageFilter.d.ts +0 -0
- package/lib/typescript/src/skia/{ImageFilter → types/ImageFilter}/ImageFilterFactory.d.ts +2 -2
- package/lib/typescript/src/skia/{ImageFilter → types/ImageFilter}/index.d.ts +0 -0
- package/lib/typescript/src/skia/{JsiInstance.d.ts → types/JsiInstance.d.ts} +0 -0
- package/lib/typescript/src/skia/{MaskFilter.d.ts → types/MaskFilter.d.ts} +3 -3
- package/lib/typescript/src/skia/{Matrix.d.ts → types/Matrix.d.ts} +0 -0
- package/lib/typescript/src/skia/{Paint → types/Paint}/BlendMode.d.ts +0 -0
- package/lib/typescript/src/skia/{Paint → types/Paint}/Paint.d.ts +5 -6
- package/lib/typescript/src/skia/{Paint → types/Paint}/index.d.ts +0 -1
- package/lib/typescript/src/skia/{Path → types/Path}/Path.d.ts +0 -0
- package/lib/typescript/src/skia/{Path → types/Path}/PathFactory.d.ts +0 -0
- package/lib/typescript/src/skia/{Path → types/Path}/index.d.ts +0 -1
- package/lib/typescript/src/skia/{PathEffect.d.ts → types/PathEffect.d.ts} +10 -10
- package/lib/typescript/src/skia/{Picture → types/Picture}/Picture.d.ts +0 -0
- package/lib/typescript/src/skia/{Picture → types/Picture}/PictureFactory.d.ts +0 -0
- package/lib/typescript/src/skia/{Picture → types/Picture}/PictureRecorder.d.ts +0 -0
- package/lib/typescript/src/skia/{Picture → types/Picture}/index.d.ts +0 -1
- package/lib/typescript/src/skia/{Point.d.ts → types/Point.d.ts} +0 -0
- package/lib/typescript/src/skia/{RRect.d.ts → types/RRect.d.ts} +0 -0
- package/lib/typescript/src/skia/{RSXform.d.ts → types/RSXform.d.ts} +0 -0
- package/lib/typescript/src/skia/{Rect.d.ts → types/Rect.d.ts} +0 -0
- package/lib/typescript/src/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffect.d.ts +2 -4
- package/lib/typescript/src/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffectFactory.d.ts +0 -0
- package/lib/typescript/src/skia/{RuntimeEffect → types/RuntimeEffect}/index.d.ts +0 -0
- package/lib/typescript/src/skia/{SVG → types/SVG}/SVG.d.ts +0 -0
- package/lib/typescript/src/skia/{SVG → types/SVG}/SVGFactory.d.ts +1 -1
- package/lib/typescript/src/skia/{SVG → types/SVG}/index.d.ts +0 -1
- package/lib/typescript/src/skia/{Shader → types/Shader}/Shader.d.ts +0 -0
- package/lib/typescript/src/skia/{Shader → types/Shader}/ShaderFactory.d.ts +0 -0
- package/lib/typescript/src/skia/{Shader → types/Shader}/index.d.ts +0 -1
- package/lib/typescript/src/skia/{SkiaApi.d.ts → types/Skia.d.ts} +2 -5
- package/lib/typescript/src/skia/{Surface → types/Surface}/Surface.d.ts +0 -0
- package/lib/typescript/src/skia/{Surface → types/Surface}/SurfaceFactory.d.ts +0 -0
- package/lib/typescript/src/skia/{Surface → types/Surface}/index.d.ts +0 -0
- package/lib/typescript/src/skia/{TextBlob.d.ts → types/TextBlob.d.ts} +0 -0
- package/lib/typescript/src/skia/{Typeface → types/Typeface}/Typeface.d.ts +0 -0
- package/lib/typescript/src/skia/{Typeface → types/Typeface}/TypefaceFactory.d.ts +1 -1
- package/lib/typescript/src/skia/{Typeface → types/Typeface}/index.d.ts +0 -1
- package/lib/typescript/src/skia/{Vertices → types/Vertices}/Vertices.d.ts +0 -0
- package/lib/typescript/src/skia/{Vertices → types/Vertices}/index.d.ts +0 -0
- package/lib/typescript/src/skia/types/index.d.ts +28 -0
- package/lib/typescript/src/skia/web/api/Host.d.ts +18 -0
- package/lib/typescript/src/skia/web/api/JsiSkCanvas.d.ts +44 -0
- package/lib/typescript/src/skia/web/api/JsiSkColor.d.ts +3 -0
- package/lib/typescript/src/skia/web/api/JsiSkColorFilter.d.ts +6 -0
- package/lib/typescript/src/skia/web/api/JsiSkImage.d.ts +12 -0
- package/lib/typescript/src/skia/web/api/JsiSkPaint.d.ts +26 -0
- package/lib/typescript/src/skia/web/api/JsiSkRect.d.ts +10 -0
- package/lib/typescript/src/skia/web/api/JsiSkSurface.d.ts +8 -0
- package/lib/typescript/src/skia/web/api/JsiSkSurfaceFactory.d.ts +8 -0
- package/lib/typescript/src/skia/web/api/index.d.ts +10 -0
- package/lib/typescript/src/skia/web/index.d.ts +1 -0
- package/lib/typescript/src/values/api.d.ts +1 -1
- package/lib/typescript/src/values/api.web.d.ts +1 -1
- package/lib/typescript/src/values/hooks/useDerivedValue.d.ts +1 -1
- package/lib/typescript/src/values/hooks/useValue.d.ts +2 -2
- package/lib/typescript/src/values/hooks/useValueEffect.d.ts +2 -2
- package/lib/typescript/src/values/types.d.ts +5 -5
- package/lib/typescript/src/values/web/RNSkReadonlyValue.d.ts +2 -2
- package/lib/typescript/src/views/SkiaView.d.ts +4 -4
- package/lib/typescript/src/views/types.d.ts +3 -4
- package/libs/android/arm64-v8a/libskia.a +0 -0
- package/libs/android/arm64-v8a/libsvg.a +0 -0
- package/libs/android/armeabi-v7a/libskia.a +0 -0
- package/libs/android/armeabi-v7a/libsvg.a +0 -0
- package/libs/android/x86/libskia.a +0 -0
- package/libs/android/x86/libsvg.a +0 -0
- package/libs/android/x86_64/libskia.a +0 -0
- package/libs/android/x86_64/libsvg.a +0 -0
- package/libs/ios/libskia.xcframework/Info.plist +5 -5
- package/libs/ios/libskia.xcframework/ios-arm64_arm64e/libskia.a +0 -0
- package/libs/ios/libskia.xcframework/ios-arm64_arm64e_x86_64-simulator/libskia.a +0 -0
- package/libs/ios/libskshaper.xcframework/Info.plist +5 -5
- package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e/libskshaper.a +0 -0
- package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e_x86_64-simulator/libskshaper.a +0 -0
- package/libs/ios/libsvg.xcframework/ios-arm64_arm64e/libsvg.a +0 -0
- package/libs/ios/libsvg.xcframework/ios-arm64_arm64e_x86_64-simulator/libsvg.a +0 -0
- package/package.json +4 -2
- package/react-native-skia.podspec +1 -1
- package/src/animation/decay/runDecay.ts +5 -2
- package/src/animation/functions/interpolateColors.ts +1 -2
- package/src/animation/spring/runSpring.ts +2 -2
- package/src/animation/spring/useSpring.ts +2 -2
- package/src/animation/timing/createTiming.ts +2 -2
- package/src/animation/timing/runTiming.ts +2 -2
- package/src/animation/timing/useTiming.ts +2 -2
- package/src/index.ts +0 -1
- package/src/renderer/Canvas.tsx +4 -5
- package/src/renderer/DependencyManager.tsx +2 -2
- package/src/renderer/DrawingContext.ts +1 -2
- package/src/renderer/components/Blend.tsx +1 -2
- package/src/renderer/components/Compose.tsx +1 -3
- package/src/renderer/components/colorFilters/Lerp.tsx +1 -2
- package/src/renderer/components/imageFilters/DisplacementMap.tsx +1 -2
- package/src/renderer/components/imageFilters/InnerShadow.tsx +1 -2
- package/src/renderer/components/imageFilters/RuntimeShader.tsx +1 -1
- package/src/renderer/components/imageFilters/Shadow.tsx +2 -3
- package/src/renderer/components/maskFilters/Blur.tsx +1 -2
- package/src/renderer/components/pathEffects/Corner.tsx +1 -2
- package/src/renderer/components/pathEffects/Dash.tsx +1 -2
- package/src/renderer/components/pathEffects/Discrete.tsx +1 -2
- package/src/renderer/components/pathEffects/Line2D.tsx +2 -3
- package/src/renderer/components/pathEffects/Path1D.tsx +1 -2
- package/src/renderer/components/pathEffects/Path2D.tsx +2 -3
- package/src/renderer/components/pathEffects/Sum.tsx +1 -2
- package/src/renderer/components/shaders/Gradient.ts +1 -1
- package/src/renderer/components/shaders/Shader.tsx +1 -3
- package/src/renderer/components/shapes/Box.tsx +1 -3
- package/src/renderer/components/shapes/DiffRect.tsx +1 -1
- package/src/renderer/components/shapes/Patch.tsx +1 -2
- package/src/renderer/components/text/TextBlob.tsx +1 -1
- package/src/renderer/components/text/TextPath.tsx +1 -2
- package/src/renderer/index.ts +1 -0
- package/src/renderer/nodes/Declaration.tsx +1 -1
- package/src/renderer/nodes/Node.ts +1 -1
- package/src/renderer/processors/Animations/Animations.ts +5 -8
- package/src/renderer/processors/Clips.ts +1 -2
- package/src/renderer/processors/Font.ts +1 -2
- package/src/renderer/processors/Rects.ts +4 -0
- package/src/renderer/processors/Transform.ts +1 -1
- package/src/skia/Skia.ts +2 -38
- package/src/skia/__tests__/Rects.spec.ts +40 -0
- package/src/skia/__tests__/snapshots/lightblue-rect.png +0 -0
- package/src/skia/{Color.ts → core/Color.ts} +2 -6
- package/src/skia/core/Data.ts +78 -0
- package/src/skia/{Font/useFont.ts → core/Font.ts} +8 -5
- package/src/skia/core/Image.ts +12 -0
- package/src/skia/{Paint/usePaint.ts → core/Paint.ts} +7 -2
- package/src/skia/{Path/usePath.ts → core/Path.ts} +1 -3
- package/src/skia/{Picture/usePicture.ts → core/Picture.ts} +1 -4
- package/src/skia/core/SVG.ts +9 -0
- package/src/skia/{Shader/useShader.ts → core/Shader.ts} +0 -0
- package/src/skia/core/Typeface.ts +11 -0
- package/src/skia/core/index.ts +10 -0
- package/src/skia/index.ts +2 -23
- package/src/skia/{Canvas.ts → types/Canvas.ts} +0 -0
- package/src/skia/types/Color.ts +4 -0
- package/src/skia/{ColorFilter → types/ColorFilter}/ColorFilter.ts +0 -0
- package/src/skia/{ColorFilter → types/ColorFilter}/ColorFilterFactory.ts +1 -1
- package/src/skia/{ColorFilter → types/ColorFilter}/index.ts +0 -0
- package/src/skia/{ContourMeasure.tsx → types/ContourMeasure.tsx} +0 -0
- package/src/skia/types/Data/Data.ts +5 -0
- package/src/skia/{Data → types/Data}/DataFactory.ts +0 -0
- package/src/skia/{Data → types/Data}/index.ts +0 -0
- package/src/skia/{Font → types/Font}/Font.ts +1 -1
- package/src/skia/types/Font/index.ts +1 -0
- package/src/skia/{FontMgr → types/FontMgr}/FontMgr.ts +1 -1
- package/src/skia/{FontMgr → types/FontMgr}/FontMgrFactory.ts +1 -6
- package/src/skia/{FontMgr → types/FontMgr}/index.ts +1 -0
- package/src/skia/{Image → types/Image}/Image.ts +2 -2
- package/src/skia/{Image → types/Image}/ImageFactory.ts +0 -0
- package/src/skia/{Image → types/Image}/index.ts +0 -1
- package/src/skia/{ImageFilter → types/ImageFilter}/ImageFilter.ts +0 -0
- package/src/skia/{ImageFilter → types/ImageFilter}/ImageFilterFactory.ts +2 -2
- package/src/skia/{ImageFilter → types/ImageFilter}/index.ts +0 -0
- package/src/skia/{JsiInstance.ts → types/JsiInstance.ts} +0 -0
- package/src/skia/{MaskFilter.ts → types/MaskFilter.ts} +3 -3
- package/src/skia/{Matrix.ts → types/Matrix.ts} +0 -0
- package/src/skia/{Paint → types/Paint}/BlendMode.ts +0 -0
- package/src/skia/{Paint → types/Paint}/Paint.ts +5 -12
- package/src/skia/{Paint → types/Paint}/index.ts +0 -1
- package/src/skia/{Path → types/Path}/Path.ts +0 -0
- package/src/skia/{Path → types/Path}/PathFactory.ts +0 -0
- package/src/skia/{Path → types/Path}/index.ts +0 -1
- package/src/skia/{PathEffect.ts → types/PathEffect.ts} +14 -10
- package/src/skia/{Picture → types/Picture}/Picture.ts +0 -0
- package/src/skia/{Picture → types/Picture}/PictureFactory.ts +0 -0
- package/src/skia/{Picture → types/Picture}/PictureRecorder.ts +0 -0
- package/src/skia/{Picture → types/Picture}/index.ts +0 -1
- package/src/skia/{Point.ts → types/Point.ts} +0 -0
- package/src/skia/{RRect.ts → types/RRect.ts} +0 -0
- package/src/skia/{RSXform.ts → types/RSXform.ts} +0 -0
- package/src/skia/{Rect.ts → types/Rect.ts} +0 -0
- package/src/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffect.ts +1 -8
- package/src/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffectFactory.ts +0 -0
- package/src/skia/{RuntimeEffect → types/RuntimeEffect}/index.ts +0 -0
- package/src/skia/{SVG → types/SVG}/SVG.ts +0 -0
- package/src/skia/{SVG → types/SVG}/SVGFactory.ts +1 -1
- package/src/skia/{SVG → types/SVG}/index.ts +0 -1
- package/src/skia/{Shader → types/Shader}/Shader.ts +0 -0
- package/src/skia/{Shader → types/Shader}/ShaderFactory.ts +0 -0
- package/src/skia/{Shader → types/Shader}/index.ts +0 -1
- package/src/skia/{SkiaApi.ts → types/Skia.ts} +6 -8
- package/src/skia/{Surface → types/Surface}/Surface.ts +0 -0
- package/src/skia/{Surface → types/Surface}/SurfaceFactory.ts +0 -0
- package/src/skia/{Surface → types/Surface}/index.ts +0 -0
- package/src/skia/{TextBlob.ts → types/TextBlob.ts} +0 -0
- package/src/skia/{Typeface → types/Typeface}/Typeface.ts +0 -0
- package/src/skia/{Typeface → types/Typeface}/TypefaceFactory.ts +1 -1
- package/src/skia/{Typeface → types/Typeface}/index.ts +0 -1
- package/src/skia/{Vertices → types/Vertices}/Vertices.tsx +0 -0
- package/src/skia/{Vertices → types/Vertices}/index.ts +0 -0
- package/src/skia/types/index.ts +28 -0
- package/src/skia/web/api/Host.ts +50 -0
- package/src/skia/web/api/JsiSkCanvas.ts +322 -0
- package/src/skia/web/api/JsiSkColor.ts +181 -0
- package/src/skia/web/api/JsiSkColorFilter.ts +14 -0
- package/src/skia/web/api/JsiSkImage.ts +66 -0
- package/src/skia/web/api/JsiSkPaint.ts +103 -0
- package/src/skia/web/api/JsiSkRect.ts +27 -0
- package/src/skia/web/api/JsiSkSurface.ts +25 -0
- package/src/skia/web/api/JsiSkSurfaceFactory.ts +20 -0
- package/src/skia/web/api/index.ts +15 -0
- package/src/skia/web/index.ts +1 -0
- package/src/values/hooks/useValue.ts +2 -2
- package/src/values/hooks/useValueEffect.ts +2 -5
- package/src/values/types.ts +6 -6
- package/src/values/web/RNSkReadonlyValue.ts +2 -2
- package/src/values/web/api.ts +4 -4
- package/src/views/SkiaView.tsx +3 -3
- package/src/views/types.ts +3 -4
- package/cpp/skia/include/core/SkCustomMesh.h +0 -202
- package/cpp/skia/include/core/SkStringView.h +0 -185
- package/cpp/skia/include/private/SkPaintParamsKey.h +0 -110
- package/cpp/skia/include/private/SkShaderCodeDictionary.h +0 -63
- package/cpp/skia/include/private/SkTOptional.h +0 -362
- package/lib/commonjs/skia/Color.js.map +0 -1
- package/lib/commonjs/skia/Data/Data.js.map +0 -1
- package/lib/commonjs/skia/Font/Font.js.map +0 -1
- package/lib/commonjs/skia/Font/useFont.js.map +0 -1
- package/lib/commonjs/skia/Image/index.js.map +0 -1
- package/lib/commonjs/skia/Image/useImage.js.map +0 -1
- package/lib/commonjs/skia/ImageFilter/ImageFilterFactory.js.map +0 -1
- package/lib/commonjs/skia/MaskFilter.js.map +0 -1
- package/lib/commonjs/skia/Paint/Paint.js.map +0 -1
- package/lib/commonjs/skia/Paint/usePaint.js.map +0 -1
- package/lib/commonjs/skia/Path/index.js.map +0 -1
- package/lib/commonjs/skia/Path/usePath.js.map +0 -1
- package/lib/commonjs/skia/PathEffect.js.map +0 -1
- package/lib/commonjs/skia/Picture/index.js.map +0 -1
- package/lib/commonjs/skia/Picture/usePicture.js.map +0 -1
- package/lib/commonjs/skia/SVG/index.js.map +0 -1
- package/lib/commonjs/skia/SVG/useSvg.js +0 -15
- package/lib/commonjs/skia/SVG/useSvg.js.map +0 -1
- package/lib/commonjs/skia/Shader/index.js.map +0 -1
- package/lib/commonjs/skia/Shader/useShader.js.map +0 -1
- package/lib/commonjs/skia/SkiaApi.js +0 -4
- package/lib/commonjs/skia/SkiaApi.js.map +0 -1
- package/lib/commonjs/skia/Typeface/index.js.map +0 -1
- package/lib/commonjs/skia/Typeface/useTypeface.js.map +0 -1
- package/lib/module/skia/Color.js.map +0 -1
- package/lib/module/skia/Data/Data.js +0 -35
- package/lib/module/skia/Data/Data.js.map +0 -1
- package/lib/module/skia/Font/Font.js.map +0 -1
- package/lib/module/skia/Font/index.js +0 -3
- package/lib/module/skia/Font/index.js.map +0 -1
- package/lib/module/skia/Font/useFont.js.map +0 -1
- package/lib/module/skia/FontMgr/index.js +0 -2
- package/lib/module/skia/FontMgr/index.js.map +0 -1
- package/lib/module/skia/Image/index.js +0 -4
- package/lib/module/skia/Image/index.js.map +0 -1
- package/lib/module/skia/Image/useImage.js +0 -8
- package/lib/module/skia/Image/useImage.js.map +0 -1
- package/lib/module/skia/ImageFilter/ImageFilterFactory.js.map +0 -1
- package/lib/module/skia/MaskFilter.js.map +0 -1
- package/lib/module/skia/Paint/Paint.js.map +0 -1
- package/lib/module/skia/Paint/index.js +0 -4
- package/lib/module/skia/Paint/index.js.map +0 -1
- package/lib/module/skia/Paint/usePaint.js.map +0 -1
- package/lib/module/skia/Path/index.js +0 -4
- package/lib/module/skia/Path/index.js.map +0 -1
- package/lib/module/skia/Path/usePath.js.map +0 -1
- package/lib/module/skia/PathEffect.js.map +0 -1
- package/lib/module/skia/Picture/index.js.map +0 -1
- package/lib/module/skia/Picture/usePicture.js.map +0 -1
- package/lib/module/skia/SVG/index.js +0 -4
- package/lib/module/skia/SVG/index.js.map +0 -1
- package/lib/module/skia/SVG/useSvg.js +0 -4
- package/lib/module/skia/SVG/useSvg.js.map +0 -1
- package/lib/module/skia/Shader/index.js +0 -4
- package/lib/module/skia/Shader/index.js.map +0 -1
- package/lib/module/skia/Shader/useShader.js.map +0 -1
- package/lib/module/skia/SkiaApi.js +0 -2
- package/lib/module/skia/SkiaApi.js.map +0 -1
- package/lib/module/skia/Typeface/index.js +0 -4
- package/lib/module/skia/Typeface/index.js.map +0 -1
- package/lib/module/skia/Typeface/useTypeface.js +0 -8
- package/lib/module/skia/Typeface/useTypeface.js.map +0 -1
- package/lib/typescript/src/skia/Data/Data.d.ts +0 -9
- package/lib/typescript/src/skia/Font/index.d.ts +0 -2
- package/lib/typescript/src/skia/Font/useFont.d.ts +0 -6
- package/lib/typescript/src/skia/Image/useImage.d.ts +0 -5
- package/lib/typescript/src/skia/SVG/useSvg.d.ts +0 -2
- package/lib/typescript/src/skia/Typeface/useTypeface.d.ts +0 -5
- package/src/skia/Data/Data.ts +0 -61
- package/src/skia/Font/index.ts +0 -2
- package/src/skia/Image/useImage.ts +0 -9
- package/src/skia/SVG/useSvg.ts +0 -6
- package/src/skia/Typeface/useTypeface.ts +0 -9
@@ -0,0 +1,102 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2021 Google LLC.
|
3
|
+
*
|
4
|
+
* Use of this source code is governed by a BSD-style license that can be
|
5
|
+
* found in the LICENSE file.
|
6
|
+
*/
|
7
|
+
|
8
|
+
#ifndef SKSL_POSITION
|
9
|
+
#define SKSL_POSITION
|
10
|
+
|
11
|
+
#include "include/core/SkTypes.h"
|
12
|
+
#include <string_view>
|
13
|
+
|
14
|
+
namespace SkSL {
|
15
|
+
|
16
|
+
class Position {
|
17
|
+
public:
|
18
|
+
Position()
|
19
|
+
: fStartOffset(-1)
|
20
|
+
, fLength(0) {}
|
21
|
+
|
22
|
+
static Position Range(int startOffset, int endOffset) {
|
23
|
+
SkASSERT(startOffset <= endOffset);
|
24
|
+
SkASSERT(startOffset <= 0xFFFFFF);
|
25
|
+
int length = endOffset - startOffset;
|
26
|
+
Position result;
|
27
|
+
result.fStartOffset = startOffset;
|
28
|
+
result.fLength = length <= 0xFF ? length : 0xFF;
|
29
|
+
return result;
|
30
|
+
}
|
31
|
+
|
32
|
+
bool valid() const {
|
33
|
+
return fStartOffset != -1;
|
34
|
+
}
|
35
|
+
|
36
|
+
int line(std::string_view source) const;
|
37
|
+
|
38
|
+
int startOffset() const {
|
39
|
+
SkASSERT(this->valid());
|
40
|
+
return fStartOffset;
|
41
|
+
}
|
42
|
+
|
43
|
+
int endOffset() const {
|
44
|
+
SkASSERT(this->valid());
|
45
|
+
return fStartOffset + fLength;
|
46
|
+
}
|
47
|
+
|
48
|
+
// Returns the position from this through, and including the entirety of, end.
|
49
|
+
Position rangeThrough(Position end) const {
|
50
|
+
if (fStartOffset == -1 || end.fStartOffset == -1) {
|
51
|
+
return *this;
|
52
|
+
}
|
53
|
+
SkASSERTF(this->startOffset() <= end.startOffset() && this->endOffset() <= end.endOffset(),
|
54
|
+
"Invalid range: (%d-%d) - (%d-%d)\n", this->startOffset(), this->endOffset(),
|
55
|
+
end.startOffset(), end.endOffset());
|
56
|
+
return Range(this->startOffset(), end.endOffset());
|
57
|
+
}
|
58
|
+
|
59
|
+
// Returns a position representing the character immediately after this position
|
60
|
+
Position after() const {
|
61
|
+
int endOffset = this->endOffset();
|
62
|
+
return Range(endOffset, endOffset + 1);
|
63
|
+
}
|
64
|
+
|
65
|
+
bool operator==(const Position& other) const {
|
66
|
+
return fStartOffset == other.fStartOffset && fLength == other.fLength;
|
67
|
+
}
|
68
|
+
|
69
|
+
bool operator!=(const Position& other) const {
|
70
|
+
return !(*this == other);
|
71
|
+
}
|
72
|
+
|
73
|
+
bool operator>(const Position& other) const {
|
74
|
+
return fStartOffset > other.fStartOffset;
|
75
|
+
}
|
76
|
+
|
77
|
+
bool operator>=(const Position& other) const {
|
78
|
+
return fStartOffset >= other.fStartOffset;
|
79
|
+
}
|
80
|
+
|
81
|
+
bool operator<(const Position& other) const {
|
82
|
+
return fStartOffset < other.fStartOffset;
|
83
|
+
}
|
84
|
+
|
85
|
+
bool operator<=(const Position& other) const {
|
86
|
+
return fStartOffset <= other.fStartOffset;
|
87
|
+
}
|
88
|
+
|
89
|
+
private:
|
90
|
+
int32_t fStartOffset : 24;
|
91
|
+
uint32_t fLength : 8;
|
92
|
+
};
|
93
|
+
|
94
|
+
struct ForLoopPositions {
|
95
|
+
Position initPosition = Position();
|
96
|
+
Position conditionPosition = Position();
|
97
|
+
Position nextPosition = Position();
|
98
|
+
};
|
99
|
+
|
100
|
+
} // namespace SkSL
|
101
|
+
|
102
|
+
#endif
|
@@ -8,9 +8,13 @@
|
|
8
8
|
#ifndef SkSVGCanvas_DEFINED
|
9
9
|
#define SkSVGCanvas_DEFINED
|
10
10
|
|
11
|
-
#include "include/core/
|
11
|
+
#include "include/core/SkTypes.h"
|
12
12
|
|
13
|
+
#include <memory>
|
14
|
+
|
15
|
+
class SkCanvas;
|
13
16
|
class SkWStream;
|
17
|
+
struct SkRect;
|
14
18
|
|
15
19
|
class SK_API SkSVGCanvas {
|
16
20
|
public:
|
@@ -9,6 +9,13 @@
|
|
9
9
|
#define SkAnimCodecPlayer_DEFINED
|
10
10
|
|
11
11
|
#include "include/codec/SkCodec.h"
|
12
|
+
#include "include/core/SkImageInfo.h"
|
13
|
+
#include "include/core/SkRefCnt.h"
|
14
|
+
#include "include/core/SkSize.h"
|
15
|
+
|
16
|
+
#include <stdint.h>
|
17
|
+
#include <memory>
|
18
|
+
#include <vector>
|
12
19
|
|
13
20
|
class SkImage;
|
14
21
|
|
@@ -12,6 +12,8 @@
|
|
12
12
|
|
13
13
|
#include "include/core/SkM44.h"
|
14
14
|
#include "include/core/SkMatrix.h"
|
15
|
+
#include "include/core/SkScalar.h"
|
16
|
+
#include "include/core/SkTypes.h"
|
15
17
|
#include "include/private/SkNoncopyable.h"
|
16
18
|
|
17
19
|
// NOTE -- This entire header / impl is deprecated, and will be removed from Skia soon.
|
@@ -10,15 +10,17 @@
|
|
10
10
|
|
11
11
|
#include "include/core/SkFontMetrics.h"
|
12
12
|
#include "include/core/SkFontStyle.h"
|
13
|
-
#include "include/core/SkImage.h"
|
14
|
-
#include "include/core/SkPaint.h"
|
15
13
|
#include "include/core/SkPath.h"
|
16
|
-
#include "include/core/
|
17
|
-
#include "include/core/
|
14
|
+
#include "include/core/SkRefCnt.h"
|
15
|
+
#include "include/core/SkTypes.h"
|
18
16
|
|
19
17
|
#include <vector>
|
20
18
|
|
19
|
+
class SkImage;
|
20
|
+
class SkPaint;
|
21
|
+
class SkPicture;
|
21
22
|
class SkStream;
|
23
|
+
class SkTypeface;
|
22
24
|
|
23
25
|
class SkCustomTypefaceBuilder {
|
24
26
|
public:
|
@@ -9,10 +9,41 @@
|
|
9
9
|
#ifndef SkNWayCanvas_DEFINED
|
10
10
|
#define SkNWayCanvas_DEFINED
|
11
11
|
|
12
|
+
#include "include/core/SkBlendMode.h"
|
13
|
+
#include "include/core/SkCanvas.h"
|
12
14
|
#include "include/core/SkCanvasVirtualEnforcer.h"
|
15
|
+
#include "include/core/SkClipOp.h"
|
16
|
+
#include "include/core/SkColor.h"
|
17
|
+
#include "include/core/SkM44.h"
|
18
|
+
#include "include/core/SkRefCnt.h"
|
19
|
+
#include "include/core/SkSamplingOptions.h"
|
20
|
+
#include "include/core/SkScalar.h"
|
21
|
+
#include "include/core/SkTypes.h"
|
13
22
|
#include "include/private/SkTDArray.h"
|
14
23
|
#include "include/utils/SkNoDrawCanvas.h"
|
15
24
|
|
25
|
+
class SkData;
|
26
|
+
class SkDrawable;
|
27
|
+
class SkGlyphRunList;
|
28
|
+
class SkImage;
|
29
|
+
class SkMatrix;
|
30
|
+
class SkPaint;
|
31
|
+
class SkPath;
|
32
|
+
class SkPicture;
|
33
|
+
class SkRRect;
|
34
|
+
class SkRegion;
|
35
|
+
class SkShader;
|
36
|
+
class SkTextBlob;
|
37
|
+
class SkVertices;
|
38
|
+
struct SkDrawShadowRec;
|
39
|
+
struct SkPoint;
|
40
|
+
struct SkRSXform;
|
41
|
+
struct SkRect;
|
42
|
+
|
43
|
+
#if SK_SUPPORT_GPU
|
44
|
+
class GrSlug;
|
45
|
+
#endif
|
46
|
+
|
16
47
|
class SK_API SkNWayCanvas : public SkCanvasVirtualEnforcer<SkNoDrawCanvas> {
|
17
48
|
public:
|
18
49
|
SkNWayCanvas(int width, int height);
|
@@ -39,6 +70,9 @@ protected:
|
|
39
70
|
void onDrawGlyphRunList(const SkGlyphRunList&, const SkPaint&) override;
|
40
71
|
void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y,
|
41
72
|
const SkPaint& paint) override;
|
73
|
+
#if SK_SUPPORT_GPU
|
74
|
+
void onDrawSlug(const GrSlug* slug) override;
|
75
|
+
#endif
|
42
76
|
void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
43
77
|
const SkPoint texCoords[4], SkBlendMode, const SkPaint& paint) override;
|
44
78
|
|
@@ -8,7 +8,11 @@
|
|
8
8
|
#ifndef SkNullCanvas_DEFINED
|
9
9
|
#define SkNullCanvas_DEFINED
|
10
10
|
|
11
|
-
#include "include/core/
|
11
|
+
#include "include/core/SkTypes.h"
|
12
|
+
|
13
|
+
#include <memory>
|
14
|
+
|
15
|
+
class SkCanvas;
|
12
16
|
|
13
17
|
/**
|
14
18
|
* Creates a canvas that draws nothing. This is useful for performance testing.
|
@@ -9,7 +9,19 @@
|
|
9
9
|
#define SkOrderedFontMgr_DEFINED
|
10
10
|
|
11
11
|
#include "include/core/SkFontMgr.h"
|
12
|
+
#include "include/core/SkRefCnt.h"
|
13
|
+
#include "include/core/SkTypes.h"
|
14
|
+
|
15
|
+
#include <memory>
|
12
16
|
#include <vector>
|
17
|
+
|
18
|
+
class SkData;
|
19
|
+
class SkFontStyle;
|
20
|
+
class SkStreamAsset;
|
21
|
+
class SkString;
|
22
|
+
class SkTypeface;
|
23
|
+
struct SkFontArguments;
|
24
|
+
|
13
25
|
/**
|
14
26
|
* Collects an order list of other font managers, and visits them in order
|
15
27
|
* when a request to find or match is issued.
|
@@ -8,10 +8,39 @@
|
|
8
8
|
#ifndef SkPaintFilterCanvas_DEFINED
|
9
9
|
#define SkPaintFilterCanvas_DEFINED
|
10
10
|
|
11
|
+
#include "include/core/SkBlendMode.h"
|
12
|
+
#include "include/core/SkCanvas.h"
|
11
13
|
#include "include/core/SkCanvasVirtualEnforcer.h"
|
14
|
+
#include "include/core/SkColor.h"
|
15
|
+
#include "include/core/SkImageInfo.h"
|
16
|
+
#include "include/core/SkRefCnt.h"
|
17
|
+
#include "include/core/SkSamplingOptions.h"
|
18
|
+
#include "include/core/SkScalar.h"
|
19
|
+
#include "include/core/SkSize.h"
|
20
|
+
#include "include/core/SkTypes.h"
|
21
|
+
#include "include/private/SkTDArray.h"
|
12
22
|
#include "include/utils/SkNWayCanvas.h"
|
13
23
|
|
14
|
-
class
|
24
|
+
class GrRecordingContext;
|
25
|
+
class SkData;
|
26
|
+
class SkDrawable;
|
27
|
+
class SkGlyphRunList;
|
28
|
+
class SkImage;
|
29
|
+
class SkMatrix;
|
30
|
+
class SkPaint;
|
31
|
+
class SkPath;
|
32
|
+
class SkPicture;
|
33
|
+
class SkPixmap;
|
34
|
+
class SkRRect;
|
35
|
+
class SkRegion;
|
36
|
+
class SkSurface;
|
37
|
+
class SkSurfaceProps;
|
38
|
+
class SkTextBlob;
|
39
|
+
class SkVertices;
|
40
|
+
struct SkDrawShadowRec;
|
41
|
+
struct SkPoint;
|
42
|
+
struct SkRSXform;
|
43
|
+
struct SkRect;
|
15
44
|
|
16
45
|
/** \class SkPaintFilterCanvas
|
17
46
|
|
@@ -9,14 +9,15 @@
|
|
9
9
|
#define SkShadowUtils_DEFINED
|
10
10
|
|
11
11
|
#include "include/core/SkColor.h"
|
12
|
-
#include "include/core/SkPoint3.h"
|
13
12
|
#include "include/core/SkScalar.h"
|
13
|
+
#include "include/core/SkTypes.h"
|
14
14
|
#include "include/private/SkShadowFlags.h"
|
15
15
|
|
16
16
|
class SkCanvas;
|
17
17
|
class SkMatrix;
|
18
18
|
class SkPath;
|
19
|
-
|
19
|
+
struct SkPoint3;
|
20
|
+
struct SkRect;
|
20
21
|
|
21
22
|
class SK_API SkShadowUtils {
|
22
23
|
public:
|
@@ -8,11 +8,15 @@
|
|
8
8
|
#ifndef SkTextUtils_DEFINED
|
9
9
|
#define SkTextUtils_DEFINED
|
10
10
|
|
11
|
-
#include "include/core/
|
12
|
-
#include "include/core/
|
13
|
-
#include "include/core/
|
14
|
-
#include "include/core/SkString.h"
|
11
|
+
#include "include/core/SkFontTypes.h"
|
12
|
+
#include "include/core/SkScalar.h"
|
13
|
+
#include "include/core/SkTypes.h"
|
15
14
|
|
15
|
+
#include <string.h>
|
16
|
+
|
17
|
+
class SkCanvas;
|
18
|
+
class SkFont;
|
19
|
+
class SkPaint;
|
16
20
|
class SkPath;
|
17
21
|
|
18
22
|
class SK_API SkTextUtils {
|
@@ -71,6 +71,26 @@ public:
|
|
71
71
|
}
|
72
72
|
|
73
73
|
private:
|
74
|
+
class RestoreCurPos {
|
75
|
+
public:
|
76
|
+
explicit RestoreCurPos(SkSVGAttributeParser* self)
|
77
|
+
: fSelf(self), fCurPos(self->fCurPos) {}
|
78
|
+
|
79
|
+
~RestoreCurPos() {
|
80
|
+
if (fSelf) {
|
81
|
+
fSelf->fCurPos = this->fCurPos;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
void clear() { fSelf = nullptr; }
|
86
|
+
private:
|
87
|
+
SkSVGAttributeParser* fSelf;
|
88
|
+
const char* fCurPos;
|
89
|
+
|
90
|
+
RestoreCurPos( const RestoreCurPos&) = delete;
|
91
|
+
RestoreCurPos& operator=(const RestoreCurPos&) = delete;
|
92
|
+
};
|
93
|
+
|
74
94
|
// Stack-only
|
75
95
|
void* operator new(size_t) = delete;
|
76
96
|
void* operator new(size_t, void*) = delete;
|
@@ -82,6 +102,7 @@ private:
|
|
82
102
|
bool advanceWhile(F func);
|
83
103
|
|
84
104
|
bool matchStringToken(const char* token, const char** newPos = nullptr) const;
|
105
|
+
bool matchHexToken(const char** newPos) const;
|
85
106
|
|
86
107
|
bool parseWSToken();
|
87
108
|
bool parseEOSToken();
|
@@ -90,12 +111,16 @@ private:
|
|
90
111
|
bool parseExpectedStringToken(const char*);
|
91
112
|
bool parseScalarToken(SkScalar*);
|
92
113
|
bool parseInt32Token(int32_t*);
|
93
|
-
bool
|
114
|
+
bool parseEscape(SkUnichar*);
|
115
|
+
bool parseIdentToken(SkString*);
|
94
116
|
bool parseLengthUnitToken(SkSVGLength::Unit*);
|
95
117
|
bool parseNamedColorToken(SkColor*);
|
96
118
|
bool parseHexColorToken(SkColor*);
|
97
119
|
bool parseColorComponentToken(int32_t*);
|
120
|
+
bool parseColorToken(SkColor*);
|
98
121
|
bool parseRGBColorToken(SkColor*);
|
122
|
+
bool parseSVGColor(SkSVGColor*, SkSVGColor::Vars&&);
|
123
|
+
bool parseSVGColorType(SkSVGColorType*);
|
99
124
|
bool parseFuncIRI(SkSVGFuncIRI*);
|
100
125
|
|
101
126
|
// Transform helpers
|
@@ -127,6 +152,7 @@ private:
|
|
127
152
|
|
128
153
|
// The current position in the input string.
|
129
154
|
const char* fCurPos;
|
155
|
+
const char* fEndPos;
|
130
156
|
|
131
157
|
using INHERITED = SkNoncopyable;
|
132
158
|
};
|
@@ -19,6 +19,7 @@ class SkCanvas;
|
|
19
19
|
class SkDOM;
|
20
20
|
class SkStream;
|
21
21
|
class SkSVGNode;
|
22
|
+
struct SkSVGPresentationContext;
|
22
23
|
class SkSVGSVG;
|
23
24
|
|
24
25
|
class SkSVGDOM : public SkRefCnt {
|
@@ -81,6 +82,9 @@ public:
|
|
81
82
|
|
82
83
|
void render(SkCanvas*) const;
|
83
84
|
|
85
|
+
/** Render the node with the given id as if it were the only child of the root. */
|
86
|
+
void renderNode(SkCanvas*, SkSVGPresentationContext&, const char* id) const;
|
87
|
+
|
84
88
|
private:
|
85
89
|
SkSVGDOM(sk_sp<SkSVGSVG>, sk_sp<SkFontMgr>, sk_sp<skresources::ResourceProvider>,
|
86
90
|
SkSVGIDMapper&&);
|
@@ -0,0 +1,32 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2022 Google Inc.
|
3
|
+
*
|
4
|
+
* Use of this source code is governed by a BSD-style license that can be
|
5
|
+
* found in the LICENSE file.
|
6
|
+
*/
|
7
|
+
|
8
|
+
#ifndef SkSVGOpenTypeSVGDecoder_DEFINED
|
9
|
+
#define SkSVGOpenTypeSVGDecoder_DEFINED
|
10
|
+
|
11
|
+
#include "include/core/SkColor.h"
|
12
|
+
#include "include/core/SkOpenTypeSVGDecoder.h"
|
13
|
+
#include "include/core/SkSpan.h"
|
14
|
+
#include "include/core/SkTypes.h"
|
15
|
+
|
16
|
+
class SkCanvas;
|
17
|
+
class SkSVGDOM;
|
18
|
+
|
19
|
+
class SkSVGOpenTypeSVGDecoder : public SkOpenTypeSVGDecoder {
|
20
|
+
public:
|
21
|
+
static std::unique_ptr<SkOpenTypeSVGDecoder> Make(const uint8_t* svg, size_t svgLength);
|
22
|
+
size_t approximateSize() override;
|
23
|
+
bool render(SkCanvas&, int upem, SkGlyphID glyphId,
|
24
|
+
SkColor foregroundColor, SkSpan<SkColor> palette) override;
|
25
|
+
~SkSVGOpenTypeSVGDecoder() override;
|
26
|
+
private:
|
27
|
+
SkSVGOpenTypeSVGDecoder(sk_sp<SkSVGDOM> skSvg, size_t approximateSize);
|
28
|
+
sk_sp<SkSVGDOM> fSkSvg;
|
29
|
+
size_t fApproximateSize;
|
30
|
+
};
|
31
|
+
|
32
|
+
#endif // SkSVGOpenTypeSVGDecoder_DEFINED
|
@@ -15,6 +15,7 @@
|
|
15
15
|
#include "include/core/SkRect.h"
|
16
16
|
#include "include/core/SkSize.h"
|
17
17
|
#include "include/core/SkTypes.h"
|
18
|
+
#include "include/private/SkTHash.h"
|
18
19
|
#include "modules/skresources/include/SkResources.h"
|
19
20
|
#include "modules/svg/include/SkSVGAttribute.h"
|
20
21
|
#include "modules/svg/include/SkSVGIDMapper.h"
|
@@ -51,6 +52,8 @@ struct SkSVGPresentationContext {
|
|
51
52
|
SkSVGPresentationContext(const SkSVGPresentationContext&) = default;
|
52
53
|
SkSVGPresentationContext& operator=(const SkSVGPresentationContext&) = default;
|
53
54
|
|
55
|
+
const SkTHashMap<SkString, SkSVGColorType>* fNamedColors = nullptr;
|
56
|
+
|
54
57
|
// Inherited presentation attributes, computed for the current node.
|
55
58
|
SkSVGPresentationAttributes fInherited;
|
56
59
|
};
|
@@ -97,9 +100,6 @@ public:
|
|
97
100
|
}
|
98
101
|
}
|
99
102
|
|
100
|
-
// Required until C++17 copy elision
|
101
|
-
BorrowedNode(BorrowedNode&&) = default;
|
102
|
-
|
103
103
|
~BorrowedNode() {
|
104
104
|
if (fOwner) {
|
105
105
|
*fOwner = std::move(fBorrowed);
|
@@ -13,7 +13,9 @@
|
|
13
13
|
#include "include/core/SkPath.h"
|
14
14
|
#include "include/core/SkPoint.h"
|
15
15
|
#include "include/core/SkRect.h"
|
16
|
+
#include "include/core/SkRefCnt.h"
|
16
17
|
#include "include/core/SkScalar.h"
|
18
|
+
#include "include/core/SkSpan.h"
|
17
19
|
#include "include/core/SkString.h"
|
18
20
|
#include "include/core/SkTypes.h"
|
19
21
|
#include "include/private/SkTDArray.h"
|
@@ -81,13 +83,25 @@ public:
|
|
81
83
|
fValue.set(std::move(value));
|
82
84
|
}
|
83
85
|
|
84
|
-
T* operator->()
|
86
|
+
T* operator->() {
|
85
87
|
SkASSERT(fState == SkSVGPropertyState::kValue);
|
86
88
|
SkASSERT(fValue.isValid());
|
87
89
|
return fValue.get();
|
88
90
|
}
|
89
91
|
|
90
|
-
T
|
92
|
+
const T* operator->() const {
|
93
|
+
SkASSERT(fState == SkSVGPropertyState::kValue);
|
94
|
+
SkASSERT(fValue.isValid());
|
95
|
+
return fValue.get();
|
96
|
+
}
|
97
|
+
|
98
|
+
T& operator*() {
|
99
|
+
SkASSERT(fState == SkSVGPropertyState::kValue);
|
100
|
+
SkASSERT(fValue.isValid());
|
101
|
+
return *fValue;
|
102
|
+
}
|
103
|
+
|
104
|
+
const T& operator*() const {
|
91
105
|
SkASSERT(fState == SkSVGPropertyState::kValue);
|
92
106
|
SkASSERT(fValue.isValid());
|
93
107
|
return *fValue;
|
@@ -166,21 +180,44 @@ public:
|
|
166
180
|
kColor,
|
167
181
|
kICCColor,
|
168
182
|
};
|
183
|
+
using Vars = SkSTArray<1, SkString>;
|
184
|
+
|
185
|
+
SkSVGColor() : SkSVGColor(SK_ColorBLACK) {}
|
186
|
+
explicit SkSVGColor(const SkSVGColorType& c) : fType(Type::kColor), fColor(c), fVars(nullptr) {}
|
187
|
+
explicit SkSVGColor(Type t, Vars&& vars)
|
188
|
+
: fType(t), fColor(SK_ColorBLACK)
|
189
|
+
, fVars(vars.empty() ? nullptr : new RefCntVars(std::move(vars))) {}
|
190
|
+
explicit SkSVGColor(const SkSVGColorType& c, Vars&& vars)
|
191
|
+
: fType(Type::kColor), fColor(c)
|
192
|
+
, fVars(vars.empty() ? nullptr : new RefCntVars(std::move(vars))) {}
|
193
|
+
|
194
|
+
SkSVGColor(const SkSVGColor&) = default;
|
195
|
+
SkSVGColor& operator=(const SkSVGColor&) = default;
|
196
|
+
SkSVGColor(SkSVGColor&&) = default;
|
197
|
+
SkSVGColor& operator=(SkSVGColor&&) = default;
|
169
198
|
|
170
|
-
SkSVGColor() : fType(Type::kColor), fColor(SK_ColorBLACK) {}
|
171
|
-
explicit SkSVGColor(Type t) : fType(t), fColor(SK_ColorBLACK) {}
|
172
|
-
explicit SkSVGColor(const SkSVGColorType& c) : fType(Type::kColor), fColor(c) {}
|
173
199
|
bool operator==(const SkSVGColor& other) const {
|
174
|
-
return fType == other.fType && fColor == other.fColor;
|
200
|
+
return fType == other.fType && fColor == other.fColor && fVars == other.fVars;
|
175
201
|
}
|
176
202
|
bool operator!=(const SkSVGColor& other) const { return !(*this == other); }
|
177
203
|
|
178
204
|
Type type() const { return fType; }
|
179
205
|
const SkSVGColorType& color() const { SkASSERT(fType == Type::kColor); return fColor; }
|
206
|
+
SkSpan<const SkString> vars() const {
|
207
|
+
return fVars ? SkMakeSpan<const Vars>(fVars->fData) : SkSpan<const SkString>{nullptr, 0};
|
208
|
+
}
|
209
|
+
SkSpan< SkString> vars() {
|
210
|
+
return fVars ? SkMakeSpan< Vars>(fVars->fData) : SkSpan< SkString>{nullptr, 0};
|
211
|
+
}
|
180
212
|
|
181
213
|
private:
|
182
214
|
Type fType;
|
183
215
|
SkSVGColorType fColor;
|
216
|
+
struct RefCntVars : public SkNVRefCnt<RefCntVars> {
|
217
|
+
RefCntVars(Vars&& vars) : fData(std::move(vars)) {}
|
218
|
+
Vars fData;
|
219
|
+
};
|
220
|
+
sk_sp<RefCntVars> fVars;
|
184
221
|
};
|
185
222
|
|
186
223
|
class SkSVGPaint {
|
@@ -193,12 +230,14 @@ public:
|
|
193
230
|
|
194
231
|
SkSVGPaint() : fType(Type::kNone), fColor(SK_ColorBLACK) {}
|
195
232
|
explicit SkSVGPaint(Type t) : fType(t), fColor(SK_ColorBLACK) {}
|
196
|
-
explicit SkSVGPaint(
|
197
|
-
SkSVGPaint(const SkSVGIRI& iri,
|
198
|
-
: fType(Type::kIRI), fColor(fallback_color), fIRI(iri) {}
|
233
|
+
explicit SkSVGPaint(SkSVGColor c) : fType(Type::kColor), fColor(std::move(c)) {}
|
234
|
+
SkSVGPaint(const SkSVGIRI& iri, SkSVGColor fallback_color)
|
235
|
+
: fType(Type::kIRI), fColor(std::move(fallback_color)), fIRI(iri) {}
|
199
236
|
|
200
237
|
SkSVGPaint(const SkSVGPaint&) = default;
|
201
238
|
SkSVGPaint& operator=(const SkSVGPaint&) = default;
|
239
|
+
SkSVGPaint(SkSVGPaint&&) = default;
|
240
|
+
SkSVGPaint& operator=(SkSVGPaint&&) = default;
|
202
241
|
|
203
242
|
bool operator==(const SkSVGPaint& other) const {
|
204
243
|
return fType == other.fType && fColor == other.fColor && fIRI == other.fIRI;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["runDecay.ts"],"names":["runDecay","value","config","resolvedConfig","deceleration","velocityFactor","velocity","from","current","updateFunction","t","state","finished","lastTimestamp","startTimestamp","initialVelocity","animation","ValueApi","createAnimation"],"mappings":";;;;;;;AAAA;;AAGA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,QAAQ,GAAG,
|
1
|
+
{"version":3,"sources":["runDecay.ts"],"names":["runDecay","value","config","resolvedConfig","deceleration","velocityFactor","velocity","from","current","updateFunction","t","state","finished","lastTimestamp","startTimestamp","initialVelocity","animation","ValueApi","createAnimation"],"mappings":";;;;;;;AAAA;;AAGA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,QAAQ,GAAG,CACtBC,KADsB,EAEtBC,MAFsB,KAGnB;AACH,QAAMC,cAAkC,GAAG;AACzCC,IAAAA,YAAY,EAAE,KAD2B;AAEzCC,IAAAA,cAAc,EAAE,CAFyB;AAGzCC,IAAAA,QAAQ,EAAE,CAH+B;AAIzCC,IAAAA,IAAI,EAAEN,KAAK,CAACO,OAJ6B;AAKzC,OAAGN;AALsC,GAA3C;;AAOA,QAAMO,cAAc,GAAG,CAACC,CAAD,EAAYC,KAAZ,KAA8C;AACnE,QAAI,CAACA,KAAL,EAAY;AACV,aAAO;AACLH,QAAAA,OAAO,EAAEL,cAAc,CAACI,IADnB;AAELK,QAAAA,QAAQ,EAAE,KAFL;AAGLC,QAAAA,aAAa,EAAEH,CAHV;AAILI,QAAAA,cAAc,EAAEJ,CAJX;AAKLK,QAAAA,eAAe,EAAEZ,cAAc,CAACG,QAL3B;AAMLA,QAAAA,QAAQ,EAAEH,cAAc,CAACG;AANpB,OAAP;AAQD;;AACD,WAAO,kBAAMI,CAAN,EAASC,KAAT,EAAgBR,cAAhB,CAAP;AACD,GAZD;;AAaAF,EAAAA,KAAK,CAACe,SAAN,GAAkBC,cAASC,eAAT,CAAyBT,cAAzB,CAAlB;AACA,SAAOR,KAAK,CAACe,SAAb;AACD,CA1BM","sourcesContent":["import { ValueApi } from \"../../values/api\";\nimport type { SkiaMutableValue } from \"../../values/types\";\n\nimport { decay } from \"./decay\";\nimport type { DecayConfig, DefaultDecayConfig, DecayState } from \"./types\";\n\n/**\n * Runs a decay animation from the current value to zero with the given decay\n * configuration.\n * @param value value to animate\n * @param config Configuration or default configuration\n * @returns Animation\n */\nexport const runDecay = (\n value: SkiaMutableValue<number>,\n config?: DecayConfig\n) => {\n const resolvedConfig: DefaultDecayConfig = {\n deceleration: 0.998,\n velocityFactor: 1,\n velocity: 0,\n from: value.current,\n ...config,\n };\n const updateFunction = (t: number, state: DecayState | undefined) => {\n if (!state) {\n return {\n current: resolvedConfig.from,\n finished: false,\n lastTimestamp: t,\n startTimestamp: t,\n initialVelocity: resolvedConfig.velocity,\n velocity: resolvedConfig.velocity,\n };\n }\n return decay(t, state, resolvedConfig);\n };\n value.animation = ValueApi.createAnimation(updateFunction);\n return value.animation;\n};\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["interpolateColors.ts"],"names":["interpolateColorsRGB","value","inputRange","outputRange","r","map","c","g","b","a","Float32Array","interpolateColors","_outputRange","cl","Skia","Color","mixColors","x","y","c1","c2"],"mappings":";;;;;;;AAAA;;AAEA;;
|
1
|
+
{"version":3,"sources":["interpolateColors.ts"],"names":["interpolateColorsRGB","value","inputRange","outputRange","r","map","c","g","b","a","Float32Array","interpolateColors","_outputRange","cl","Skia","Color","mixColors","x","y","c1","c2"],"mappings":";;;;;;;AAAA;;AAEA;;AAEA;;AAEA,MAAMA,oBAAoB,GAAG,CAC3BC,KAD2B,EAE3BC,UAF2B,EAG3BC,WAH2B,KAIxB;AACH,QAAMC,CAAC,GAAG,8BACRH,KADQ,EAERC,UAFQ,EAGRC,WAAW,CAACE,GAAZ,CAAiBC,CAAD,IAAOA,CAAC,CAAC,CAAD,CAAxB,CAHQ,EAIR,OAJQ,CAAV;AAMA,QAAMC,CAAC,GAAG,8BACRN,KADQ,EAERC,UAFQ,EAGRC,WAAW,CAACE,GAAZ,CAAiBC,CAAD,IAAOA,CAAC,CAAC,CAAD,CAAxB,CAHQ,EAIR,OAJQ,CAAV;AAMA,QAAME,CAAC,GAAG,8BACRP,KADQ,EAERC,UAFQ,EAGRC,WAAW,CAACE,GAAZ,CAAiBC,CAAD,IAAOA,CAAC,CAAC,CAAD,CAAxB,CAHQ,EAIR,OAJQ,CAAV;AAMA,QAAMG,CAAC,GAAG,8BACRR,KADQ,EAERC,UAFQ,EAGRC,WAAW,CAACE,GAAZ,CAAiBC,CAAD,IAAOA,CAAC,CAAC,CAAD,CAAxB,CAHQ,EAIR,OAJQ,CAAV;AAMA,SAAO,IAAII,YAAJ,CAAiB,CAACN,CAAD,EAAIG,CAAJ,EAAOC,CAAP,EAAUC,CAAV,CAAjB,CAAP;AACD,CA9BD;;AAgCO,MAAME,iBAAiB,GAAG,CAC/BV,KAD+B,EAE/BC,UAF+B,EAG/BU,YAH+B,KAI5B;AACH,QAAMT,WAAW,GAAGS,YAAY,CAACP,GAAb,CAAkBQ,EAAD,IAAQC,WAAKC,KAAL,CAAWF,EAAX,CAAzB,CAApB;;AACA,SAAOb,oBAAoB,CAACC,KAAD,EAAQC,UAAR,EAAoBC,WAApB,CAA3B;AACD,CAPM;;;;AASA,MAAMa,SAAS,GAAG,CAACf,KAAD,EAAgBgB,CAAhB,EAA0BC,CAA1B,KAAuC;AAC9D,QAAMC,EAAE,GAAGL,WAAKC,KAAL,CAAWE,CAAX,CAAX;;AACA,QAAMG,EAAE,GAAGN,WAAKC,KAAL,CAAWG,CAAX,CAAX;;AACA,SAAO,IAAIR,YAAJ,CAAiB,CACtB,mBAAIT,KAAJ,EAAWkB,EAAE,CAAC,CAAD,CAAb,EAAkBC,EAAE,CAAC,CAAD,CAApB,CADsB,EAEtB,mBAAInB,KAAJ,EAAWkB,EAAE,CAAC,CAAD,CAAb,EAAkBC,EAAE,CAAC,CAAD,CAApB,CAFsB,EAGtB,mBAAInB,KAAJ,EAAWkB,EAAE,CAAC,CAAD,CAAb,EAAkBC,EAAE,CAAC,CAAD,CAApB,CAHsB,EAItB,mBAAInB,KAAJ,EAAWkB,EAAE,CAAC,CAAD,CAAb,EAAkBC,EAAE,CAAC,CAAD,CAApB,CAJsB,CAAjB,CAAP;AAMD,CATM","sourcesContent":["import { mix } from \"../../renderer\";\nimport type { Color, SkColor } from \"../../skia\";\nimport { Skia } from \"../../skia\";\n\nimport { interpolate } from \"./interpolate\";\n\nconst interpolateColorsRGB = (\n value: number,\n inputRange: number[],\n outputRange: SkColor[]\n) => {\n const r = interpolate(\n value,\n inputRange,\n outputRange.map((c) => c[0]),\n \"clamp\"\n );\n const g = interpolate(\n value,\n inputRange,\n outputRange.map((c) => c[1]),\n \"clamp\"\n );\n const b = interpolate(\n value,\n inputRange,\n outputRange.map((c) => c[2]),\n \"clamp\"\n );\n const a = interpolate(\n value,\n inputRange,\n outputRange.map((c) => c[3]),\n \"clamp\"\n );\n return new Float32Array([r, g, b, a]);\n};\n\nexport const interpolateColors = (\n value: number,\n inputRange: number[],\n _outputRange: Color[]\n) => {\n const outputRange = _outputRange.map((cl) => Skia.Color(cl));\n return interpolateColorsRGB(value, inputRange, outputRange);\n};\n\nexport const mixColors = (value: number, x: Color, y: Color) => {\n const c1 = Skia.Color(x);\n const c2 = Skia.Color(y);\n return new Float32Array([\n mix(value, c1[0], c2[0]),\n mix(value, c1[1], c2[1]),\n mix(value, c1[2], c2[2]),\n mix(value, c1[3], c2[3]),\n ]);\n};\n"]}
|