@pompadour/react-native-skia 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE.md +7 -0
- package/README.md +9 -0
- package/android/CMakeLists.txt +242 -0
- package/android/README.md +14 -0
- package/android/build.gradle +352 -0
- package/android/cpp/jni/JniLoad.cpp +15 -0
- package/android/cpp/jni/JniPlatformContext.cpp +243 -0
- package/android/cpp/jni/JniSkiaManager.cpp +74 -0
- package/android/cpp/jni/include/JniPlatformContext.h +73 -0
- package/android/cpp/jni/include/JniSkiaBaseView.h +70 -0
- package/android/cpp/jni/include/JniSkiaDomView.h +89 -0
- package/android/cpp/jni/include/JniSkiaManager.h +76 -0
- package/android/cpp/jni/include/JniSkiaPictureView.h +92 -0
- package/android/cpp/rnskia-android/AHardwareBufferUtils.cpp +31 -0
- package/android/cpp/rnskia-android/AHardwareBufferUtils.h +13 -0
- package/android/cpp/rnskia-android/GrAHardwareBufferUtils.cpp +245 -0
- package/android/cpp/rnskia-android/GrAHardwareBufferUtils.h +33 -0
- package/android/cpp/rnskia-android/RNSkAndroidPlatformContext.h +152 -0
- package/android/cpp/rnskia-android/RNSkAndroidVideo.cpp +163 -0
- package/android/cpp/rnskia-android/RNSkAndroidVideo.h +41 -0
- package/android/cpp/rnskia-android/RNSkAndroidView.h +101 -0
- package/android/cpp/rnskia-android/RNSkOpenGLCanvasProvider.cpp +87 -0
- package/android/cpp/rnskia-android/RNSkOpenGLCanvasProvider.h +39 -0
- package/android/cpp/rnskia-android/SkiaOpenGLHelper.h +310 -0
- package/android/cpp/rnskia-android/SkiaOpenGLSurfaceFactory.cpp +221 -0
- package/android/cpp/rnskia-android/SkiaOpenGLSurfaceFactory.h +168 -0
- package/android/src/main/AndroidManifest.xml +6 -0
- package/android/src/main/java/com/shopify/reactnative/skia/PlatformContext.java +195 -0
- package/android/src/main/java/com/shopify/reactnative/skia/RNSkVideo.java +266 -0
- package/android/src/main/java/com/shopify/reactnative/skia/RNSkiaModule.java +87 -0
- package/android/src/main/java/com/shopify/reactnative/skia/RNSkiaPackage.java +77 -0
- package/android/src/main/java/com/shopify/reactnative/skia/SkiaBaseView.java +180 -0
- package/android/src/main/java/com/shopify/reactnative/skia/SkiaBaseViewManager.java +34 -0
- package/android/src/main/java/com/shopify/reactnative/skia/SkiaDomView.java +45 -0
- package/android/src/main/java/com/shopify/reactnative/skia/SkiaDomViewManager.java +32 -0
- package/android/src/main/java/com/shopify/reactnative/skia/SkiaManager.java +57 -0
- package/android/src/main/java/com/shopify/reactnative/skia/SkiaPictureView.java +44 -0
- package/android/src/main/java/com/shopify/reactnative/skia/SkiaPictureViewManager.java +33 -0
- package/android/src/main/java/com/shopify/reactnative/skia/ViewScreenshotService.java +194 -0
- package/android/src/paper/java/com/facebook/react/viewmanagers/SkiaDomViewManagerDelegate.java +34 -0
- package/android/src/paper/java/com/facebook/react/viewmanagers/SkiaDomViewManagerInterface.java +18 -0
- package/android/src/paper/java/com/facebook/react/viewmanagers/SkiaDrawViewManagerInterface.java +18 -0
- package/android/src/paper/java/com/facebook/react/viewmanagers/SkiaPictureViewManagerDelegate.java +34 -0
- package/android/src/paper/java/com/facebook/react/viewmanagers/SkiaPictureViewManagerInterface.java +18 -0
- package/android/src/paper/java/com/shopify/reactnative/skia/NativeSkiaModuleSpec.java +38 -0
- package/android/src/reactnative69/java/com/shopify/reactnative/skia/ReactNativeCompatible.java +11 -0
- package/android/src/reactnative74/java/com/shopify/reactnative/skia/ReactNativeCompatible.java +14 -0
- package/cpp/api/JsiNativeBuffer.h +43 -0
- package/cpp/api/JsiSkAnimatedImage.h +60 -0
- package/cpp/api/JsiSkAnimatedImageFactory.h +39 -0
- package/cpp/api/JsiSkApi.h +133 -0
- package/cpp/api/JsiSkCanvas.h +622 -0
- package/cpp/api/JsiSkColor.h +85 -0
- package/cpp/api/JsiSkColorFilter.h +30 -0
- package/cpp/api/JsiSkColorFilterFactory.h +101 -0
- package/cpp/api/JsiSkContourMeasure.h +79 -0
- package/cpp/api/JsiSkContourMeasureIter.h +68 -0
- package/cpp/api/JsiSkData.h +30 -0
- package/cpp/api/JsiSkDataFactory.h +97 -0
- package/cpp/api/JsiSkFont.h +317 -0
- package/cpp/api/JsiSkFontMgr.h +54 -0
- package/cpp/api/JsiSkFontMgrFactory.h +45 -0
- package/cpp/api/JsiSkFontStyle.h +67 -0
- package/cpp/api/JsiSkHostObjects.h +153 -0
- package/cpp/api/JsiSkImage.h +208 -0
- package/cpp/api/JsiSkImageFactory.h +91 -0
- package/cpp/api/JsiSkImageFilter.h +31 -0
- package/cpp/api/JsiSkImageFilterFactory.h +240 -0
- package/cpp/api/JsiSkImageInfo.h +79 -0
- package/cpp/api/JsiSkMaskFilter.h +31 -0
- package/cpp/api/JsiSkMaskFilterFactory.h +41 -0
- package/cpp/api/JsiSkMatrix.h +180 -0
- package/cpp/api/JsiSkPaint.h +220 -0
- package/cpp/api/JsiSkParagraph.h +150 -0
- package/cpp/api/JsiSkParagraphBuilder.h +130 -0
- package/cpp/api/JsiSkParagraphBuilderFactory.h +54 -0
- package/cpp/api/JsiSkParagraphStyle.h +125 -0
- package/cpp/api/JsiSkPath.h +639 -0
- package/cpp/api/JsiSkPathEffect.h +32 -0
- package/cpp/api/JsiSkPathEffectFactory.h +128 -0
- package/cpp/api/JsiSkPathFactory.h +173 -0
- package/cpp/api/JsiSkPicture.h +69 -0
- package/cpp/api/JsiSkPictureFactory.h +51 -0
- package/cpp/api/JsiSkPictureRecorder.h +65 -0
- package/cpp/api/JsiSkPoint.h +84 -0
- package/cpp/api/JsiSkRRect.h +129 -0
- package/cpp/api/JsiSkRSXform.h +128 -0
- package/cpp/api/JsiSkRect.h +123 -0
- package/cpp/api/JsiSkRuntimeEffect.h +220 -0
- package/cpp/api/JsiSkRuntimeEffectFactory.h +41 -0
- package/cpp/api/JsiSkRuntimeShaderBuilder.h +83 -0
- package/cpp/api/JsiSkSVG.h +50 -0
- package/cpp/api/JsiSkSVGFactory.h +49 -0
- package/cpp/api/JsiSkShader.h +32 -0
- package/cpp/api/JsiSkShaderFactory.h +226 -0
- package/cpp/api/JsiSkStrutStyle.h +103 -0
- package/cpp/api/JsiSkSurface.h +74 -0
- package/cpp/api/JsiSkSurfaceFactory.h +58 -0
- package/cpp/api/JsiSkTextBlob.h +31 -0
- package/cpp/api/JsiSkTextBlobFactory.h +110 -0
- package/cpp/api/JsiSkTextStyle.h +185 -0
- package/cpp/api/JsiSkTypeface.h +67 -0
- package/cpp/api/JsiSkTypefaceFactory.h +36 -0
- package/cpp/api/JsiSkTypefaceFontProvider.h +92 -0
- package/cpp/api/JsiSkTypefaceFontProviderFactory.h +32 -0
- package/cpp/api/JsiSkVertices.h +144 -0
- package/cpp/api/JsiVideo.h +119 -0
- package/cpp/api/third_party/CSSColorParser.cpp +181 -0
- package/cpp/api/third_party/CSSColorParser.h +210 -0
- package/cpp/api/third_party/base64.cpp +153 -0
- package/cpp/api/third_party/base64.h +50 -0
- package/cpp/jsi/JsiHostObject.cpp +150 -0
- package/cpp/jsi/JsiHostObject.h +391 -0
- package/cpp/jsi/JsiPromises.cpp +39 -0
- package/cpp/jsi/JsiPromises.h +50 -0
- package/cpp/jsi/JsiValue.cpp +346 -0
- package/cpp/jsi/JsiValue.h +222 -0
- package/cpp/jsi/JsiValueWrapper.h +164 -0
- package/cpp/jsi/RuntimeAwareCache.cpp +7 -0
- package/cpp/jsi/RuntimeAwareCache.h +101 -0
- package/cpp/jsi/RuntimeLifecycleMonitor.cpp +57 -0
- package/cpp/jsi/RuntimeLifecycleMonitor.h +32 -0
- package/cpp/rnskia/RNSkDispatchQueue.cpp +73 -0
- package/cpp/rnskia/RNSkDispatchQueue.h +49 -0
- package/cpp/rnskia/RNSkDomView.cpp +220 -0
- package/cpp/rnskia/RNSkDomView.h +140 -0
- package/cpp/rnskia/RNSkInfoParameter.h +92 -0
- package/cpp/rnskia/RNSkJsiViewApi.h +286 -0
- package/cpp/rnskia/RNSkManager.cpp +87 -0
- package/cpp/rnskia/RNSkManager.h +83 -0
- package/cpp/rnskia/RNSkPictureView.h +124 -0
- package/cpp/rnskia/RNSkPlatformContext.h +265 -0
- package/cpp/rnskia/RNSkVideo.h +28 -0
- package/cpp/rnskia/RNSkView.h +308 -0
- package/cpp/rnskia/dom/JsiDomApi.h +165 -0
- package/cpp/rnskia/dom/base/BaseNodeProp.h +72 -0
- package/cpp/rnskia/dom/base/ConcatablePaint.cpp +117 -0
- package/cpp/rnskia/dom/base/ConcatablePaint.h +49 -0
- package/cpp/rnskia/dom/base/Declaration.h +86 -0
- package/cpp/rnskia/dom/base/DeclarationContext.h +79 -0
- package/cpp/rnskia/dom/base/DerivedNodeProp.h +203 -0
- package/cpp/rnskia/dom/base/DrawingContext.cpp +55 -0
- package/cpp/rnskia/dom/base/DrawingContext.h +104 -0
- package/cpp/rnskia/dom/base/JsiDomDeclarationNode.h +119 -0
- package/cpp/rnskia/dom/base/JsiDomDrawingNode.h +71 -0
- package/cpp/rnskia/dom/base/JsiDomNode.h +572 -0
- package/cpp/rnskia/dom/base/JsiDomRenderNode.h +262 -0
- package/cpp/rnskia/dom/base/NodeProp.h +139 -0
- package/cpp/rnskia/dom/base/NodePropsContainer.h +158 -0
- package/cpp/rnskia/dom/nodes/JsiAtlasNode.h +59 -0
- package/cpp/rnskia/dom/nodes/JsiBackdropFilterNode.h +49 -0
- package/cpp/rnskia/dom/nodes/JsiBlendNode.h +94 -0
- package/cpp/rnskia/dom/nodes/JsiBlurMaskNode.h +75 -0
- package/cpp/rnskia/dom/nodes/JsiBoxNode.h +94 -0
- package/cpp/rnskia/dom/nodes/JsiBoxShadowNode.h +33 -0
- package/cpp/rnskia/dom/nodes/JsiCircleNode.h +35 -0
- package/cpp/rnskia/dom/nodes/JsiColorFilterNodes.h +164 -0
- package/cpp/rnskia/dom/nodes/JsiDiffRectNode.h +37 -0
- package/cpp/rnskia/dom/nodes/JsiFillNode.h +22 -0
- package/cpp/rnskia/dom/nodes/JsiGlyphsNode.h +53 -0
- package/cpp/rnskia/dom/nodes/JsiGroupNode.h +25 -0
- package/cpp/rnskia/dom/nodes/JsiImageFilterNodes.h +361 -0
- package/cpp/rnskia/dom/nodes/JsiImageNode.h +38 -0
- package/cpp/rnskia/dom/nodes/JsiImageSvgNode.h +63 -0
- package/cpp/rnskia/dom/nodes/JsiLayerNode.h +74 -0
- package/cpp/rnskia/dom/nodes/JsiLineNode.h +38 -0
- package/cpp/rnskia/dom/nodes/JsiOvalNode.h +32 -0
- package/cpp/rnskia/dom/nodes/JsiPaintNode.h +119 -0
- package/cpp/rnskia/dom/nodes/JsiParagraphNode.h +62 -0
- package/cpp/rnskia/dom/nodes/JsiPatchNode.h +50 -0
- package/cpp/rnskia/dom/nodes/JsiPathEffectNodes.h +268 -0
- package/cpp/rnskia/dom/nodes/JsiPathNode.h +181 -0
- package/cpp/rnskia/dom/nodes/JsiPictureNode.h +31 -0
- package/cpp/rnskia/dom/nodes/JsiPointsNode.h +48 -0
- package/cpp/rnskia/dom/nodes/JsiRRectNode.h +33 -0
- package/cpp/rnskia/dom/nodes/JsiRectNode.h +33 -0
- package/cpp/rnskia/dom/nodes/JsiShaderNodes.h +463 -0
- package/cpp/rnskia/dom/nodes/JsiTextBlobNode.h +44 -0
- package/cpp/rnskia/dom/nodes/JsiTextNode.h +51 -0
- package/cpp/rnskia/dom/nodes/JsiTextPathNode.h +33 -0
- package/cpp/rnskia/dom/nodes/JsiVerticesNode.h +41 -0
- package/cpp/rnskia/dom/props/BezierProps.h +65 -0
- package/cpp/rnskia/dom/props/BlendModeProp.h +103 -0
- package/cpp/rnskia/dom/props/BoxShadowProps.h +62 -0
- package/cpp/rnskia/dom/props/CircleProp.h +49 -0
- package/cpp/rnskia/dom/props/ClipProp.h +57 -0
- package/cpp/rnskia/dom/props/ColorProp.h +96 -0
- package/cpp/rnskia/dom/props/FontProp.h +42 -0
- package/cpp/rnskia/dom/props/GlyphsProp.h +55 -0
- package/cpp/rnskia/dom/props/LayerProp.h +52 -0
- package/cpp/rnskia/dom/props/MatrixProp.h +54 -0
- package/cpp/rnskia/dom/props/NumbersProp.h +67 -0
- package/cpp/rnskia/dom/props/PaintProps.h +133 -0
- package/cpp/rnskia/dom/props/ParagraphProp.h +45 -0
- package/cpp/rnskia/dom/props/PathProp.h +59 -0
- package/cpp/rnskia/dom/props/PictureProp.h +40 -0
- package/cpp/rnskia/dom/props/PointProp.h +65 -0
- package/cpp/rnskia/dom/props/PointsProp.h +81 -0
- package/cpp/rnskia/dom/props/RRectProp.h +222 -0
- package/cpp/rnskia/dom/props/RSXformProp.h +52 -0
- package/cpp/rnskia/dom/props/RadiusProp.h +43 -0
- package/cpp/rnskia/dom/props/RectProp.h +164 -0
- package/cpp/rnskia/dom/props/SkImageProps.h +196 -0
- package/cpp/rnskia/dom/props/StrokeProps.h +79 -0
- package/cpp/rnskia/dom/props/SvgProp.h +45 -0
- package/cpp/rnskia/dom/props/TextBlobProp.h +133 -0
- package/cpp/rnskia/dom/props/TileModeProp.h +52 -0
- package/cpp/rnskia/dom/props/TransformProp.h +147 -0
- package/cpp/rnskia/dom/props/TransformsProps.h +66 -0
- package/cpp/rnskia/dom/props/UniformsProp.h +159 -0
- package/cpp/rnskia/dom/props/VertexModeProp.h +49 -0
- package/cpp/rnskia/dom/props/VerticesProps.h +63 -0
- package/cpp/skia/include/android/AHardwareBufferUtils.h +23 -0
- package/cpp/skia/include/android/GrAHardwareBufferUtils.h +101 -0
- package/cpp/skia/include/android/SkAndroidFrameworkUtils.h +89 -0
- package/cpp/skia/include/android/SkAnimatedImage.h +179 -0
- package/cpp/skia/include/android/SkCanvasAndroid.h +20 -0
- package/cpp/skia/include/android/SkHeifDecoder.h +50 -0
- package/cpp/skia/include/android/SkImageAndroid.h +101 -0
- package/cpp/skia/include/android/SkSurfaceAndroid.h +50 -0
- package/cpp/skia/include/android/graphite/SurfaceAndroid.h +59 -0
- package/cpp/skia/include/codec/SkAndroidCodec.h +297 -0
- package/cpp/skia/include/codec/SkAvifDecoder.h +44 -0
- package/cpp/skia/include/codec/SkBmpDecoder.h +44 -0
- package/cpp/skia/include/codec/SkCodec.h +1061 -0
- package/cpp/skia/include/codec/SkCodecAnimation.h +61 -0
- package/cpp/skia/include/codec/SkEncodedImageFormat.h +33 -0
- package/cpp/skia/include/codec/SkEncodedOrigin.h +54 -0
- package/cpp/skia/include/codec/SkGifDecoder.h +44 -0
- package/cpp/skia/include/codec/SkIcoDecoder.h +44 -0
- package/cpp/skia/include/codec/SkJpegDecoder.h +44 -0
- package/cpp/skia/include/codec/SkJpegxlDecoder.h +44 -0
- package/cpp/skia/include/codec/SkPixmapUtils.h +31 -0
- package/cpp/skia/include/codec/SkPngChunkReader.h +45 -0
- package/cpp/skia/include/codec/SkPngDecoder.h +44 -0
- package/cpp/skia/include/codec/SkRawDecoder.h +50 -0
- package/cpp/skia/include/codec/SkWbmpDecoder.h +44 -0
- package/cpp/skia/include/codec/SkWebpDecoder.h +44 -0
- package/cpp/skia/include/config/SkUserConfig.h +121 -0
- package/cpp/skia/include/core/SkAlphaType.h +45 -0
- package/cpp/skia/include/core/SkAnnotation.h +52 -0
- package/cpp/skia/include/core/SkBBHFactory.h +67 -0
- package/cpp/skia/include/core/SkBitmap.h +1265 -0
- package/cpp/skia/include/core/SkBlendMode.h +112 -0
- package/cpp/skia/include/core/SkBlender.h +31 -0
- package/cpp/skia/include/core/SkBlurTypes.h +20 -0
- package/cpp/skia/include/core/SkCanvas.h +2629 -0
- package/cpp/skia/include/core/SkCanvasVirtualEnforcer.h +61 -0
- package/cpp/skia/include/core/SkCapabilities.h +39 -0
- package/cpp/skia/include/core/SkClipOp.h +19 -0
- package/cpp/skia/include/core/SkColor.h +447 -0
- package/cpp/skia/include/core/SkColorFilter.h +150 -0
- package/cpp/skia/include/core/SkColorPriv.h +167 -0
- package/cpp/skia/include/core/SkColorSpace.h +242 -0
- package/cpp/skia/include/core/SkColorTable.h +62 -0
- package/cpp/skia/include/core/SkColorType.h +69 -0
- package/cpp/skia/include/core/SkContourMeasure.h +139 -0
- package/cpp/skia/include/core/SkCoverageMode.h +28 -0
- package/cpp/skia/include/core/SkCubicMap.h +47 -0
- package/cpp/skia/include/core/SkData.h +191 -0
- package/cpp/skia/include/core/SkDataTable.h +122 -0
- package/cpp/skia/include/core/SkDocument.h +93 -0
- package/cpp/skia/include/core/SkDrawLooper.h +135 -0
- package/cpp/skia/include/core/SkDrawable.h +178 -0
- package/cpp/skia/include/core/SkExecutor.h +41 -0
- package/cpp/skia/include/core/SkFlattenable.h +115 -0
- package/cpp/skia/include/core/SkFont.h +539 -0
- package/cpp/skia/include/core/SkFontArguments.h +94 -0
- package/cpp/skia/include/core/SkFontMetrics.h +139 -0
- package/cpp/skia/include/core/SkFontMgr.h +143 -0
- package/cpp/skia/include/core/SkFontParameters.h +42 -0
- package/cpp/skia/include/core/SkFontStyle.h +84 -0
- package/cpp/skia/include/core/SkFontTypes.h +25 -0
- package/cpp/skia/include/core/SkGraphics.h +169 -0
- package/cpp/skia/include/core/SkImage.h +939 -0
- package/cpp/skia/include/core/SkImageFilter.h +119 -0
- package/cpp/skia/include/core/SkImageGenerator.h +148 -0
- package/cpp/skia/include/core/SkImageInfo.h +614 -0
- package/cpp/skia/include/core/SkM44.h +442 -0
- package/cpp/skia/include/core/SkMallocPixelRef.h +45 -0
- package/cpp/skia/include/core/SkMaskFilter.h +53 -0
- package/cpp/skia/include/core/SkMatrix.h +1996 -0
- package/cpp/skia/include/core/SkMesh.h +429 -0
- package/cpp/skia/include/core/SkMilestone.h +9 -0
- package/cpp/skia/include/core/SkOpenTypeSVGDecoder.h +30 -0
- package/cpp/skia/include/core/SkOverdrawCanvas.h +94 -0
- package/cpp/skia/include/core/SkPaint.h +695 -0
- package/cpp/skia/include/core/SkPath.h +1909 -0
- package/cpp/skia/include/core/SkPathBuilder.h +271 -0
- package/cpp/skia/include/core/SkPathEffect.h +113 -0
- package/cpp/skia/include/core/SkPathMeasure.h +94 -0
- package/cpp/skia/include/core/SkPathTypes.h +57 -0
- package/cpp/skia/include/core/SkPathUtils.h +42 -0
- package/cpp/skia/include/core/SkPicture.h +291 -0
- package/cpp/skia/include/core/SkPictureRecorder.h +115 -0
- package/cpp/skia/include/core/SkPixelRef.h +119 -0
- package/cpp/skia/include/core/SkPixmap.h +731 -0
- package/cpp/skia/include/core/SkPoint.h +10 -0
- package/cpp/skia/include/core/SkPoint3.h +159 -0
- package/cpp/skia/include/core/SkRRect.h +516 -0
- package/cpp/skia/include/core/SkRSXform.h +71 -0
- package/cpp/skia/include/core/SkRasterHandleAllocator.h +94 -0
- package/cpp/skia/include/core/SkRect.h +1385 -0
- package/cpp/skia/include/core/SkRefCnt.h +389 -0
- package/cpp/skia/include/core/SkRegion.h +684 -0
- package/cpp/skia/include/core/SkSamplingOptions.h +107 -0
- package/cpp/skia/include/core/SkScalar.h +173 -0
- package/cpp/skia/include/core/SkSerialProcs.h +117 -0
- package/cpp/skia/include/core/SkShader.h +95 -0
- package/cpp/skia/include/core/SkSize.h +92 -0
- package/cpp/skia/include/core/SkSpan.h +13 -0
- package/cpp/skia/include/core/SkStream.h +513 -0
- package/cpp/skia/include/core/SkString.h +293 -0
- package/cpp/skia/include/core/SkStrokeRec.h +154 -0
- package/cpp/skia/include/core/SkSurface.h +659 -0
- package/cpp/skia/include/core/SkSurfaceProps.h +111 -0
- package/cpp/skia/include/core/SkSwizzle.h +19 -0
- package/cpp/skia/include/core/SkTextBlob.h +519 -0
- package/cpp/skia/include/core/SkTextureCompressionType.h +30 -0
- package/cpp/skia/include/core/SkTileMode.h +41 -0
- package/cpp/skia/include/core/SkTiledImageUtils.h +125 -0
- package/cpp/skia/include/core/SkTraceMemoryDump.h +114 -0
- package/cpp/skia/include/core/SkTypeface.h +434 -0
- package/cpp/skia/include/core/SkTypes.h +199 -0
- package/cpp/skia/include/core/SkUnPreMultiply.h +56 -0
- package/cpp/skia/include/core/SkVertices.h +134 -0
- package/cpp/skia/include/core/SkYUVAInfo.h +308 -0
- package/cpp/skia/include/core/SkYUVAPixmaps.h +337 -0
- package/cpp/skia/include/docs/SkMultiPictureDocument.h +53 -0
- package/cpp/skia/include/docs/SkPDFDocument.h +227 -0
- package/cpp/skia/include/docs/SkXPSDocument.h +27 -0
- package/cpp/skia/include/effects/Sk1DPathEffect.h +40 -0
- package/cpp/skia/include/effects/Sk2DPathEffect.h +33 -0
- package/cpp/skia/include/effects/SkBlenders.h +27 -0
- package/cpp/skia/include/effects/SkBlurDrawLooper.h +26 -0
- package/cpp/skia/include/effects/SkBlurMaskFilter.h +35 -0
- package/cpp/skia/include/effects/SkColorMatrix.h +57 -0
- package/cpp/skia/include/effects/SkColorMatrixFilter.h +22 -0
- package/cpp/skia/include/effects/SkCornerPathEffect.h +32 -0
- package/cpp/skia/include/effects/SkDashPathEffect.h +43 -0
- package/cpp/skia/include/effects/SkDiscretePathEffect.h +37 -0
- package/cpp/skia/include/effects/SkGradientShader.h +354 -0
- package/cpp/skia/include/effects/SkHighContrastFilter.h +84 -0
- package/cpp/skia/include/effects/SkImageFilters.h +615 -0
- package/cpp/skia/include/effects/SkLayerDrawLooper.h +161 -0
- package/cpp/skia/include/effects/SkLumaColorFilter.h +37 -0
- package/cpp/skia/include/effects/SkOverdrawColorFilter.h +32 -0
- package/cpp/skia/include/effects/SkPerlinNoiseShader.h +53 -0
- package/cpp/skia/include/effects/SkRuntimeEffect.h +514 -0
- package/cpp/skia/include/effects/SkShaderMaskFilter.h +26 -0
- package/cpp/skia/include/effects/SkTableMaskFilter.h +41 -0
- package/cpp/skia/include/effects/SkTrimPathEffect.h +45 -0
- package/cpp/skia/include/encode/SkEncoder.h +63 -0
- package/cpp/skia/include/encode/SkICC.h +36 -0
- package/cpp/skia/include/encode/SkJpegEncoder.h +128 -0
- package/cpp/skia/include/encode/SkPngEncoder.h +117 -0
- package/cpp/skia/include/encode/SkWebpEncoder.h +92 -0
- package/cpp/skia/include/gpu/GpuTypes.h +85 -0
- package/cpp/skia/include/gpu/GrBackendSemaphore.h +126 -0
- package/cpp/skia/include/gpu/GrBackendSurface.h +472 -0
- package/cpp/skia/include/gpu/GrContextOptions.h +374 -0
- package/cpp/skia/include/gpu/GrContextThreadSafeProxy.h +185 -0
- package/cpp/skia/include/gpu/GrDirectContext.h +1017 -0
- package/cpp/skia/include/gpu/GrDriverBugWorkarounds.h +53 -0
- package/cpp/skia/include/gpu/GrDriverBugWorkaroundsAutogen.h +45 -0
- package/cpp/skia/include/gpu/GrRecordingContext.h +285 -0
- package/cpp/skia/include/gpu/GrTypes.h +244 -0
- package/cpp/skia/include/gpu/GrYUVABackendTextures.h +124 -0
- package/cpp/skia/include/gpu/MutableTextureState.h +68 -0
- package/cpp/skia/include/gpu/ShaderErrorHandler.h +46 -0
- package/cpp/skia/include/gpu/d3d/GrD3DBackendContext.h +35 -0
- package/cpp/skia/include/gpu/d3d/GrD3DTypes.h +248 -0
- package/cpp/skia/include/gpu/ganesh/GrExternalTextureGenerator.h +54 -0
- package/cpp/skia/include/gpu/ganesh/SkImageGanesh.h +361 -0
- package/cpp/skia/include/gpu/ganesh/SkMeshGanesh.h +57 -0
- package/cpp/skia/include/gpu/ganesh/SkSurfaceGanesh.h +218 -0
- package/cpp/skia/include/gpu/ganesh/gl/GrGLBackendSurface.h +58 -0
- package/cpp/skia/include/gpu/ganesh/gl/GrGLDirectContext.h +30 -0
- package/cpp/skia/include/gpu/ganesh/mtl/SkSurfaceMetal.h +73 -0
- package/cpp/skia/include/gpu/ganesh/vk/GrBackendDrawableInfo.h +46 -0
- package/cpp/skia/include/gpu/ganesh/vk/GrVkBackendSemaphore.h +20 -0
- package/cpp/skia/include/gpu/ganesh/vk/GrVkBackendSurface.h +67 -0
- package/cpp/skia/include/gpu/ganesh/vk/GrVkDirectContext.h +30 -0
- package/cpp/skia/include/gpu/gl/GrGLAssembleHelpers.h +15 -0
- package/cpp/skia/include/gpu/gl/GrGLAssembleInterface.h +44 -0
- package/cpp/skia/include/gpu/gl/GrGLConfig.h +79 -0
- package/cpp/skia/include/gpu/gl/GrGLConfig_chrome.h +14 -0
- package/cpp/skia/include/gpu/gl/GrGLExtensions.h +78 -0
- package/cpp/skia/include/gpu/gl/GrGLFunctions.h +307 -0
- package/cpp/skia/include/gpu/gl/GrGLInterface.h +338 -0
- package/cpp/skia/include/gpu/gl/GrGLTypes.h +219 -0
- package/cpp/skia/include/gpu/gl/egl/GrGLMakeEGLInterface.h +23 -0
- package/cpp/skia/include/gpu/gl/glx/GrGLMakeGLXInterface.h +23 -0
- package/cpp/skia/include/gpu/graphite/BackendSemaphore.h +78 -0
- package/cpp/skia/include/gpu/graphite/BackendTexture.h +164 -0
- package/cpp/skia/include/gpu/graphite/Context.h +281 -0
- package/cpp/skia/include/gpu/graphite/ContextOptions.h +102 -0
- package/cpp/skia/include/gpu/graphite/GraphiteTypes.h +129 -0
- package/cpp/skia/include/gpu/graphite/Image.h +352 -0
- package/cpp/skia/include/gpu/graphite/ImageProvider.h +68 -0
- package/cpp/skia/include/gpu/graphite/Recorder.h +251 -0
- package/cpp/skia/include/gpu/graphite/Recording.h +95 -0
- package/cpp/skia/include/gpu/graphite/Surface.h +86 -0
- package/cpp/skia/include/gpu/graphite/TextureInfo.h +168 -0
- package/cpp/skia/include/gpu/graphite/YUVABackendTextures.h +139 -0
- package/cpp/skia/include/gpu/graphite/dawn/DawnBackendContext.h +68 -0
- package/cpp/skia/include/gpu/graphite/dawn/DawnTypes.h +45 -0
- package/cpp/skia/include/gpu/graphite/dawn/DawnUtils.h +28 -0
- package/cpp/skia/include/gpu/graphite/mtl/MtlBackendContext.h +25 -0
- package/cpp/skia/include/gpu/graphite/mtl/MtlGraphiteTypes.h +68 -0
- package/cpp/skia/include/gpu/graphite/mtl/MtlGraphiteUtils.h +27 -0
- package/cpp/skia/include/gpu/graphite/vk/VulkanGraphiteTypes.h +64 -0
- package/cpp/skia/include/gpu/graphite/vk/VulkanGraphiteUtils.h +28 -0
- package/cpp/skia/include/gpu/mock/GrMockTypes.h +163 -0
- package/cpp/skia/include/gpu/mtl/GrMtlBackendContext.h +21 -0
- package/cpp/skia/include/gpu/mtl/GrMtlTypes.h +63 -0
- package/cpp/skia/include/gpu/mtl/MtlMemoryAllocator.h +39 -0
- package/cpp/skia/include/gpu/vk/GrVkBackendContext.h +84 -0
- package/cpp/skia/include/gpu/vk/GrVkExtensions.h +15 -0
- package/cpp/skia/include/gpu/vk/GrVkMemoryAllocator.h +15 -0
- package/cpp/skia/include/gpu/vk/GrVkTypes.h +107 -0
- package/cpp/skia/include/gpu/vk/VulkanBackendContext.h +52 -0
- package/cpp/skia/include/gpu/vk/VulkanExtensions.h +67 -0
- package/cpp/skia/include/gpu/vk/VulkanMemoryAllocator.h +114 -0
- package/cpp/skia/include/gpu/vk/VulkanMutableTextureState.h +26 -0
- package/cpp/skia/include/gpu/vk/VulkanTypes.h +113 -0
- package/cpp/skia/include/pathops/SkPathOps.h +113 -0
- package/cpp/skia/include/ports/SkCFObject.h +180 -0
- package/cpp/skia/include/ports/SkFontConfigInterface.h +112 -0
- package/cpp/skia/include/ports/SkFontMgr_FontConfigInterface.h +20 -0
- package/cpp/skia/include/ports/SkFontMgr_android.h +45 -0
- package/cpp/skia/include/ports/SkFontMgr_data.h +22 -0
- package/cpp/skia/include/ports/SkFontMgr_directory.h +21 -0
- package/cpp/skia/include/ports/SkFontMgr_empty.h +21 -0
- package/cpp/skia/include/ports/SkFontMgr_fontconfig.h +22 -0
- package/cpp/skia/include/ports/SkFontMgr_fuchsia.h +19 -0
- package/cpp/skia/include/ports/SkFontMgr_indirect.h +102 -0
- package/cpp/skia/include/ports/SkFontMgr_mac_ct.h +27 -0
- package/cpp/skia/include/ports/SkImageGeneratorCG.h +26 -0
- package/cpp/skia/include/ports/SkImageGeneratorNDK.h +40 -0
- package/cpp/skia/include/ports/SkImageGeneratorWIC.h +41 -0
- package/cpp/skia/include/ports/SkRemotableFontMgr.h +139 -0
- package/cpp/skia/include/ports/SkTypeface_fontations.h +21 -0
- package/cpp/skia/include/ports/SkTypeface_mac.h +44 -0
- package/cpp/skia/include/ports/SkTypeface_win.h +80 -0
- package/cpp/skia/include/private/SkColorData.h +385 -0
- package/cpp/skia/include/private/SkEncodedInfo.h +277 -0
- package/cpp/skia/include/private/SkExif.h +102 -0
- package/cpp/skia/include/private/SkGainmapInfo.h +100 -0
- package/cpp/skia/include/private/SkGainmapShader.h +54 -0
- package/cpp/skia/include/private/SkIDChangeListener.h +76 -0
- package/cpp/skia/include/private/SkJpegGainmapEncoder.h +48 -0
- package/cpp/skia/include/private/SkJpegMetadataDecoder.h +79 -0
- package/cpp/skia/include/private/SkPathRef.h +537 -0
- package/cpp/skia/include/private/SkSLSampleUsage.h +85 -0
- package/cpp/skia/include/private/SkWeakRefCnt.h +173 -0
- package/cpp/skia/include/private/SkXmp.h +53 -0
- package/cpp/skia/include/private/base/README.md +4 -0
- package/cpp/skia/include/private/base/SingleOwner.h +75 -0
- package/cpp/skia/include/private/base/SkAPI.h +52 -0
- package/cpp/skia/include/private/base/SkAlign.h +39 -0
- package/cpp/skia/include/private/base/SkAlignedStorage.h +32 -0
- package/cpp/skia/include/private/base/SkAnySubclass.h +73 -0
- package/cpp/skia/include/private/base/SkAssert.h +202 -0
- package/cpp/skia/include/private/base/SkAttributes.h +90 -0
- package/cpp/skia/include/private/base/SkCPUTypes.h +25 -0
- package/cpp/skia/include/private/base/SkContainers.h +46 -0
- package/cpp/skia/include/private/base/SkDebug.h +27 -0
- package/cpp/skia/include/private/base/SkDeque.h +138 -0
- package/cpp/skia/include/private/base/SkFeatures.h +144 -0
- package/cpp/skia/include/private/base/SkFixed.h +143 -0
- package/cpp/skia/include/private/base/SkFloatBits.h +90 -0
- package/cpp/skia/include/private/base/SkFloatingPoint.h +198 -0
- package/cpp/skia/include/private/base/SkLoadUserConfig.h +63 -0
- package/cpp/skia/include/private/base/SkMacros.h +94 -0
- package/cpp/skia/include/private/base/SkMalloc.h +144 -0
- package/cpp/skia/include/private/base/SkMath.h +77 -0
- package/cpp/skia/include/private/base/SkMutex.h +64 -0
- package/cpp/skia/include/private/base/SkNoncopyable.h +30 -0
- package/cpp/skia/include/private/base/SkOnce.h +55 -0
- package/cpp/skia/include/private/base/SkPoint_impl.h +569 -0
- package/cpp/skia/include/private/base/SkSafe32.h +49 -0
- package/cpp/skia/include/private/base/SkSemaphore.h +84 -0
- package/cpp/skia/include/private/base/SkSpan_impl.h +131 -0
- package/cpp/skia/include/private/base/SkTArray.h +740 -0
- package/cpp/skia/include/private/base/SkTDArray.h +235 -0
- package/cpp/skia/include/private/base/SkTFitsIn.h +105 -0
- package/cpp/skia/include/private/base/SkTLogic.h +56 -0
- package/cpp/skia/include/private/base/SkTPin.h +23 -0
- package/cpp/skia/include/private/base/SkTemplates.h +446 -0
- package/cpp/skia/include/private/base/SkThreadAnnotations.h +104 -0
- package/cpp/skia/include/private/base/SkThreadID.h +23 -0
- package/cpp/skia/include/private/base/SkTo.h +39 -0
- package/cpp/skia/include/private/base/SkTypeTraits.h +33 -0
- package/cpp/skia/include/private/chromium/GrDeferredDisplayList.h +120 -0
- package/cpp/skia/include/private/chromium/GrDeferredDisplayListRecorder.h +101 -0
- package/cpp/skia/include/private/chromium/GrPromiseImageTexture.h +43 -0
- package/cpp/skia/include/private/chromium/GrSurfaceCharacterization.h +211 -0
- package/cpp/skia/include/private/chromium/GrVkSecondaryCBDrawContext.h +131 -0
- package/cpp/skia/include/private/chromium/SkChromeRemoteGlyphCache.h +153 -0
- package/cpp/skia/include/private/chromium/SkDiscardableMemory.h +70 -0
- package/cpp/skia/include/private/chromium/SkImageChromium.h +117 -0
- package/cpp/skia/include/private/chromium/Slug.h +78 -0
- package/cpp/skia/include/private/gpu/ganesh/GrContext_Base.h +104 -0
- package/cpp/skia/include/private/gpu/ganesh/GrD3DTypesMinimal.h +74 -0
- package/cpp/skia/include/private/gpu/ganesh/GrImageContext.h +56 -0
- package/cpp/skia/include/private/gpu/ganesh/GrTextureGenerator.h +66 -0
- package/cpp/skia/include/private/gpu/ganesh/GrTypesPriv.h +1029 -0
- package/cpp/skia/include/private/gpu/graphite/ContextOptionsPriv.h +69 -0
- package/cpp/skia/include/private/gpu/graphite/DawnTypesPriv.h +54 -0
- package/cpp/skia/include/private/gpu/graphite/MtlGraphiteTypesPriv.h +95 -0
- package/cpp/skia/include/private/gpu/graphite/VulkanGraphiteTypesPriv.h +83 -0
- package/cpp/skia/include/private/gpu/vk/SkiaVulkan.h +36 -0
- package/cpp/skia/include/sksl/SkSLDebugTrace.h +28 -0
- package/cpp/skia/include/sksl/SkSLVersion.h +27 -0
- package/cpp/skia/include/svg/SkSVGCanvas.h +42 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_platform.h +84 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_h264std.h +312 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_h264std_decode.h +77 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_h265std.h +446 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_h265std_decode.h +67 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codecs_common.h +36 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan.h +99 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_android.h +153 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_core.h +18448 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_ios.h +48 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_macos.h +48 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_win32.h +342 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_xcb.h +56 -0
- package/cpp/skia/include/utils/SkCamera.h +109 -0
- package/cpp/skia/include/utils/SkCanvasStateUtils.h +81 -0
- package/cpp/skia/include/utils/SkCustomTypeface.h +69 -0
- package/cpp/skia/include/utils/SkEventTracer.h +90 -0
- package/cpp/skia/include/utils/SkNWayCanvas.h +123 -0
- package/cpp/skia/include/utils/SkNoDrawCanvas.h +78 -0
- package/cpp/skia/include/utils/SkNullCanvas.h +22 -0
- package/cpp/skia/include/utils/SkOrderedFontMgr.h +66 -0
- package/cpp/skia/include/utils/SkPaintFilterCanvas.h +140 -0
- package/cpp/skia/include/utils/SkParse.h +37 -0
- package/cpp/skia/include/utils/SkParsePath.h +25 -0
- package/cpp/skia/include/utils/SkShadowUtils.h +102 -0
- package/cpp/skia/include/utils/SkTextUtils.h +43 -0
- package/cpp/skia/include/utils/SkTraceEventPhase.h +19 -0
- package/cpp/skia/include/utils/mac/SkCGUtils.h +90 -0
- package/cpp/skia/modules/skcms/skcms.h +10 -0
- package/cpp/skia/modules/skcms/src/Transform_inl.h +1555 -0
- package/cpp/skia/modules/skcms/src/skcms_Transform.h +161 -0
- package/cpp/skia/modules/skcms/src/skcms_internals.h +136 -0
- package/cpp/skia/modules/skcms/src/skcms_public.h +404 -0
- package/cpp/skia/modules/skparagraph/include/DartTypes.h +153 -0
- package/cpp/skia/modules/skparagraph/include/FontArguments.h +46 -0
- package/cpp/skia/modules/skparagraph/include/FontCollection.h +86 -0
- package/cpp/skia/modules/skparagraph/include/Metrics.h +98 -0
- package/cpp/skia/modules/skparagraph/include/Paragraph.h +289 -0
- package/cpp/skia/modules/skparagraph/include/ParagraphBuilder.h +86 -0
- package/cpp/skia/modules/skparagraph/include/ParagraphCache.h +67 -0
- package/cpp/skia/modules/skparagraph/include/ParagraphPainter.h +63 -0
- package/cpp/skia/modules/skparagraph/include/ParagraphStyle.h +147 -0
- package/cpp/skia/modules/skparagraph/include/TextShadow.h +30 -0
- package/cpp/skia/modules/skparagraph/include/TextStyle.h +380 -0
- package/cpp/skia/modules/skparagraph/include/TypefaceFontProvider.h +81 -0
- package/cpp/skia/modules/skresources/include/SkResources.h +289 -0
- package/cpp/skia/modules/skunicode/include/SkUnicode.h +324 -0
- package/cpp/skia/modules/svg/include/SkSVGAttribute.h +113 -0
- package/cpp/skia/modules/svg/include/SkSVGAttributeParser.h +164 -0
- package/cpp/skia/modules/svg/include/SkSVGCircle.h +43 -0
- package/cpp/skia/modules/svg/include/SkSVGClipPath.h +35 -0
- package/cpp/skia/modules/svg/include/SkSVGContainer.h +36 -0
- package/cpp/skia/modules/svg/include/SkSVGDOM.h +103 -0
- package/cpp/skia/modules/svg/include/SkSVGDefs.h +23 -0
- package/cpp/skia/modules/svg/include/SkSVGEllipse.h +41 -0
- package/cpp/skia/modules/svg/include/SkSVGFe.h +85 -0
- package/cpp/skia/modules/svg/include/SkSVGFeBlend.h +45 -0
- package/cpp/skia/modules/svg/include/SkSVGFeColorMatrix.h +46 -0
- package/cpp/skia/modules/svg/include/SkSVGFeComposite.h +46 -0
- package/cpp/skia/modules/svg/include/SkSVGFeDisplacementMap.h +46 -0
- package/cpp/skia/modules/svg/include/SkSVGFeFlood.h +32 -0
- package/cpp/skia/modules/svg/include/SkSVGFeGaussianBlur.h +41 -0
- package/cpp/skia/modules/svg/include/SkSVGFeImage.h +35 -0
- package/cpp/skia/modules/svg/include/SkSVGFeLightSource.h +89 -0
- package/cpp/skia/modules/svg/include/SkSVGFeLighting.h +121 -0
- package/cpp/skia/modules/svg/include/SkSVGFeMorphology.h +47 -0
- package/cpp/skia/modules/svg/include/SkSVGFeOffset.h +35 -0
- package/cpp/skia/modules/svg/include/SkSVGFeTurbulence.h +40 -0
- package/cpp/skia/modules/svg/include/SkSVGFilter.h +39 -0
- package/cpp/skia/modules/svg/include/SkSVGFilterContext.h +69 -0
- package/cpp/skia/modules/svg/include/SkSVGG.h +23 -0
- package/cpp/skia/modules/svg/include/SkSVGGradient.h +48 -0
- package/cpp/skia/modules/svg/include/SkSVGHiddenContainer.h +23 -0
- package/cpp/skia/modules/svg/include/SkSVGIDMapper.h +19 -0
- package/cpp/skia/modules/svg/include/SkSVGImage.h +58 -0
- package/cpp/skia/modules/svg/include/SkSVGLine.h +42 -0
- package/cpp/skia/modules/svg/include/SkSVGLinearGradient.h +37 -0
- package/cpp/skia/modules/svg/include/SkSVGMask.h +43 -0
- package/cpp/skia/modules/svg/include/SkSVGNode.h +223 -0
- package/cpp/skia/modules/svg/include/SkSVGOpenTypeSVGDecoder.h +32 -0
- package/cpp/skia/modules/svg/include/SkSVGPath.h +36 -0
- package/cpp/skia/modules/svg/include/SkSVGPattern.h +55 -0
- package/cpp/skia/modules/svg/include/SkSVGPoly.h +45 -0
- package/cpp/skia/modules/svg/include/SkSVGRadialGradient.h +38 -0
- package/cpp/skia/modules/svg/include/SkSVGRect.h +46 -0
- package/cpp/skia/modules/svg/include/SkSVGRenderContext.h +191 -0
- package/cpp/skia/modules/svg/include/SkSVGSVG.h +54 -0
- package/cpp/skia/modules/svg/include/SkSVGShape.h +33 -0
- package/cpp/skia/modules/svg/include/SkSVGStop.h +34 -0
- package/cpp/skia/modules/svg/include/SkSVGText.h +122 -0
- package/cpp/skia/modules/svg/include/SkSVGTransformableNode.h +36 -0
- package/cpp/skia/modules/svg/include/SkSVGTypes.h +731 -0
- package/cpp/skia/modules/svg/include/SkSVGUse.h +42 -0
- package/cpp/skia/modules/svg/include/SkSVGValue.h +85 -0
- package/cpp/skia/src/base/SkTInternalLList.h +304 -0
- package/cpp/skia/src/base/SkUTF.h +102 -0
- package/cpp/skia/src/core/SkChecksum.h +118 -0
- package/cpp/skia/src/core/SkLRUCache.h +130 -0
- package/cpp/skia/src/core/SkPathEnums.h +25 -0
- package/cpp/skia/src/core/SkPathPriv.h +540 -0
- package/cpp/skia/src/core/SkTHash.h +617 -0
- package/cpp/skia/src/gpu/ganesh/gl/GrGLDefines.h +1158 -0
- package/cpp/utils/RNSkLog.h +82 -0
- package/cpp/utils/RNSkMeasureTime.h +32 -0
- package/cpp/utils/RNSkTimingInfo.h +107 -0
- package/cpp/utils/RNSkTypedArray.h +41 -0
- package/ios/RNSkia-iOS/DisplayLink.h +17 -0
- package/ios/RNSkia-iOS/DisplayLink.mm +34 -0
- package/ios/RNSkia-iOS/RNSkMetalCanvasProvider.h +39 -0
- package/ios/RNSkia-iOS/RNSkMetalCanvasProvider.mm +114 -0
- package/ios/RNSkia-iOS/RNSkiOSPlatformContext.h +94 -0
- package/ios/RNSkia-iOS/RNSkiOSPlatformContext.mm +198 -0
- package/ios/RNSkia-iOS/RNSkiOSVideo.h +51 -0
- package/ios/RNSkia-iOS/RNSkiOSVideo.mm +137 -0
- package/ios/RNSkia-iOS/RNSkiOSView.h +37 -0
- package/ios/RNSkia-iOS/RNSkiOSView.mm +37 -0
- package/ios/RNSkia-iOS/SkiaCVPixelBufferUtils.h +119 -0
- package/ios/RNSkia-iOS/SkiaCVPixelBufferUtils.mm +332 -0
- package/ios/RNSkia-iOS/SkiaDomView.h +7 -0
- package/ios/RNSkia-iOS/SkiaDomView.mm +64 -0
- package/ios/RNSkia-iOS/SkiaDomViewManager.h +8 -0
- package/ios/RNSkia-iOS/SkiaDomViewManager.mm +51 -0
- package/ios/RNSkia-iOS/SkiaManager.h +19 -0
- package/ios/RNSkia-iOS/SkiaManager.mm +48 -0
- package/ios/RNSkia-iOS/SkiaMetalSurfaceFactory.h +36 -0
- package/ios/RNSkia-iOS/SkiaMetalSurfaceFactory.mm +138 -0
- package/ios/RNSkia-iOS/SkiaPictureView.h +7 -0
- package/ios/RNSkia-iOS/SkiaPictureView.mm +66 -0
- package/ios/RNSkia-iOS/SkiaPictureViewManager.h +8 -0
- package/ios/RNSkia-iOS/SkiaPictureViewManager.mm +51 -0
- package/ios/RNSkia-iOS/SkiaUIView.h +40 -0
- package/ios/RNSkia-iOS/SkiaUIView.mm +231 -0
- package/ios/RNSkia-iOS/ViewScreenshotService.h +21 -0
- package/ios/RNSkia-iOS/ViewScreenshotService.mm +92 -0
- package/ios/RNSkiaModule.h +20 -0
- package/ios/RNSkiaModule.mm +53 -0
- package/ios/Rnskia.xcodeproj/project.pbxproj +281 -0
- package/ios/Rnskia.xcworkspace/contents.xcworkspacedata +7 -0
- package/jestEnv.mjs +23 -0
- package/jestSetup.js +18 -0
- package/jestSetup.mjs +22 -0
- package/lib/commonjs/Platform/IPlatform.d.ts +10 -0
- package/lib/commonjs/Platform/IPlatform.js +6 -0
- package/lib/commonjs/Platform/IPlatform.js.map +1 -0
- package/lib/commonjs/Platform/Platform.d.ts +2 -0
- package/lib/commonjs/Platform/Platform.js +18 -0
- package/lib/commonjs/Platform/Platform.js.map +1 -0
- package/lib/commonjs/Platform/Platform.web.d.ts +2 -0
- package/lib/commonjs/Platform/Platform.web.js +154 -0
- package/lib/commonjs/Platform/Platform.web.js.map +1 -0
- package/lib/commonjs/Platform/index.d.ts +1 -0
- package/lib/commonjs/Platform/index.js +17 -0
- package/lib/commonjs/Platform/index.js.map +1 -0
- package/lib/commonjs/animation/functions/index.d.ts +4 -0
- package/lib/commonjs/animation/functions/index.js +50 -0
- package/lib/commonjs/animation/functions/index.js.map +1 -0
- package/lib/commonjs/animation/functions/interpolate.d.ts +17 -0
- package/lib/commonjs/animation/functions/interpolate.js +132 -0
- package/lib/commonjs/animation/functions/interpolate.js.map +1 -0
- package/lib/commonjs/animation/functions/interpolateColors.d.ts +3 -0
- package/lib/commonjs/animation/functions/interpolateColors.js +35 -0
- package/lib/commonjs/animation/functions/interpolateColors.js.map +1 -0
- package/lib/commonjs/animation/functions/interpolatePaths.d.ts +19 -0
- package/lib/commonjs/animation/functions/interpolatePaths.js +68 -0
- package/lib/commonjs/animation/functions/interpolatePaths.js.map +1 -0
- package/lib/commonjs/animation/functions/interpolateVector.d.ts +10 -0
- package/lib/commonjs/animation/functions/interpolateVector.js +23 -0
- package/lib/commonjs/animation/functions/interpolateVector.js.map +1 -0
- package/lib/commonjs/animation/index.d.ts +1 -0
- package/lib/commonjs/animation/index.js +17 -0
- package/lib/commonjs/animation/index.js.map +1 -0
- package/lib/commonjs/dom/nodes/DrawingNode.d.ts +14 -0
- package/lib/commonjs/dom/nodes/DrawingNode.js +69 -0
- package/lib/commonjs/dom/nodes/DrawingNode.js.map +1 -0
- package/lib/commonjs/dom/nodes/GroupNode.d.ts +7 -0
- package/lib/commonjs/dom/nodes/GroupNode.js +22 -0
- package/lib/commonjs/dom/nodes/GroupNode.js.map +1 -0
- package/lib/commonjs/dom/nodes/JsiSkDOM.d.ts +68 -0
- package/lib/commonjs/dom/nodes/JsiSkDOM.js +208 -0
- package/lib/commonjs/dom/nodes/JsiSkDOM.js.map +1 -0
- package/lib/commonjs/dom/nodes/LayerNode.d.ts +8 -0
- package/lib/commonjs/dom/nodes/LayerNode.js +39 -0
- package/lib/commonjs/dom/nodes/LayerNode.js.map +1 -0
- package/lib/commonjs/dom/nodes/Node.d.ts +34 -0
- package/lib/commonjs/dom/nodes/Node.js +102 -0
- package/lib/commonjs/dom/nodes/Node.js.map +1 -0
- package/lib/commonjs/dom/nodes/PaintNode.d.ts +8 -0
- package/lib/commonjs/dom/nodes/PaintNode.js +90 -0
- package/lib/commonjs/dom/nodes/PaintNode.js.map +1 -0
- package/lib/commonjs/dom/nodes/RenderNode.d.ts +26 -0
- package/lib/commonjs/dom/nodes/RenderNode.js +132 -0
- package/lib/commonjs/dom/nodes/RenderNode.js.map +1 -0
- package/lib/commonjs/dom/nodes/datatypes/Circle.d.ts +7 -0
- package/lib/commonjs/dom/nodes/datatypes/Circle.js +29 -0
- package/lib/commonjs/dom/nodes/datatypes/Circle.js.map +1 -0
- package/lib/commonjs/dom/nodes/datatypes/Enum.d.ts +1 -0
- package/lib/commonjs/dom/nodes/datatypes/Enum.js +9 -0
- package/lib/commonjs/dom/nodes/datatypes/Enum.js.map +1 -0
- package/lib/commonjs/dom/nodes/datatypes/Fitting.d.ts +33 -0
- package/lib/commonjs/dom/nodes/datatypes/Fitting.js +141 -0
- package/lib/commonjs/dom/nodes/datatypes/Fitting.js.map +1 -0
- package/lib/commonjs/dom/nodes/datatypes/Gradient.d.ts +252 -0
- package/lib/commonjs/dom/nodes/datatypes/Gradient.js +54 -0
- package/lib/commonjs/dom/nodes/datatypes/Gradient.js.map +1 -0
- package/lib/commonjs/dom/nodes/datatypes/Path.d.ts +4 -0
- package/lib/commonjs/dom/nodes/datatypes/Path.js +20 -0
- package/lib/commonjs/dom/nodes/datatypes/Path.js.map +1 -0
- package/lib/commonjs/dom/nodes/datatypes/Radius.d.ts +3 -0
- package/lib/commonjs/dom/nodes/datatypes/Radius.js +14 -0
- package/lib/commonjs/dom/nodes/datatypes/Radius.js.map +1 -0
- package/lib/commonjs/dom/nodes/datatypes/Rect.d.ts +5 -0
- package/lib/commonjs/dom/nodes/datatypes/Rect.js +40 -0
- package/lib/commonjs/dom/nodes/datatypes/Rect.js.map +1 -0
- package/lib/commonjs/dom/nodes/datatypes/Transform.d.ts +3 -0
- package/lib/commonjs/dom/nodes/datatypes/Transform.js +33 -0
- package/lib/commonjs/dom/nodes/datatypes/Transform.js.map +1 -0
- package/lib/commonjs/dom/nodes/datatypes/index.d.ts +8 -0
- package/lib/commonjs/dom/nodes/datatypes/index.js +94 -0
- package/lib/commonjs/dom/nodes/datatypes/index.js.map +1 -0
- package/lib/commonjs/dom/nodes/drawings/AtlasNode.d.ts +8 -0
- package/lib/commonjs/dom/nodes/drawings/AtlasNode.js +36 -0
- package/lib/commonjs/dom/nodes/drawings/AtlasNode.js.map +1 -0
- package/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.d.ts +8 -0
- package/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.js +42 -0
- package/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.js.map +1 -0
- package/lib/commonjs/dom/nodes/drawings/Box.d.ts +15 -0
- package/lib/commonjs/dom/nodes/drawings/Box.js +82 -0
- package/lib/commonjs/dom/nodes/drawings/Box.js.map +1 -0
- package/lib/commonjs/dom/nodes/drawings/CircleNode.d.ts +9 -0
- package/lib/commonjs/dom/nodes/drawings/CircleNode.js +32 -0
- package/lib/commonjs/dom/nodes/drawings/CircleNode.js.map +1 -0
- package/lib/commonjs/dom/nodes/drawings/DiffRectNode.d.ts +8 -0
- package/lib/commonjs/dom/nodes/drawings/DiffRectNode.js +28 -0
- package/lib/commonjs/dom/nodes/drawings/DiffRectNode.js.map +1 -0
- package/lib/commonjs/dom/nodes/drawings/FillNode.d.ts +8 -0
- package/lib/commonjs/dom/nodes/drawings/FillNode.js +24 -0
- package/lib/commonjs/dom/nodes/drawings/FillNode.js.map +1 -0
- package/lib/commonjs/dom/nodes/drawings/ImageNode.d.ts +25 -0
- package/lib/commonjs/dom/nodes/drawings/ImageNode.js +71 -0
- package/lib/commonjs/dom/nodes/drawings/ImageNode.js.map +1 -0
- package/lib/commonjs/dom/nodes/drawings/ImageSVG.d.ts +13 -0
- package/lib/commonjs/dom/nodes/drawings/ImageSVG.js +57 -0
- package/lib/commonjs/dom/nodes/drawings/ImageSVG.js.map +1 -0
- package/lib/commonjs/dom/nodes/drawings/LineNode.d.ts +8 -0
- package/lib/commonjs/dom/nodes/drawings/LineNode.js +28 -0
- package/lib/commonjs/dom/nodes/drawings/LineNode.js.map +1 -0
- package/lib/commonjs/dom/nodes/drawings/OvalNode.d.ts +9 -0
- package/lib/commonjs/dom/nodes/drawings/OvalNode.js +28 -0
- package/lib/commonjs/dom/nodes/drawings/OvalNode.js.map +1 -0
- package/lib/commonjs/dom/nodes/drawings/ParagraphNode.d.ts +8 -0
- package/lib/commonjs/dom/nodes/drawings/ParagraphNode.js +32 -0
- package/lib/commonjs/dom/nodes/drawings/ParagraphNode.js.map +1 -0
- package/lib/commonjs/dom/nodes/drawings/PatchNode.d.ts +18 -0
- package/lib/commonjs/dom/nodes/drawings/PatchNode.js +53 -0
- package/lib/commonjs/dom/nodes/drawings/PatchNode.js.map +1 -0
- package/lib/commonjs/dom/nodes/drawings/PathNode.d.ts +9 -0
- package/lib/commonjs/dom/nodes/drawings/PathNode.js +55 -0
- package/lib/commonjs/dom/nodes/drawings/PathNode.js.map +1 -0
- package/lib/commonjs/dom/nodes/drawings/PictureNode.d.ts +8 -0
- package/lib/commonjs/dom/nodes/drawings/PictureNode.js +26 -0
- package/lib/commonjs/dom/nodes/drawings/PictureNode.js.map +1 -0
- package/lib/commonjs/dom/nodes/drawings/PointsNode.d.ts +8 -0
- package/lib/commonjs/dom/nodes/drawings/PointsNode.js +30 -0
- package/lib/commonjs/dom/nodes/drawings/PointsNode.js.map +1 -0
- package/lib/commonjs/dom/nodes/drawings/RRectNode.d.ts +10 -0
- package/lib/commonjs/dom/nodes/drawings/RRectNode.js +32 -0
- package/lib/commonjs/dom/nodes/drawings/RRectNode.js.map +1 -0
- package/lib/commonjs/dom/nodes/drawings/RectNode.d.ts +9 -0
- package/lib/commonjs/dom/nodes/drawings/RectNode.js +28 -0
- package/lib/commonjs/dom/nodes/drawings/RectNode.js.map +1 -0
- package/lib/commonjs/dom/nodes/drawings/Text.d.ts +30 -0
- package/lib/commonjs/dom/nodes/drawings/Text.js +159 -0
- package/lib/commonjs/dom/nodes/drawings/Text.js.map +1 -0
- package/lib/commonjs/dom/nodes/drawings/VerticesNode.d.ts +9 -0
- package/lib/commonjs/dom/nodes/drawings/VerticesNode.js +43 -0
- package/lib/commonjs/dom/nodes/drawings/VerticesNode.js.map +1 -0
- package/lib/commonjs/dom/nodes/drawings/index.d.ts +18 -0
- package/lib/commonjs/dom/nodes/drawings/index.js +204 -0
- package/lib/commonjs/dom/nodes/drawings/index.js.map +1 -0
- package/lib/commonjs/dom/nodes/index.d.ts +3 -0
- package/lib/commonjs/dom/nodes/index.js +39 -0
- package/lib/commonjs/dom/nodes/index.js.map +1 -0
- package/lib/commonjs/dom/nodes/paint/BlendNode.d.ts +8 -0
- package/lib/commonjs/dom/nodes/paint/BlendNode.js +37 -0
- package/lib/commonjs/dom/nodes/paint/BlendNode.js.map +1 -0
- package/lib/commonjs/dom/nodes/paint/ColorFilters.d.ts +35 -0
- package/lib/commonjs/dom/nodes/paint/ColorFilters.js +102 -0
- package/lib/commonjs/dom/nodes/paint/ColorFilters.js.map +1 -0
- package/lib/commonjs/dom/nodes/paint/ImageFilters.d.ts +42 -0
- package/lib/commonjs/dom/nodes/paint/ImageFilters.js +183 -0
- package/lib/commonjs/dom/nodes/paint/ImageFilters.js.map +1 -0
- package/lib/commonjs/dom/nodes/paint/MaskFilters.d.ts +8 -0
- package/lib/commonjs/dom/nodes/paint/MaskFilters.js +26 -0
- package/lib/commonjs/dom/nodes/paint/MaskFilters.js.map +1 -0
- package/lib/commonjs/dom/nodes/paint/PathEffects.d.ts +39 -0
- package/lib/commonjs/dom/nodes/paint/PathEffects.js +136 -0
- package/lib/commonjs/dom/nodes/paint/PathEffects.js.map +1 -0
- package/lib/commonjs/dom/nodes/paint/Shaders.d.ts +43 -0
- package/lib/commonjs/dom/nodes/paint/Shaders.js +209 -0
- package/lib/commonjs/dom/nodes/paint/Shaders.js.map +1 -0
- package/lib/commonjs/dom/nodes/paint/index.d.ts +6 -0
- package/lib/commonjs/dom/nodes/paint/index.js +72 -0
- package/lib/commonjs/dom/nodes/paint/index.js.map +1 -0
- package/lib/commonjs/dom/types/ColorFilters.d.ts +12 -0
- package/lib/commonjs/dom/types/ColorFilters.js +6 -0
- package/lib/commonjs/dom/types/ColorFilters.js.map +1 -0
- package/lib/commonjs/dom/types/Common.d.ts +57 -0
- package/lib/commonjs/dom/types/Common.js +6 -0
- package/lib/commonjs/dom/types/Common.js.map +1 -0
- package/lib/commonjs/dom/types/DeclarationContext.d.ts +29 -0
- package/lib/commonjs/dom/types/DeclarationContext.js +91 -0
- package/lib/commonjs/dom/types/DeclarationContext.js.map +1 -0
- package/lib/commonjs/dom/types/DrawingContext.d.ts +22 -0
- package/lib/commonjs/dom/types/DrawingContext.js +263 -0
- package/lib/commonjs/dom/types/DrawingContext.js.map +1 -0
- package/lib/commonjs/dom/types/Drawings.d.ts +111 -0
- package/lib/commonjs/dom/types/Drawings.js +6 -0
- package/lib/commonjs/dom/types/Drawings.js.map +1 -0
- package/lib/commonjs/dom/types/ImageFilters.d.ts +37 -0
- package/lib/commonjs/dom/types/ImageFilters.js +6 -0
- package/lib/commonjs/dom/types/ImageFilters.js.map +1 -0
- package/lib/commonjs/dom/types/MaskFilters.d.ts +7 -0
- package/lib/commonjs/dom/types/MaskFilters.js +6 -0
- package/lib/commonjs/dom/types/MaskFilters.js.map +1 -0
- package/lib/commonjs/dom/types/Node.d.ts +22 -0
- package/lib/commonjs/dom/types/Node.js +6 -0
- package/lib/commonjs/dom/types/Node.js.map +1 -0
- package/lib/commonjs/dom/types/NodeType.d.ts +59 -0
- package/lib/commonjs/dom/types/NodeType.js +67 -0
- package/lib/commonjs/dom/types/NodeType.js.map +1 -0
- package/lib/commonjs/dom/types/Paragraph.d.ts +8 -0
- package/lib/commonjs/dom/types/Paragraph.js +6 -0
- package/lib/commonjs/dom/types/Paragraph.js.map +1 -0
- package/lib/commonjs/dom/types/PathEffects.d.ts +28 -0
- package/lib/commonjs/dom/types/PathEffects.js +6 -0
- package/lib/commonjs/dom/types/PathEffects.js.map +1 -0
- package/lib/commonjs/dom/types/Shaders.d.ts +59 -0
- package/lib/commonjs/dom/types/Shaders.js +6 -0
- package/lib/commonjs/dom/types/Shaders.js.map +1 -0
- package/lib/commonjs/dom/types/SkDOM.d.ts +73 -0
- package/lib/commonjs/dom/types/SkDOM.js +6 -0
- package/lib/commonjs/dom/types/SkDOM.js.map +1 -0
- package/lib/commonjs/dom/types/index.d.ts +13 -0
- package/lib/commonjs/dom/types/index.js +149 -0
- package/lib/commonjs/dom/types/index.js.map +1 -0
- package/lib/commonjs/external/ModuleProxy.d.ts +10 -0
- package/lib/commonjs/external/ModuleProxy.js +36 -0
- package/lib/commonjs/external/ModuleProxy.js.map +1 -0
- package/lib/commonjs/external/index.d.ts +1 -0
- package/lib/commonjs/external/index.js +17 -0
- package/lib/commonjs/external/index.js.map +1 -0
- package/lib/commonjs/external/reanimated/ReanimatedProxy.d.ts +3 -0
- package/lib/commonjs/external/reanimated/ReanimatedProxy.js +18 -0
- package/lib/commonjs/external/reanimated/ReanimatedProxy.js.map +1 -0
- package/lib/commonjs/external/reanimated/buffers.d.ts +7 -0
- package/lib/commonjs/external/reanimated/buffers.js +51 -0
- package/lib/commonjs/external/reanimated/buffers.js.map +1 -0
- package/lib/commonjs/external/reanimated/index.d.ts +7 -0
- package/lib/commonjs/external/reanimated/index.js +83 -0
- package/lib/commonjs/external/reanimated/index.js.map +1 -0
- package/lib/commonjs/external/reanimated/interpolators.d.ts +10 -0
- package/lib/commonjs/external/reanimated/interpolators.js +75 -0
- package/lib/commonjs/external/reanimated/interpolators.js.map +1 -0
- package/lib/commonjs/external/reanimated/renderHelpers.d.ts +6 -0
- package/lib/commonjs/external/reanimated/renderHelpers.js +127 -0
- package/lib/commonjs/external/reanimated/renderHelpers.js.map +1 -0
- package/lib/commonjs/external/reanimated/textures.d.ts +8 -0
- package/lib/commonjs/external/reanimated/textures.js +85 -0
- package/lib/commonjs/external/reanimated/textures.js.map +1 -0
- package/lib/commonjs/external/reanimated/useAnimatedImageValue.d.ts +3 -0
- package/lib/commonjs/external/reanimated/useAnimatedImageValue.js +59 -0
- package/lib/commonjs/external/reanimated/useAnimatedImageValue.js.map +1 -0
- package/lib/commonjs/external/reanimated/useDerivedValueOnJS.d.ts +1 -0
- package/lib/commonjs/external/reanimated/useDerivedValueOnJS.js +24 -0
- package/lib/commonjs/external/reanimated/useDerivedValueOnJS.js.map +1 -0
- package/lib/commonjs/external/reanimated/useVideo.d.ts +21 -0
- package/lib/commonjs/external/reanimated/useVideo.js +148 -0
- package/lib/commonjs/external/reanimated/useVideo.js.map +1 -0
- package/lib/commonjs/external/reanimated/useVideoLoading.d.ts +4 -0
- package/lib/commonjs/external/reanimated/useVideoLoading.js +31 -0
- package/lib/commonjs/external/reanimated/useVideoLoading.js.map +1 -0
- package/lib/commonjs/external/reanimated/useVideoLoading.web.d.ts +4 -0
- package/lib/commonjs/external/reanimated/useVideoLoading.web.js +20 -0
- package/lib/commonjs/external/reanimated/useVideoLoading.web.js.map +1 -0
- package/lib/commonjs/headless/index.d.ts +8 -0
- package/lib/commonjs/headless/index.js +62 -0
- package/lib/commonjs/headless/index.js.map +1 -0
- package/lib/commonjs/index.d.ts +11 -0
- package/lib/commonjs/index.js +125 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/mock/index.d.ts +2 -0
- package/lib/commonjs/mock/index.js +59 -0
- package/lib/commonjs/mock/index.js.map +1 -0
- package/lib/commonjs/renderer/Canvas.d.ts +11 -0
- package/lib/commonjs/renderer/Canvas.js +116 -0
- package/lib/commonjs/renderer/Canvas.js.map +1 -0
- package/lib/commonjs/renderer/Container.d.ts +11 -0
- package/lib/commonjs/renderer/Container.js +30 -0
- package/lib/commonjs/renderer/Container.js.map +1 -0
- package/lib/commonjs/renderer/DrawingContext.d.ts +7 -0
- package/lib/commonjs/renderer/DrawingContext.js +6 -0
- package/lib/commonjs/renderer/DrawingContext.js.map +1 -0
- package/lib/commonjs/renderer/HostComponents.d.ts +132 -0
- package/lib/commonjs/renderer/HostComponents.js +144 -0
- package/lib/commonjs/renderer/HostComponents.js.map +1 -0
- package/lib/commonjs/renderer/HostConfig.d.ts +19 -0
- package/lib/commonjs/renderer/HostConfig.js +149 -0
- package/lib/commonjs/renderer/HostConfig.js.map +1 -0
- package/lib/commonjs/renderer/Offscreen.d.ts +6 -0
- package/lib/commonjs/renderer/Offscreen.js +50 -0
- package/lib/commonjs/renderer/Offscreen.js.map +1 -0
- package/lib/commonjs/renderer/Reconciler.d.ts +10 -0
- package/lib/commonjs/renderer/Reconciler.js +43 -0
- package/lib/commonjs/renderer/Reconciler.js.map +1 -0
- package/lib/commonjs/renderer/components/Blend.d.ts +4 -0
- package/lib/commonjs/renderer/components/Blend.js +13 -0
- package/lib/commonjs/renderer/components/Blend.js.map +1 -0
- package/lib/commonjs/renderer/components/Group.d.ts +8 -0
- package/lib/commonjs/renderer/components/Group.js +23 -0
- package/lib/commonjs/renderer/components/Group.js.map +1 -0
- package/lib/commonjs/renderer/components/Mask.d.ts +10 -0
- package/lib/commonjs/renderer/components/Mask.js +33 -0
- package/lib/commonjs/renderer/components/Mask.js.map +1 -0
- package/lib/commonjs/renderer/components/Paint.d.ts +4 -0
- package/lib/commonjs/renderer/components/Paint.js +13 -0
- package/lib/commonjs/renderer/components/Paint.js.map +1 -0
- package/lib/commonjs/renderer/components/Picture.d.ts +4 -0
- package/lib/commonjs/renderer/components/Picture.js +13 -0
- package/lib/commonjs/renderer/components/Picture.js.map +1 -0
- package/lib/commonjs/renderer/components/backdrop/BackdropBlur.d.ts +9 -0
- package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js +25 -0
- package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js.map +1 -0
- package/lib/commonjs/renderer/components/backdrop/BackdropFilter.d.ts +8 -0
- package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js +18 -0
- package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js.map +1 -0
- package/lib/commonjs/renderer/components/backdrop/index.d.ts +2 -0
- package/lib/commonjs/renderer/components/backdrop/index.js +28 -0
- package/lib/commonjs/renderer/components/backdrop/index.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/BlendColor.d.ts +4 -0
- package/lib/commonjs/renderer/components/colorFilters/BlendColor.js +13 -0
- package/lib/commonjs/renderer/components/colorFilters/BlendColor.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/Lerp.d.ts +4 -0
- package/lib/commonjs/renderer/components/colorFilters/Lerp.js +13 -0
- package/lib/commonjs/renderer/components/colorFilters/Lerp.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.d.ts +4 -0
- package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js +13 -0
- package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.d.ts +4 -0
- package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js +13 -0
- package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/Matrix.d.ts +5 -0
- package/lib/commonjs/renderer/components/colorFilters/Matrix.js +15 -0
- package/lib/commonjs/renderer/components/colorFilters/Matrix.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.d.ts +4 -0
- package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js +13 -0
- package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/index.d.ts +6 -0
- package/lib/commonjs/renderer/components/colorFilters/index.js +72 -0
- package/lib/commonjs/renderer/components/colorFilters/index.js.map +1 -0
- package/lib/commonjs/renderer/components/image/Image.d.ts +4 -0
- package/lib/commonjs/renderer/components/image/Image.js +13 -0
- package/lib/commonjs/renderer/components/image/Image.js.map +1 -0
- package/lib/commonjs/renderer/components/image/ImageSVG.d.ts +4 -0
- package/lib/commonjs/renderer/components/image/ImageSVG.js +13 -0
- package/lib/commonjs/renderer/components/image/ImageSVG.js.map +1 -0
- package/lib/commonjs/renderer/components/image/ImageShader.d.ts +4 -0
- package/lib/commonjs/renderer/components/image/ImageShader.js +29 -0
- package/lib/commonjs/renderer/components/image/ImageShader.js.map +1 -0
- package/lib/commonjs/renderer/components/image/index.d.ts +3 -0
- package/lib/commonjs/renderer/components/image/index.js +39 -0
- package/lib/commonjs/renderer/components/image/index.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/Blur.d.ts +4 -0
- package/lib/commonjs/renderer/components/imageFilters/Blur.js +19 -0
- package/lib/commonjs/renderer/components/imageFilters/Blur.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.d.ts +4 -0
- package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js +13 -0
- package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/Morphology.d.ts +4 -0
- package/lib/commonjs/renderer/components/imageFilters/Morphology.js +19 -0
- package/lib/commonjs/renderer/components/imageFilters/Morphology.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/Offset.d.ts +4 -0
- package/lib/commonjs/renderer/components/imageFilters/Offset.js +21 -0
- package/lib/commonjs/renderer/components/imageFilters/Offset.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.d.ts +4 -0
- package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js +13 -0
- package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/Shadow.d.ts +4 -0
- package/lib/commonjs/renderer/components/imageFilters/Shadow.js +13 -0
- package/lib/commonjs/renderer/components/imageFilters/Shadow.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/index.d.ts +6 -0
- package/lib/commonjs/renderer/components/imageFilters/index.js +72 -0
- package/lib/commonjs/renderer/components/imageFilters/index.js.map +1 -0
- package/lib/commonjs/renderer/components/index.d.ts +16 -0
- package/lib/commonjs/renderer/components/index.js +182 -0
- package/lib/commonjs/renderer/components/index.js.map +1 -0
- package/lib/commonjs/renderer/components/maskFilters/Blur.d.ts +4 -0
- package/lib/commonjs/renderer/components/maskFilters/Blur.js +21 -0
- package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -0
- package/lib/commonjs/renderer/components/maskFilters/index.d.ts +1 -0
- package/lib/commonjs/renderer/components/maskFilters/index.js +17 -0
- package/lib/commonjs/renderer/components/maskFilters/index.js.map +1 -0
- package/lib/commonjs/renderer/components/paragraph/Paragraph.d.ts +4 -0
- package/lib/commonjs/renderer/components/paragraph/Paragraph.js +13 -0
- package/lib/commonjs/renderer/components/paragraph/Paragraph.js.map +1 -0
- package/lib/commonjs/renderer/components/paragraph/index.d.ts +1 -0
- package/lib/commonjs/renderer/components/paragraph/index.js +17 -0
- package/lib/commonjs/renderer/components/paragraph/index.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Corner.d.ts +4 -0
- package/lib/commonjs/renderer/components/pathEffects/Corner.js +13 -0
- package/lib/commonjs/renderer/components/pathEffects/Corner.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Dash.d.ts +4 -0
- package/lib/commonjs/renderer/components/pathEffects/Dash.js +13 -0
- package/lib/commonjs/renderer/components/pathEffects/Dash.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Discrete.d.ts +4 -0
- package/lib/commonjs/renderer/components/pathEffects/Discrete.js +19 -0
- package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Line2D.d.ts +4 -0
- package/lib/commonjs/renderer/components/pathEffects/Line2D.js +13 -0
- package/lib/commonjs/renderer/components/pathEffects/Line2D.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Path1D.d.ts +4 -0
- package/lib/commonjs/renderer/components/pathEffects/Path1D.js +13 -0
- package/lib/commonjs/renderer/components/pathEffects/Path1D.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Path2D.d.ts +4 -0
- package/lib/commonjs/renderer/components/pathEffects/Path2D.js +13 -0
- package/lib/commonjs/renderer/components/pathEffects/Path2D.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Sum.d.ts +3 -0
- package/lib/commonjs/renderer/components/pathEffects/Sum.js +13 -0
- package/lib/commonjs/renderer/components/pathEffects/Sum.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/index.d.ts +7 -0
- package/lib/commonjs/renderer/components/pathEffects/index.js +83 -0
- package/lib/commonjs/renderer/components/pathEffects/index.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/Color.d.ts +4 -0
- package/lib/commonjs/renderer/components/shaders/Color.js +13 -0
- package/lib/commonjs/renderer/components/shaders/Color.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/FractalNoise.d.ts +4 -0
- package/lib/commonjs/renderer/components/shaders/FractalNoise.js +23 -0
- package/lib/commonjs/renderer/components/shaders/FractalNoise.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/LinearGradient.d.ts +4 -0
- package/lib/commonjs/renderer/components/shaders/LinearGradient.js +13 -0
- package/lib/commonjs/renderer/components/shaders/LinearGradient.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/RadialGradient.d.ts +4 -0
- package/lib/commonjs/renderer/components/shaders/RadialGradient.js +13 -0
- package/lib/commonjs/renderer/components/shaders/RadialGradient.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/Shader.d.ts +4 -0
- package/lib/commonjs/renderer/components/shaders/Shader.js +19 -0
- package/lib/commonjs/renderer/components/shaders/Shader.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/ShaderLib.d.ts +4 -0
- package/lib/commonjs/renderer/components/shaders/ShaderLib.js +51 -0
- package/lib/commonjs/renderer/components/shaders/ShaderLib.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/SweepGradient.d.ts +4 -0
- package/lib/commonjs/renderer/components/shaders/SweepGradient.js +13 -0
- package/lib/commonjs/renderer/components/shaders/SweepGradient.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/Turbulence.d.ts +4 -0
- package/lib/commonjs/renderer/components/shaders/Turbulence.js +23 -0
- package/lib/commonjs/renderer/components/shaders/Turbulence.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.d.ts +4 -0
- package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js +13 -0
- package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/index.d.ts +9 -0
- package/lib/commonjs/renderer/components/shaders/index.js +105 -0
- package/lib/commonjs/renderer/components/shaders/index.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Atlas.d.ts +4 -0
- package/lib/commonjs/renderer/components/shapes/Atlas.js +13 -0
- package/lib/commonjs/renderer/components/shapes/Atlas.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Box.d.ts +5 -0
- package/lib/commonjs/renderer/components/shapes/Box.js +17 -0
- package/lib/commonjs/renderer/components/shapes/Box.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Circle.d.ts +4 -0
- package/lib/commonjs/renderer/components/shapes/Circle.js +13 -0
- package/lib/commonjs/renderer/components/shapes/Circle.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/DiffRect.d.ts +4 -0
- package/lib/commonjs/renderer/components/shapes/DiffRect.js +13 -0
- package/lib/commonjs/renderer/components/shapes/DiffRect.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Fill.d.ts +4 -0
- package/lib/commonjs/renderer/components/shapes/Fill.js +13 -0
- package/lib/commonjs/renderer/components/shapes/Fill.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/FitBox.d.ts +13 -0
- package/lib/commonjs/renderer/components/shapes/FitBox.js +58 -0
- package/lib/commonjs/renderer/components/shapes/FitBox.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Line.d.ts +4 -0
- package/lib/commonjs/renderer/components/shapes/Line.js +13 -0
- package/lib/commonjs/renderer/components/shapes/Line.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Oval.d.ts +4 -0
- package/lib/commonjs/renderer/components/shapes/Oval.js +13 -0
- package/lib/commonjs/renderer/components/shapes/Oval.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Patch.d.ts +4 -0
- package/lib/commonjs/renderer/components/shapes/Patch.js +13 -0
- package/lib/commonjs/renderer/components/shapes/Patch.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Path.d.ts +4 -0
- package/lib/commonjs/renderer/components/shapes/Path.js +21 -0
- package/lib/commonjs/renderer/components/shapes/Path.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Points.d.ts +4 -0
- package/lib/commonjs/renderer/components/shapes/Points.js +19 -0
- package/lib/commonjs/renderer/components/shapes/Points.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Rect.d.ts +4 -0
- package/lib/commonjs/renderer/components/shapes/Rect.js +13 -0
- package/lib/commonjs/renderer/components/shapes/Rect.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/RoundedRect.d.ts +4 -0
- package/lib/commonjs/renderer/components/shapes/RoundedRect.js +13 -0
- package/lib/commonjs/renderer/components/shapes/RoundedRect.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Vertices.d.ts +4 -0
- package/lib/commonjs/renderer/components/shapes/Vertices.js +19 -0
- package/lib/commonjs/renderer/components/shapes/Vertices.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/index.d.ts +14 -0
- package/lib/commonjs/renderer/components/shapes/index.js +160 -0
- package/lib/commonjs/renderer/components/shapes/index.js.map +1 -0
- package/lib/commonjs/renderer/components/text/Glyphs.d.ts +4 -0
- package/lib/commonjs/renderer/components/text/Glyphs.js +21 -0
- package/lib/commonjs/renderer/components/text/Glyphs.js.map +1 -0
- package/lib/commonjs/renderer/components/text/Text.d.ts +4 -0
- package/lib/commonjs/renderer/components/text/Text.js +21 -0
- package/lib/commonjs/renderer/components/text/Text.js.map +1 -0
- package/lib/commonjs/renderer/components/text/TextBlob.d.ts +4 -0
- package/lib/commonjs/renderer/components/text/TextBlob.js +21 -0
- package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -0
- package/lib/commonjs/renderer/components/text/TextPath.d.ts +4 -0
- package/lib/commonjs/renderer/components/text/TextPath.js +19 -0
- package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -0
- package/lib/commonjs/renderer/components/text/index.d.ts +4 -0
- package/lib/commonjs/renderer/components/text/index.js +50 -0
- package/lib/commonjs/renderer/components/text/index.js.map +1 -0
- package/lib/commonjs/renderer/index.d.ts +1 -0
- package/lib/commonjs/renderer/index.js +17 -0
- package/lib/commonjs/renderer/index.js.map +1 -0
- package/lib/commonjs/renderer/processors/Animations/Animations.d.ts +13 -0
- package/lib/commonjs/renderer/processors/Animations/Animations.js +2 -0
- package/lib/commonjs/renderer/processors/Animations/Animations.js.map +1 -0
- package/lib/commonjs/renderer/processors/Animations/index.d.ts +1 -0
- package/lib/commonjs/renderer/processors/Animations/index.js +17 -0
- package/lib/commonjs/renderer/processors/Animations/index.js.map +1 -0
- package/lib/commonjs/renderer/processors/index.d.ts +2 -0
- package/lib/commonjs/renderer/processors/index.js +28 -0
- package/lib/commonjs/renderer/processors/index.js.map +1 -0
- package/lib/commonjs/renderer/processors/math/Coordinates.d.ts +29 -0
- package/lib/commonjs/renderer/processors/math/Coordinates.js +55 -0
- package/lib/commonjs/renderer/processors/math/Coordinates.js.map +1 -0
- package/lib/commonjs/renderer/processors/math/Math.d.ts +16 -0
- package/lib/commonjs/renderer/processors/math/Math.js +39 -0
- package/lib/commonjs/renderer/processors/math/Math.js.map +1 -0
- package/lib/commonjs/renderer/processors/math/Transforms.d.ts +5 -0
- package/lib/commonjs/renderer/processors/math/Transforms.js +21 -0
- package/lib/commonjs/renderer/processors/math/Transforms.js.map +1 -0
- package/lib/commonjs/renderer/processors/math/index.d.ts +3 -0
- package/lib/commonjs/renderer/processors/math/index.js +39 -0
- package/lib/commonjs/renderer/processors/math/index.js.map +1 -0
- package/lib/commonjs/renderer/typeddash.d.ts +3 -0
- package/lib/commonjs/renderer/typeddash.js +34 -0
- package/lib/commonjs/renderer/typeddash.js.map +1 -0
- package/lib/commonjs/skia/NativeSetup.d.ts +1 -0
- package/lib/commonjs/skia/NativeSetup.js +17 -0
- package/lib/commonjs/skia/NativeSetup.js.map +1 -0
- package/lib/commonjs/skia/Skia.d.ts +8 -0
- package/lib/commonjs/skia/Skia.js +14 -0
- package/lib/commonjs/skia/Skia.js.map +1 -0
- package/lib/commonjs/skia/Skia.web.d.ts +1 -0
- package/lib/commonjs/skia/Skia.web.js +9 -0
- package/lib/commonjs/skia/Skia.web.js.map +1 -0
- package/lib/commonjs/skia/core/AnimatedImage.d.ts +5 -0
- package/lib/commonjs/skia/core/AnimatedImage.js +16 -0
- package/lib/commonjs/skia/core/AnimatedImage.js.map +1 -0
- package/lib/commonjs/skia/core/Data.d.ts +5 -0
- package/lib/commonjs/skia/core/Data.js +82 -0
- package/lib/commonjs/skia/core/Data.js.map +1 -0
- package/lib/commonjs/skia/core/Font.d.ts +18 -0
- package/lib/commonjs/skia/core/Font.js +100 -0
- package/lib/commonjs/skia/core/Font.js.map +1 -0
- package/lib/commonjs/skia/core/Image.d.ts +17 -0
- package/lib/commonjs/skia/core/Image.js +44 -0
- package/lib/commonjs/skia/core/Image.js.map +1 -0
- package/lib/commonjs/skia/core/Matrix.d.ts +2 -0
- package/lib/commonjs/skia/core/Matrix.js +15 -0
- package/lib/commonjs/skia/core/Matrix.js.map +1 -0
- package/lib/commonjs/skia/core/Picture.d.ts +8 -0
- package/lib/commonjs/skia/core/Picture.js +28 -0
- package/lib/commonjs/skia/core/Picture.js.map +1 -0
- package/lib/commonjs/skia/core/RRect.d.ts +2 -0
- package/lib/commonjs/skia/core/RRect.js +14 -0
- package/lib/commonjs/skia/core/RRect.js.map +1 -0
- package/lib/commonjs/skia/core/Rect.d.ts +8 -0
- package/lib/commonjs/skia/core/Rect.js +56 -0
- package/lib/commonjs/skia/core/Rect.js.map +1 -0
- package/lib/commonjs/skia/core/SVG.d.ts +2 -0
- package/lib/commonjs/skia/core/SVG.js +12 -0
- package/lib/commonjs/skia/core/SVG.js.map +1 -0
- package/lib/commonjs/skia/core/SVG.web.d.ts +2 -0
- package/lib/commonjs/skia/core/SVG.web.js +22 -0
- package/lib/commonjs/skia/core/SVG.web.js.map +1 -0
- package/lib/commonjs/skia/core/Typeface.d.ts +5 -0
- package/lib/commonjs/skia/core/Typeface.js +16 -0
- package/lib/commonjs/skia/core/Typeface.js.map +1 -0
- package/lib/commonjs/skia/core/Vector.d.ts +7 -0
- package/lib/commonjs/skia/core/Vector.js +39 -0
- package/lib/commonjs/skia/core/Vector.js.map +1 -0
- package/lib/commonjs/skia/core/index.d.ts +11 -0
- package/lib/commonjs/skia/core/index.js +127 -0
- package/lib/commonjs/skia/core/index.js.map +1 -0
- package/lib/commonjs/skia/index.d.ts +3 -0
- package/lib/commonjs/skia/index.js +40 -0
- package/lib/commonjs/skia/index.js.map +1 -0
- package/lib/commonjs/skia/types/AnimatedImage/AnimatedImage.d.ts +24 -0
- package/lib/commonjs/skia/types/AnimatedImage/AnimatedImage.js +6 -0
- package/lib/commonjs/skia/types/AnimatedImage/AnimatedImage.js.map +1 -0
- package/lib/commonjs/skia/types/AnimatedImage/AnimatedImageFactory.d.ts +13 -0
- package/lib/commonjs/skia/types/AnimatedImage/AnimatedImageFactory.js +6 -0
- package/lib/commonjs/skia/types/AnimatedImage/AnimatedImageFactory.js.map +1 -0
- package/lib/commonjs/skia/types/AnimatedImage/index.d.ts +2 -0
- package/lib/commonjs/skia/types/AnimatedImage/index.js +28 -0
- package/lib/commonjs/skia/types/AnimatedImage/index.js.map +1 -0
- package/lib/commonjs/skia/types/Canvas.d.ts +404 -0
- package/lib/commonjs/skia/types/Canvas.js +17 -0
- package/lib/commonjs/skia/types/Canvas.js.map +1 -0
- package/lib/commonjs/skia/types/Color.d.ts +2 -0
- package/lib/commonjs/skia/types/Color.js +2 -0
- package/lib/commonjs/skia/types/Color.js.map +1 -0
- package/lib/commonjs/skia/types/ColorFilter/ColorFilter.d.ts +3 -0
- package/lib/commonjs/skia/types/ColorFilter/ColorFilter.js +9 -0
- package/lib/commonjs/skia/types/ColorFilter/ColorFilter.js.map +1 -0
- package/lib/commonjs/skia/types/ColorFilter/ColorFilterFactory.d.ts +43 -0
- package/lib/commonjs/skia/types/ColorFilter/ColorFilterFactory.js +6 -0
- package/lib/commonjs/skia/types/ColorFilter/ColorFilterFactory.js.map +1 -0
- package/lib/commonjs/skia/types/ColorFilter/index.d.ts +2 -0
- package/lib/commonjs/skia/types/ColorFilter/index.js +28 -0
- package/lib/commonjs/skia/types/ColorFilter/index.js.map +1 -0
- package/lib/commonjs/skia/types/ContourMeasure.d.ts +41 -0
- package/lib/commonjs/skia/types/ContourMeasure.js +6 -0
- package/lib/commonjs/skia/types/ContourMeasure.js.map +1 -0
- package/lib/commonjs/skia/types/Data/Data.d.ts +12 -0
- package/lib/commonjs/skia/types/Data/Data.js +9 -0
- package/lib/commonjs/skia/types/Data/Data.js.map +1 -0
- package/lib/commonjs/skia/types/Data/DataFactory.d.ts +18 -0
- package/lib/commonjs/skia/types/Data/DataFactory.js +6 -0
- package/lib/commonjs/skia/types/Data/DataFactory.js.map +1 -0
- package/lib/commonjs/skia/types/Data/index.d.ts +2 -0
- package/lib/commonjs/skia/types/Data/index.js +28 -0
- package/lib/commonjs/skia/types/Data/index.js.map +1 -0
- package/lib/commonjs/skia/types/Font/Font.d.ts +189 -0
- package/lib/commonjs/skia/types/Font/Font.js +63 -0
- package/lib/commonjs/skia/types/Font/Font.js.map +1 -0
- package/lib/commonjs/skia/types/Font/FontMgr.d.ts +8 -0
- package/lib/commonjs/skia/types/Font/FontMgr.js +6 -0
- package/lib/commonjs/skia/types/Font/FontMgr.js.map +1 -0
- package/lib/commonjs/skia/types/Font/FontMgrFactory.d.ts +4 -0
- package/lib/commonjs/skia/types/Font/FontMgrFactory.js +6 -0
- package/lib/commonjs/skia/types/Font/FontMgrFactory.js.map +1 -0
- package/lib/commonjs/skia/types/Font/index.d.ts +3 -0
- package/lib/commonjs/skia/types/Font/index.js +39 -0
- package/lib/commonjs/skia/types/Font/index.js.map +1 -0
- package/lib/commonjs/skia/types/Image/Image.d.ts +102 -0
- package/lib/commonjs/skia/types/Image/Image.js +24 -0
- package/lib/commonjs/skia/types/Image/Image.js.map +1 -0
- package/lib/commonjs/skia/types/Image/ImageFactory.d.ts +80 -0
- package/lib/commonjs/skia/types/Image/ImageFactory.js +34 -0
- package/lib/commonjs/skia/types/Image/ImageFactory.js.map +1 -0
- package/lib/commonjs/skia/types/Image/index.d.ts +2 -0
- package/lib/commonjs/skia/types/Image/index.js +28 -0
- package/lib/commonjs/skia/types/Image/index.js.map +1 -0
- package/lib/commonjs/skia/types/ImageFilter/ImageFilter.d.ts +23 -0
- package/lib/commonjs/skia/types/ImageFilter/ImageFilter.js +16 -0
- package/lib/commonjs/skia/types/ImageFilter/ImageFilter.js.map +1 -0
- package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.d.ts +130 -0
- package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js +14 -0
- package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -0
- package/lib/commonjs/skia/types/ImageFilter/index.d.ts +2 -0
- package/lib/commonjs/skia/types/ImageFilter/index.js +28 -0
- package/lib/commonjs/skia/types/ImageFilter/index.js.map +1 -0
- package/lib/commonjs/skia/types/JsiInstance.d.ts +4 -0
- package/lib/commonjs/skia/types/JsiInstance.js +2 -0
- package/lib/commonjs/skia/types/JsiInstance.js.map +1 -0
- package/lib/commonjs/skia/types/MaskFilter.d.ts +21 -0
- package/lib/commonjs/skia/types/MaskFilter.js +20 -0
- package/lib/commonjs/skia/types/MaskFilter.js.map +1 -0
- package/lib/commonjs/skia/types/Matrix.d.ts +23 -0
- package/lib/commonjs/skia/types/Matrix.js +22 -0
- package/lib/commonjs/skia/types/Matrix.js.map +1 -0
- package/lib/commonjs/skia/types/Matrix4.d.ts +103 -0
- package/lib/commonjs/skia/types/Matrix4.js +295 -0
- package/lib/commonjs/skia/types/Matrix4.js.map +1 -0
- package/lib/commonjs/skia/types/NativeBuffer/NativeBufferFactory.d.ts +20 -0
- package/lib/commonjs/skia/types/NativeBuffer/NativeBufferFactory.js +15 -0
- package/lib/commonjs/skia/types/NativeBuffer/NativeBufferFactory.js.map +1 -0
- package/lib/commonjs/skia/types/NativeBuffer/index.d.ts +1 -0
- package/lib/commonjs/skia/types/NativeBuffer/index.js +17 -0
- package/lib/commonjs/skia/types/NativeBuffer/index.js.map +1 -0
- package/lib/commonjs/skia/types/Paint/BlendMode.d.ts +58 -0
- package/lib/commonjs/skia/types/Paint/BlendMode.js +66 -0
- package/lib/commonjs/skia/types/Paint/BlendMode.js.map +1 -0
- package/lib/commonjs/skia/types/Paint/Paint.d.ts +141 -0
- package/lib/commonjs/skia/types/Paint/Paint.js +26 -0
- package/lib/commonjs/skia/types/Paint/Paint.js.map +1 -0
- package/lib/commonjs/skia/types/Paint/index.d.ts +2 -0
- package/lib/commonjs/skia/types/Paint/index.js +28 -0
- package/lib/commonjs/skia/types/Paint/index.js.map +1 -0
- package/lib/commonjs/skia/types/Paragraph/Paragraph.d.ts +79 -0
- package/lib/commonjs/skia/types/Paragraph/Paragraph.js +6 -0
- package/lib/commonjs/skia/types/Paragraph/Paragraph.js.map +1 -0
- package/lib/commonjs/skia/types/Paragraph/ParagraphBuilder.d.ts +60 -0
- package/lib/commonjs/skia/types/Paragraph/ParagraphBuilder.js +16 -0
- package/lib/commonjs/skia/types/Paragraph/ParagraphBuilder.js.map +1 -0
- package/lib/commonjs/skia/types/Paragraph/ParagraphStyle.d.ts +41 -0
- package/lib/commonjs/skia/types/Paragraph/ParagraphStyle.js +28 -0
- package/lib/commonjs/skia/types/Paragraph/ParagraphStyle.js.map +1 -0
- package/lib/commonjs/skia/types/Paragraph/TextStyle.d.ts +62 -0
- package/lib/commonjs/skia/types/Paragraph/TextStyle.js +27 -0
- package/lib/commonjs/skia/types/Paragraph/TextStyle.js.map +1 -0
- package/lib/commonjs/skia/types/Paragraph/TypefaceFontProvider.d.ts +10 -0
- package/lib/commonjs/skia/types/Paragraph/TypefaceFontProvider.js +6 -0
- package/lib/commonjs/skia/types/Paragraph/TypefaceFontProvider.js.map +1 -0
- package/lib/commonjs/skia/types/Paragraph/TypefaceFontProviderFactory.d.ts +4 -0
- package/lib/commonjs/skia/types/Paragraph/TypefaceFontProviderFactory.js +6 -0
- package/lib/commonjs/skia/types/Paragraph/TypefaceFontProviderFactory.js.map +1 -0
- package/lib/commonjs/skia/types/Paragraph/index.d.ts +6 -0
- package/lib/commonjs/skia/types/Paragraph/index.js +72 -0
- package/lib/commonjs/skia/types/Paragraph/index.js.map +1 -0
- package/lib/commonjs/skia/types/Path/Path.d.ts +475 -0
- package/lib/commonjs/skia/types/Path/Path.js +36 -0
- package/lib/commonjs/skia/types/Path/Path.js.map +1 -0
- package/lib/commonjs/skia/types/Path/PathFactory.d.ts +29 -0
- package/lib/commonjs/skia/types/Path/PathFactory.js +6 -0
- package/lib/commonjs/skia/types/Path/PathFactory.js.map +1 -0
- package/lib/commonjs/skia/types/Path/index.d.ts +2 -0
- package/lib/commonjs/skia/types/Path/index.js +28 -0
- package/lib/commonjs/skia/types/Path/index.js.map +1 -0
- package/lib/commonjs/skia/types/PathEffect.d.ts +75 -0
- package/lib/commonjs/skia/types/PathEffect.js +15 -0
- package/lib/commonjs/skia/types/PathEffect.js.map +1 -0
- package/lib/commonjs/skia/types/Picture/Picture.d.ts +27 -0
- package/lib/commonjs/skia/types/Picture/Picture.js +6 -0
- package/lib/commonjs/skia/types/Picture/Picture.js.map +1 -0
- package/lib/commonjs/skia/types/Picture/PictureFactory.d.ts +8 -0
- package/lib/commonjs/skia/types/Picture/PictureFactory.js +6 -0
- package/lib/commonjs/skia/types/Picture/PictureFactory.js.map +1 -0
- package/lib/commonjs/skia/types/Picture/PictureRecorder.d.ts +15 -0
- package/lib/commonjs/skia/types/Picture/PictureRecorder.js +6 -0
- package/lib/commonjs/skia/types/Picture/PictureRecorder.js.map +1 -0
- package/lib/commonjs/skia/types/Picture/index.d.ts +3 -0
- package/lib/commonjs/skia/types/Picture/index.js +39 -0
- package/lib/commonjs/skia/types/Picture/index.js.map +1 -0
- package/lib/commonjs/skia/types/Point.d.ts +10 -0
- package/lib/commonjs/skia/types/Point.js +13 -0
- package/lib/commonjs/skia/types/Point.js.map +1 -0
- package/lib/commonjs/skia/types/RRect.d.ts +16 -0
- package/lib/commonjs/skia/types/RRect.js +12 -0
- package/lib/commonjs/skia/types/RRect.js.map +1 -0
- package/lib/commonjs/skia/types/RSXform.d.ts +8 -0
- package/lib/commonjs/skia/types/RSXform.js +6 -0
- package/lib/commonjs/skia/types/RSXform.js.map +1 -0
- package/lib/commonjs/skia/types/Rect.d.ts +11 -0
- package/lib/commonjs/skia/types/Rect.js +17 -0
- package/lib/commonjs/skia/types/Rect.js.map +1 -0
- package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffect.d.ts +52 -0
- package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffect.js +6 -0
- package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffect.js.map +1 -0
- package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffectFactory.d.ts +10 -0
- package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffectFactory.js +6 -0
- package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffectFactory.js.map +1 -0
- package/lib/commonjs/skia/types/RuntimeEffect/index.d.ts +2 -0
- package/lib/commonjs/skia/types/RuntimeEffect/index.js +28 -0
- package/lib/commonjs/skia/types/RuntimeEffect/index.js.map +1 -0
- package/lib/commonjs/skia/types/SVG/SVG.d.ts +5 -0
- package/lib/commonjs/skia/types/SVG/SVG.js +6 -0
- package/lib/commonjs/skia/types/SVG/SVG.js.map +1 -0
- package/lib/commonjs/skia/types/SVG/SVGFactory.d.ts +6 -0
- package/lib/commonjs/skia/types/SVG/SVGFactory.js +6 -0
- package/lib/commonjs/skia/types/SVG/SVGFactory.js.map +1 -0
- package/lib/commonjs/skia/types/SVG/index.d.ts +2 -0
- package/lib/commonjs/skia/types/SVG/index.js +28 -0
- package/lib/commonjs/skia/types/SVG/index.js.map +1 -0
- package/lib/commonjs/skia/types/Shader/Shader.d.ts +10 -0
- package/lib/commonjs/skia/types/Shader/Shader.js +47 -0
- package/lib/commonjs/skia/types/Shader/Shader.js.map +1 -0
- package/lib/commonjs/skia/types/Shader/ShaderFactory.d.ts +104 -0
- package/lib/commonjs/skia/types/Shader/ShaderFactory.js +6 -0
- package/lib/commonjs/skia/types/Shader/ShaderFactory.js.map +1 -0
- package/lib/commonjs/skia/types/Shader/index.d.ts +2 -0
- package/lib/commonjs/skia/types/Shader/index.js +28 -0
- package/lib/commonjs/skia/types/Shader/index.js.map +1 -0
- package/lib/commonjs/skia/types/Size.d.ts +4 -0
- package/lib/commonjs/skia/types/Size.js +2 -0
- package/lib/commonjs/skia/types/Size.js.map +1 -0
- package/lib/commonjs/skia/types/Skia.d.ts +78 -0
- package/lib/commonjs/skia/types/Skia.js +6 -0
- package/lib/commonjs/skia/types/Skia.js.map +1 -0
- package/lib/commonjs/skia/types/Surface/Surface.d.ts +37 -0
- package/lib/commonjs/skia/types/Surface/Surface.js +6 -0
- package/lib/commonjs/skia/types/Surface/Surface.js.map +1 -0
- package/lib/commonjs/skia/types/Surface/SurfaceFactory.d.ts +17 -0
- package/lib/commonjs/skia/types/Surface/SurfaceFactory.js +6 -0
- package/lib/commonjs/skia/types/Surface/SurfaceFactory.js.map +1 -0
- package/lib/commonjs/skia/types/Surface/index.d.ts +2 -0
- package/lib/commonjs/skia/types/Surface/index.js +28 -0
- package/lib/commonjs/skia/types/Surface/index.js.map +1 -0
- package/lib/commonjs/skia/types/TextBlob.d.ts +44 -0
- package/lib/commonjs/skia/types/TextBlob.js +6 -0
- package/lib/commonjs/skia/types/TextBlob.js.map +1 -0
- package/lib/commonjs/skia/types/Typeface/Typeface.d.ts +11 -0
- package/lib/commonjs/skia/types/Typeface/Typeface.js +6 -0
- package/lib/commonjs/skia/types/Typeface/Typeface.js.map +1 -0
- package/lib/commonjs/skia/types/Typeface/TypefaceFactory.d.ts +5 -0
- package/lib/commonjs/skia/types/Typeface/TypefaceFactory.js +6 -0
- package/lib/commonjs/skia/types/Typeface/TypefaceFactory.js.map +1 -0
- package/lib/commonjs/skia/types/Typeface/index.d.ts +2 -0
- package/lib/commonjs/skia/types/Typeface/index.js +28 -0
- package/lib/commonjs/skia/types/Typeface/index.js.map +1 -0
- package/lib/commonjs/skia/types/Vertices/Vertices.d.ts +17 -0
- package/lib/commonjs/skia/types/Vertices/Vertices.js +13 -0
- package/lib/commonjs/skia/types/Vertices/Vertices.js.map +1 -0
- package/lib/commonjs/skia/types/Vertices/index.d.ts +1 -0
- package/lib/commonjs/skia/types/Vertices/index.js +17 -0
- package/lib/commonjs/skia/types/Vertices/index.js.map +1 -0
- package/lib/commonjs/skia/types/Video/Video.d.ts +17 -0
- package/lib/commonjs/skia/types/Video/Video.js +6 -0
- package/lib/commonjs/skia/types/Video/Video.js.map +1 -0
- package/lib/commonjs/skia/types/Video/index.d.ts +1 -0
- package/lib/commonjs/skia/types/Video/index.js +17 -0
- package/lib/commonjs/skia/types/Video/index.js.map +1 -0
- package/lib/commonjs/skia/types/index.d.ts +33 -0
- package/lib/commonjs/skia/types/index.js +369 -0
- package/lib/commonjs/skia/types/index.js.map +1 -0
- package/lib/commonjs/skia/web/CanvasKitWebGLBufferImpl.d.ts +9 -0
- package/lib/commonjs/skia/web/CanvasKitWebGLBufferImpl.js +30 -0
- package/lib/commonjs/skia/web/CanvasKitWebGLBufferImpl.js.map +1 -0
- package/lib/commonjs/skia/web/Host.d.ts +20 -0
- package/lib/commonjs/skia/web/Host.js +45 -0
- package/lib/commonjs/skia/web/Host.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkAnimatedImage.d.ts +11 -0
- package/lib/commonjs/skia/web/JsiSkAnimatedImage.js +34 -0
- package/lib/commonjs/skia/web/JsiSkAnimatedImage.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkAnimatedImageFactory.d.ts +9 -0
- package/lib/commonjs/skia/web/JsiSkAnimatedImageFactory.js +23 -0
- package/lib/commonjs/skia/web/JsiSkAnimatedImageFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkCanvas.d.ts +47 -0
- package/lib/commonjs/skia/web/JsiSkCanvas.js +177 -0
- package/lib/commonjs/skia/web/JsiSkCanvas.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkColor.d.ts +2 -0
- package/lib/commonjs/skia/web/JsiSkColor.js +305 -0
- package/lib/commonjs/skia/web/JsiSkColor.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkColorFilter.d.ts +7 -0
- package/lib/commonjs/skia/web/JsiSkColorFilter.js +20 -0
- package/lib/commonjs/skia/web/JsiSkColorFilter.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkColorFilterFactory.d.ts +14 -0
- package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js +36 -0
- package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkContourMeasure.d.ts +13 -0
- package/lib/commonjs/skia/web/JsiSkContourMeasure.js +35 -0
- package/lib/commonjs/skia/web/JsiSkContourMeasure.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkContourMeasureIter.d.ts +9 -0
- package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js +28 -0
- package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkData.d.ts +9 -0
- package/lib/commonjs/skia/web/JsiSkData.js +20 -0
- package/lib/commonjs/skia/web/JsiSkData.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkDataFactory.d.ts +19 -0
- package/lib/commonjs/skia/web/JsiSkDataFactory.js +33 -0
- package/lib/commonjs/skia/web/JsiSkDataFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkFont.d.ts +35 -0
- package/lib/commonjs/skia/web/JsiSkFont.js +99 -0
- package/lib/commonjs/skia/web/JsiSkFont.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkFontMgr.d.ts +10 -0
- package/lib/commonjs/skia/web/JsiSkFontMgr.js +26 -0
- package/lib/commonjs/skia/web/JsiSkFontMgr.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkFontMgrFactory.d.ts +8 -0
- package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js +22 -0
- package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkImage.d.ts +17 -0
- package/lib/commonjs/skia/web/JsiSkImage.js +121 -0
- package/lib/commonjs/skia/web/JsiSkImage.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkImageFactory.d.ts +12 -0
- package/lib/commonjs/skia/web/JsiSkImageFactory.js +68 -0
- package/lib/commonjs/skia/web/JsiSkImageFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkImageFilter.d.ts +7 -0
- package/lib/commonjs/skia/web/JsiSkImageFilter.js +20 -0
- package/lib/commonjs/skia/web/JsiSkImageFilter.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkImageFilterFactory.d.ts +19 -0
- package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js +82 -0
- package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkMaskFilter.d.ts +7 -0
- package/lib/commonjs/skia/web/JsiSkMaskFilter.js +20 -0
- package/lib/commonjs/skia/web/JsiSkMaskFilter.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.d.ts +9 -0
- package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js +18 -0
- package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkMatrix.d.ts +20 -0
- package/lib/commonjs/skia/web/JsiSkMatrix.js +73 -0
- package/lib/commonjs/skia/web/JsiSkMatrix.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkNativeBufferFactory.d.ts +8 -0
- package/lib/commonjs/skia/web/JsiSkNativeBufferFactory.js +29 -0
- package/lib/commonjs/skia/web/JsiSkNativeBufferFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPaint.d.ts +30 -0
- package/lib/commonjs/skia/web/JsiSkPaint.js +96 -0
- package/lib/commonjs/skia/web/JsiSkPaint.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkParagraph.d.ts +19 -0
- package/lib/commonjs/skia/web/JsiSkParagraph.js +77 -0
- package/lib/commonjs/skia/web/JsiSkParagraph.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkParagraphBuilder.d.ts +15 -0
- package/lib/commonjs/skia/web/JsiSkParagraphBuilder.js +63 -0
- package/lib/commonjs/skia/web/JsiSkParagraphBuilder.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.d.ts +8 -0
- package/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.js +27 -0
- package/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkParagraphStyle.d.ts +5 -0
- package/lib/commonjs/skia/web/JsiSkParagraphStyle.js +54 -0
- package/lib/commonjs/skia/web/JsiSkParagraphStyle.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPath.d.ts +58 -0
- package/lib/commonjs/skia/web/JsiSkPath.js +263 -0
- package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPathEffect.d.ts +7 -0
- package/lib/commonjs/skia/web/JsiSkPathEffect.js +20 -0
- package/lib/commonjs/skia/web/JsiSkPathEffect.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPathEffectFactory.d.ts +15 -0
- package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js +59 -0
- package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPathFactory.d.ts +13 -0
- package/lib/commonjs/skia/web/JsiSkPathFactory.js +42 -0
- package/lib/commonjs/skia/web/JsiSkPathFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPicture.d.ts +10 -0
- package/lib/commonjs/skia/web/JsiSkPicture.js +29 -0
- package/lib/commonjs/skia/web/JsiSkPicture.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPictureFactory.d.ts +8 -0
- package/lib/commonjs/skia/web/JsiSkPictureFactory.js +22 -0
- package/lib/commonjs/skia/web/JsiSkPictureFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPictureRecorder.d.ts +12 -0
- package/lib/commonjs/skia/web/JsiSkPictureRecorder.js +29 -0
- package/lib/commonjs/skia/web/JsiSkPictureRecorder.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPoint.d.ts +10 -0
- package/lib/commonjs/skia/web/JsiSkPoint.js +32 -0
- package/lib/commonjs/skia/web/JsiSkPoint.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkRRect.d.ts +12 -0
- package/lib/commonjs/skia/web/JsiSkRRect.js +50 -0
- package/lib/commonjs/skia/web/JsiSkRRect.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkRSXform.d.ts +14 -0
- package/lib/commonjs/skia/web/JsiSkRSXform.js +44 -0
- package/lib/commonjs/skia/web/JsiSkRSXform.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkRect.d.ts +13 -0
- package/lib/commonjs/skia/web/JsiSkRect.js +44 -0
- package/lib/commonjs/skia/web/JsiSkRect.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkRuntimeEffect.d.ts +17 -0
- package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js +44 -0
- package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.d.ts +8 -0
- package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js +22 -0
- package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkSVG.d.ts +9 -0
- package/lib/commonjs/skia/web/JsiSkSVG.js +28 -0
- package/lib/commonjs/skia/web/JsiSkSVG.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkSVGFactory.d.ts +10 -0
- package/lib/commonjs/skia/web/JsiSkSVGFactory.js +56 -0
- package/lib/commonjs/skia/web/JsiSkSVGFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkShader.d.ts +7 -0
- package/lib/commonjs/skia/web/JsiSkShader.js +20 -0
- package/lib/commonjs/skia/web/JsiSkShader.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkShaderFactory.d.ts +16 -0
- package/lib/commonjs/skia/web/JsiSkShaderFactory.js +41 -0
- package/lib/commonjs/skia/web/JsiSkShaderFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkSurface.d.ts +12 -0
- package/lib/commonjs/skia/web/JsiSkSurface.js +39 -0
- package/lib/commonjs/skia/web/JsiSkSurface.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkSurfaceFactory.d.ts +9 -0
- package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js +39 -0
- package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkTextBlob.d.ts +7 -0
- package/lib/commonjs/skia/web/JsiSkTextBlob.js +20 -0
- package/lib/commonjs/skia/web/JsiSkTextBlob.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkTextBlobFactory.d.ts +13 -0
- package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js +30 -0
- package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkTextStyle.d.ts +5 -0
- package/lib/commonjs/skia/web/JsiSkTextStyle.js +51 -0
- package/lib/commonjs/skia/web/JsiSkTextStyle.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkTypeface.d.ts +10 -0
- package/lib/commonjs/skia/web/JsiSkTypeface.js +31 -0
- package/lib/commonjs/skia/web/JsiSkTypeface.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkTypefaceFactory.d.ts +8 -0
- package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js +22 -0
- package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.d.ts +13 -0
- package/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.js +76 -0
- package/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkTypefaceFontProviderFactory.d.ts +7 -0
- package/lib/commonjs/skia/web/JsiSkTypefaceFontProviderFactory.js +19 -0
- package/lib/commonjs/skia/web/JsiSkTypefaceFontProviderFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkVertices.d.ts +10 -0
- package/lib/commonjs/skia/web/JsiSkVertices.js +27 -0
- package/lib/commonjs/skia/web/JsiSkVertices.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkVerticesFactory.d.ts +4 -0
- package/lib/commonjs/skia/web/JsiSkVerticesFactory.js +30 -0
- package/lib/commonjs/skia/web/JsiSkVerticesFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkia.d.ts +3 -0
- package/lib/commonjs/skia/web/JsiSkia.js +88 -0
- package/lib/commonjs/skia/web/JsiSkia.js.map +1 -0
- package/lib/commonjs/skia/web/JsiVideo.d.ts +24 -0
- package/lib/commonjs/skia/web/JsiVideo.js +83 -0
- package/lib/commonjs/skia/web/JsiVideo.js.map +1 -0
- package/lib/commonjs/skia/web/index.d.ts +1 -0
- package/lib/commonjs/skia/web/index.js +17 -0
- package/lib/commonjs/skia/web/index.js.map +1 -0
- package/lib/commonjs/specs/NativeSkiaModule.d.ts +6 -0
- package/lib/commonjs/specs/NativeSkiaModule.js +10 -0
- package/lib/commonjs/specs/NativeSkiaModule.js.map +1 -0
- package/lib/commonjs/specs/NativeSkiaModule.web.d.ts +0 -0
- package/lib/commonjs/specs/NativeSkiaModule.web.js +2 -0
- package/lib/commonjs/specs/NativeSkiaModule.web.js.map +1 -0
- package/lib/commonjs/specs/SkiaDomViewNativeComponent.d.ts +8 -0
- package/lib/commonjs/specs/SkiaDomViewNativeComponent.js +11 -0
- package/lib/commonjs/specs/SkiaDomViewNativeComponent.js.map +1 -0
- package/lib/commonjs/specs/SkiaPictureViewNativeComponent.d.ts +8 -0
- package/lib/commonjs/specs/SkiaPictureViewNativeComponent.js +11 -0
- package/lib/commonjs/specs/SkiaPictureViewNativeComponent.js.map +1 -0
- package/lib/commonjs/views/SkiaBaseWebView.d.ts +60 -0
- package/lib/commonjs/views/SkiaBaseWebView.js +185 -0
- package/lib/commonjs/views/SkiaBaseWebView.js.map +1 -0
- package/lib/commonjs/views/SkiaDomView.d.ts +30 -0
- package/lib/commonjs/views/SkiaDomView.js +123 -0
- package/lib/commonjs/views/SkiaDomView.js.map +1 -0
- package/lib/commonjs/views/SkiaDomView.web.d.ts +7 -0
- package/lib/commonjs/views/SkiaDomView.web.js +37 -0
- package/lib/commonjs/views/SkiaDomView.web.js.map +1 -0
- package/lib/commonjs/views/SkiaJSDomView.d.ts +31 -0
- package/lib/commonjs/views/SkiaJSDomView.js +130 -0
- package/lib/commonjs/views/SkiaJSDomView.js.map +1 -0
- package/lib/commonjs/views/SkiaJSDomView.web.d.ts +1 -0
- package/lib/commonjs/views/SkiaJSDomView.web.js +13 -0
- package/lib/commonjs/views/SkiaJSDomView.web.js.map +1 -0
- package/lib/commonjs/views/SkiaPictureView.d.ts +20 -0
- package/lib/commonjs/views/SkiaPictureView.js +90 -0
- package/lib/commonjs/views/SkiaPictureView.js.map +1 -0
- package/lib/commonjs/views/SkiaPictureView.web.d.ts +7 -0
- package/lib/commonjs/views/SkiaPictureView.web.js +19 -0
- package/lib/commonjs/views/SkiaPictureView.web.js.map +1 -0
- package/lib/commonjs/views/SkiaViewNativeId.d.ts +3 -0
- package/lib/commonjs/views/SkiaViewNativeId.js +10 -0
- package/lib/commonjs/views/SkiaViewNativeId.js.map +1 -0
- package/lib/commonjs/views/api.d.ts +5 -0
- package/lib/commonjs/views/api.js +11 -0
- package/lib/commonjs/views/api.js.map +1 -0
- package/lib/commonjs/views/index.d.ts +4 -0
- package/lib/commonjs/views/index.js +50 -0
- package/lib/commonjs/views/index.js.map +1 -0
- package/lib/commonjs/views/types.d.ts +72 -0
- package/lib/commonjs/views/types.js +14 -0
- package/lib/commonjs/views/types.js.map +1 -0
- package/lib/commonjs/views/useTouchHandler.d.ts +22 -0
- package/lib/commonjs/views/useTouchHandler.js +83 -0
- package/lib/commonjs/views/useTouchHandler.js.map +1 -0
- package/lib/commonjs/web/LoadSkiaWeb.d.ts +6 -0
- package/lib/commonjs/web/LoadSkiaWeb.js +28 -0
- package/lib/commonjs/web/LoadSkiaWeb.js.map +1 -0
- package/lib/commonjs/web/WithSkiaWeb.d.ts +12 -0
- package/lib/commonjs/web/WithSkiaWeb.js +33 -0
- package/lib/commonjs/web/WithSkiaWeb.js.map +1 -0
- package/lib/commonjs/web/index.d.ts +2 -0
- package/lib/commonjs/web/index.js +28 -0
- package/lib/commonjs/web/index.js.map +1 -0
- package/lib/module/Platform/IPlatform.d.ts +10 -0
- package/lib/module/Platform/IPlatform.js +2 -0
- package/lib/module/Platform/IPlatform.js.map +1 -0
- package/lib/module/Platform/Platform.d.ts +2 -0
- package/lib/module/Platform/Platform.js +12 -0
- package/lib/module/Platform/Platform.js.map +1 -0
- package/lib/module/Platform/Platform.web.d.ts +2 -0
- package/lib/module/Platform/Platform.web.js +146 -0
- package/lib/module/Platform/Platform.web.js.map +1 -0
- package/lib/module/Platform/index.d.ts +1 -0
- package/lib/module/Platform/index.js +2 -0
- package/lib/module/Platform/index.js.map +1 -0
- package/lib/module/animation/functions/index.d.ts +4 -0
- package/lib/module/animation/functions/index.js +5 -0
- package/lib/module/animation/functions/index.js.map +1 -0
- package/lib/module/animation/functions/interpolate.d.ts +17 -0
- package/lib/module/animation/functions/interpolate.js +124 -0
- package/lib/module/animation/functions/interpolate.js.map +1 -0
- package/lib/module/animation/functions/interpolateColors.d.ts +3 -0
- package/lib/module/animation/functions/interpolateColors.js +27 -0
- package/lib/module/animation/functions/interpolateColors.js.map +1 -0
- package/lib/module/animation/functions/interpolatePaths.d.ts +19 -0
- package/lib/module/animation/functions/interpolatePaths.js +61 -0
- package/lib/module/animation/functions/interpolatePaths.js.map +1 -0
- package/lib/module/animation/functions/interpolateVector.d.ts +10 -0
- package/lib/module/animation/functions/interpolateVector.js +15 -0
- package/lib/module/animation/functions/interpolateVector.js.map +1 -0
- package/lib/module/animation/index.d.ts +1 -0
- package/lib/module/animation/index.js +2 -0
- package/lib/module/animation/index.js.map +1 -0
- package/lib/module/dom/nodes/DrawingNode.d.ts +14 -0
- package/lib/module/dom/nodes/DrawingNode.js +62 -0
- package/lib/module/dom/nodes/DrawingNode.js.map +1 -0
- package/lib/module/dom/nodes/GroupNode.d.ts +7 -0
- package/lib/module/dom/nodes/GroupNode.js +15 -0
- package/lib/module/dom/nodes/GroupNode.js.map +1 -0
- package/lib/module/dom/nodes/JsiSkDOM.d.ts +68 -0
- package/lib/module/dom/nodes/JsiSkDOM.js +201 -0
- package/lib/module/dom/nodes/JsiSkDOM.js.map +1 -0
- package/lib/module/dom/nodes/LayerNode.d.ts +8 -0
- package/lib/module/dom/nodes/LayerNode.js +32 -0
- package/lib/module/dom/nodes/LayerNode.js.map +1 -0
- package/lib/module/dom/nodes/Node.d.ts +34 -0
- package/lib/module/dom/nodes/Node.js +94 -0
- package/lib/module/dom/nodes/Node.js.map +1 -0
- package/lib/module/dom/nodes/PaintNode.d.ts +8 -0
- package/lib/module/dom/nodes/PaintNode.js +83 -0
- package/lib/module/dom/nodes/PaintNode.js.map +1 -0
- package/lib/module/dom/nodes/RenderNode.d.ts +26 -0
- package/lib/module/dom/nodes/RenderNode.js +125 -0
- package/lib/module/dom/nodes/RenderNode.js.map +1 -0
- package/lib/module/dom/nodes/datatypes/Circle.d.ts +7 -0
- package/lib/module/dom/nodes/datatypes/Circle.js +21 -0
- package/lib/module/dom/nodes/datatypes/Circle.js.map +1 -0
- package/lib/module/dom/nodes/datatypes/Enum.d.ts +1 -0
- package/lib/module/dom/nodes/datatypes/Enum.js +2 -0
- package/lib/module/dom/nodes/datatypes/Enum.js.map +1 -0
- package/lib/module/dom/nodes/datatypes/Fitting.d.ts +33 -0
- package/lib/module/dom/nodes/datatypes/Fitting.js +132 -0
- package/lib/module/dom/nodes/datatypes/Fitting.js.map +1 -0
- package/lib/module/dom/nodes/datatypes/Gradient.d.ts +252 -0
- package/lib/module/dom/nodes/datatypes/Gradient.js +45 -0
- package/lib/module/dom/nodes/datatypes/Gradient.js.map +1 -0
- package/lib/module/dom/nodes/datatypes/Path.d.ts +4 -0
- package/lib/module/dom/nodes/datatypes/Path.js +12 -0
- package/lib/module/dom/nodes/datatypes/Path.js.map +1 -0
- package/lib/module/dom/nodes/datatypes/Radius.d.ts +3 -0
- package/lib/module/dom/nodes/datatypes/Radius.js +7 -0
- package/lib/module/dom/nodes/datatypes/Radius.js.map +1 -0
- package/lib/module/dom/nodes/datatypes/Rect.d.ts +5 -0
- package/lib/module/dom/nodes/datatypes/Rect.js +31 -0
- package/lib/module/dom/nodes/datatypes/Rect.js.map +1 -0
- package/lib/module/dom/nodes/datatypes/Transform.d.ts +3 -0
- package/lib/module/dom/nodes/datatypes/Transform.js +26 -0
- package/lib/module/dom/nodes/datatypes/Transform.js.map +1 -0
- package/lib/module/dom/nodes/datatypes/index.d.ts +8 -0
- package/lib/module/dom/nodes/datatypes/index.js +9 -0
- package/lib/module/dom/nodes/datatypes/index.js.map +1 -0
- package/lib/module/dom/nodes/drawings/AtlasNode.d.ts +8 -0
- package/lib/module/dom/nodes/drawings/AtlasNode.js +29 -0
- package/lib/module/dom/nodes/drawings/AtlasNode.js.map +1 -0
- package/lib/module/dom/nodes/drawings/BackdropFilterNode.d.ts +8 -0
- package/lib/module/dom/nodes/drawings/BackdropFilterNode.js +35 -0
- package/lib/module/dom/nodes/drawings/BackdropFilterNode.js.map +1 -0
- package/lib/module/dom/nodes/drawings/Box.d.ts +15 -0
- package/lib/module/dom/nodes/drawings/Box.js +74 -0
- package/lib/module/dom/nodes/drawings/Box.js.map +1 -0
- package/lib/module/dom/nodes/drawings/CircleNode.d.ts +9 -0
- package/lib/module/dom/nodes/drawings/CircleNode.js +25 -0
- package/lib/module/dom/nodes/drawings/CircleNode.js.map +1 -0
- package/lib/module/dom/nodes/drawings/DiffRectNode.d.ts +8 -0
- package/lib/module/dom/nodes/drawings/DiffRectNode.js +21 -0
- package/lib/module/dom/nodes/drawings/DiffRectNode.js.map +1 -0
- package/lib/module/dom/nodes/drawings/FillNode.d.ts +8 -0
- package/lib/module/dom/nodes/drawings/FillNode.js +17 -0
- package/lib/module/dom/nodes/drawings/FillNode.js.map +1 -0
- package/lib/module/dom/nodes/drawings/ImageNode.d.ts +25 -0
- package/lib/module/dom/nodes/drawings/ImageNode.js +64 -0
- package/lib/module/dom/nodes/drawings/ImageNode.js.map +1 -0
- package/lib/module/dom/nodes/drawings/ImageSVG.d.ts +13 -0
- package/lib/module/dom/nodes/drawings/ImageSVG.js +50 -0
- package/lib/module/dom/nodes/drawings/ImageSVG.js.map +1 -0
- package/lib/module/dom/nodes/drawings/LineNode.d.ts +8 -0
- package/lib/module/dom/nodes/drawings/LineNode.js +21 -0
- package/lib/module/dom/nodes/drawings/LineNode.js.map +1 -0
- package/lib/module/dom/nodes/drawings/OvalNode.d.ts +9 -0
- package/lib/module/dom/nodes/drawings/OvalNode.js +21 -0
- package/lib/module/dom/nodes/drawings/OvalNode.js.map +1 -0
- package/lib/module/dom/nodes/drawings/ParagraphNode.d.ts +8 -0
- package/lib/module/dom/nodes/drawings/ParagraphNode.js +25 -0
- package/lib/module/dom/nodes/drawings/ParagraphNode.js.map +1 -0
- package/lib/module/dom/nodes/drawings/PatchNode.d.ts +18 -0
- package/lib/module/dom/nodes/drawings/PatchNode.js +46 -0
- package/lib/module/dom/nodes/drawings/PatchNode.js.map +1 -0
- package/lib/module/dom/nodes/drawings/PathNode.d.ts +9 -0
- package/lib/module/dom/nodes/drawings/PathNode.js +48 -0
- package/lib/module/dom/nodes/drawings/PathNode.js.map +1 -0
- package/lib/module/dom/nodes/drawings/PictureNode.d.ts +8 -0
- package/lib/module/dom/nodes/drawings/PictureNode.js +19 -0
- package/lib/module/dom/nodes/drawings/PictureNode.js.map +1 -0
- package/lib/module/dom/nodes/drawings/PointsNode.d.ts +8 -0
- package/lib/module/dom/nodes/drawings/PointsNode.js +23 -0
- package/lib/module/dom/nodes/drawings/PointsNode.js.map +1 -0
- package/lib/module/dom/nodes/drawings/RRectNode.d.ts +10 -0
- package/lib/module/dom/nodes/drawings/RRectNode.js +25 -0
- package/lib/module/dom/nodes/drawings/RRectNode.js.map +1 -0
- package/lib/module/dom/nodes/drawings/RectNode.d.ts +9 -0
- package/lib/module/dom/nodes/drawings/RectNode.js +21 -0
- package/lib/module/dom/nodes/drawings/RectNode.js.map +1 -0
- package/lib/module/dom/nodes/drawings/Text.d.ts +30 -0
- package/lib/module/dom/nodes/drawings/Text.js +149 -0
- package/lib/module/dom/nodes/drawings/Text.js.map +1 -0
- package/lib/module/dom/nodes/drawings/VerticesNode.d.ts +9 -0
- package/lib/module/dom/nodes/drawings/VerticesNode.js +36 -0
- package/lib/module/dom/nodes/drawings/VerticesNode.js.map +1 -0
- package/lib/module/dom/nodes/drawings/index.d.ts +18 -0
- package/lib/module/dom/nodes/drawings/index.js +19 -0
- package/lib/module/dom/nodes/drawings/index.js.map +1 -0
- package/lib/module/dom/nodes/index.d.ts +3 -0
- package/lib/module/dom/nodes/index.js +4 -0
- package/lib/module/dom/nodes/index.js.map +1 -0
- package/lib/module/dom/nodes/paint/BlendNode.d.ts +8 -0
- package/lib/module/dom/nodes/paint/BlendNode.js +30 -0
- package/lib/module/dom/nodes/paint/BlendNode.js.map +1 -0
- package/lib/module/dom/nodes/paint/ColorFilters.d.ts +35 -0
- package/lib/module/dom/nodes/paint/ColorFilters.js +89 -0
- package/lib/module/dom/nodes/paint/ColorFilters.js.map +1 -0
- package/lib/module/dom/nodes/paint/ImageFilters.d.ts +42 -0
- package/lib/module/dom/nodes/paint/ImageFilters.js +169 -0
- package/lib/module/dom/nodes/paint/ImageFilters.js.map +1 -0
- package/lib/module/dom/nodes/paint/MaskFilters.d.ts +8 -0
- package/lib/module/dom/nodes/paint/MaskFilters.js +19 -0
- package/lib/module/dom/nodes/paint/MaskFilters.js.map +1 -0
- package/lib/module/dom/nodes/paint/PathEffects.d.ts +39 -0
- package/lib/module/dom/nodes/paint/PathEffects.js +123 -0
- package/lib/module/dom/nodes/paint/PathEffects.js.map +1 -0
- package/lib/module/dom/nodes/paint/Shaders.d.ts +43 -0
- package/lib/module/dom/nodes/paint/Shaders.js +193 -0
- package/lib/module/dom/nodes/paint/Shaders.js.map +1 -0
- package/lib/module/dom/nodes/paint/index.d.ts +6 -0
- package/lib/module/dom/nodes/paint/index.js +7 -0
- package/lib/module/dom/nodes/paint/index.js.map +1 -0
- package/lib/module/dom/types/ColorFilters.d.ts +12 -0
- package/lib/module/dom/types/ColorFilters.js +2 -0
- package/lib/module/dom/types/ColorFilters.js.map +1 -0
- package/lib/module/dom/types/Common.d.ts +57 -0
- package/lib/module/dom/types/Common.js +2 -0
- package/lib/module/dom/types/Common.js.map +1 -0
- package/lib/module/dom/types/DeclarationContext.d.ts +29 -0
- package/lib/module/dom/types/DeclarationContext.js +83 -0
- package/lib/module/dom/types/DeclarationContext.js.map +1 -0
- package/lib/module/dom/types/DrawingContext.d.ts +22 -0
- package/lib/module/dom/types/DrawingContext.js +256 -0
- package/lib/module/dom/types/DrawingContext.js.map +1 -0
- package/lib/module/dom/types/Drawings.d.ts +111 -0
- package/lib/module/dom/types/Drawings.js +2 -0
- package/lib/module/dom/types/Drawings.js.map +1 -0
- package/lib/module/dom/types/ImageFilters.d.ts +37 -0
- package/lib/module/dom/types/ImageFilters.js +2 -0
- package/lib/module/dom/types/ImageFilters.js.map +1 -0
- package/lib/module/dom/types/MaskFilters.d.ts +7 -0
- package/lib/module/dom/types/MaskFilters.js +2 -0
- package/lib/module/dom/types/MaskFilters.js.map +1 -0
- package/lib/module/dom/types/Node.d.ts +22 -0
- package/lib/module/dom/types/Node.js +2 -0
- package/lib/module/dom/types/Node.js.map +1 -0
- package/lib/module/dom/types/NodeType.d.ts +59 -0
- package/lib/module/dom/types/NodeType.js +61 -0
- package/lib/module/dom/types/NodeType.js.map +1 -0
- package/lib/module/dom/types/Paragraph.d.ts +8 -0
- package/lib/module/dom/types/Paragraph.js +2 -0
- package/lib/module/dom/types/Paragraph.js.map +1 -0
- package/lib/module/dom/types/PathEffects.d.ts +28 -0
- package/lib/module/dom/types/PathEffects.js +2 -0
- package/lib/module/dom/types/PathEffects.js.map +1 -0
- package/lib/module/dom/types/Shaders.d.ts +59 -0
- package/lib/module/dom/types/Shaders.js +2 -0
- package/lib/module/dom/types/Shaders.js.map +1 -0
- package/lib/module/dom/types/SkDOM.d.ts +73 -0
- package/lib/module/dom/types/SkDOM.js +2 -0
- package/lib/module/dom/types/SkDOM.js.map +1 -0
- package/lib/module/dom/types/index.d.ts +13 -0
- package/lib/module/dom/types/index.js +14 -0
- package/lib/module/dom/types/index.js.map +1 -0
- package/lib/module/external/ModuleProxy.d.ts +10 -0
- package/lib/module/external/ModuleProxy.js +28 -0
- package/lib/module/external/ModuleProxy.js.map +1 -0
- package/lib/module/external/index.d.ts +1 -0
- package/lib/module/external/index.js +2 -0
- package/lib/module/external/index.js.map +1 -0
- package/lib/module/external/reanimated/ReanimatedProxy.d.ts +3 -0
- package/lib/module/external/reanimated/ReanimatedProxy.js +12 -0
- package/lib/module/external/reanimated/ReanimatedProxy.js.map +1 -0
- package/lib/module/external/reanimated/buffers.d.ts +7 -0
- package/lib/module/external/reanimated/buffers.js +40 -0
- package/lib/module/external/reanimated/buffers.js.map +1 -0
- package/lib/module/external/reanimated/index.d.ts +7 -0
- package/lib/module/external/reanimated/index.js +8 -0
- package/lib/module/external/reanimated/index.js.map +1 -0
- package/lib/module/external/reanimated/interpolators.d.ts +10 -0
- package/lib/module/external/reanimated/interpolators.js +64 -0
- package/lib/module/external/reanimated/interpolators.js.map +1 -0
- package/lib/module/external/reanimated/renderHelpers.d.ts +6 -0
- package/lib/module/external/reanimated/renderHelpers.js +117 -0
- package/lib/module/external/reanimated/renderHelpers.js.map +1 -0
- package/lib/module/external/reanimated/textures.d.ts +8 -0
- package/lib/module/external/reanimated/textures.js +73 -0
- package/lib/module/external/reanimated/textures.js.map +1 -0
- package/lib/module/external/reanimated/useAnimatedImageValue.d.ts +3 -0
- package/lib/module/external/reanimated/useAnimatedImageValue.js +51 -0
- package/lib/module/external/reanimated/useAnimatedImageValue.js.map +1 -0
- package/lib/module/external/reanimated/useDerivedValueOnJS.d.ts +1 -0
- package/lib/module/external/reanimated/useDerivedValueOnJS.js +16 -0
- package/lib/module/external/reanimated/useDerivedValueOnJS.js.map +1 -0
- package/lib/module/external/reanimated/useVideo.d.ts +21 -0
- package/lib/module/external/reanimated/useVideo.js +140 -0
- package/lib/module/external/reanimated/useVideo.js.map +1 -0
- package/lib/module/external/reanimated/useVideoLoading.d.ts +4 -0
- package/lib/module/external/reanimated/useVideoLoading.js +23 -0
- package/lib/module/external/reanimated/useVideoLoading.js.map +1 -0
- package/lib/module/external/reanimated/useVideoLoading.web.d.ts +4 -0
- package/lib/module/external/reanimated/useVideoLoading.web.js +13 -0
- package/lib/module/external/reanimated/useVideoLoading.web.js.map +1 -0
- package/lib/module/headless/index.d.ts +8 -0
- package/lib/module/headless/index.js +37 -0
- package/lib/module/headless/index.js.map +1 -0
- package/lib/module/index.d.ts +11 -0
- package/lib/module/index.js +12 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/mock/index.d.ts +2 -0
- package/lib/module/mock/index.js +53 -0
- package/lib/module/mock/index.js.map +1 -0
- package/lib/module/renderer/Canvas.d.ts +11 -0
- package/lib/module/renderer/Canvas.js +107 -0
- package/lib/module/renderer/Canvas.js.map +1 -0
- package/lib/module/renderer/Container.d.ts +11 -0
- package/lib/module/renderer/Container.js +23 -0
- package/lib/module/renderer/Container.js.map +1 -0
- package/lib/module/renderer/DrawingContext.d.ts +7 -0
- package/lib/module/renderer/DrawingContext.js +2 -0
- package/lib/module/renderer/DrawingContext.js.map +1 -0
- package/lib/module/renderer/HostComponents.d.ts +132 -0
- package/lib/module/renderer/HostComponents.js +137 -0
- package/lib/module/renderer/HostComponents.js.map +1 -0
- package/lib/module/renderer/HostConfig.d.ts +19 -0
- package/lib/module/renderer/HostConfig.js +142 -0
- package/lib/module/renderer/HostConfig.js.map +1 -0
- package/lib/module/renderer/Offscreen.d.ts +6 -0
- package/lib/module/renderer/Offscreen.js +41 -0
- package/lib/module/renderer/Offscreen.js.map +1 -0
- package/lib/module/renderer/Reconciler.d.ts +10 -0
- package/lib/module/renderer/Reconciler.js +35 -0
- package/lib/module/renderer/Reconciler.js.map +1 -0
- package/lib/module/renderer/components/Blend.d.ts +4 -0
- package/lib/module/renderer/components/Blend.js +5 -0
- package/lib/module/renderer/components/Blend.js.map +1 -0
- package/lib/module/renderer/components/Group.d.ts +8 -0
- package/lib/module/renderer/components/Group.js +14 -0
- package/lib/module/renderer/components/Group.js.map +1 -0
- package/lib/module/renderer/components/Mask.d.ts +10 -0
- package/lib/module/renderer/components/Mask.js +25 -0
- package/lib/module/renderer/components/Mask.js.map +1 -0
- package/lib/module/renderer/components/Paint.d.ts +4 -0
- package/lib/module/renderer/components/Paint.js +5 -0
- package/lib/module/renderer/components/Paint.js.map +1 -0
- package/lib/module/renderer/components/Picture.d.ts +4 -0
- package/lib/module/renderer/components/Picture.js +5 -0
- package/lib/module/renderer/components/Picture.js.map +1 -0
- package/lib/module/renderer/components/backdrop/BackdropBlur.d.ts +9 -0
- package/lib/module/renderer/components/backdrop/BackdropBlur.js +17 -0
- package/lib/module/renderer/components/backdrop/BackdropBlur.js.map +1 -0
- package/lib/module/renderer/components/backdrop/BackdropFilter.d.ts +8 -0
- package/lib/module/renderer/components/backdrop/BackdropFilter.js +10 -0
- package/lib/module/renderer/components/backdrop/BackdropFilter.js.map +1 -0
- package/lib/module/renderer/components/backdrop/index.d.ts +2 -0
- package/lib/module/renderer/components/backdrop/index.js +3 -0
- package/lib/module/renderer/components/backdrop/index.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/BlendColor.d.ts +4 -0
- package/lib/module/renderer/components/colorFilters/BlendColor.js +5 -0
- package/lib/module/renderer/components/colorFilters/BlendColor.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/Lerp.d.ts +4 -0
- package/lib/module/renderer/components/colorFilters/Lerp.js +5 -0
- package/lib/module/renderer/components/colorFilters/Lerp.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.d.ts +4 -0
- package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js +5 -0
- package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/LumaColorFilter.d.ts +4 -0
- package/lib/module/renderer/components/colorFilters/LumaColorFilter.js +5 -0
- package/lib/module/renderer/components/colorFilters/LumaColorFilter.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/Matrix.d.ts +5 -0
- package/lib/module/renderer/components/colorFilters/Matrix.js +6 -0
- package/lib/module/renderer/components/colorFilters/Matrix.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.d.ts +4 -0
- package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js +5 -0
- package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/index.d.ts +6 -0
- package/lib/module/renderer/components/colorFilters/index.js +7 -0
- package/lib/module/renderer/components/colorFilters/index.js.map +1 -0
- package/lib/module/renderer/components/image/Image.d.ts +4 -0
- package/lib/module/renderer/components/image/Image.js +5 -0
- package/lib/module/renderer/components/image/Image.js.map +1 -0
- package/lib/module/renderer/components/image/ImageSVG.d.ts +4 -0
- package/lib/module/renderer/components/image/ImageSVG.js +5 -0
- package/lib/module/renderer/components/image/ImageSVG.js.map +1 -0
- package/lib/module/renderer/components/image/ImageShader.d.ts +4 -0
- package/lib/module/renderer/components/image/ImageShader.js +21 -0
- package/lib/module/renderer/components/image/ImageShader.js.map +1 -0
- package/lib/module/renderer/components/image/index.d.ts +3 -0
- package/lib/module/renderer/components/image/index.js +4 -0
- package/lib/module/renderer/components/image/index.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/Blur.d.ts +4 -0
- package/lib/module/renderer/components/imageFilters/Blur.js +11 -0
- package/lib/module/renderer/components/imageFilters/Blur.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/DisplacementMap.d.ts +4 -0
- package/lib/module/renderer/components/imageFilters/DisplacementMap.js +5 -0
- package/lib/module/renderer/components/imageFilters/DisplacementMap.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/Morphology.d.ts +4 -0
- package/lib/module/renderer/components/imageFilters/Morphology.js +11 -0
- package/lib/module/renderer/components/imageFilters/Morphology.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/Offset.d.ts +4 -0
- package/lib/module/renderer/components/imageFilters/Offset.js +13 -0
- package/lib/module/renderer/components/imageFilters/Offset.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/RuntimeShader.d.ts +4 -0
- package/lib/module/renderer/components/imageFilters/RuntimeShader.js +5 -0
- package/lib/module/renderer/components/imageFilters/RuntimeShader.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/Shadow.d.ts +4 -0
- package/lib/module/renderer/components/imageFilters/Shadow.js +5 -0
- package/lib/module/renderer/components/imageFilters/Shadow.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/index.d.ts +6 -0
- package/lib/module/renderer/components/imageFilters/index.js +7 -0
- package/lib/module/renderer/components/imageFilters/index.js.map +1 -0
- package/lib/module/renderer/components/index.d.ts +16 -0
- package/lib/module/renderer/components/index.js +17 -0
- package/lib/module/renderer/components/index.js.map +1 -0
- package/lib/module/renderer/components/maskFilters/Blur.d.ts +4 -0
- package/lib/module/renderer/components/maskFilters/Blur.js +13 -0
- package/lib/module/renderer/components/maskFilters/Blur.js.map +1 -0
- package/lib/module/renderer/components/maskFilters/index.d.ts +1 -0
- package/lib/module/renderer/components/maskFilters/index.js +2 -0
- package/lib/module/renderer/components/maskFilters/index.js.map +1 -0
- package/lib/module/renderer/components/paragraph/Paragraph.d.ts +4 -0
- package/lib/module/renderer/components/paragraph/Paragraph.js +5 -0
- package/lib/module/renderer/components/paragraph/Paragraph.js.map +1 -0
- package/lib/module/renderer/components/paragraph/index.d.ts +1 -0
- package/lib/module/renderer/components/paragraph/index.js +2 -0
- package/lib/module/renderer/components/paragraph/index.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Corner.d.ts +4 -0
- package/lib/module/renderer/components/pathEffects/Corner.js +5 -0
- package/lib/module/renderer/components/pathEffects/Corner.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Dash.d.ts +4 -0
- package/lib/module/renderer/components/pathEffects/Dash.js +5 -0
- package/lib/module/renderer/components/pathEffects/Dash.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Discrete.d.ts +4 -0
- package/lib/module/renderer/components/pathEffects/Discrete.js +11 -0
- package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Line2D.d.ts +4 -0
- package/lib/module/renderer/components/pathEffects/Line2D.js +5 -0
- package/lib/module/renderer/components/pathEffects/Line2D.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Path1D.d.ts +4 -0
- package/lib/module/renderer/components/pathEffects/Path1D.js +5 -0
- package/lib/module/renderer/components/pathEffects/Path1D.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Path2D.d.ts +4 -0
- package/lib/module/renderer/components/pathEffects/Path2D.js +5 -0
- package/lib/module/renderer/components/pathEffects/Path2D.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Sum.d.ts +3 -0
- package/lib/module/renderer/components/pathEffects/Sum.js +5 -0
- package/lib/module/renderer/components/pathEffects/Sum.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/index.d.ts +7 -0
- package/lib/module/renderer/components/pathEffects/index.js +8 -0
- package/lib/module/renderer/components/pathEffects/index.js.map +1 -0
- package/lib/module/renderer/components/shaders/Color.d.ts +4 -0
- package/lib/module/renderer/components/shaders/Color.js +5 -0
- package/lib/module/renderer/components/shaders/Color.js.map +1 -0
- package/lib/module/renderer/components/shaders/FractalNoise.d.ts +4 -0
- package/lib/module/renderer/components/shaders/FractalNoise.js +15 -0
- package/lib/module/renderer/components/shaders/FractalNoise.js.map +1 -0
- package/lib/module/renderer/components/shaders/LinearGradient.d.ts +4 -0
- package/lib/module/renderer/components/shaders/LinearGradient.js +5 -0
- package/lib/module/renderer/components/shaders/LinearGradient.js.map +1 -0
- package/lib/module/renderer/components/shaders/RadialGradient.d.ts +4 -0
- package/lib/module/renderer/components/shaders/RadialGradient.js +5 -0
- package/lib/module/renderer/components/shaders/RadialGradient.js.map +1 -0
- package/lib/module/renderer/components/shaders/Shader.d.ts +4 -0
- package/lib/module/renderer/components/shaders/Shader.js +11 -0
- package/lib/module/renderer/components/shaders/Shader.js.map +1 -0
- package/lib/module/renderer/components/shaders/ShaderLib.d.ts +4 -0
- package/lib/module/renderer/components/shaders/ShaderLib.js +45 -0
- package/lib/module/renderer/components/shaders/ShaderLib.js.map +1 -0
- package/lib/module/renderer/components/shaders/SweepGradient.d.ts +4 -0
- package/lib/module/renderer/components/shaders/SweepGradient.js +5 -0
- package/lib/module/renderer/components/shaders/SweepGradient.js.map +1 -0
- package/lib/module/renderer/components/shaders/Turbulence.d.ts +4 -0
- package/lib/module/renderer/components/shaders/Turbulence.js +15 -0
- package/lib/module/renderer/components/shaders/Turbulence.js.map +1 -0
- package/lib/module/renderer/components/shaders/TwoPointConicalGradient.d.ts +4 -0
- package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js +5 -0
- package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -0
- package/lib/module/renderer/components/shaders/index.d.ts +9 -0
- package/lib/module/renderer/components/shaders/index.js +10 -0
- package/lib/module/renderer/components/shaders/index.js.map +1 -0
- package/lib/module/renderer/components/shapes/Atlas.d.ts +4 -0
- package/lib/module/renderer/components/shapes/Atlas.js +5 -0
- package/lib/module/renderer/components/shapes/Atlas.js.map +1 -0
- package/lib/module/renderer/components/shapes/Box.d.ts +5 -0
- package/lib/module/renderer/components/shapes/Box.js +8 -0
- package/lib/module/renderer/components/shapes/Box.js.map +1 -0
- package/lib/module/renderer/components/shapes/Circle.d.ts +4 -0
- package/lib/module/renderer/components/shapes/Circle.js +5 -0
- package/lib/module/renderer/components/shapes/Circle.js.map +1 -0
- package/lib/module/renderer/components/shapes/DiffRect.d.ts +4 -0
- package/lib/module/renderer/components/shapes/DiffRect.js +5 -0
- package/lib/module/renderer/components/shapes/DiffRect.js.map +1 -0
- package/lib/module/renderer/components/shapes/Fill.d.ts +4 -0
- package/lib/module/renderer/components/shapes/Fill.js +5 -0
- package/lib/module/renderer/components/shapes/Fill.js.map +1 -0
- package/lib/module/renderer/components/shapes/FitBox.d.ts +13 -0
- package/lib/module/renderer/components/shapes/FitBox.js +48 -0
- package/lib/module/renderer/components/shapes/FitBox.js.map +1 -0
- package/lib/module/renderer/components/shapes/Line.d.ts +4 -0
- package/lib/module/renderer/components/shapes/Line.js +5 -0
- package/lib/module/renderer/components/shapes/Line.js.map +1 -0
- package/lib/module/renderer/components/shapes/Oval.d.ts +4 -0
- package/lib/module/renderer/components/shapes/Oval.js +5 -0
- package/lib/module/renderer/components/shapes/Oval.js.map +1 -0
- package/lib/module/renderer/components/shapes/Patch.d.ts +4 -0
- package/lib/module/renderer/components/shapes/Patch.js +5 -0
- package/lib/module/renderer/components/shapes/Patch.js.map +1 -0
- package/lib/module/renderer/components/shapes/Path.d.ts +4 -0
- package/lib/module/renderer/components/shapes/Path.js +13 -0
- package/lib/module/renderer/components/shapes/Path.js.map +1 -0
- package/lib/module/renderer/components/shapes/Points.d.ts +4 -0
- package/lib/module/renderer/components/shapes/Points.js +11 -0
- package/lib/module/renderer/components/shapes/Points.js.map +1 -0
- package/lib/module/renderer/components/shapes/Rect.d.ts +4 -0
- package/lib/module/renderer/components/shapes/Rect.js +5 -0
- package/lib/module/renderer/components/shapes/Rect.js.map +1 -0
- package/lib/module/renderer/components/shapes/RoundedRect.d.ts +4 -0
- package/lib/module/renderer/components/shapes/RoundedRect.js +5 -0
- package/lib/module/renderer/components/shapes/RoundedRect.js.map +1 -0
- package/lib/module/renderer/components/shapes/Vertices.d.ts +4 -0
- package/lib/module/renderer/components/shapes/Vertices.js +11 -0
- package/lib/module/renderer/components/shapes/Vertices.js.map +1 -0
- package/lib/module/renderer/components/shapes/index.d.ts +14 -0
- package/lib/module/renderer/components/shapes/index.js +15 -0
- package/lib/module/renderer/components/shapes/index.js.map +1 -0
- package/lib/module/renderer/components/text/Glyphs.d.ts +4 -0
- package/lib/module/renderer/components/text/Glyphs.js +13 -0
- package/lib/module/renderer/components/text/Glyphs.js.map +1 -0
- package/lib/module/renderer/components/text/Text.d.ts +4 -0
- package/lib/module/renderer/components/text/Text.js +13 -0
- package/lib/module/renderer/components/text/Text.js.map +1 -0
- package/lib/module/renderer/components/text/TextBlob.d.ts +4 -0
- package/lib/module/renderer/components/text/TextBlob.js +13 -0
- package/lib/module/renderer/components/text/TextBlob.js.map +1 -0
- package/lib/module/renderer/components/text/TextPath.d.ts +4 -0
- package/lib/module/renderer/components/text/TextPath.js +11 -0
- package/lib/module/renderer/components/text/TextPath.js.map +1 -0
- package/lib/module/renderer/components/text/index.d.ts +4 -0
- package/lib/module/renderer/components/text/index.js +5 -0
- package/lib/module/renderer/components/text/index.js.map +1 -0
- package/lib/module/renderer/index.d.ts +1 -0
- package/lib/module/renderer/index.js +2 -0
- package/lib/module/renderer/index.js.map +1 -0
- package/lib/module/renderer/processors/Animations/Animations.d.ts +13 -0
- package/lib/module/renderer/processors/Animations/Animations.js +2 -0
- package/lib/module/renderer/processors/Animations/Animations.js.map +1 -0
- package/lib/module/renderer/processors/Animations/index.d.ts +1 -0
- package/lib/module/renderer/processors/Animations/index.js +2 -0
- package/lib/module/renderer/processors/Animations/index.js.map +1 -0
- package/lib/module/renderer/processors/index.d.ts +2 -0
- package/lib/module/renderer/processors/index.js +3 -0
- package/lib/module/renderer/processors/index.js.map +1 -0
- package/lib/module/renderer/processors/math/Coordinates.d.ts +29 -0
- package/lib/module/renderer/processors/math/Coordinates.js +43 -0
- package/lib/module/renderer/processors/math/Coordinates.js.map +1 -0
- package/lib/module/renderer/processors/math/Math.d.ts +16 -0
- package/lib/module/renderer/processors/math/Math.js +30 -0
- package/lib/module/renderer/processors/math/Math.js.map +1 -0
- package/lib/module/renderer/processors/math/Transforms.d.ts +5 -0
- package/lib/module/renderer/processors/math/Transforms.js +14 -0
- package/lib/module/renderer/processors/math/Transforms.js.map +1 -0
- package/lib/module/renderer/processors/math/index.d.ts +3 -0
- package/lib/module/renderer/processors/math/index.js +4 -0
- package/lib/module/renderer/processors/math/index.js.map +1 -0
- package/lib/module/renderer/typeddash.d.ts +3 -0
- package/lib/module/renderer/typeddash.js +25 -0
- package/lib/module/renderer/typeddash.js.map +1 -0
- package/lib/module/skia/NativeSetup.d.ts +1 -0
- package/lib/module/skia/NativeSetup.js +14 -0
- package/lib/module/skia/NativeSetup.js.map +1 -0
- package/lib/module/skia/Skia.d.ts +8 -0
- package/lib/module/skia/Skia.js +8 -0
- package/lib/module/skia/Skia.js.map +1 -0
- package/lib/module/skia/Skia.web.d.ts +1 -0
- package/lib/module/skia/Skia.web.js +3 -0
- package/lib/module/skia/Skia.web.js.map +1 -0
- package/lib/module/skia/core/AnimatedImage.d.ts +5 -0
- package/lib/module/skia/core/AnimatedImage.js +9 -0
- package/lib/module/skia/core/AnimatedImage.js.map +1 -0
- package/lib/module/skia/core/Data.d.ts +5 -0
- package/lib/module/skia/core/Data.js +72 -0
- package/lib/module/skia/core/Data.js.map +1 -0
- package/lib/module/skia/core/Font.d.ts +18 -0
- package/lib/module/skia/core/Font.js +89 -0
- package/lib/module/skia/core/Font.js.map +1 -0
- package/lib/module/skia/core/Image.d.ts +17 -0
- package/lib/module/skia/core/Image.js +36 -0
- package/lib/module/skia/core/Image.js.map +1 -0
- package/lib/module/skia/core/Matrix.d.ts +2 -0
- package/lib/module/skia/core/Matrix.js +8 -0
- package/lib/module/skia/core/Matrix.js.map +1 -0
- package/lib/module/skia/core/Picture.d.ts +8 -0
- package/lib/module/skia/core/Picture.js +22 -0
- package/lib/module/skia/core/Picture.js.map +1 -0
- package/lib/module/skia/core/RRect.d.ts +2 -0
- package/lib/module/skia/core/RRect.js +7 -0
- package/lib/module/skia/core/RRect.js.map +1 -0
- package/lib/module/skia/core/Rect.d.ts +8 -0
- package/lib/module/skia/core/Rect.js +43 -0
- package/lib/module/skia/core/Rect.js.map +1 -0
- package/lib/module/skia/core/SVG.d.ts +2 -0
- package/lib/module/skia/core/SVG.js +5 -0
- package/lib/module/skia/core/SVG.js.map +1 -0
- package/lib/module/skia/core/SVG.web.d.ts +2 -0
- package/lib/module/skia/core/SVG.web.js +15 -0
- package/lib/module/skia/core/SVG.web.js.map +1 -0
- package/lib/module/skia/core/Typeface.d.ts +5 -0
- package/lib/module/skia/core/Typeface.js +9 -0
- package/lib/module/skia/core/Typeface.js.map +1 -0
- package/lib/module/skia/core/Vector.d.ts +7 -0
- package/lib/module/skia/core/Vector.js +28 -0
- package/lib/module/skia/core/Vector.js.map +1 -0
- package/lib/module/skia/core/index.d.ts +11 -0
- package/lib/module/skia/core/index.js +12 -0
- package/lib/module/skia/core/index.js.map +1 -0
- package/lib/module/skia/index.d.ts +3 -0
- package/lib/module/skia/index.js +4 -0
- package/lib/module/skia/index.js.map +1 -0
- package/lib/module/skia/types/AnimatedImage/AnimatedImage.d.ts +24 -0
- package/lib/module/skia/types/AnimatedImage/AnimatedImage.js +2 -0
- package/lib/module/skia/types/AnimatedImage/AnimatedImage.js.map +1 -0
- package/lib/module/skia/types/AnimatedImage/AnimatedImageFactory.d.ts +13 -0
- package/lib/module/skia/types/AnimatedImage/AnimatedImageFactory.js +2 -0
- package/lib/module/skia/types/AnimatedImage/AnimatedImageFactory.js.map +1 -0
- package/lib/module/skia/types/AnimatedImage/index.d.ts +2 -0
- package/lib/module/skia/types/AnimatedImage/index.js +3 -0
- package/lib/module/skia/types/AnimatedImage/index.js.map +1 -0
- package/lib/module/skia/types/Canvas.d.ts +404 -0
- package/lib/module/skia/types/Canvas.js +11 -0
- package/lib/module/skia/types/Canvas.js.map +1 -0
- package/lib/module/skia/types/Color.d.ts +2 -0
- package/lib/module/skia/types/Color.js +2 -0
- package/lib/module/skia/types/Color.js.map +1 -0
- package/lib/module/skia/types/ColorFilter/ColorFilter.d.ts +3 -0
- package/lib/module/skia/types/ColorFilter/ColorFilter.js +2 -0
- package/lib/module/skia/types/ColorFilter/ColorFilter.js.map +1 -0
- package/lib/module/skia/types/ColorFilter/ColorFilterFactory.d.ts +43 -0
- package/lib/module/skia/types/ColorFilter/ColorFilterFactory.js +2 -0
- package/lib/module/skia/types/ColorFilter/ColorFilterFactory.js.map +1 -0
- package/lib/module/skia/types/ColorFilter/index.d.ts +2 -0
- package/lib/module/skia/types/ColorFilter/index.js +3 -0
- package/lib/module/skia/types/ColorFilter/index.js.map +1 -0
- package/lib/module/skia/types/ContourMeasure.d.ts +41 -0
- package/lib/module/skia/types/ContourMeasure.js +2 -0
- package/lib/module/skia/types/ContourMeasure.js.map +1 -0
- package/lib/module/skia/types/Data/Data.d.ts +12 -0
- package/lib/module/skia/types/Data/Data.js +2 -0
- package/lib/module/skia/types/Data/Data.js.map +1 -0
- package/lib/module/skia/types/Data/DataFactory.d.ts +18 -0
- package/lib/module/skia/types/Data/DataFactory.js +2 -0
- package/lib/module/skia/types/Data/DataFactory.js.map +1 -0
- package/lib/module/skia/types/Data/index.d.ts +2 -0
- package/lib/module/skia/types/Data/index.js +3 -0
- package/lib/module/skia/types/Data/index.js.map +1 -0
- package/lib/module/skia/types/Font/Font.d.ts +189 -0
- package/lib/module/skia/types/Font/Font.js +57 -0
- package/lib/module/skia/types/Font/Font.js.map +1 -0
- package/lib/module/skia/types/Font/FontMgr.d.ts +8 -0
- package/lib/module/skia/types/Font/FontMgr.js +2 -0
- package/lib/module/skia/types/Font/FontMgr.js.map +1 -0
- package/lib/module/skia/types/Font/FontMgrFactory.d.ts +4 -0
- package/lib/module/skia/types/Font/FontMgrFactory.js +2 -0
- package/lib/module/skia/types/Font/FontMgrFactory.js.map +1 -0
- package/lib/module/skia/types/Font/index.d.ts +3 -0
- package/lib/module/skia/types/Font/index.js +4 -0
- package/lib/module/skia/types/Font/index.js.map +1 -0
- package/lib/module/skia/types/Image/Image.d.ts +102 -0
- package/lib/module/skia/types/Image/Image.js +18 -0
- package/lib/module/skia/types/Image/Image.js.map +1 -0
- package/lib/module/skia/types/Image/ImageFactory.d.ts +80 -0
- package/lib/module/skia/types/Image/ImageFactory.js +28 -0
- package/lib/module/skia/types/Image/ImageFactory.js.map +1 -0
- package/lib/module/skia/types/Image/index.d.ts +2 -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/types/ImageFilter/ImageFilter.d.ts +23 -0
- package/lib/module/skia/types/ImageFilter/ImageFilter.js +9 -0
- package/lib/module/skia/types/ImageFilter/ImageFilter.js.map +1 -0
- package/lib/module/skia/types/ImageFilter/ImageFilterFactory.d.ts +130 -0
- package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js +8 -0
- package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -0
- package/lib/module/skia/types/ImageFilter/index.d.ts +2 -0
- package/lib/module/skia/types/ImageFilter/index.js +3 -0
- package/lib/module/skia/types/ImageFilter/index.js.map +1 -0
- package/lib/module/skia/types/JsiInstance.d.ts +4 -0
- package/lib/module/skia/types/JsiInstance.js +2 -0
- package/lib/module/skia/types/JsiInstance.js.map +1 -0
- package/lib/module/skia/types/MaskFilter.d.ts +21 -0
- package/lib/module/skia/types/MaskFilter.js +13 -0
- package/lib/module/skia/types/MaskFilter.js.map +1 -0
- package/lib/module/skia/types/Matrix.d.ts +23 -0
- package/lib/module/skia/types/Matrix.js +13 -0
- package/lib/module/skia/types/Matrix.js.map +1 -0
- package/lib/module/skia/types/Matrix4.d.ts +103 -0
- package/lib/module/skia/types/Matrix4.js +274 -0
- package/lib/module/skia/types/Matrix4.js.map +1 -0
- package/lib/module/skia/types/NativeBuffer/NativeBufferFactory.d.ts +20 -0
- package/lib/module/skia/types/NativeBuffer/NativeBufferFactory.js +5 -0
- package/lib/module/skia/types/NativeBuffer/NativeBufferFactory.js.map +1 -0
- package/lib/module/skia/types/NativeBuffer/index.d.ts +1 -0
- package/lib/module/skia/types/NativeBuffer/index.js +2 -0
- package/lib/module/skia/types/NativeBuffer/index.js.map +1 -0
- package/lib/module/skia/types/Paint/BlendMode.d.ts +58 -0
- package/lib/module/skia/types/Paint/BlendMode.js +60 -0
- package/lib/module/skia/types/Paint/BlendMode.js.map +1 -0
- package/lib/module/skia/types/Paint/Paint.d.ts +141 -0
- package/lib/module/skia/types/Paint/Paint.js +19 -0
- package/lib/module/skia/types/Paint/Paint.js.map +1 -0
- package/lib/module/skia/types/Paint/index.d.ts +2 -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/types/Paragraph/Paragraph.d.ts +79 -0
- package/lib/module/skia/types/Paragraph/Paragraph.js +2 -0
- package/lib/module/skia/types/Paragraph/Paragraph.js.map +1 -0
- package/lib/module/skia/types/Paragraph/ParagraphBuilder.d.ts +60 -0
- package/lib/module/skia/types/Paragraph/ParagraphBuilder.js +10 -0
- package/lib/module/skia/types/Paragraph/ParagraphBuilder.js.map +1 -0
- package/lib/module/skia/types/Paragraph/ParagraphStyle.d.ts +41 -0
- package/lib/module/skia/types/Paragraph/ParagraphStyle.js +22 -0
- package/lib/module/skia/types/Paragraph/ParagraphStyle.js.map +1 -0
- package/lib/module/skia/types/Paragraph/TextStyle.d.ts +62 -0
- package/lib/module/skia/types/Paragraph/TextStyle.js +21 -0
- package/lib/module/skia/types/Paragraph/TextStyle.js.map +1 -0
- package/lib/module/skia/types/Paragraph/TypefaceFontProvider.d.ts +10 -0
- package/lib/module/skia/types/Paragraph/TypefaceFontProvider.js +2 -0
- package/lib/module/skia/types/Paragraph/TypefaceFontProvider.js.map +1 -0
- package/lib/module/skia/types/Paragraph/TypefaceFontProviderFactory.d.ts +4 -0
- package/lib/module/skia/types/Paragraph/TypefaceFontProviderFactory.js +2 -0
- package/lib/module/skia/types/Paragraph/TypefaceFontProviderFactory.js.map +1 -0
- package/lib/module/skia/types/Paragraph/index.d.ts +6 -0
- package/lib/module/skia/types/Paragraph/index.js +7 -0
- package/lib/module/skia/types/Paragraph/index.js.map +1 -0
- package/lib/module/skia/types/Path/Path.d.ts +475 -0
- package/lib/module/skia/types/Path/Path.js +30 -0
- package/lib/module/skia/types/Path/Path.js.map +1 -0
- package/lib/module/skia/types/Path/PathFactory.d.ts +29 -0
- package/lib/module/skia/types/Path/PathFactory.js +2 -0
- package/lib/module/skia/types/Path/PathFactory.js.map +1 -0
- package/lib/module/skia/types/Path/index.d.ts +2 -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/types/PathEffect.d.ts +75 -0
- package/lib/module/skia/types/PathEffect.js +8 -0
- package/lib/module/skia/types/PathEffect.js.map +1 -0
- package/lib/module/skia/types/Picture/Picture.d.ts +27 -0
- package/lib/module/skia/types/Picture/Picture.js +2 -0
- package/lib/module/skia/types/Picture/Picture.js.map +1 -0
- package/lib/module/skia/types/Picture/PictureFactory.d.ts +8 -0
- package/lib/module/skia/types/Picture/PictureFactory.js +2 -0
- package/lib/module/skia/types/Picture/PictureFactory.js.map +1 -0
- package/lib/module/skia/types/Picture/PictureRecorder.d.ts +15 -0
- package/lib/module/skia/types/Picture/PictureRecorder.js +2 -0
- package/lib/module/skia/types/Picture/PictureRecorder.js.map +1 -0
- package/lib/module/skia/types/Picture/index.d.ts +3 -0
- package/lib/module/skia/types/Picture/index.js +4 -0
- package/lib/module/skia/types/Picture/index.js.map +1 -0
- package/lib/module/skia/types/Point.d.ts +10 -0
- package/lib/module/skia/types/Point.js +7 -0
- package/lib/module/skia/types/Point.js.map +1 -0
- package/lib/module/skia/types/RRect.d.ts +16 -0
- package/lib/module/skia/types/RRect.js +5 -0
- package/lib/module/skia/types/RRect.js.map +1 -0
- package/lib/module/skia/types/RSXform.d.ts +8 -0
- package/lib/module/skia/types/RSXform.js +2 -0
- package/lib/module/skia/types/RSXform.js.map +1 -0
- package/lib/module/skia/types/Rect.d.ts +11 -0
- package/lib/module/skia/types/Rect.js +10 -0
- package/lib/module/skia/types/Rect.js.map +1 -0
- package/lib/module/skia/types/RuntimeEffect/RuntimeEffect.d.ts +52 -0
- package/lib/module/skia/types/RuntimeEffect/RuntimeEffect.js +2 -0
- package/lib/module/skia/types/RuntimeEffect/RuntimeEffect.js.map +1 -0
- package/lib/module/skia/types/RuntimeEffect/RuntimeEffectFactory.d.ts +10 -0
- package/lib/module/skia/types/RuntimeEffect/RuntimeEffectFactory.js +2 -0
- package/lib/module/skia/types/RuntimeEffect/RuntimeEffectFactory.js.map +1 -0
- package/lib/module/skia/types/RuntimeEffect/index.d.ts +2 -0
- package/lib/module/skia/types/RuntimeEffect/index.js +3 -0
- package/lib/module/skia/types/RuntimeEffect/index.js.map +1 -0
- package/lib/module/skia/types/SVG/SVG.d.ts +5 -0
- package/lib/module/skia/types/SVG/SVG.js +2 -0
- package/lib/module/skia/types/SVG/SVG.js.map +1 -0
- package/lib/module/skia/types/SVG/SVGFactory.d.ts +6 -0
- package/lib/module/skia/types/SVG/SVGFactory.js +2 -0
- package/lib/module/skia/types/SVG/SVGFactory.js.map +1 -0
- package/lib/module/skia/types/SVG/index.d.ts +2 -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/types/Shader/Shader.d.ts +10 -0
- package/lib/module/skia/types/Shader/Shader.js +39 -0
- package/lib/module/skia/types/Shader/Shader.js.map +1 -0
- package/lib/module/skia/types/Shader/ShaderFactory.d.ts +104 -0
- package/lib/module/skia/types/Shader/ShaderFactory.js +2 -0
- package/lib/module/skia/types/Shader/ShaderFactory.js.map +1 -0
- package/lib/module/skia/types/Shader/index.d.ts +2 -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/Size.d.ts +4 -0
- package/lib/module/skia/types/Size.js +2 -0
- package/lib/module/skia/types/Size.js.map +1 -0
- package/lib/module/skia/types/Skia.d.ts +78 -0
- package/lib/module/skia/types/Skia.js +2 -0
- package/lib/module/skia/types/Skia.js.map +1 -0
- package/lib/module/skia/types/Surface/Surface.d.ts +37 -0
- package/lib/module/skia/types/Surface/Surface.js +2 -0
- package/lib/module/skia/types/Surface/Surface.js.map +1 -0
- package/lib/module/skia/types/Surface/SurfaceFactory.d.ts +17 -0
- package/lib/module/skia/types/Surface/SurfaceFactory.js +2 -0
- package/lib/module/skia/types/Surface/SurfaceFactory.js.map +1 -0
- package/lib/module/skia/types/Surface/index.d.ts +2 -0
- package/lib/module/skia/types/Surface/index.js +3 -0
- package/lib/module/skia/types/Surface/index.js.map +1 -0
- package/lib/module/skia/types/TextBlob.d.ts +44 -0
- package/lib/module/skia/types/TextBlob.js +2 -0
- package/lib/module/skia/types/TextBlob.js.map +1 -0
- package/lib/module/skia/types/Typeface/Typeface.d.ts +11 -0
- package/lib/module/skia/types/Typeface/Typeface.js +2 -0
- package/lib/module/skia/types/Typeface/Typeface.js.map +1 -0
- package/lib/module/skia/types/Typeface/TypefaceFactory.d.ts +5 -0
- package/lib/module/skia/types/Typeface/TypefaceFactory.js +2 -0
- package/lib/module/skia/types/Typeface/TypefaceFactory.js.map +1 -0
- package/lib/module/skia/types/Typeface/index.d.ts +2 -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/types/Vertices/Vertices.d.ts +17 -0
- package/lib/module/skia/types/Vertices/Vertices.js +7 -0
- package/lib/module/skia/types/Vertices/Vertices.js.map +1 -0
- package/lib/module/skia/types/Vertices/index.d.ts +1 -0
- package/lib/module/skia/types/Vertices/index.js +2 -0
- package/lib/module/skia/types/Vertices/index.js.map +1 -0
- package/lib/module/skia/types/Video/Video.d.ts +17 -0
- package/lib/module/skia/types/Video/Video.js +2 -0
- package/lib/module/skia/types/Video/Video.js.map +1 -0
- package/lib/module/skia/types/Video/index.d.ts +1 -0
- package/lib/module/skia/types/Video/index.js +2 -0
- package/lib/module/skia/types/Video/index.js.map +1 -0
- package/lib/module/skia/types/index.d.ts +33 -0
- package/lib/module/skia/types/index.js +34 -0
- package/lib/module/skia/types/index.js.map +1 -0
- package/lib/module/skia/web/CanvasKitWebGLBufferImpl.d.ts +9 -0
- package/lib/module/skia/web/CanvasKitWebGLBufferImpl.js +23 -0
- package/lib/module/skia/web/CanvasKitWebGLBufferImpl.js.map +1 -0
- package/lib/module/skia/web/Host.d.ts +20 -0
- package/lib/module/skia/web/Host.js +33 -0
- package/lib/module/skia/web/Host.js.map +1 -0
- package/lib/module/skia/web/JsiSkAnimatedImage.d.ts +11 -0
- package/lib/module/skia/web/JsiSkAnimatedImage.js +27 -0
- package/lib/module/skia/web/JsiSkAnimatedImage.js.map +1 -0
- package/lib/module/skia/web/JsiSkAnimatedImageFactory.d.ts +9 -0
- package/lib/module/skia/web/JsiSkAnimatedImageFactory.js +16 -0
- package/lib/module/skia/web/JsiSkAnimatedImageFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkCanvas.d.ts +47 -0
- package/lib/module/skia/web/JsiSkCanvas.js +170 -0
- package/lib/module/skia/web/JsiSkCanvas.js.map +1 -0
- package/lib/module/skia/web/JsiSkColor.d.ts +2 -0
- package/lib/module/skia/web/JsiSkColor.js +298 -0
- package/lib/module/skia/web/JsiSkColor.js.map +1 -0
- package/lib/module/skia/web/JsiSkColorFilter.d.ts +7 -0
- package/lib/module/skia/web/JsiSkColorFilter.js +13 -0
- package/lib/module/skia/web/JsiSkColorFilter.js.map +1 -0
- package/lib/module/skia/web/JsiSkColorFilterFactory.d.ts +14 -0
- package/lib/module/skia/web/JsiSkColorFilterFactory.js +29 -0
- package/lib/module/skia/web/JsiSkColorFilterFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkContourMeasure.d.ts +13 -0
- package/lib/module/skia/web/JsiSkContourMeasure.js +28 -0
- package/lib/module/skia/web/JsiSkContourMeasure.js.map +1 -0
- package/lib/module/skia/web/JsiSkContourMeasureIter.d.ts +9 -0
- package/lib/module/skia/web/JsiSkContourMeasureIter.js +21 -0
- package/lib/module/skia/web/JsiSkContourMeasureIter.js.map +1 -0
- package/lib/module/skia/web/JsiSkData.d.ts +9 -0
- package/lib/module/skia/web/JsiSkData.js +13 -0
- package/lib/module/skia/web/JsiSkData.js.map +1 -0
- package/lib/module/skia/web/JsiSkDataFactory.d.ts +19 -0
- package/lib/module/skia/web/JsiSkDataFactory.js +26 -0
- package/lib/module/skia/web/JsiSkDataFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkFont.d.ts +35 -0
- package/lib/module/skia/web/JsiSkFont.js +92 -0
- package/lib/module/skia/web/JsiSkFont.js.map +1 -0
- package/lib/module/skia/web/JsiSkFontMgr.d.ts +10 -0
- package/lib/module/skia/web/JsiSkFontMgr.js +19 -0
- package/lib/module/skia/web/JsiSkFontMgr.js.map +1 -0
- package/lib/module/skia/web/JsiSkFontMgrFactory.d.ts +8 -0
- package/lib/module/skia/web/JsiSkFontMgrFactory.js +15 -0
- package/lib/module/skia/web/JsiSkFontMgrFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkImage.d.ts +17 -0
- package/lib/module/skia/web/JsiSkImage.js +114 -0
- package/lib/module/skia/web/JsiSkImage.js.map +1 -0
- package/lib/module/skia/web/JsiSkImageFactory.d.ts +12 -0
- package/lib/module/skia/web/JsiSkImageFactory.js +61 -0
- package/lib/module/skia/web/JsiSkImageFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkImageFilter.d.ts +7 -0
- package/lib/module/skia/web/JsiSkImageFilter.js +13 -0
- package/lib/module/skia/web/JsiSkImageFilter.js.map +1 -0
- package/lib/module/skia/web/JsiSkImageFilterFactory.d.ts +19 -0
- package/lib/module/skia/web/JsiSkImageFilterFactory.js +75 -0
- package/lib/module/skia/web/JsiSkImageFilterFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkMaskFilter.d.ts +7 -0
- package/lib/module/skia/web/JsiSkMaskFilter.js +13 -0
- package/lib/module/skia/web/JsiSkMaskFilter.js.map +1 -0
- package/lib/module/skia/web/JsiSkMaskFilterFactory.d.ts +9 -0
- package/lib/module/skia/web/JsiSkMaskFilterFactory.js +11 -0
- package/lib/module/skia/web/JsiSkMaskFilterFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkMatrix.d.ts +20 -0
- package/lib/module/skia/web/JsiSkMatrix.js +66 -0
- package/lib/module/skia/web/JsiSkMatrix.js.map +1 -0
- package/lib/module/skia/web/JsiSkNativeBufferFactory.d.ts +8 -0
- package/lib/module/skia/web/JsiSkNativeBufferFactory.js +22 -0
- package/lib/module/skia/web/JsiSkNativeBufferFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkPaint.d.ts +30 -0
- package/lib/module/skia/web/JsiSkPaint.js +89 -0
- package/lib/module/skia/web/JsiSkPaint.js.map +1 -0
- package/lib/module/skia/web/JsiSkParagraph.d.ts +19 -0
- package/lib/module/skia/web/JsiSkParagraph.js +70 -0
- package/lib/module/skia/web/JsiSkParagraph.js.map +1 -0
- package/lib/module/skia/web/JsiSkParagraphBuilder.d.ts +15 -0
- package/lib/module/skia/web/JsiSkParagraphBuilder.js +56 -0
- package/lib/module/skia/web/JsiSkParagraphBuilder.js.map +1 -0
- package/lib/module/skia/web/JsiSkParagraphBuilderFactory.d.ts +8 -0
- package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js +20 -0
- package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkParagraphStyle.d.ts +5 -0
- package/lib/module/skia/web/JsiSkParagraphStyle.js +47 -0
- package/lib/module/skia/web/JsiSkParagraphStyle.js.map +1 -0
- package/lib/module/skia/web/JsiSkPath.d.ts +58 -0
- package/lib/module/skia/web/JsiSkPath.js +256 -0
- package/lib/module/skia/web/JsiSkPath.js.map +1 -0
- package/lib/module/skia/web/JsiSkPathEffect.d.ts +7 -0
- package/lib/module/skia/web/JsiSkPathEffect.js +13 -0
- package/lib/module/skia/web/JsiSkPathEffect.js.map +1 -0
- package/lib/module/skia/web/JsiSkPathEffectFactory.d.ts +15 -0
- package/lib/module/skia/web/JsiSkPathEffectFactory.js +52 -0
- package/lib/module/skia/web/JsiSkPathEffectFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkPathFactory.d.ts +13 -0
- package/lib/module/skia/web/JsiSkPathFactory.js +35 -0
- package/lib/module/skia/web/JsiSkPathFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkPicture.d.ts +10 -0
- package/lib/module/skia/web/JsiSkPicture.js +24 -0
- package/lib/module/skia/web/JsiSkPicture.js.map +1 -0
- package/lib/module/skia/web/JsiSkPictureFactory.d.ts +8 -0
- package/lib/module/skia/web/JsiSkPictureFactory.js +15 -0
- package/lib/module/skia/web/JsiSkPictureFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkPictureRecorder.d.ts +12 -0
- package/lib/module/skia/web/JsiSkPictureRecorder.js +22 -0
- package/lib/module/skia/web/JsiSkPictureRecorder.js.map +1 -0
- package/lib/module/skia/web/JsiSkPoint.d.ts +10 -0
- package/lib/module/skia/web/JsiSkPoint.js +25 -0
- package/lib/module/skia/web/JsiSkPoint.js.map +1 -0
- package/lib/module/skia/web/JsiSkRRect.d.ts +12 -0
- package/lib/module/skia/web/JsiSkRRect.js +43 -0
- package/lib/module/skia/web/JsiSkRRect.js.map +1 -0
- package/lib/module/skia/web/JsiSkRSXform.d.ts +14 -0
- package/lib/module/skia/web/JsiSkRSXform.js +37 -0
- package/lib/module/skia/web/JsiSkRSXform.js.map +1 -0
- package/lib/module/skia/web/JsiSkRect.d.ts +13 -0
- package/lib/module/skia/web/JsiSkRect.js +37 -0
- package/lib/module/skia/web/JsiSkRect.js.map +1 -0
- package/lib/module/skia/web/JsiSkRuntimeEffect.d.ts +17 -0
- package/lib/module/skia/web/JsiSkRuntimeEffect.js +37 -0
- package/lib/module/skia/web/JsiSkRuntimeEffect.js.map +1 -0
- package/lib/module/skia/web/JsiSkRuntimeEffectFactory.d.ts +8 -0
- package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js +15 -0
- package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkSVG.d.ts +9 -0
- package/lib/module/skia/web/JsiSkSVG.js +21 -0
- package/lib/module/skia/web/JsiSkSVG.js.map +1 -0
- package/lib/module/skia/web/JsiSkSVGFactory.d.ts +10 -0
- package/lib/module/skia/web/JsiSkSVGFactory.js +49 -0
- package/lib/module/skia/web/JsiSkSVGFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkShader.d.ts +7 -0
- package/lib/module/skia/web/JsiSkShader.js +13 -0
- package/lib/module/skia/web/JsiSkShader.js.map +1 -0
- package/lib/module/skia/web/JsiSkShaderFactory.d.ts +16 -0
- package/lib/module/skia/web/JsiSkShaderFactory.js +34 -0
- package/lib/module/skia/web/JsiSkShaderFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkSurface.d.ts +12 -0
- package/lib/module/skia/web/JsiSkSurface.js +32 -0
- package/lib/module/skia/web/JsiSkSurface.js.map +1 -0
- package/lib/module/skia/web/JsiSkSurfaceFactory.d.ts +9 -0
- package/lib/module/skia/web/JsiSkSurfaceFactory.js +32 -0
- package/lib/module/skia/web/JsiSkSurfaceFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkTextBlob.d.ts +7 -0
- package/lib/module/skia/web/JsiSkTextBlob.js +13 -0
- package/lib/module/skia/web/JsiSkTextBlob.js.map +1 -0
- package/lib/module/skia/web/JsiSkTextBlobFactory.d.ts +13 -0
- package/lib/module/skia/web/JsiSkTextBlobFactory.js +23 -0
- package/lib/module/skia/web/JsiSkTextBlobFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkTextStyle.d.ts +5 -0
- package/lib/module/skia/web/JsiSkTextStyle.js +44 -0
- package/lib/module/skia/web/JsiSkTextStyle.js.map +1 -0
- package/lib/module/skia/web/JsiSkTypeface.d.ts +10 -0
- package/lib/module/skia/web/JsiSkTypeface.js +24 -0
- package/lib/module/skia/web/JsiSkTypeface.js.map +1 -0
- package/lib/module/skia/web/JsiSkTypefaceFactory.d.ts +8 -0
- package/lib/module/skia/web/JsiSkTypefaceFactory.js +15 -0
- package/lib/module/skia/web/JsiSkTypefaceFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkTypefaceFontProvider.d.ts +13 -0
- package/lib/module/skia/web/JsiSkTypefaceFontProvider.js +69 -0
- package/lib/module/skia/web/JsiSkTypefaceFontProvider.js.map +1 -0
- package/lib/module/skia/web/JsiSkTypefaceFontProviderFactory.d.ts +7 -0
- package/lib/module/skia/web/JsiSkTypefaceFontProviderFactory.js +12 -0
- package/lib/module/skia/web/JsiSkTypefaceFontProviderFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkVertices.d.ts +10 -0
- package/lib/module/skia/web/JsiSkVertices.js +20 -0
- package/lib/module/skia/web/JsiSkVertices.js.map +1 -0
- package/lib/module/skia/web/JsiSkVerticesFactory.d.ts +4 -0
- package/lib/module/skia/web/JsiSkVerticesFactory.js +23 -0
- package/lib/module/skia/web/JsiSkVerticesFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkia.d.ts +3 -0
- package/lib/module/skia/web/JsiSkia.js +81 -0
- package/lib/module/skia/web/JsiSkia.js.map +1 -0
- package/lib/module/skia/web/JsiVideo.d.ts +24 -0
- package/lib/module/skia/web/JsiVideo.js +75 -0
- package/lib/module/skia/web/JsiVideo.js.map +1 -0
- package/lib/module/skia/web/index.d.ts +1 -0
- package/lib/module/skia/web/index.js +2 -0
- package/lib/module/skia/web/index.js.map +1 -0
- package/lib/module/specs/NativeSkiaModule.d.ts +6 -0
- package/lib/module/specs/NativeSkiaModule.js +4 -0
- package/lib/module/specs/NativeSkiaModule.js.map +1 -0
- package/lib/module/specs/NativeSkiaModule.web.d.ts +0 -0
- package/lib/module/specs/NativeSkiaModule.web.js +2 -0
- package/lib/module/specs/NativeSkiaModule.web.js.map +1 -0
- package/lib/module/specs/SkiaDomViewNativeComponent.d.ts +8 -0
- package/lib/module/specs/SkiaDomViewNativeComponent.js +4 -0
- package/lib/module/specs/SkiaDomViewNativeComponent.js.map +1 -0
- package/lib/module/specs/SkiaPictureViewNativeComponent.d.ts +8 -0
- package/lib/module/specs/SkiaPictureViewNativeComponent.js +4 -0
- package/lib/module/specs/SkiaPictureViewNativeComponent.js.map +1 -0
- package/lib/module/views/SkiaBaseWebView.d.ts +60 -0
- package/lib/module/views/SkiaBaseWebView.js +178 -0
- package/lib/module/views/SkiaBaseWebView.js.map +1 -0
- package/lib/module/views/SkiaDomView.d.ts +30 -0
- package/lib/module/views/SkiaDomView.js +115 -0
- package/lib/module/views/SkiaDomView.js.map +1 -0
- package/lib/module/views/SkiaDomView.web.d.ts +7 -0
- package/lib/module/views/SkiaDomView.web.js +30 -0
- package/lib/module/views/SkiaDomView.web.js.map +1 -0
- package/lib/module/views/SkiaJSDomView.d.ts +31 -0
- package/lib/module/views/SkiaJSDomView.js +122 -0
- package/lib/module/views/SkiaJSDomView.js.map +1 -0
- package/lib/module/views/SkiaJSDomView.web.d.ts +1 -0
- package/lib/module/views/SkiaJSDomView.web.js +2 -0
- package/lib/module/views/SkiaJSDomView.web.js.map +1 -0
- package/lib/module/views/SkiaPictureView.d.ts +20 -0
- package/lib/module/views/SkiaPictureView.js +82 -0
- package/lib/module/views/SkiaPictureView.js.map +1 -0
- package/lib/module/views/SkiaPictureView.web.d.ts +7 -0
- package/lib/module/views/SkiaPictureView.web.js +12 -0
- package/lib/module/views/SkiaPictureView.web.js.map +1 -0
- package/lib/module/views/SkiaViewNativeId.d.ts +3 -0
- package/lib/module/views/SkiaViewNativeId.js +4 -0
- package/lib/module/views/SkiaViewNativeId.js.map +1 -0
- package/lib/module/views/api.d.ts +5 -0
- package/lib/module/views/api.js +4 -0
- package/lib/module/views/api.js.map +1 -0
- package/lib/module/views/index.d.ts +4 -0
- package/lib/module/views/index.js +5 -0
- package/lib/module/views/index.js.map +1 -0
- package/lib/module/views/types.d.ts +72 -0
- package/lib/module/views/types.js +8 -0
- package/lib/module/views/types.js.map +1 -0
- package/lib/module/views/useTouchHandler.d.ts +22 -0
- package/lib/module/views/useTouchHandler.js +75 -0
- package/lib/module/views/useTouchHandler.js.map +1 -0
- package/lib/module/web/LoadSkiaWeb.d.ts +6 -0
- package/lib/module/web/LoadSkiaWeb.js +19 -0
- package/lib/module/web/LoadSkiaWeb.js.map +1 -0
- package/lib/module/web/WithSkiaWeb.d.ts +12 -0
- package/lib/module/web/WithSkiaWeb.js +24 -0
- package/lib/module/web/WithSkiaWeb.js.map +1 -0
- package/lib/module/web/index.d.ts +2 -0
- package/lib/module/web/index.js +3 -0
- package/lib/module/web/index.js.map +1 -0
- package/lib/typescript/index.d.ts +1 -0
- package/lib/typescript/jestEnv.d.mts +5 -0
- package/lib/typescript/jestSetup.d.mts +1 -0
- package/lib/typescript/jestSetup.d.ts +1 -0
- package/lib/typescript/src/Platform/IPlatform.d.ts +10 -0
- package/lib/typescript/src/Platform/Platform.d.ts +2 -0
- package/lib/typescript/src/Platform/Platform.web.d.ts +2 -0
- package/lib/typescript/src/Platform/index.d.ts +1 -0
- package/lib/typescript/src/animation/functions/index.d.ts +4 -0
- package/lib/typescript/src/animation/functions/interpolate.d.ts +17 -0
- package/lib/typescript/src/animation/functions/interpolateColors.d.ts +3 -0
- package/lib/typescript/src/animation/functions/interpolatePaths.d.ts +19 -0
- package/lib/typescript/src/animation/functions/interpolateVector.d.ts +10 -0
- package/lib/typescript/src/animation/index.d.ts +1 -0
- package/lib/typescript/src/dom/nodes/DrawingNode.d.ts +14 -0
- package/lib/typescript/src/dom/nodes/GroupNode.d.ts +7 -0
- package/lib/typescript/src/dom/nodes/JsiSkDOM.d.ts +68 -0
- package/lib/typescript/src/dom/nodes/LayerNode.d.ts +8 -0
- package/lib/typescript/src/dom/nodes/Node.d.ts +34 -0
- package/lib/typescript/src/dom/nodes/PaintNode.d.ts +8 -0
- package/lib/typescript/src/dom/nodes/RenderNode.d.ts +26 -0
- package/lib/typescript/src/dom/nodes/datatypes/Circle.d.ts +7 -0
- package/lib/typescript/src/dom/nodes/datatypes/Enum.d.ts +1 -0
- package/lib/typescript/src/dom/nodes/datatypes/Fitting.d.ts +33 -0
- package/lib/typescript/src/dom/nodes/datatypes/Gradient.d.ts +252 -0
- package/lib/typescript/src/dom/nodes/datatypes/Path.d.ts +4 -0
- package/lib/typescript/src/dom/nodes/datatypes/Radius.d.ts +3 -0
- package/lib/typescript/src/dom/nodes/datatypes/Rect.d.ts +5 -0
- package/lib/typescript/src/dom/nodes/datatypes/Transform.d.ts +3 -0
- package/lib/typescript/src/dom/nodes/datatypes/index.d.ts +8 -0
- package/lib/typescript/src/dom/nodes/drawings/AtlasNode.d.ts +8 -0
- package/lib/typescript/src/dom/nodes/drawings/BackdropFilterNode.d.ts +8 -0
- package/lib/typescript/src/dom/nodes/drawings/Box.d.ts +15 -0
- package/lib/typescript/src/dom/nodes/drawings/CircleNode.d.ts +9 -0
- package/lib/typescript/src/dom/nodes/drawings/DiffRectNode.d.ts +8 -0
- package/lib/typescript/src/dom/nodes/drawings/FillNode.d.ts +8 -0
- package/lib/typescript/src/dom/nodes/drawings/ImageNode.d.ts +25 -0
- package/lib/typescript/src/dom/nodes/drawings/ImageSVG.d.ts +13 -0
- package/lib/typescript/src/dom/nodes/drawings/LineNode.d.ts +8 -0
- package/lib/typescript/src/dom/nodes/drawings/OvalNode.d.ts +9 -0
- package/lib/typescript/src/dom/nodes/drawings/ParagraphNode.d.ts +8 -0
- package/lib/typescript/src/dom/nodes/drawings/PatchNode.d.ts +18 -0
- package/lib/typescript/src/dom/nodes/drawings/PathNode.d.ts +9 -0
- package/lib/typescript/src/dom/nodes/drawings/PictureNode.d.ts +8 -0
- package/lib/typescript/src/dom/nodes/drawings/PointsNode.d.ts +8 -0
- package/lib/typescript/src/dom/nodes/drawings/RRectNode.d.ts +10 -0
- package/lib/typescript/src/dom/nodes/drawings/RectNode.d.ts +9 -0
- package/lib/typescript/src/dom/nodes/drawings/Text.d.ts +30 -0
- package/lib/typescript/src/dom/nodes/drawings/VerticesNode.d.ts +9 -0
- package/lib/typescript/src/dom/nodes/drawings/index.d.ts +18 -0
- package/lib/typescript/src/dom/nodes/index.d.ts +3 -0
- package/lib/typescript/src/dom/nodes/paint/BlendNode.d.ts +8 -0
- package/lib/typescript/src/dom/nodes/paint/ColorFilters.d.ts +35 -0
- package/lib/typescript/src/dom/nodes/paint/ImageFilters.d.ts +42 -0
- package/lib/typescript/src/dom/nodes/paint/MaskFilters.d.ts +8 -0
- package/lib/typescript/src/dom/nodes/paint/PathEffects.d.ts +39 -0
- package/lib/typescript/src/dom/nodes/paint/Shaders.d.ts +43 -0
- package/lib/typescript/src/dom/nodes/paint/index.d.ts +6 -0
- package/lib/typescript/src/dom/types/ColorFilters.d.ts +12 -0
- package/lib/typescript/src/dom/types/Common.d.ts +57 -0
- package/lib/typescript/src/dom/types/DeclarationContext.d.ts +29 -0
- package/lib/typescript/src/dom/types/DrawingContext.d.ts +22 -0
- package/lib/typescript/src/dom/types/Drawings.d.ts +111 -0
- package/lib/typescript/src/dom/types/ImageFilters.d.ts +37 -0
- package/lib/typescript/src/dom/types/MaskFilters.d.ts +7 -0
- package/lib/typescript/src/dom/types/Node.d.ts +22 -0
- package/lib/typescript/src/dom/types/NodeType.d.ts +59 -0
- package/lib/typescript/src/dom/types/Paragraph.d.ts +8 -0
- package/lib/typescript/src/dom/types/PathEffects.d.ts +28 -0
- package/lib/typescript/src/dom/types/Shaders.d.ts +59 -0
- package/lib/typescript/src/dom/types/SkDOM.d.ts +73 -0
- package/lib/typescript/src/dom/types/index.d.ts +13 -0
- package/lib/typescript/src/external/ModuleProxy.d.ts +10 -0
- package/lib/typescript/src/external/index.d.ts +1 -0
- package/lib/typescript/src/external/reanimated/ReanimatedProxy.d.ts +3 -0
- package/lib/typescript/src/external/reanimated/buffers.d.ts +7 -0
- package/lib/typescript/src/external/reanimated/index.d.ts +7 -0
- package/lib/typescript/src/external/reanimated/interpolators.d.ts +10 -0
- package/lib/typescript/src/external/reanimated/renderHelpers.d.ts +6 -0
- package/lib/typescript/src/external/reanimated/textures.d.ts +8 -0
- package/lib/typescript/src/external/reanimated/useAnimatedImageValue.d.ts +3 -0
- package/lib/typescript/src/external/reanimated/useDerivedValueOnJS.d.ts +1 -0
- package/lib/typescript/src/external/reanimated/useVideo.d.ts +21 -0
- package/lib/typescript/src/external/reanimated/useVideoLoading.d.ts +4 -0
- package/lib/typescript/src/external/reanimated/useVideoLoading.web.d.ts +4 -0
- package/lib/typescript/src/headless/index.d.ts +8 -0
- package/lib/typescript/src/index.d.ts +11 -0
- package/lib/typescript/src/mock/index.d.ts +2 -0
- package/lib/typescript/src/renderer/Canvas.d.ts +11 -0
- package/lib/typescript/src/renderer/Container.d.ts +11 -0
- package/lib/typescript/src/renderer/DrawingContext.d.ts +7 -0
- package/lib/typescript/src/renderer/HostComponents.d.ts +132 -0
- package/lib/typescript/src/renderer/HostConfig.d.ts +19 -0
- package/lib/typescript/src/renderer/Offscreen.d.ts +6 -0
- package/lib/typescript/src/renderer/Reconciler.d.ts +10 -0
- package/lib/typescript/src/renderer/components/Blend.d.ts +4 -0
- package/lib/typescript/src/renderer/components/Group.d.ts +8 -0
- package/lib/typescript/src/renderer/components/Mask.d.ts +10 -0
- package/lib/typescript/src/renderer/components/Paint.d.ts +4 -0
- package/lib/typescript/src/renderer/components/Picture.d.ts +4 -0
- package/lib/typescript/src/renderer/components/backdrop/BackdropBlur.d.ts +9 -0
- package/lib/typescript/src/renderer/components/backdrop/BackdropFilter.d.ts +8 -0
- package/lib/typescript/src/renderer/components/backdrop/index.d.ts +2 -0
- package/lib/typescript/src/renderer/components/colorFilters/BlendColor.d.ts +4 -0
- package/lib/typescript/src/renderer/components/colorFilters/Lerp.d.ts +4 -0
- package/lib/typescript/src/renderer/components/colorFilters/LinearToSRGBGamma.d.ts +4 -0
- package/lib/typescript/src/renderer/components/colorFilters/LumaColorFilter.d.ts +4 -0
- package/lib/typescript/src/renderer/components/colorFilters/Matrix.d.ts +5 -0
- package/lib/typescript/src/renderer/components/colorFilters/SRGBToLinearGamma.d.ts +4 -0
- package/lib/typescript/src/renderer/components/colorFilters/index.d.ts +6 -0
- package/lib/typescript/src/renderer/components/image/Image.d.ts +4 -0
- package/lib/typescript/src/renderer/components/image/ImageSVG.d.ts +4 -0
- package/lib/typescript/src/renderer/components/image/ImageShader.d.ts +4 -0
- package/lib/typescript/src/renderer/components/image/index.d.ts +3 -0
- package/lib/typescript/src/renderer/components/imageFilters/Blur.d.ts +4 -0
- package/lib/typescript/src/renderer/components/imageFilters/DisplacementMap.d.ts +4 -0
- package/lib/typescript/src/renderer/components/imageFilters/Morphology.d.ts +4 -0
- package/lib/typescript/src/renderer/components/imageFilters/Offset.d.ts +4 -0
- package/lib/typescript/src/renderer/components/imageFilters/RuntimeShader.d.ts +4 -0
- package/lib/typescript/src/renderer/components/imageFilters/Shadow.d.ts +4 -0
- package/lib/typescript/src/renderer/components/imageFilters/index.d.ts +6 -0
- package/lib/typescript/src/renderer/components/index.d.ts +16 -0
- package/lib/typescript/src/renderer/components/maskFilters/Blur.d.ts +4 -0
- package/lib/typescript/src/renderer/components/maskFilters/index.d.ts +1 -0
- package/lib/typescript/src/renderer/components/paragraph/Paragraph.d.ts +4 -0
- package/lib/typescript/src/renderer/components/paragraph/index.d.ts +1 -0
- package/lib/typescript/src/renderer/components/pathEffects/Corner.d.ts +4 -0
- package/lib/typescript/src/renderer/components/pathEffects/Dash.d.ts +4 -0
- package/lib/typescript/src/renderer/components/pathEffects/Discrete.d.ts +4 -0
- package/lib/typescript/src/renderer/components/pathEffects/Line2D.d.ts +4 -0
- package/lib/typescript/src/renderer/components/pathEffects/Path1D.d.ts +4 -0
- package/lib/typescript/src/renderer/components/pathEffects/Path2D.d.ts +4 -0
- package/lib/typescript/src/renderer/components/pathEffects/Sum.d.ts +3 -0
- package/lib/typescript/src/renderer/components/pathEffects/index.d.ts +7 -0
- package/lib/typescript/src/renderer/components/shaders/Color.d.ts +4 -0
- package/lib/typescript/src/renderer/components/shaders/FractalNoise.d.ts +4 -0
- package/lib/typescript/src/renderer/components/shaders/LinearGradient.d.ts +4 -0
- package/lib/typescript/src/renderer/components/shaders/RadialGradient.d.ts +4 -0
- package/lib/typescript/src/renderer/components/shaders/Shader.d.ts +4 -0
- package/lib/typescript/src/renderer/components/shaders/ShaderLib.d.ts +4 -0
- package/lib/typescript/src/renderer/components/shaders/SweepGradient.d.ts +4 -0
- package/lib/typescript/src/renderer/components/shaders/Turbulence.d.ts +4 -0
- package/lib/typescript/src/renderer/components/shaders/TwoPointConicalGradient.d.ts +4 -0
- package/lib/typescript/src/renderer/components/shaders/index.d.ts +9 -0
- package/lib/typescript/src/renderer/components/shapes/Atlas.d.ts +4 -0
- package/lib/typescript/src/renderer/components/shapes/Box.d.ts +5 -0
- package/lib/typescript/src/renderer/components/shapes/Circle.d.ts +4 -0
- package/lib/typescript/src/renderer/components/shapes/DiffRect.d.ts +4 -0
- package/lib/typescript/src/renderer/components/shapes/Fill.d.ts +4 -0
- package/lib/typescript/src/renderer/components/shapes/FitBox.d.ts +13 -0
- package/lib/typescript/src/renderer/components/shapes/Line.d.ts +4 -0
- package/lib/typescript/src/renderer/components/shapes/Oval.d.ts +4 -0
- package/lib/typescript/src/renderer/components/shapes/Patch.d.ts +4 -0
- package/lib/typescript/src/renderer/components/shapes/Path.d.ts +4 -0
- package/lib/typescript/src/renderer/components/shapes/Points.d.ts +4 -0
- package/lib/typescript/src/renderer/components/shapes/Rect.d.ts +4 -0
- package/lib/typescript/src/renderer/components/shapes/RoundedRect.d.ts +4 -0
- package/lib/typescript/src/renderer/components/shapes/Vertices.d.ts +4 -0
- package/lib/typescript/src/renderer/components/shapes/index.d.ts +14 -0
- package/lib/typescript/src/renderer/components/text/Glyphs.d.ts +4 -0
- package/lib/typescript/src/renderer/components/text/Text.d.ts +4 -0
- package/lib/typescript/src/renderer/components/text/TextBlob.d.ts +4 -0
- package/lib/typescript/src/renderer/components/text/TextPath.d.ts +4 -0
- package/lib/typescript/src/renderer/components/text/index.d.ts +4 -0
- package/lib/typescript/src/renderer/index.d.ts +1 -0
- package/lib/typescript/src/renderer/processors/Animations/Animations.d.ts +13 -0
- package/lib/typescript/src/renderer/processors/Animations/index.d.ts +1 -0
- package/lib/typescript/src/renderer/processors/index.d.ts +2 -0
- package/lib/typescript/src/renderer/processors/math/Coordinates.d.ts +29 -0
- package/lib/typescript/src/renderer/processors/math/Math.d.ts +16 -0
- package/lib/typescript/src/renderer/processors/math/Transforms.d.ts +5 -0
- package/lib/typescript/src/renderer/processors/math/index.d.ts +3 -0
- package/lib/typescript/src/renderer/typeddash.d.ts +3 -0
- package/lib/typescript/src/skia/NativeSetup.d.ts +1 -0
- package/lib/typescript/src/skia/Skia.d.ts +8 -0
- package/lib/typescript/src/skia/Skia.web.d.ts +1 -0
- package/lib/typescript/src/skia/core/AnimatedImage.d.ts +5 -0
- package/lib/typescript/src/skia/core/Data.d.ts +5 -0
- package/lib/typescript/src/skia/core/Font.d.ts +18 -0
- package/lib/typescript/src/skia/core/Image.d.ts +17 -0
- package/lib/typescript/src/skia/core/Matrix.d.ts +2 -0
- package/lib/typescript/src/skia/core/Picture.d.ts +8 -0
- package/lib/typescript/src/skia/core/RRect.d.ts +2 -0
- package/lib/typescript/src/skia/core/Rect.d.ts +8 -0
- package/lib/typescript/src/skia/core/SVG.d.ts +2 -0
- package/lib/typescript/src/skia/core/SVG.web.d.ts +2 -0
- package/lib/typescript/src/skia/core/Typeface.d.ts +5 -0
- package/lib/typescript/src/skia/core/Vector.d.ts +7 -0
- package/lib/typescript/src/skia/core/index.d.ts +11 -0
- package/lib/typescript/src/skia/index.d.ts +3 -0
- package/lib/typescript/src/skia/types/AnimatedImage/AnimatedImage.d.ts +24 -0
- package/lib/typescript/src/skia/types/AnimatedImage/AnimatedImageFactory.d.ts +13 -0
- package/lib/typescript/src/skia/types/AnimatedImage/index.d.ts +2 -0
- package/lib/typescript/src/skia/types/Canvas.d.ts +404 -0
- package/lib/typescript/src/skia/types/Color.d.ts +2 -0
- package/lib/typescript/src/skia/types/ColorFilter/ColorFilter.d.ts +3 -0
- package/lib/typescript/src/skia/types/ColorFilter/ColorFilterFactory.d.ts +43 -0
- package/lib/typescript/src/skia/types/ColorFilter/index.d.ts +2 -0
- package/lib/typescript/src/skia/types/ContourMeasure.d.ts +41 -0
- package/lib/typescript/src/skia/types/Data/Data.d.ts +12 -0
- package/lib/typescript/src/skia/types/Data/DataFactory.d.ts +18 -0
- package/lib/typescript/src/skia/types/Data/index.d.ts +2 -0
- package/lib/typescript/src/skia/types/Font/Font.d.ts +189 -0
- package/lib/typescript/src/skia/types/Font/FontMgr.d.ts +8 -0
- package/lib/typescript/src/skia/types/Font/FontMgrFactory.d.ts +4 -0
- package/lib/typescript/src/skia/types/Font/index.d.ts +3 -0
- package/lib/typescript/src/skia/types/Image/Image.d.ts +102 -0
- package/lib/typescript/src/skia/types/Image/ImageFactory.d.ts +80 -0
- package/lib/typescript/src/skia/types/Image/index.d.ts +2 -0
- package/lib/typescript/src/skia/types/ImageFilter/ImageFilter.d.ts +23 -0
- package/lib/typescript/src/skia/types/ImageFilter/ImageFilterFactory.d.ts +130 -0
- package/lib/typescript/src/skia/types/ImageFilter/index.d.ts +2 -0
- package/lib/typescript/src/skia/types/JsiInstance.d.ts +4 -0
- package/lib/typescript/src/skia/types/MaskFilter.d.ts +21 -0
- package/lib/typescript/src/skia/types/Matrix.d.ts +23 -0
- package/lib/typescript/src/skia/types/Matrix4.d.ts +103 -0
- package/lib/typescript/src/skia/types/NativeBuffer/NativeBufferFactory.d.ts +20 -0
- package/lib/typescript/src/skia/types/NativeBuffer/index.d.ts +1 -0
- package/lib/typescript/src/skia/types/Paint/BlendMode.d.ts +58 -0
- package/lib/typescript/src/skia/types/Paint/Paint.d.ts +141 -0
- package/lib/typescript/src/skia/types/Paint/index.d.ts +2 -0
- package/lib/typescript/src/skia/types/Paragraph/Paragraph.d.ts +79 -0
- package/lib/typescript/src/skia/types/Paragraph/ParagraphBuilder.d.ts +60 -0
- package/lib/typescript/src/skia/types/Paragraph/ParagraphStyle.d.ts +41 -0
- package/lib/typescript/src/skia/types/Paragraph/TextStyle.d.ts +62 -0
- package/lib/typescript/src/skia/types/Paragraph/TypefaceFontProvider.d.ts +10 -0
- package/lib/typescript/src/skia/types/Paragraph/TypefaceFontProviderFactory.d.ts +4 -0
- package/lib/typescript/src/skia/types/Paragraph/index.d.ts +6 -0
- package/lib/typescript/src/skia/types/Path/Path.d.ts +475 -0
- package/lib/typescript/src/skia/types/Path/PathFactory.d.ts +29 -0
- package/lib/typescript/src/skia/types/Path/index.d.ts +2 -0
- package/lib/typescript/src/skia/types/PathEffect.d.ts +75 -0
- package/lib/typescript/src/skia/types/Picture/Picture.d.ts +27 -0
- package/lib/typescript/src/skia/types/Picture/PictureFactory.d.ts +8 -0
- package/lib/typescript/src/skia/types/Picture/PictureRecorder.d.ts +15 -0
- package/lib/typescript/src/skia/types/Picture/index.d.ts +3 -0
- package/lib/typescript/src/skia/types/Point.d.ts +10 -0
- package/lib/typescript/src/skia/types/RRect.d.ts +16 -0
- package/lib/typescript/src/skia/types/RSXform.d.ts +8 -0
- package/lib/typescript/src/skia/types/Rect.d.ts +11 -0
- package/lib/typescript/src/skia/types/RuntimeEffect/RuntimeEffect.d.ts +52 -0
- package/lib/typescript/src/skia/types/RuntimeEffect/RuntimeEffectFactory.d.ts +10 -0
- package/lib/typescript/src/skia/types/RuntimeEffect/index.d.ts +2 -0
- package/lib/typescript/src/skia/types/SVG/SVG.d.ts +5 -0
- package/lib/typescript/src/skia/types/SVG/SVGFactory.d.ts +6 -0
- package/lib/typescript/src/skia/types/SVG/index.d.ts +2 -0
- package/lib/typescript/src/skia/types/Shader/Shader.d.ts +10 -0
- package/lib/typescript/src/skia/types/Shader/ShaderFactory.d.ts +104 -0
- package/lib/typescript/src/skia/types/Shader/index.d.ts +2 -0
- package/lib/typescript/src/skia/types/Size.d.ts +4 -0
- package/lib/typescript/src/skia/types/Skia.d.ts +78 -0
- package/lib/typescript/src/skia/types/Surface/Surface.d.ts +37 -0
- package/lib/typescript/src/skia/types/Surface/SurfaceFactory.d.ts +17 -0
- package/lib/typescript/src/skia/types/Surface/index.d.ts +2 -0
- package/lib/typescript/src/skia/types/TextBlob.d.ts +44 -0
- package/lib/typescript/src/skia/types/Typeface/Typeface.d.ts +11 -0
- package/lib/typescript/src/skia/types/Typeface/TypefaceFactory.d.ts +5 -0
- package/lib/typescript/src/skia/types/Typeface/index.d.ts +2 -0
- package/lib/typescript/src/skia/types/Vertices/Vertices.d.ts +17 -0
- package/lib/typescript/src/skia/types/Vertices/index.d.ts +1 -0
- package/lib/typescript/src/skia/types/Video/Video.d.ts +17 -0
- package/lib/typescript/src/skia/types/Video/index.d.ts +1 -0
- package/lib/typescript/src/skia/types/index.d.ts +33 -0
- package/lib/typescript/src/skia/web/CanvasKitWebGLBufferImpl.d.ts +9 -0
- package/lib/typescript/src/skia/web/Host.d.ts +20 -0
- package/lib/typescript/src/skia/web/JsiSkAnimatedImage.d.ts +11 -0
- package/lib/typescript/src/skia/web/JsiSkAnimatedImageFactory.d.ts +9 -0
- package/lib/typescript/src/skia/web/JsiSkCanvas.d.ts +47 -0
- package/lib/typescript/src/skia/web/JsiSkColor.d.ts +2 -0
- package/lib/typescript/src/skia/web/JsiSkColorFilter.d.ts +7 -0
- package/lib/typescript/src/skia/web/JsiSkColorFilterFactory.d.ts +14 -0
- package/lib/typescript/src/skia/web/JsiSkContourMeasure.d.ts +13 -0
- package/lib/typescript/src/skia/web/JsiSkContourMeasureIter.d.ts +9 -0
- package/lib/typescript/src/skia/web/JsiSkData.d.ts +9 -0
- package/lib/typescript/src/skia/web/JsiSkDataFactory.d.ts +19 -0
- package/lib/typescript/src/skia/web/JsiSkFont.d.ts +35 -0
- package/lib/typescript/src/skia/web/JsiSkFontMgr.d.ts +10 -0
- package/lib/typescript/src/skia/web/JsiSkFontMgrFactory.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkImage.d.ts +17 -0
- package/lib/typescript/src/skia/web/JsiSkImageFactory.d.ts +12 -0
- package/lib/typescript/src/skia/web/JsiSkImageFilter.d.ts +7 -0
- package/lib/typescript/src/skia/web/JsiSkImageFilterFactory.d.ts +19 -0
- package/lib/typescript/src/skia/web/JsiSkMaskFilter.d.ts +7 -0
- package/lib/typescript/src/skia/web/JsiSkMaskFilterFactory.d.ts +9 -0
- package/lib/typescript/src/skia/web/JsiSkMatrix.d.ts +20 -0
- package/lib/typescript/src/skia/web/JsiSkNativeBufferFactory.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkPaint.d.ts +30 -0
- package/lib/typescript/src/skia/web/JsiSkParagraph.d.ts +19 -0
- package/lib/typescript/src/skia/web/JsiSkParagraphBuilder.d.ts +15 -0
- package/lib/typescript/src/skia/web/JsiSkParagraphBuilderFactory.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkParagraphStyle.d.ts +5 -0
- package/lib/typescript/src/skia/web/JsiSkPath.d.ts +58 -0
- package/lib/typescript/src/skia/web/JsiSkPathEffect.d.ts +7 -0
- package/lib/typescript/src/skia/web/JsiSkPathEffectFactory.d.ts +15 -0
- package/lib/typescript/src/skia/web/JsiSkPathFactory.d.ts +13 -0
- package/lib/typescript/src/skia/web/JsiSkPicture.d.ts +10 -0
- package/lib/typescript/src/skia/web/JsiSkPictureFactory.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkPictureRecorder.d.ts +12 -0
- package/lib/typescript/src/skia/web/JsiSkPoint.d.ts +10 -0
- package/lib/typescript/src/skia/web/JsiSkRRect.d.ts +12 -0
- package/lib/typescript/src/skia/web/JsiSkRSXform.d.ts +14 -0
- package/lib/typescript/src/skia/web/JsiSkRect.d.ts +13 -0
- package/lib/typescript/src/skia/web/JsiSkRuntimeEffect.d.ts +17 -0
- package/lib/typescript/src/skia/web/JsiSkRuntimeEffectFactory.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkSVG.d.ts +9 -0
- package/lib/typescript/src/skia/web/JsiSkSVGFactory.d.ts +10 -0
- package/lib/typescript/src/skia/web/JsiSkShader.d.ts +7 -0
- package/lib/typescript/src/skia/web/JsiSkShaderFactory.d.ts +16 -0
- package/lib/typescript/src/skia/web/JsiSkSurface.d.ts +12 -0
- package/lib/typescript/src/skia/web/JsiSkSurfaceFactory.d.ts +9 -0
- package/lib/typescript/src/skia/web/JsiSkTextBlob.d.ts +7 -0
- package/lib/typescript/src/skia/web/JsiSkTextBlobFactory.d.ts +13 -0
- package/lib/typescript/src/skia/web/JsiSkTextStyle.d.ts +5 -0
- package/lib/typescript/src/skia/web/JsiSkTypeface.d.ts +10 -0
- package/lib/typescript/src/skia/web/JsiSkTypefaceFactory.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkTypefaceFontProvider.d.ts +13 -0
- package/lib/typescript/src/skia/web/JsiSkTypefaceFontProviderFactory.d.ts +7 -0
- package/lib/typescript/src/skia/web/JsiSkVertices.d.ts +10 -0
- package/lib/typescript/src/skia/web/JsiSkVerticesFactory.d.ts +4 -0
- package/lib/typescript/src/skia/web/JsiSkia.d.ts +3 -0
- package/lib/typescript/src/skia/web/JsiVideo.d.ts +24 -0
- package/lib/typescript/src/skia/web/index.d.ts +1 -0
- package/lib/typescript/src/specs/NativeSkiaModule.d.ts +6 -0
- package/lib/typescript/src/specs/NativeSkiaModule.web.d.ts +0 -0
- package/lib/typescript/src/specs/SkiaDomViewNativeComponent.d.ts +8 -0
- package/lib/typescript/src/specs/SkiaPictureViewNativeComponent.d.ts +8 -0
- package/lib/typescript/src/views/SkiaBaseWebView.d.ts +60 -0
- package/lib/typescript/src/views/SkiaDomView.d.ts +30 -0
- package/lib/typescript/src/views/SkiaDomView.web.d.ts +7 -0
- package/lib/typescript/src/views/SkiaJSDomView.d.ts +31 -0
- package/lib/typescript/src/views/SkiaJSDomView.web.d.ts +1 -0
- package/lib/typescript/src/views/SkiaPictureView.d.ts +20 -0
- package/lib/typescript/src/views/SkiaPictureView.web.d.ts +7 -0
- package/lib/typescript/src/views/SkiaViewNativeId.d.ts +3 -0
- package/lib/typescript/src/views/api.d.ts +5 -0
- package/lib/typescript/src/views/index.d.ts +4 -0
- package/lib/typescript/src/views/types.d.ts +72 -0
- package/lib/typescript/src/views/useTouchHandler.d.ts +22 -0
- package/lib/typescript/src/web/LoadSkiaWeb.d.ts +6 -0
- package/lib/typescript/src/web/WithSkiaWeb.d.ts +12 -0
- package/lib/typescript/src/web/index.d.ts +2 -0
- package/libs/android/arm64-v8a/libskia.a +0 -0
- package/libs/android/arm64-v8a/libskottie.a +0 -0
- package/libs/android/arm64-v8a/libskparagraph.a +0 -0
- package/libs/android/arm64-v8a/libsksg.a +0 -0
- package/libs/android/arm64-v8a/libskshaper.a +0 -0
- package/libs/android/arm64-v8a/libskunicode.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/libskottie.a +0 -0
- package/libs/android/armeabi-v7a/libskparagraph.a +0 -0
- package/libs/android/armeabi-v7a/libsksg.a +0 -0
- package/libs/android/armeabi-v7a/libskshaper.a +0 -0
- package/libs/android/armeabi-v7a/libskunicode.a +0 -0
- package/libs/android/armeabi-v7a/libsvg.a +0 -0
- package/libs/android/x86/libskia.a +0 -0
- package/libs/android/x86/libskottie.a +0 -0
- package/libs/android/x86/libskparagraph.a +0 -0
- package/libs/android/x86/libsksg.a +0 -0
- package/libs/android/x86/libskshaper.a +0 -0
- package/libs/android/x86/libskunicode.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/libskottie.a +0 -0
- package/libs/android/x86_64/libskparagraph.a +0 -0
- package/libs/android/x86_64/libsksg.a +0 -0
- package/libs/android/x86_64/libskshaper.a +0 -0
- package/libs/android/x86_64/libskunicode.a +0 -0
- package/libs/android/x86_64/libsvg.a +0 -0
- package/libs/ios/libskia.xcframework/Info.plist +46 -0
- 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/libskottie.xcframework/Info.plist +46 -0
- package/libs/ios/libskottie.xcframework/ios-arm64_arm64e/libskottie.a +0 -0
- package/libs/ios/libskottie.xcframework/ios-arm64_arm64e_x86_64-simulator/libskottie.a +0 -0
- package/libs/ios/libskparagraph.xcframework/Info.plist +46 -0
- package/libs/ios/libskparagraph.xcframework/ios-arm64_arm64e/libskparagraph.a +0 -0
- package/libs/ios/libskparagraph.xcframework/ios-arm64_arm64e_x86_64-simulator/libskparagraph.a +0 -0
- package/libs/ios/libsksg.xcframework/Info.plist +46 -0
- package/libs/ios/libsksg.xcframework/ios-arm64_arm64e/libsksg.a +0 -0
- package/libs/ios/libsksg.xcframework/ios-arm64_arm64e_x86_64-simulator/libsksg.a +0 -0
- package/libs/ios/libskshaper.xcframework/Info.plist +46 -0
- 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/libskunicode.xcframework/Info.plist +46 -0
- package/libs/ios/libskunicode.xcframework/ios-arm64_arm64e/libskunicode.a +0 -0
- package/libs/ios/libskunicode.xcframework/ios-arm64_arm64e_x86_64-simulator/libskunicode.a +0 -0
- package/libs/ios/libsvg.xcframework/Info.plist +46 -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 +143 -0
- package/react-native-skia.podspec +59 -0
- package/scripts/setup-canvaskit.js +105 -0
- package/src/Platform/IPlatform.ts +18 -0
- package/src/Platform/Platform.ts +24 -0
- package/src/Platform/Platform.web.tsx +150 -0
- package/src/Platform/index.ts +1 -0
- package/src/animation/functions/index.ts +4 -0
- package/src/animation/functions/interpolate.ts +189 -0
- package/src/animation/functions/interpolateColors.ts +61 -0
- package/src/animation/functions/interpolatePaths.ts +92 -0
- package/src/animation/functions/interpolateVector.ts +31 -0
- package/src/animation/index.ts +1 -0
- package/src/dom/nodes/DrawingNode.ts +74 -0
- package/src/dom/nodes/GroupNode.ts +19 -0
- package/src/dom/nodes/JsiSkDOM.ts +481 -0
- package/src/dom/nodes/LayerNode.ts +37 -0
- package/src/dom/nodes/Node.ts +121 -0
- package/src/dom/nodes/PaintNode.ts +91 -0
- package/src/dom/nodes/RenderNode.ts +172 -0
- package/src/dom/nodes/datatypes/Circle.ts +14 -0
- package/src/dom/nodes/datatypes/Enum.ts +2 -0
- package/src/dom/nodes/datatypes/Fitting.ts +131 -0
- package/src/dom/nodes/datatypes/Gradient.ts +48 -0
- package/src/dom/nodes/datatypes/Path.ts +18 -0
- package/src/dom/nodes/datatypes/Radius.ts +9 -0
- package/src/dom/nodes/datatypes/Rect.ts +40 -0
- package/src/dom/nodes/datatypes/Transform.ts +24 -0
- package/src/dom/nodes/datatypes/index.ts +8 -0
- package/src/dom/nodes/drawings/AtlasNode.ts +24 -0
- package/src/dom/nodes/drawings/BackdropFilterNode.ts +37 -0
- package/src/dom/nodes/drawings/Box.ts +110 -0
- package/src/dom/nodes/drawings/CircleNode.ts +24 -0
- package/src/dom/nodes/drawings/DiffRectNode.ts +19 -0
- package/src/dom/nodes/drawings/FillNode.ts +18 -0
- package/src/dom/nodes/drawings/ImageNode.ts +49 -0
- package/src/dom/nodes/drawings/ImageSVG.ts +38 -0
- package/src/dom/nodes/drawings/LineNode.ts +19 -0
- package/src/dom/nodes/drawings/OvalNode.ts +23 -0
- package/src/dom/nodes/drawings/ParagraphNode.ts +22 -0
- package/src/dom/nodes/drawings/PatchNode.ts +54 -0
- package/src/dom/nodes/drawings/PathNode.ts +51 -0
- package/src/dom/nodes/drawings/PictureNode.ts +19 -0
- package/src/dom/nodes/drawings/PointsNode.ts +21 -0
- package/src/dom/nodes/drawings/RRectNode.ts +25 -0
- package/src/dom/nodes/drawings/RectNode.ts +23 -0
- package/src/dom/nodes/drawings/Text.ts +145 -0
- package/src/dom/nodes/drawings/VerticesNode.ts +35 -0
- package/src/dom/nodes/drawings/index.ts +18 -0
- package/src/dom/nodes/index.ts +3 -0
- package/src/dom/nodes/paint/BlendNode.ts +32 -0
- package/src/dom/nodes/paint/ColorFilters.ts +106 -0
- package/src/dom/nodes/paint/ImageFilters.ts +221 -0
- package/src/dom/nodes/paint/MaskFilters.ts +23 -0
- package/src/dom/nodes/paint/PathEffects.ts +139 -0
- package/src/dom/nodes/paint/Shaders.ts +233 -0
- package/src/dom/nodes/paint/index.ts +6 -0
- package/src/dom/types/ColorFilters.ts +16 -0
- package/src/dom/types/Common.ts +90 -0
- package/src/dom/types/DeclarationContext.ts +105 -0
- package/src/dom/types/DrawingContext.ts +322 -0
- package/src/dom/types/Drawings.ts +163 -0
- package/src/dom/types/ImageFilters.ts +53 -0
- package/src/dom/types/MaskFilters.ts +9 -0
- package/src/dom/types/Node.ts +30 -0
- package/src/dom/types/NodeType.ts +74 -0
- package/src/dom/types/Paragraph.ts +10 -0
- package/src/dom/types/PathEffects.ts +35 -0
- package/src/dom/types/Shaders.ts +86 -0
- package/src/dom/types/SkDOM.ts +184 -0
- package/src/dom/types/index.ts +13 -0
- package/src/external/ModuleProxy.ts +30 -0
- package/src/external/index.ts +1 -0
- package/src/external/reanimated/ReanimatedProxy.ts +18 -0
- package/src/external/reanimated/buffers.ts +58 -0
- package/src/external/reanimated/index.ts +7 -0
- package/src/external/reanimated/interpolators.ts +124 -0
- package/src/external/reanimated/renderHelpers.ts +132 -0
- package/src/external/reanimated/textures.tsx +93 -0
- package/src/external/reanimated/useAnimatedImageValue.ts +63 -0
- package/src/external/reanimated/useDerivedValueOnJS.ts +20 -0
- package/src/external/reanimated/useVideo.ts +157 -0
- package/src/external/reanimated/useVideoLoading.ts +29 -0
- package/src/external/reanimated/useVideoLoading.web.ts +17 -0
- package/src/headless/index.ts +42 -0
- package/src/index.ts +11 -0
- package/src/mock/index.ts +51 -0
- package/src/renderer/Canvas.tsx +148 -0
- package/src/renderer/Container.tsx +30 -0
- package/src/renderer/DrawingContext.ts +8 -0
- package/src/renderer/HostComponents.ts +407 -0
- package/src/renderer/HostConfig.ts +244 -0
- package/src/renderer/Offscreen.tsx +48 -0
- package/src/renderer/Reconciler.tsx +57 -0
- package/src/renderer/components/Blend.tsx +8 -0
- package/src/renderer/components/Group.tsx +21 -0
- package/src/renderer/components/Mask.tsx +36 -0
- package/src/renderer/components/Paint.tsx +8 -0
- package/src/renderer/components/Picture.tsx +8 -0
- package/src/renderer/components/backdrop/BackdropBlur.tsx +24 -0
- package/src/renderer/components/backdrop/BackdropFilter.tsx +23 -0
- package/src/renderer/components/backdrop/index.ts +2 -0
- package/src/renderer/components/colorFilters/BlendColor.tsx +8 -0
- package/src/renderer/components/colorFilters/Lerp.tsx +8 -0
- package/src/renderer/components/colorFilters/LinearToSRGBGamma.tsx +8 -0
- package/src/renderer/components/colorFilters/LumaColorFilter.tsx +8 -0
- package/src/renderer/components/colorFilters/Matrix.tsx +31 -0
- package/src/renderer/components/colorFilters/SRGBToLinearGamma.tsx +8 -0
- package/src/renderer/components/colorFilters/index.ts +6 -0
- package/src/renderer/components/image/Image.tsx +8 -0
- package/src/renderer/components/image/ImageSVG.tsx +8 -0
- package/src/renderer/components/image/ImageShader.tsx +29 -0
- package/src/renderer/components/image/index.ts +3 -0
- package/src/renderer/components/imageFilters/Blur.tsx +11 -0
- package/src/renderer/components/imageFilters/DisplacementMap.tsx +10 -0
- package/src/renderer/components/imageFilters/Morphology.tsx +11 -0
- package/src/renderer/components/imageFilters/Offset.tsx +12 -0
- package/src/renderer/components/imageFilters/RuntimeShader.tsx +10 -0
- package/src/renderer/components/imageFilters/Shadow.tsx +8 -0
- package/src/renderer/components/imageFilters/index.ts +6 -0
- package/src/renderer/components/index.ts +18 -0
- package/src/renderer/components/maskFilters/Blur.tsx +12 -0
- package/src/renderer/components/maskFilters/index.ts +1 -0
- package/src/renderer/components/paragraph/Paragraph.tsx +8 -0
- package/src/renderer/components/paragraph/index.ts +1 -0
- package/src/renderer/components/pathEffects/Corner.tsx +8 -0
- package/src/renderer/components/pathEffects/Dash.tsx +8 -0
- package/src/renderer/components/pathEffects/Discrete.tsx +11 -0
- package/src/renderer/components/pathEffects/Line2D.tsx +8 -0
- package/src/renderer/components/pathEffects/Path1D.tsx +8 -0
- package/src/renderer/components/pathEffects/Path2D.tsx +8 -0
- package/src/renderer/components/pathEffects/Sum.tsx +7 -0
- package/src/renderer/components/pathEffects/index.ts +7 -0
- package/src/renderer/components/shaders/Color.tsx +8 -0
- package/src/renderer/components/shaders/FractalNoise.tsx +23 -0
- package/src/renderer/components/shaders/LinearGradient.tsx +8 -0
- package/src/renderer/components/shaders/RadialGradient.tsx +8 -0
- package/src/renderer/components/shaders/Shader.tsx +11 -0
- package/src/renderer/components/shaders/ShaderLib.ts +46 -0
- package/src/renderer/components/shaders/SweepGradient.tsx +8 -0
- package/src/renderer/components/shaders/Turbulence.tsx +20 -0
- package/src/renderer/components/shaders/TwoPointConicalGradient.tsx +10 -0
- package/src/renderer/components/shaders/index.ts +9 -0
- package/src/renderer/components/shapes/Atlas.tsx +8 -0
- package/src/renderer/components/shapes/Box.tsx +12 -0
- package/src/renderer/components/shapes/Circle.tsx +8 -0
- package/src/renderer/components/shapes/DiffRect.tsx +8 -0
- package/src/renderer/components/shapes/Fill.tsx +8 -0
- package/src/renderer/components/shapes/FitBox.tsx +58 -0
- package/src/renderer/components/shapes/Line.tsx +8 -0
- package/src/renderer/components/shapes/Oval.tsx +8 -0
- package/src/renderer/components/shapes/Patch.tsx +8 -0
- package/src/renderer/components/shapes/Path.tsx +12 -0
- package/src/renderer/components/shapes/Points.tsx +11 -0
- package/src/renderer/components/shapes/Rect.tsx +8 -0
- package/src/renderer/components/shapes/RoundedRect.tsx +8 -0
- package/src/renderer/components/shapes/Vertices.tsx +11 -0
- package/src/renderer/components/shapes/index.ts +14 -0
- package/src/renderer/components/text/Glyphs.tsx +12 -0
- package/src/renderer/components/text/Text.tsx +12 -0
- package/src/renderer/components/text/TextBlob.tsx +12 -0
- package/src/renderer/components/text/TextPath.tsx +11 -0
- package/src/renderer/components/text/index.ts +4 -0
- package/src/renderer/index.ts +1 -0
- package/src/renderer/processors/Animations/Animations.ts +27 -0
- package/src/renderer/processors/Animations/index.ts +1 -0
- package/src/renderer/processors/index.ts +2 -0
- package/src/renderer/processors/math/Coordinates.ts +48 -0
- package/src/renderer/processors/math/Math.ts +31 -0
- package/src/renderer/processors/math/Transforms.ts +9 -0
- package/src/renderer/processors/math/index.ts +3 -0
- package/src/renderer/typeddash.ts +25 -0
- package/src/skia/NativeSetup.ts +19 -0
- package/src/skia/Skia.ts +11 -0
- package/src/skia/Skia.web.ts +3 -0
- package/src/skia/core/AnimatedImage.ts +17 -0
- package/src/skia/core/Data.ts +109 -0
- package/src/skia/core/Font.ts +134 -0
- package/src/skia/core/Image.ts +55 -0
- package/src/skia/core/Matrix.ts +8 -0
- package/src/skia/core/Picture.ts +23 -0
- package/src/skia/core/RRect.tsx +7 -0
- package/src/skia/core/Rect.ts +50 -0
- package/src/skia/core/SVG.ts +11 -0
- package/src/skia/core/SVG.web.ts +29 -0
- package/src/skia/core/Typeface.ts +14 -0
- package/src/skia/core/Vector.ts +24 -0
- package/src/skia/core/index.ts +11 -0
- package/src/skia/index.ts +3 -0
- package/src/skia/types/AnimatedImage/AnimatedImage.ts +29 -0
- package/src/skia/types/AnimatedImage/AnimatedImageFactory.ts +15 -0
- package/src/skia/types/AnimatedImage/index.ts +2 -0
- package/src/skia/types/Canvas.ts +539 -0
- package/src/skia/types/Color.ts +4 -0
- package/src/skia/types/ColorFilter/ColorFilter.ts +7 -0
- package/src/skia/types/ColorFilter/ColorFilterFactory.ts +52 -0
- package/src/skia/types/ColorFilter/index.ts +2 -0
- package/src/skia/types/ContourMeasure.tsx +48 -0
- package/src/skia/types/Data/Data.ts +15 -0
- package/src/skia/types/Data/DataFactory.ts +19 -0
- package/src/skia/types/Data/index.ts +2 -0
- package/src/skia/types/Font/Font.ts +229 -0
- package/src/skia/types/Font/FontMgr.ts +10 -0
- package/src/skia/types/Font/FontMgrFactory.ts +5 -0
- package/src/skia/types/Font/index.ts +3 -0
- package/src/skia/types/Image/Image.ts +133 -0
- package/src/skia/types/Image/ImageFactory.ts +90 -0
- package/src/skia/types/Image/index.ts +2 -0
- package/src/skia/types/ImageFilter/ImageFilter.ts +31 -0
- package/src/skia/types/ImageFilter/ImageFilterFactory.ts +192 -0
- package/src/skia/types/ImageFilter/index.ts +2 -0
- package/src/skia/types/JsiInstance.ts +4 -0
- package/src/skia/types/MaskFilter.ts +27 -0
- package/src/skia/types/Matrix.ts +41 -0
- package/src/skia/types/Matrix4.ts +377 -0
- package/src/skia/types/NativeBuffer/NativeBufferFactory.ts +46 -0
- package/src/skia/types/NativeBuffer/index.ts +1 -0
- package/src/skia/types/Paint/BlendMode.ts +61 -0
- package/src/skia/types/Paint/Paint.ts +170 -0
- package/src/skia/types/Paint/index.ts +2 -0
- package/src/skia/types/Paragraph/Paragraph.ts +84 -0
- package/src/skia/types/Paragraph/ParagraphBuilder.ts +96 -0
- package/src/skia/types/Paragraph/ParagraphStyle.ts +45 -0
- package/src/skia/types/Paragraph/TextStyle.ts +70 -0
- package/src/skia/types/Paragraph/TypefaceFontProvider.ts +11 -0
- package/src/skia/types/Paragraph/TypefaceFontProviderFactory.ts +5 -0
- package/src/skia/types/Paragraph/index.ts +6 -0
- package/src/skia/types/Path/Path.ts +578 -0
- package/src/skia/types/Path/PathFactory.ts +34 -0
- package/src/skia/types/Path/index.ts +2 -0
- package/src/skia/types/PathEffect.ts +97 -0
- package/src/skia/types/Picture/Picture.ts +35 -0
- package/src/skia/types/Picture/PictureFactory.ts +9 -0
- package/src/skia/types/Picture/PictureRecorder.ts +18 -0
- package/src/skia/types/Picture/index.ts +3 -0
- package/src/skia/types/Point.ts +12 -0
- package/src/skia/types/RRect.ts +23 -0
- package/src/skia/types/RSXform.ts +9 -0
- package/src/skia/types/Rect.ts +26 -0
- package/src/skia/types/RuntimeEffect/RuntimeEffect.ts +66 -0
- package/src/skia/types/RuntimeEffect/RuntimeEffectFactory.ts +12 -0
- package/src/skia/types/RuntimeEffect/index.ts +2 -0
- package/src/skia/types/SVG/SVG.ts +6 -0
- package/src/skia/types/SVG/SVGFactory.ts +8 -0
- package/src/skia/types/SVG/index.ts +2 -0
- package/src/skia/types/Shader/Shader.ts +64 -0
- package/src/skia/types/Shader/ShaderFactory.ts +169 -0
- package/src/skia/types/Shader/index.ts +2 -0
- package/src/skia/types/Size.ts +4 -0
- package/src/skia/types/Skia.ts +101 -0
- package/src/skia/types/Surface/Surface.ts +42 -0
- package/src/skia/types/Surface/SurfaceFactory.ts +19 -0
- package/src/skia/types/Surface/index.ts +2 -0
- package/src/skia/types/TextBlob.ts +52 -0
- package/src/skia/types/Typeface/Typeface.ts +12 -0
- package/src/skia/types/Typeface/TypefaceFactory.ts +7 -0
- package/src/skia/types/Typeface/index.ts +2 -0
- package/src/skia/types/Vertices/Vertices.tsx +20 -0
- package/src/skia/types/Vertices/index.ts +1 -0
- package/src/skia/types/Video/Video.ts +16 -0
- package/src/skia/types/Video/index.ts +1 -0
- package/src/skia/types/index.ts +33 -0
- package/src/skia/web/CanvasKitWebGLBufferImpl.ts +22 -0
- package/src/skia/web/Host.ts +51 -0
- package/src/skia/web/JsiSkAnimatedImage.ts +35 -0
- package/src/skia/web/JsiSkAnimatedImageFactory.ts +27 -0
- package/src/skia/web/JsiSkCanvas.ts +437 -0
- package/src/skia/web/JsiSkColor.ts +340 -0
- package/src/skia/web/JsiSkColorFilter.ts +18 -0
- package/src/skia/web/JsiSkColorFilterFactory.ts +80 -0
- package/src/skia/web/JsiSkContourMeasure.ts +43 -0
- package/src/skia/web/JsiSkContourMeasureIter.ts +27 -0
- package/src/skia/web/JsiSkData.ts +17 -0
- package/src/skia/web/JsiSkDataFactory.ts +34 -0
- package/src/skia/web/JsiSkFont.ts +141 -0
- package/src/skia/web/JsiSkFontMgr.ts +26 -0
- package/src/skia/web/JsiSkFontMgrFactory.ts +20 -0
- package/src/skia/web/JsiSkImage.ts +173 -0
- package/src/skia/web/JsiSkImageFactory.ts +96 -0
- package/src/skia/web/JsiSkImageFilter.ts +18 -0
- package/src/skia/web/JsiSkImageFilterFactory.ts +216 -0
- package/src/skia/web/JsiSkMaskFilter.ts +18 -0
- package/src/skia/web/JsiSkMaskFilterFactory.ts +24 -0
- package/src/skia/web/JsiSkMatrix.ts +91 -0
- package/src/skia/web/JsiSkNativeBufferFactory.ts +35 -0
- package/src/skia/web/JsiSkPaint.ts +124 -0
- package/src/skia/web/JsiSkParagraph.ts +80 -0
- package/src/skia/web/JsiSkParagraphBuilder.ts +99 -0
- package/src/skia/web/JsiSkParagraphBuilderFactory.ts +48 -0
- package/src/skia/web/JsiSkParagraphStyle.ts +65 -0
- package/src/skia/web/JsiSkPath.ts +417 -0
- package/src/skia/web/JsiSkPathEffect.ts +18 -0
- package/src/skia/web/JsiSkPathEffectFactory.ts +90 -0
- package/src/skia/web/JsiSkPathFactory.ts +54 -0
- package/src/skia/web/JsiSkPicture.ts +51 -0
- package/src/skia/web/JsiSkPictureFactory.ts +20 -0
- package/src/skia/web/JsiSkPictureRecorder.ts +40 -0
- package/src/skia/web/JsiSkPoint.ts +33 -0
- package/src/skia/web/JsiSkRRect.ts +77 -0
- package/src/skia/web/JsiSkRSXform.ts +44 -0
- package/src/skia/web/JsiSkRect.ts +48 -0
- package/src/skia/web/JsiSkRuntimeEffect.ts +70 -0
- package/src/skia/web/JsiSkRuntimeEffectFactory.ts +23 -0
- package/src/skia/web/JsiSkSVG.ts +27 -0
- package/src/skia/web/JsiSkSVGFactory.ts +61 -0
- package/src/skia/web/JsiSkShader.ts +18 -0
- package/src/skia/web/JsiSkShaderFactory.ts +190 -0
- package/src/skia/web/JsiSkSurface.ts +46 -0
- package/src/skia/web/JsiSkSurfaceFactory.ts +41 -0
- package/src/skia/web/JsiSkTextBlob.ts +18 -0
- package/src/skia/web/JsiSkTextBlobFactory.ts +55 -0
- package/src/skia/web/JsiSkTextStyle.ts +53 -0
- package/src/skia/web/JsiSkTypeface.ts +36 -0
- package/src/skia/web/JsiSkTypefaceFactory.tsx +22 -0
- package/src/skia/web/JsiSkTypefaceFontProvider.ts +85 -0
- package/src/skia/web/JsiSkTypefaceFontProviderFactory.ts +18 -0
- package/src/skia/web/JsiSkVertices.ts +27 -0
- package/src/skia/web/JsiSkVerticesFactory.ts +41 -0
- package/src/skia/web/JsiSkia.ts +132 -0
- package/src/skia/web/JsiVideo.ts +96 -0
- package/src/skia/web/index.ts +1 -0
- package/src/specs/NativeSkiaModule.ts +9 -0
- package/src/specs/NativeSkiaModule.web.ts +0 -0
- package/src/specs/SkiaDomViewNativeComponent.ts +10 -0
- package/src/specs/SkiaPictureViewNativeComponent.ts +10 -0
- package/src/views/SkiaBaseWebView.tsx +189 -0
- package/src/views/SkiaDomView.tsx +122 -0
- package/src/views/SkiaDomView.web.tsx +30 -0
- package/src/views/SkiaJSDomView.tsx +129 -0
- package/src/views/SkiaJSDomView.web.tsx +1 -0
- package/src/views/SkiaPictureView.tsx +86 -0
- package/src/views/SkiaPictureView.web.tsx +16 -0
- package/src/views/SkiaViewNativeId.ts +1 -0
- package/src/views/api.ts +7 -0
- package/src/views/index.ts +4 -0
- package/src/views/types.ts +86 -0
- package/src/views/useTouchHandler.ts +107 -0
- package/src/web/LoadSkiaWeb.tsx +27 -0
- package/src/web/WithSkiaWeb.tsx +40 -0
- package/src/web/index.ts +2 -0
@@ -0,0 +1,2629 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2006 The Android Open Source Project
|
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 SkCanvas_DEFINED
|
9
|
+
#define SkCanvas_DEFINED
|
10
|
+
|
11
|
+
#include "include/core/SkBlendMode.h"
|
12
|
+
#include "include/core/SkClipOp.h"
|
13
|
+
#include "include/core/SkColor.h"
|
14
|
+
#include "include/core/SkFontTypes.h"
|
15
|
+
#include "include/core/SkImageFilter.h"
|
16
|
+
#include "include/core/SkImageInfo.h"
|
17
|
+
#include "include/core/SkM44.h"
|
18
|
+
#include "include/core/SkMatrix.h"
|
19
|
+
#include "include/core/SkPaint.h"
|
20
|
+
#include "include/core/SkPoint.h"
|
21
|
+
#include "include/core/SkRasterHandleAllocator.h"
|
22
|
+
#include "include/core/SkRect.h"
|
23
|
+
#include "include/core/SkRefCnt.h"
|
24
|
+
#include "include/core/SkSamplingOptions.h"
|
25
|
+
#include "include/core/SkScalar.h"
|
26
|
+
#include "include/core/SkSize.h"
|
27
|
+
#include "include/core/SkSpan.h"
|
28
|
+
#include "include/core/SkString.h"
|
29
|
+
#include "include/core/SkSurfaceProps.h"
|
30
|
+
#include "include/core/SkTypes.h"
|
31
|
+
#include "include/private/base/SkCPUTypes.h"
|
32
|
+
#include "include/private/base/SkDeque.h"
|
33
|
+
#include "include/private/base/SkTArray.h"
|
34
|
+
|
35
|
+
#include <cstdint>
|
36
|
+
#include <cstring>
|
37
|
+
#include <memory>
|
38
|
+
#include <optional>
|
39
|
+
|
40
|
+
#ifndef SK_SUPPORT_LEGACY_GETTOTALMATRIX
|
41
|
+
#define SK_SUPPORT_LEGACY_GETTOTALMATRIX
|
42
|
+
#endif
|
43
|
+
|
44
|
+
namespace sktext {
|
45
|
+
class GlyphRunBuilder;
|
46
|
+
class GlyphRunList;
|
47
|
+
}
|
48
|
+
|
49
|
+
class AutoLayerForImageFilter;
|
50
|
+
class GrRecordingContext;
|
51
|
+
|
52
|
+
class SkBitmap;
|
53
|
+
class SkBlender;
|
54
|
+
class SkData;
|
55
|
+
class SkDevice;
|
56
|
+
class SkDrawable;
|
57
|
+
class SkFont;
|
58
|
+
class SkImage;
|
59
|
+
class SkMesh;
|
60
|
+
class SkPaintFilterCanvas;
|
61
|
+
class SkPath;
|
62
|
+
class SkPicture;
|
63
|
+
class SkPixmap;
|
64
|
+
class SkRRect;
|
65
|
+
class SkRegion;
|
66
|
+
class SkShader;
|
67
|
+
class SkSpecialImage;
|
68
|
+
class SkSurface;
|
69
|
+
class SkSurface_Base;
|
70
|
+
class SkTextBlob;
|
71
|
+
class SkVertices;
|
72
|
+
struct SkDrawShadowRec;
|
73
|
+
struct SkRSXform;
|
74
|
+
|
75
|
+
template<typename E>
|
76
|
+
class SkEnumBitMask;
|
77
|
+
|
78
|
+
namespace skgpu::graphite { class Recorder; }
|
79
|
+
namespace sktext::gpu { class Slug; }
|
80
|
+
namespace SkRecords { class Draw; }
|
81
|
+
|
82
|
+
/** \class SkCanvas
|
83
|
+
SkCanvas provides an interface for drawing, and how the drawing is clipped and transformed.
|
84
|
+
SkCanvas contains a stack of SkMatrix and clip values.
|
85
|
+
|
86
|
+
SkCanvas and SkPaint together provide the state to draw into SkSurface or SkDevice.
|
87
|
+
Each SkCanvas draw call transforms the geometry of the object by the concatenation of all
|
88
|
+
SkMatrix values in the stack. The transformed geometry is clipped by the intersection
|
89
|
+
of all of clip values in the stack. The SkCanvas draw calls use SkPaint to supply drawing
|
90
|
+
state such as color, SkTypeface, text size, stroke width, SkShader and so on.
|
91
|
+
|
92
|
+
To draw to a pixel-based destination, create raster surface or GPU surface.
|
93
|
+
Request SkCanvas from SkSurface to obtain the interface to draw.
|
94
|
+
SkCanvas generated by raster surface draws to memory visible to the CPU.
|
95
|
+
SkCanvas generated by GPU surface uses Vulkan or OpenGL to draw to the GPU.
|
96
|
+
|
97
|
+
To draw to a document, obtain SkCanvas from SVG canvas, document PDF, or SkPictureRecorder.
|
98
|
+
SkDocument based SkCanvas and other SkCanvas subclasses reference SkDevice describing the
|
99
|
+
destination.
|
100
|
+
|
101
|
+
SkCanvas can be constructed to draw to SkBitmap without first creating raster surface.
|
102
|
+
This approach may be deprecated in the future.
|
103
|
+
*/
|
104
|
+
class SK_API SkCanvas {
|
105
|
+
public:
|
106
|
+
|
107
|
+
/** Allocates raster SkCanvas that will draw directly into pixels.
|
108
|
+
|
109
|
+
SkCanvas is returned if all parameters are valid.
|
110
|
+
Valid parameters include:
|
111
|
+
info dimensions are zero or positive;
|
112
|
+
info contains SkColorType and SkAlphaType supported by raster surface;
|
113
|
+
pixels is not nullptr;
|
114
|
+
rowBytes is zero or large enough to contain info width pixels of SkColorType.
|
115
|
+
|
116
|
+
Pass zero for rowBytes to compute rowBytes from info width and size of pixel.
|
117
|
+
If rowBytes is greater than zero, it must be equal to or greater than
|
118
|
+
info width times bytes required for SkColorType.
|
119
|
+
|
120
|
+
Pixel buffer size should be info height times computed rowBytes.
|
121
|
+
Pixels are not initialized.
|
122
|
+
To access pixels after drawing, call flush() or peekPixels().
|
123
|
+
|
124
|
+
@param info width, height, SkColorType, SkAlphaType, SkColorSpace, of raster surface;
|
125
|
+
width, or height, or both, may be zero
|
126
|
+
@param pixels pointer to destination pixels buffer
|
127
|
+
@param rowBytes interval from one SkSurface row to the next, or zero
|
128
|
+
@param props LCD striping orientation and setting for device independent fonts;
|
129
|
+
may be nullptr
|
130
|
+
@return SkCanvas if all parameters are valid; otherwise, nullptr
|
131
|
+
*/
|
132
|
+
static std::unique_ptr<SkCanvas> MakeRasterDirect(const SkImageInfo& info, void* pixels,
|
133
|
+
size_t rowBytes,
|
134
|
+
const SkSurfaceProps* props = nullptr);
|
135
|
+
|
136
|
+
/** Allocates raster SkCanvas specified by inline image specification. Subsequent SkCanvas
|
137
|
+
calls draw into pixels.
|
138
|
+
SkColorType is set to kN32_SkColorType.
|
139
|
+
SkAlphaType is set to kPremul_SkAlphaType.
|
140
|
+
To access pixels after drawing, call flush() or peekPixels().
|
141
|
+
|
142
|
+
SkCanvas is returned if all parameters are valid.
|
143
|
+
Valid parameters include:
|
144
|
+
width and height are zero or positive;
|
145
|
+
pixels is not nullptr;
|
146
|
+
rowBytes is zero or large enough to contain width pixels of kN32_SkColorType.
|
147
|
+
|
148
|
+
Pass zero for rowBytes to compute rowBytes from width and size of pixel.
|
149
|
+
If rowBytes is greater than zero, it must be equal to or greater than
|
150
|
+
width times bytes required for SkColorType.
|
151
|
+
|
152
|
+
Pixel buffer size should be height times rowBytes.
|
153
|
+
|
154
|
+
@param width pixel column count on raster surface created; must be zero or greater
|
155
|
+
@param height pixel row count on raster surface created; must be zero or greater
|
156
|
+
@param pixels pointer to destination pixels buffer; buffer size should be height
|
157
|
+
times rowBytes
|
158
|
+
@param rowBytes interval from one SkSurface row to the next, or zero
|
159
|
+
@return SkCanvas if all parameters are valid; otherwise, nullptr
|
160
|
+
*/
|
161
|
+
static std::unique_ptr<SkCanvas> MakeRasterDirectN32(int width, int height, SkPMColor* pixels,
|
162
|
+
size_t rowBytes) {
|
163
|
+
return MakeRasterDirect(SkImageInfo::MakeN32Premul(width, height), pixels, rowBytes);
|
164
|
+
}
|
165
|
+
|
166
|
+
/** Creates an empty SkCanvas with no backing device or pixels, with
|
167
|
+
a width and height of zero.
|
168
|
+
|
169
|
+
@return empty SkCanvas
|
170
|
+
|
171
|
+
example: https://fiddle.skia.org/c/@Canvas_empty_constructor
|
172
|
+
*/
|
173
|
+
SkCanvas();
|
174
|
+
|
175
|
+
/** Creates SkCanvas of the specified dimensions without a SkSurface.
|
176
|
+
Used by subclasses with custom implementations for draw member functions.
|
177
|
+
|
178
|
+
If props equals nullptr, SkSurfaceProps are created with
|
179
|
+
SkSurfaceProps::InitType settings, which choose the pixel striping
|
180
|
+
direction and order. Since a platform may dynamically change its direction when
|
181
|
+
the device is rotated, and since a platform may have multiple monitors with
|
182
|
+
different characteristics, it is best not to rely on this legacy behavior.
|
183
|
+
|
184
|
+
@param width zero or greater
|
185
|
+
@param height zero or greater
|
186
|
+
@param props LCD striping orientation and setting for device independent fonts;
|
187
|
+
may be nullptr
|
188
|
+
@return SkCanvas placeholder with dimensions
|
189
|
+
|
190
|
+
example: https://fiddle.skia.org/c/@Canvas_int_int_const_SkSurfaceProps_star
|
191
|
+
*/
|
192
|
+
SkCanvas(int width, int height, const SkSurfaceProps* props = nullptr);
|
193
|
+
|
194
|
+
/** Private. For internal use only.
|
195
|
+
*/
|
196
|
+
explicit SkCanvas(sk_sp<SkDevice> device);
|
197
|
+
|
198
|
+
/** Constructs a canvas that draws into bitmap.
|
199
|
+
Sets kUnknown_SkPixelGeometry in constructed SkSurface.
|
200
|
+
|
201
|
+
SkBitmap is copied so that subsequently editing bitmap will not affect
|
202
|
+
constructed SkCanvas.
|
203
|
+
|
204
|
+
May be deprecated in the future.
|
205
|
+
|
206
|
+
@param bitmap width, height, SkColorType, SkAlphaType, and pixel
|
207
|
+
storage of raster surface
|
208
|
+
@return SkCanvas that can be used to draw into bitmap
|
209
|
+
|
210
|
+
example: https://fiddle.skia.org/c/@Canvas_copy_const_SkBitmap
|
211
|
+
*/
|
212
|
+
explicit SkCanvas(const SkBitmap& bitmap);
|
213
|
+
|
214
|
+
#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
|
215
|
+
/** Private.
|
216
|
+
*/
|
217
|
+
enum class ColorBehavior {
|
218
|
+
kLegacy, //!< placeholder
|
219
|
+
};
|
220
|
+
|
221
|
+
/** Private. For use by Android framework only.
|
222
|
+
|
223
|
+
@param bitmap specifies a bitmap for the canvas to draw into
|
224
|
+
@param behavior specializes this constructor; value is unused
|
225
|
+
@return SkCanvas that can be used to draw into bitmap
|
226
|
+
*/
|
227
|
+
SkCanvas(const SkBitmap& bitmap, ColorBehavior behavior);
|
228
|
+
#endif
|
229
|
+
|
230
|
+
/** Constructs a canvas that draws into bitmap.
|
231
|
+
Use props to match the device characteristics, like LCD striping.
|
232
|
+
|
233
|
+
bitmap is copied so that subsequently editing bitmap will not affect
|
234
|
+
constructed SkCanvas.
|
235
|
+
|
236
|
+
@param bitmap width, height, SkColorType, SkAlphaType,
|
237
|
+
and pixel storage of raster surface
|
238
|
+
@param props order and orientation of RGB striping; and whether to use
|
239
|
+
device independent fonts
|
240
|
+
@return SkCanvas that can be used to draw into bitmap
|
241
|
+
|
242
|
+
example: https://fiddle.skia.org/c/@Canvas_const_SkBitmap_const_SkSurfaceProps
|
243
|
+
*/
|
244
|
+
SkCanvas(const SkBitmap& bitmap, const SkSurfaceProps& props);
|
245
|
+
|
246
|
+
/** Draws saved layers, if any.
|
247
|
+
Frees up resources used by SkCanvas.
|
248
|
+
|
249
|
+
example: https://fiddle.skia.org/c/@Canvas_destructor
|
250
|
+
*/
|
251
|
+
virtual ~SkCanvas();
|
252
|
+
|
253
|
+
/** Returns SkImageInfo for SkCanvas. If SkCanvas is not associated with raster surface or
|
254
|
+
GPU surface, returned SkColorType is set to kUnknown_SkColorType.
|
255
|
+
|
256
|
+
@return dimensions and SkColorType of SkCanvas
|
257
|
+
|
258
|
+
example: https://fiddle.skia.org/c/@Canvas_imageInfo
|
259
|
+
*/
|
260
|
+
SkImageInfo imageInfo() const;
|
261
|
+
|
262
|
+
/** Copies SkSurfaceProps, if SkCanvas is associated with raster surface or
|
263
|
+
GPU surface, and returns true. Otherwise, returns false and leave props unchanged.
|
264
|
+
|
265
|
+
@param props storage for writable SkSurfaceProps
|
266
|
+
@return true if SkSurfaceProps was copied
|
267
|
+
|
268
|
+
DEPRECATED: Replace usage with getBaseProps() or getTopProps()
|
269
|
+
|
270
|
+
example: https://fiddle.skia.org/c/@Canvas_getProps
|
271
|
+
*/
|
272
|
+
bool getProps(SkSurfaceProps* props) const;
|
273
|
+
|
274
|
+
/** Returns the SkSurfaceProps associated with the canvas (i.e., at the base of the layer
|
275
|
+
stack).
|
276
|
+
|
277
|
+
@return base SkSurfaceProps
|
278
|
+
*/
|
279
|
+
SkSurfaceProps getBaseProps() const;
|
280
|
+
|
281
|
+
/** Returns the SkSurfaceProps associated with the canvas that are currently active (i.e., at
|
282
|
+
the top of the layer stack). This can differ from getBaseProps depending on the flags
|
283
|
+
passed to saveLayer (see SaveLayerFlagsSet).
|
284
|
+
|
285
|
+
@return SkSurfaceProps active in the current/top layer
|
286
|
+
*/
|
287
|
+
SkSurfaceProps getTopProps() const;
|
288
|
+
|
289
|
+
/** Gets the size of the base or root layer in global canvas coordinates. The
|
290
|
+
origin of the base layer is always (0,0). The area available for drawing may be
|
291
|
+
smaller (due to clipping or saveLayer).
|
292
|
+
|
293
|
+
@return integral width and height of base layer
|
294
|
+
|
295
|
+
example: https://fiddle.skia.org/c/@Canvas_getBaseLayerSize
|
296
|
+
*/
|
297
|
+
virtual SkISize getBaseLayerSize() const;
|
298
|
+
|
299
|
+
/** Creates SkSurface matching info and props, and associates it with SkCanvas.
|
300
|
+
Returns nullptr if no match found.
|
301
|
+
|
302
|
+
If props is nullptr, matches SkSurfaceProps in SkCanvas. If props is nullptr and SkCanvas
|
303
|
+
does not have SkSurfaceProps, creates SkSurface with default SkSurfaceProps.
|
304
|
+
|
305
|
+
@param info width, height, SkColorType, SkAlphaType, and SkColorSpace
|
306
|
+
@param props SkSurfaceProps to match; may be nullptr to match SkCanvas
|
307
|
+
@return SkSurface matching info and props, or nullptr if no match is available
|
308
|
+
|
309
|
+
example: https://fiddle.skia.org/c/@Canvas_makeSurface
|
310
|
+
*/
|
311
|
+
sk_sp<SkSurface> makeSurface(const SkImageInfo& info, const SkSurfaceProps* props = nullptr);
|
312
|
+
|
313
|
+
/** Returns Ganesh context of the GPU surface associated with SkCanvas.
|
314
|
+
|
315
|
+
@return GPU context, if available; nullptr otherwise
|
316
|
+
|
317
|
+
example: https://fiddle.skia.org/c/@Canvas_recordingContext
|
318
|
+
*/
|
319
|
+
virtual GrRecordingContext* recordingContext() const;
|
320
|
+
|
321
|
+
|
322
|
+
/** Returns Recorder for the GPU surface associated with SkCanvas.
|
323
|
+
|
324
|
+
@return Recorder, if available; nullptr otherwise
|
325
|
+
*/
|
326
|
+
virtual skgpu::graphite::Recorder* recorder() const;
|
327
|
+
|
328
|
+
/** Sometimes a canvas is owned by a surface. If it is, getSurface() will return a bare
|
329
|
+
* pointer to that surface, else this will return nullptr.
|
330
|
+
*/
|
331
|
+
SkSurface* getSurface() const;
|
332
|
+
|
333
|
+
/** Returns the pixel base address, SkImageInfo, rowBytes, and origin if the pixels
|
334
|
+
can be read directly. The returned address is only valid
|
335
|
+
while SkCanvas is in scope and unchanged. Any SkCanvas call or SkSurface call
|
336
|
+
may invalidate the returned address and other returned values.
|
337
|
+
|
338
|
+
If pixels are inaccessible, info, rowBytes, and origin are unchanged.
|
339
|
+
|
340
|
+
@param info storage for writable pixels' SkImageInfo; may be nullptr
|
341
|
+
@param rowBytes storage for writable pixels' row bytes; may be nullptr
|
342
|
+
@param origin storage for SkCanvas top layer origin, its top-left corner;
|
343
|
+
may be nullptr
|
344
|
+
@return address of pixels, or nullptr if inaccessible
|
345
|
+
|
346
|
+
example: https://fiddle.skia.org/c/@Canvas_accessTopLayerPixels_a
|
347
|
+
example: https://fiddle.skia.org/c/@Canvas_accessTopLayerPixels_b
|
348
|
+
*/
|
349
|
+
void* accessTopLayerPixels(SkImageInfo* info, size_t* rowBytes, SkIPoint* origin = nullptr);
|
350
|
+
|
351
|
+
/** Returns custom context that tracks the SkMatrix and clip.
|
352
|
+
|
353
|
+
Use SkRasterHandleAllocator to blend Skia drawing with custom drawing, typically performed
|
354
|
+
by the host platform user interface. The custom context returned is generated by
|
355
|
+
SkRasterHandleAllocator::MakeCanvas, which creates a custom canvas with raster storage for
|
356
|
+
the drawing destination.
|
357
|
+
|
358
|
+
@return context of custom allocation
|
359
|
+
|
360
|
+
example: https://fiddle.skia.org/c/@Canvas_accessTopRasterHandle
|
361
|
+
*/
|
362
|
+
SkRasterHandleAllocator::Handle accessTopRasterHandle() const;
|
363
|
+
|
364
|
+
/** Returns true if SkCanvas has direct access to its pixels.
|
365
|
+
|
366
|
+
Pixels are readable when SkDevice is raster. Pixels are not readable when SkCanvas
|
367
|
+
is returned from GPU surface, returned by SkDocument::beginPage, returned by
|
368
|
+
SkPictureRecorder::beginRecording, or SkCanvas is the base of a utility class
|
369
|
+
like DebugCanvas.
|
370
|
+
|
371
|
+
pixmap is valid only while SkCanvas is in scope and unchanged. Any
|
372
|
+
SkCanvas or SkSurface call may invalidate the pixmap values.
|
373
|
+
|
374
|
+
@param pixmap storage for pixel state if pixels are readable; otherwise, ignored
|
375
|
+
@return true if SkCanvas has direct access to pixels
|
376
|
+
|
377
|
+
example: https://fiddle.skia.org/c/@Canvas_peekPixels
|
378
|
+
*/
|
379
|
+
bool peekPixels(SkPixmap* pixmap);
|
380
|
+
|
381
|
+
/** Copies SkRect of pixels from SkCanvas into dstPixels. SkMatrix and clip are
|
382
|
+
ignored.
|
383
|
+
|
384
|
+
Source SkRect corners are (srcX, srcY) and (imageInfo().width(), imageInfo().height()).
|
385
|
+
Destination SkRect corners are (0, 0) and (dstInfo.width(), dstInfo.height()).
|
386
|
+
Copies each readable pixel intersecting both rectangles, without scaling,
|
387
|
+
converting to dstInfo.colorType() and dstInfo.alphaType() if required.
|
388
|
+
|
389
|
+
Pixels are readable when SkDevice is raster, or backed by a GPU.
|
390
|
+
Pixels are not readable when SkCanvas is returned by SkDocument::beginPage,
|
391
|
+
returned by SkPictureRecorder::beginRecording, or SkCanvas is the base of a utility
|
392
|
+
class like DebugCanvas.
|
393
|
+
|
394
|
+
The destination pixel storage must be allocated by the caller.
|
395
|
+
|
396
|
+
Pixel values are converted only if SkColorType and SkAlphaType
|
397
|
+
do not match. Only pixels within both source and destination rectangles
|
398
|
+
are copied. dstPixels contents outside SkRect intersection are unchanged.
|
399
|
+
|
400
|
+
Pass negative values for srcX or srcY to offset pixels across or down destination.
|
401
|
+
|
402
|
+
Does not copy, and returns false if:
|
403
|
+
- Source and destination rectangles do not intersect.
|
404
|
+
- SkCanvas pixels could not be converted to dstInfo.colorType() or dstInfo.alphaType().
|
405
|
+
- SkCanvas pixels are not readable; for instance, SkCanvas is document-based.
|
406
|
+
- dstRowBytes is too small to contain one row of pixels.
|
407
|
+
|
408
|
+
@param dstInfo width, height, SkColorType, and SkAlphaType of dstPixels
|
409
|
+
@param dstPixels storage for pixels; dstInfo.height() times dstRowBytes, or larger
|
410
|
+
@param dstRowBytes size of one destination row; dstInfo.width() times pixel size, or larger
|
411
|
+
@param srcX offset into readable pixels on x-axis; may be negative
|
412
|
+
@param srcY offset into readable pixels on y-axis; may be negative
|
413
|
+
@return true if pixels were copied
|
414
|
+
*/
|
415
|
+
bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
|
416
|
+
int srcX, int srcY);
|
417
|
+
|
418
|
+
/** Copies SkRect of pixels from SkCanvas into pixmap. SkMatrix and clip are
|
419
|
+
ignored.
|
420
|
+
|
421
|
+
Source SkRect corners are (srcX, srcY) and (imageInfo().width(), imageInfo().height()).
|
422
|
+
Destination SkRect corners are (0, 0) and (pixmap.width(), pixmap.height()).
|
423
|
+
Copies each readable pixel intersecting both rectangles, without scaling,
|
424
|
+
converting to pixmap.colorType() and pixmap.alphaType() if required.
|
425
|
+
|
426
|
+
Pixels are readable when SkDevice is raster, or backed by a GPU.
|
427
|
+
Pixels are not readable when SkCanvas is returned by SkDocument::beginPage,
|
428
|
+
returned by SkPictureRecorder::beginRecording, or SkCanvas is the base of a utility
|
429
|
+
class like DebugCanvas.
|
430
|
+
|
431
|
+
Caller must allocate pixel storage in pixmap if needed.
|
432
|
+
|
433
|
+
Pixel values are converted only if SkColorType and SkAlphaType
|
434
|
+
do not match. Only pixels within both source and destination SkRect
|
435
|
+
are copied. pixmap pixels contents outside SkRect intersection are unchanged.
|
436
|
+
|
437
|
+
Pass negative values for srcX or srcY to offset pixels across or down pixmap.
|
438
|
+
|
439
|
+
Does not copy, and returns false if:
|
440
|
+
- Source and destination rectangles do not intersect.
|
441
|
+
- SkCanvas pixels could not be converted to pixmap.colorType() or pixmap.alphaType().
|
442
|
+
- SkCanvas pixels are not readable; for instance, SkCanvas is document-based.
|
443
|
+
- SkPixmap pixels could not be allocated.
|
444
|
+
- pixmap.rowBytes() is too small to contain one row of pixels.
|
445
|
+
|
446
|
+
@param pixmap storage for pixels copied from SkCanvas
|
447
|
+
@param srcX offset into readable pixels on x-axis; may be negative
|
448
|
+
@param srcY offset into readable pixels on y-axis; may be negative
|
449
|
+
@return true if pixels were copied
|
450
|
+
|
451
|
+
example: https://fiddle.skia.org/c/@Canvas_readPixels_2
|
452
|
+
*/
|
453
|
+
bool readPixels(const SkPixmap& pixmap, int srcX, int srcY);
|
454
|
+
|
455
|
+
/** Copies SkRect of pixels from SkCanvas into bitmap. SkMatrix and clip are
|
456
|
+
ignored.
|
457
|
+
|
458
|
+
Source SkRect corners are (srcX, srcY) and (imageInfo().width(), imageInfo().height()).
|
459
|
+
Destination SkRect corners are (0, 0) and (bitmap.width(), bitmap.height()).
|
460
|
+
Copies each readable pixel intersecting both rectangles, without scaling,
|
461
|
+
converting to bitmap.colorType() and bitmap.alphaType() if required.
|
462
|
+
|
463
|
+
Pixels are readable when SkDevice is raster, or backed by a GPU.
|
464
|
+
Pixels are not readable when SkCanvas is returned by SkDocument::beginPage,
|
465
|
+
returned by SkPictureRecorder::beginRecording, or SkCanvas is the base of a utility
|
466
|
+
class like DebugCanvas.
|
467
|
+
|
468
|
+
Caller must allocate pixel storage in bitmap if needed.
|
469
|
+
|
470
|
+
SkBitmap values are converted only if SkColorType and SkAlphaType
|
471
|
+
do not match. Only pixels within both source and destination rectangles
|
472
|
+
are copied. SkBitmap pixels outside SkRect intersection are unchanged.
|
473
|
+
|
474
|
+
Pass negative values for srcX or srcY to offset pixels across or down bitmap.
|
475
|
+
|
476
|
+
Does not copy, and returns false if:
|
477
|
+
- Source and destination rectangles do not intersect.
|
478
|
+
- SkCanvas pixels could not be converted to bitmap.colorType() or bitmap.alphaType().
|
479
|
+
- SkCanvas pixels are not readable; for instance, SkCanvas is document-based.
|
480
|
+
- bitmap pixels could not be allocated.
|
481
|
+
- bitmap.rowBytes() is too small to contain one row of pixels.
|
482
|
+
|
483
|
+
@param bitmap storage for pixels copied from SkCanvas
|
484
|
+
@param srcX offset into readable pixels on x-axis; may be negative
|
485
|
+
@param srcY offset into readable pixels on y-axis; may be negative
|
486
|
+
@return true if pixels were copied
|
487
|
+
|
488
|
+
example: https://fiddle.skia.org/c/@Canvas_readPixels_3
|
489
|
+
*/
|
490
|
+
bool readPixels(const SkBitmap& bitmap, int srcX, int srcY);
|
491
|
+
|
492
|
+
/** Copies SkRect from pixels to SkCanvas. SkMatrix and clip are ignored.
|
493
|
+
Source SkRect corners are (0, 0) and (info.width(), info.height()).
|
494
|
+
Destination SkRect corners are (x, y) and
|
495
|
+
(imageInfo().width(), imageInfo().height()).
|
496
|
+
|
497
|
+
Copies each readable pixel intersecting both rectangles, without scaling,
|
498
|
+
converting to imageInfo().colorType() and imageInfo().alphaType() if required.
|
499
|
+
|
500
|
+
Pixels are writable when SkDevice is raster, or backed by a GPU.
|
501
|
+
Pixels are not writable when SkCanvas is returned by SkDocument::beginPage,
|
502
|
+
returned by SkPictureRecorder::beginRecording, or SkCanvas is the base of a utility
|
503
|
+
class like DebugCanvas.
|
504
|
+
|
505
|
+
Pixel values are converted only if SkColorType and SkAlphaType
|
506
|
+
do not match. Only pixels within both source and destination rectangles
|
507
|
+
are copied. SkCanvas pixels outside SkRect intersection are unchanged.
|
508
|
+
|
509
|
+
Pass negative values for x or y to offset pixels to the left or
|
510
|
+
above SkCanvas pixels.
|
511
|
+
|
512
|
+
Does not copy, and returns false if:
|
513
|
+
- Source and destination rectangles do not intersect.
|
514
|
+
- pixels could not be converted to SkCanvas imageInfo().colorType() or
|
515
|
+
imageInfo().alphaType().
|
516
|
+
- SkCanvas pixels are not writable; for instance, SkCanvas is document-based.
|
517
|
+
- rowBytes is too small to contain one row of pixels.
|
518
|
+
|
519
|
+
@param info width, height, SkColorType, and SkAlphaType of pixels
|
520
|
+
@param pixels pixels to copy, of size info.height() times rowBytes, or larger
|
521
|
+
@param rowBytes size of one row of pixels; info.width() times pixel size, or larger
|
522
|
+
@param x offset into SkCanvas writable pixels on x-axis; may be negative
|
523
|
+
@param y offset into SkCanvas writable pixels on y-axis; may be negative
|
524
|
+
@return true if pixels were written to SkCanvas
|
525
|
+
|
526
|
+
example: https://fiddle.skia.org/c/@Canvas_writePixels
|
527
|
+
*/
|
528
|
+
bool writePixels(const SkImageInfo& info, const void* pixels, size_t rowBytes, int x, int y);
|
529
|
+
|
530
|
+
/** Copies SkRect from pixels to SkCanvas. SkMatrix and clip are ignored.
|
531
|
+
Source SkRect corners are (0, 0) and (bitmap.width(), bitmap.height()).
|
532
|
+
|
533
|
+
Destination SkRect corners are (x, y) and
|
534
|
+
(imageInfo().width(), imageInfo().height()).
|
535
|
+
|
536
|
+
Copies each readable pixel intersecting both rectangles, without scaling,
|
537
|
+
converting to imageInfo().colorType() and imageInfo().alphaType() if required.
|
538
|
+
|
539
|
+
Pixels are writable when SkDevice is raster, or backed by a GPU.
|
540
|
+
Pixels are not writable when SkCanvas is returned by SkDocument::beginPage,
|
541
|
+
returned by SkPictureRecorder::beginRecording, or SkCanvas is the base of a utility
|
542
|
+
class like DebugCanvas.
|
543
|
+
|
544
|
+
Pixel values are converted only if SkColorType and SkAlphaType
|
545
|
+
do not match. Only pixels within both source and destination rectangles
|
546
|
+
are copied. SkCanvas pixels outside SkRect intersection are unchanged.
|
547
|
+
|
548
|
+
Pass negative values for x or y to offset pixels to the left or
|
549
|
+
above SkCanvas pixels.
|
550
|
+
|
551
|
+
Does not copy, and returns false if:
|
552
|
+
- Source and destination rectangles do not intersect.
|
553
|
+
- bitmap does not have allocated pixels.
|
554
|
+
- bitmap pixels could not be converted to SkCanvas imageInfo().colorType() or
|
555
|
+
imageInfo().alphaType().
|
556
|
+
- SkCanvas pixels are not writable; for instance, SkCanvas is document based.
|
557
|
+
- bitmap pixels are inaccessible; for instance, bitmap wraps a texture.
|
558
|
+
|
559
|
+
@param bitmap contains pixels copied to SkCanvas
|
560
|
+
@param x offset into SkCanvas writable pixels on x-axis; may be negative
|
561
|
+
@param y offset into SkCanvas writable pixels on y-axis; may be negative
|
562
|
+
@return true if pixels were written to SkCanvas
|
563
|
+
|
564
|
+
example: https://fiddle.skia.org/c/@Canvas_writePixels_2
|
565
|
+
example: https://fiddle.skia.org/c/@State_Stack_a
|
566
|
+
example: https://fiddle.skia.org/c/@State_Stack_b
|
567
|
+
*/
|
568
|
+
bool writePixels(const SkBitmap& bitmap, int x, int y);
|
569
|
+
|
570
|
+
/** Saves SkMatrix and clip.
|
571
|
+
Calling restore() discards changes to SkMatrix and clip,
|
572
|
+
restoring the SkMatrix and clip to their state when save() was called.
|
573
|
+
|
574
|
+
SkMatrix may be changed by translate(), scale(), rotate(), skew(), concat(), setMatrix(),
|
575
|
+
and resetMatrix(). Clip may be changed by clipRect(), clipRRect(), clipPath(), clipRegion().
|
576
|
+
|
577
|
+
Saved SkCanvas state is put on a stack; multiple calls to save() should be balance
|
578
|
+
by an equal number of calls to restore().
|
579
|
+
|
580
|
+
Call restoreToCount() with result to restore this and subsequent saves.
|
581
|
+
|
582
|
+
@return depth of saved stack
|
583
|
+
|
584
|
+
example: https://fiddle.skia.org/c/@Canvas_save
|
585
|
+
*/
|
586
|
+
int save();
|
587
|
+
|
588
|
+
/** Saves SkMatrix and clip, and allocates a SkSurface for subsequent drawing.
|
589
|
+
Calling restore() discards changes to SkMatrix and clip, and draws the SkSurface.
|
590
|
+
|
591
|
+
SkMatrix may be changed by translate(), scale(), rotate(), skew(), concat(),
|
592
|
+
setMatrix(), and resetMatrix(). Clip may be changed by clipRect(), clipRRect(),
|
593
|
+
clipPath(), clipRegion().
|
594
|
+
|
595
|
+
SkRect bounds suggests but does not define the SkSurface size. To clip drawing to
|
596
|
+
a specific rectangle, use clipRect().
|
597
|
+
|
598
|
+
Optional SkPaint paint applies alpha, SkColorFilter, SkImageFilter, and
|
599
|
+
SkBlendMode when restore() is called.
|
600
|
+
|
601
|
+
Call restoreToCount() with returned value to restore this and subsequent saves.
|
602
|
+
|
603
|
+
@param bounds hint to limit the size of the layer; may be nullptr
|
604
|
+
@param paint graphics state for layer; may be nullptr
|
605
|
+
@return depth of saved stack
|
606
|
+
|
607
|
+
example: https://fiddle.skia.org/c/@Canvas_saveLayer
|
608
|
+
example: https://fiddle.skia.org/c/@Canvas_saveLayer_4
|
609
|
+
*/
|
610
|
+
int saveLayer(const SkRect* bounds, const SkPaint* paint);
|
611
|
+
|
612
|
+
/** Saves SkMatrix and clip, and allocates a SkSurface for subsequent drawing.
|
613
|
+
Calling restore() discards changes to SkMatrix and clip, and draws the SkSurface.
|
614
|
+
|
615
|
+
SkMatrix may be changed by translate(), scale(), rotate(), skew(), concat(),
|
616
|
+
setMatrix(), and resetMatrix(). Clip may be changed by clipRect(), clipRRect(),
|
617
|
+
clipPath(), clipRegion().
|
618
|
+
|
619
|
+
SkRect bounds suggests but does not define the layer size. To clip drawing to
|
620
|
+
a specific rectangle, use clipRect().
|
621
|
+
|
622
|
+
Optional SkPaint paint applies alpha, SkColorFilter, SkImageFilter, and
|
623
|
+
SkBlendMode when restore() is called.
|
624
|
+
|
625
|
+
Call restoreToCount() with returned value to restore this and subsequent saves.
|
626
|
+
|
627
|
+
@param bounds hint to limit the size of layer; may be nullptr
|
628
|
+
@param paint graphics state for layer; may be nullptr
|
629
|
+
@return depth of saved stack
|
630
|
+
*/
|
631
|
+
int saveLayer(const SkRect& bounds, const SkPaint* paint) {
|
632
|
+
return this->saveLayer(&bounds, paint);
|
633
|
+
}
|
634
|
+
|
635
|
+
/** Saves SkMatrix and clip, and allocates SkSurface for subsequent drawing.
|
636
|
+
|
637
|
+
Calling restore() discards changes to SkMatrix and clip,
|
638
|
+
and blends layer with alpha opacity onto prior layer.
|
639
|
+
|
640
|
+
SkMatrix may be changed by translate(), scale(), rotate(), skew(), concat(),
|
641
|
+
setMatrix(), and resetMatrix(). Clip may be changed by clipRect(), clipRRect(),
|
642
|
+
clipPath(), clipRegion().
|
643
|
+
|
644
|
+
SkRect bounds suggests but does not define layer size. To clip drawing to
|
645
|
+
a specific rectangle, use clipRect().
|
646
|
+
|
647
|
+
alpha of zero is fully transparent, 1.0f is fully opaque.
|
648
|
+
|
649
|
+
Call restoreToCount() with returned value to restore this and subsequent saves.
|
650
|
+
|
651
|
+
@param bounds hint to limit the size of layer; may be nullptr
|
652
|
+
@param alpha opacity of layer
|
653
|
+
@return depth of saved stack
|
654
|
+
|
655
|
+
example: https://fiddle.skia.org/c/@Canvas_saveLayerAlpha
|
656
|
+
*/
|
657
|
+
int saveLayerAlphaf(const SkRect* bounds, float alpha);
|
658
|
+
// Helper that accepts an int between 0 and 255, and divides it by 255.0
|
659
|
+
int saveLayerAlpha(const SkRect* bounds, U8CPU alpha) {
|
660
|
+
return this->saveLayerAlphaf(bounds, alpha * (1.0f / 255));
|
661
|
+
}
|
662
|
+
|
663
|
+
/** \enum SkCanvas::SaveLayerFlagsSet
|
664
|
+
SaveLayerFlags provides options that may be used in any combination in SaveLayerRec,
|
665
|
+
defining how layer allocated by saveLayer() operates. It may be set to zero,
|
666
|
+
kPreserveLCDText_SaveLayerFlag, kInitWithPrevious_SaveLayerFlag, or both flags.
|
667
|
+
*/
|
668
|
+
enum SaveLayerFlagsSet {
|
669
|
+
kPreserveLCDText_SaveLayerFlag = 1 << 1,
|
670
|
+
kInitWithPrevious_SaveLayerFlag = 1 << 2, //!< initializes with previous contents
|
671
|
+
// instead of matching previous layer's colortype, use F16
|
672
|
+
kF16ColorType = 1 << 4,
|
673
|
+
};
|
674
|
+
|
675
|
+
using SaveLayerFlags = uint32_t;
|
676
|
+
using FilterSpan = SkSpan<sk_sp<SkImageFilter>>;
|
677
|
+
static constexpr int kMaxFiltersPerLayer = 16;
|
678
|
+
|
679
|
+
/** \struct SkCanvas::SaveLayerRec
|
680
|
+
SaveLayerRec contains the state used to create the layer.
|
681
|
+
*/
|
682
|
+
struct SaveLayerRec {
|
683
|
+
/** Sets fBounds, fPaint, and fBackdrop to nullptr. Clears fSaveLayerFlags.
|
684
|
+
|
685
|
+
@return empty SaveLayerRec
|
686
|
+
*/
|
687
|
+
SaveLayerRec() {}
|
688
|
+
|
689
|
+
/** Sets fBounds, fPaint, and fSaveLayerFlags; sets fBackdrop to nullptr.
|
690
|
+
|
691
|
+
@param bounds layer dimensions; may be nullptr
|
692
|
+
@param paint applied to layer when overlaying prior layer; may be nullptr
|
693
|
+
@param saveLayerFlags SaveLayerRec options to modify layer
|
694
|
+
@return SaveLayerRec with empty fBackdrop
|
695
|
+
*/
|
696
|
+
SaveLayerRec(const SkRect* bounds, const SkPaint* paint, SaveLayerFlags saveLayerFlags = 0)
|
697
|
+
: SaveLayerRec(bounds, paint, nullptr, 1.f, saveLayerFlags, /*filters=*/{}) {}
|
698
|
+
|
699
|
+
/** Sets fBounds, fPaint, fBackdrop, and fSaveLayerFlags.
|
700
|
+
|
701
|
+
@param bounds layer dimensions; may be nullptr
|
702
|
+
@param paint applied to layer when overlaying prior layer;
|
703
|
+
may be nullptr
|
704
|
+
@param backdrop If not null, this causes the current layer to be filtered by
|
705
|
+
backdrop, and then drawn into the new layer
|
706
|
+
(respecting the current clip).
|
707
|
+
If null, the new layer is initialized with transparent-black.
|
708
|
+
@param saveLayerFlags SaveLayerRec options to modify layer
|
709
|
+
@return SaveLayerRec fully specified
|
710
|
+
*/
|
711
|
+
SaveLayerRec(const SkRect* bounds, const SkPaint* paint, const SkImageFilter* backdrop,
|
712
|
+
SaveLayerFlags saveLayerFlags)
|
713
|
+
: SaveLayerRec(bounds, paint, backdrop, 1.f, saveLayerFlags, /*filters=*/{}) {}
|
714
|
+
|
715
|
+
/** hints at layer size limit */
|
716
|
+
const SkRect* fBounds = nullptr;
|
717
|
+
|
718
|
+
/** modifies overlay */
|
719
|
+
const SkPaint* fPaint = nullptr;
|
720
|
+
|
721
|
+
FilterSpan fFilters = {};
|
722
|
+
|
723
|
+
/**
|
724
|
+
* If not null, this triggers the same initialization behavior as setting
|
725
|
+
* kInitWithPrevious_SaveLayerFlag on fSaveLayerFlags: the current layer is copied into
|
726
|
+
* the new layer, rather than initializing the new layer with transparent-black.
|
727
|
+
* This is then filtered by fBackdrop (respecting the current clip).
|
728
|
+
*/
|
729
|
+
const SkImageFilter* fBackdrop = nullptr;
|
730
|
+
|
731
|
+
/** preserves LCD text, creates with prior layer contents */
|
732
|
+
SaveLayerFlags fSaveLayerFlags = 0;
|
733
|
+
|
734
|
+
private:
|
735
|
+
friend class SkCanvas;
|
736
|
+
friend class SkCanvasPriv;
|
737
|
+
|
738
|
+
SaveLayerRec(const SkRect* bounds,
|
739
|
+
const SkPaint* paint,
|
740
|
+
const SkImageFilter* backdrop,
|
741
|
+
SkScalar backdropScale,
|
742
|
+
SaveLayerFlags saveLayerFlags,
|
743
|
+
FilterSpan filters)
|
744
|
+
: fBounds(bounds)
|
745
|
+
, fPaint(paint)
|
746
|
+
, fFilters(filters)
|
747
|
+
, fBackdrop(backdrop)
|
748
|
+
, fSaveLayerFlags(saveLayerFlags)
|
749
|
+
, fExperimentalBackdropScale(backdropScale) {
|
750
|
+
// We only allow the paint's image filter or the side-car list of filters -- not both.
|
751
|
+
SkASSERT(fFilters.empty() || !paint || !paint->getImageFilter());
|
752
|
+
// To keep things reasonable (during deserialization), we limit filter list size.
|
753
|
+
SkASSERT(fFilters.size() <= kMaxFiltersPerLayer);
|
754
|
+
}
|
755
|
+
|
756
|
+
// Relative scale factor that the image content used to initialize the layer when the
|
757
|
+
// kInitFromPrevious flag or a backdrop filter is used.
|
758
|
+
SkScalar fExperimentalBackdropScale = 1.f;
|
759
|
+
};
|
760
|
+
|
761
|
+
/** Saves SkMatrix and clip, and allocates SkSurface for subsequent drawing.
|
762
|
+
|
763
|
+
Calling restore() discards changes to SkMatrix and clip,
|
764
|
+
and blends SkSurface with alpha opacity onto the prior layer.
|
765
|
+
|
766
|
+
SkMatrix may be changed by translate(), scale(), rotate(), skew(), concat(),
|
767
|
+
setMatrix(), and resetMatrix(). Clip may be changed by clipRect(), clipRRect(),
|
768
|
+
clipPath(), clipRegion().
|
769
|
+
|
770
|
+
SaveLayerRec contains the state used to create the layer.
|
771
|
+
|
772
|
+
Call restoreToCount() with returned value to restore this and subsequent saves.
|
773
|
+
|
774
|
+
@param layerRec layer state
|
775
|
+
@return depth of save state stack before this call was made.
|
776
|
+
|
777
|
+
example: https://fiddle.skia.org/c/@Canvas_saveLayer_3
|
778
|
+
*/
|
779
|
+
int saveLayer(const SaveLayerRec& layerRec);
|
780
|
+
|
781
|
+
/** Removes changes to SkMatrix and clip since SkCanvas state was
|
782
|
+
last saved. The state is removed from the stack.
|
783
|
+
|
784
|
+
Does nothing if the stack is empty.
|
785
|
+
|
786
|
+
example: https://fiddle.skia.org/c/@AutoCanvasRestore_restore
|
787
|
+
|
788
|
+
example: https://fiddle.skia.org/c/@Canvas_restore
|
789
|
+
*/
|
790
|
+
void restore();
|
791
|
+
|
792
|
+
/** Returns the number of saved states, each containing: SkMatrix and clip.
|
793
|
+
Equals the number of save() calls less the number of restore() calls plus one.
|
794
|
+
The save count of a new canvas is one.
|
795
|
+
|
796
|
+
@return depth of save state stack
|
797
|
+
|
798
|
+
example: https://fiddle.skia.org/c/@Canvas_getSaveCount
|
799
|
+
*/
|
800
|
+
int getSaveCount() const;
|
801
|
+
|
802
|
+
/** Restores state to SkMatrix and clip values when save(), saveLayer(),
|
803
|
+
saveLayerPreserveLCDTextRequests(), or saveLayerAlpha() returned saveCount.
|
804
|
+
|
805
|
+
Does nothing if saveCount is greater than state stack count.
|
806
|
+
Restores state to initial values if saveCount is less than or equal to one.
|
807
|
+
|
808
|
+
@param saveCount depth of state stack to restore
|
809
|
+
|
810
|
+
example: https://fiddle.skia.org/c/@Canvas_restoreToCount
|
811
|
+
*/
|
812
|
+
void restoreToCount(int saveCount);
|
813
|
+
|
814
|
+
/** Translates SkMatrix by dx along the x-axis and dy along the y-axis.
|
815
|
+
|
816
|
+
Mathematically, replaces SkMatrix with a translation matrix
|
817
|
+
premultiplied with SkMatrix.
|
818
|
+
|
819
|
+
This has the effect of moving the drawing by (dx, dy) before transforming
|
820
|
+
the result with SkMatrix.
|
821
|
+
|
822
|
+
@param dx distance to translate on x-axis
|
823
|
+
@param dy distance to translate on y-axis
|
824
|
+
|
825
|
+
example: https://fiddle.skia.org/c/@Canvas_translate
|
826
|
+
*/
|
827
|
+
void translate(SkScalar dx, SkScalar dy);
|
828
|
+
|
829
|
+
/** Scales SkMatrix by sx on the x-axis and sy on the y-axis.
|
830
|
+
|
831
|
+
Mathematically, replaces SkMatrix with a scale matrix
|
832
|
+
premultiplied with SkMatrix.
|
833
|
+
|
834
|
+
This has the effect of scaling the drawing by (sx, sy) before transforming
|
835
|
+
the result with SkMatrix.
|
836
|
+
|
837
|
+
@param sx amount to scale on x-axis
|
838
|
+
@param sy amount to scale on y-axis
|
839
|
+
|
840
|
+
example: https://fiddle.skia.org/c/@Canvas_scale
|
841
|
+
*/
|
842
|
+
void scale(SkScalar sx, SkScalar sy);
|
843
|
+
|
844
|
+
/** Rotates SkMatrix by degrees. Positive degrees rotates clockwise.
|
845
|
+
|
846
|
+
Mathematically, replaces SkMatrix with a rotation matrix
|
847
|
+
premultiplied with SkMatrix.
|
848
|
+
|
849
|
+
This has the effect of rotating the drawing by degrees before transforming
|
850
|
+
the result with SkMatrix.
|
851
|
+
|
852
|
+
@param degrees amount to rotate, in degrees
|
853
|
+
|
854
|
+
example: https://fiddle.skia.org/c/@Canvas_rotate
|
855
|
+
*/
|
856
|
+
void rotate(SkScalar degrees);
|
857
|
+
|
858
|
+
/** Rotates SkMatrix by degrees about a point at (px, py). Positive degrees rotates
|
859
|
+
clockwise.
|
860
|
+
|
861
|
+
Mathematically, constructs a rotation matrix; premultiplies the rotation matrix by
|
862
|
+
a translation matrix; then replaces SkMatrix with the resulting matrix
|
863
|
+
premultiplied with SkMatrix.
|
864
|
+
|
865
|
+
This has the effect of rotating the drawing about a given point before
|
866
|
+
transforming the result with SkMatrix.
|
867
|
+
|
868
|
+
@param degrees amount to rotate, in degrees
|
869
|
+
@param px x-axis value of the point to rotate about
|
870
|
+
@param py y-axis value of the point to rotate about
|
871
|
+
|
872
|
+
example: https://fiddle.skia.org/c/@Canvas_rotate_2
|
873
|
+
*/
|
874
|
+
void rotate(SkScalar degrees, SkScalar px, SkScalar py);
|
875
|
+
|
876
|
+
/** Skews SkMatrix by sx on the x-axis and sy on the y-axis. A positive value of sx
|
877
|
+
skews the drawing right as y-axis values increase; a positive value of sy skews
|
878
|
+
the drawing down as x-axis values increase.
|
879
|
+
|
880
|
+
Mathematically, replaces SkMatrix with a skew matrix premultiplied with SkMatrix.
|
881
|
+
|
882
|
+
This has the effect of skewing the drawing by (sx, sy) before transforming
|
883
|
+
the result with SkMatrix.
|
884
|
+
|
885
|
+
@param sx amount to skew on x-axis
|
886
|
+
@param sy amount to skew on y-axis
|
887
|
+
|
888
|
+
example: https://fiddle.skia.org/c/@Canvas_skew
|
889
|
+
*/
|
890
|
+
void skew(SkScalar sx, SkScalar sy);
|
891
|
+
|
892
|
+
/** Replaces SkMatrix with matrix premultiplied with existing SkMatrix.
|
893
|
+
|
894
|
+
This has the effect of transforming the drawn geometry by matrix, before
|
895
|
+
transforming the result with existing SkMatrix.
|
896
|
+
|
897
|
+
@param matrix matrix to premultiply with existing SkMatrix
|
898
|
+
|
899
|
+
example: https://fiddle.skia.org/c/@Canvas_concat
|
900
|
+
*/
|
901
|
+
void concat(const SkMatrix& matrix);
|
902
|
+
void concat(const SkM44&);
|
903
|
+
|
904
|
+
/** Replaces SkMatrix with matrix.
|
905
|
+
Unlike concat(), any prior matrix state is overwritten.
|
906
|
+
|
907
|
+
@param matrix matrix to copy, replacing existing SkMatrix
|
908
|
+
|
909
|
+
example: https://fiddle.skia.org/c/@Canvas_setMatrix
|
910
|
+
*/
|
911
|
+
void setMatrix(const SkM44& matrix);
|
912
|
+
|
913
|
+
// DEPRECATED -- use SkM44 version
|
914
|
+
void setMatrix(const SkMatrix& matrix);
|
915
|
+
|
916
|
+
/** Sets SkMatrix to the identity matrix.
|
917
|
+
Any prior matrix state is overwritten.
|
918
|
+
|
919
|
+
example: https://fiddle.skia.org/c/@Canvas_resetMatrix
|
920
|
+
*/
|
921
|
+
void resetMatrix();
|
922
|
+
|
923
|
+
/** Replaces clip with the intersection or difference of clip and rect,
|
924
|
+
with an aliased or anti-aliased clip edge. rect is transformed by SkMatrix
|
925
|
+
before it is combined with clip.
|
926
|
+
|
927
|
+
@param rect SkRect to combine with clip
|
928
|
+
@param op SkClipOp to apply to clip
|
929
|
+
@param doAntiAlias true if clip is to be anti-aliased
|
930
|
+
|
931
|
+
example: https://fiddle.skia.org/c/@Canvas_clipRect
|
932
|
+
*/
|
933
|
+
void clipRect(const SkRect& rect, SkClipOp op, bool doAntiAlias);
|
934
|
+
|
935
|
+
/** Replaces clip with the intersection or difference of clip and rect.
|
936
|
+
Resulting clip is aliased; pixels are fully contained by the clip.
|
937
|
+
rect is transformed by SkMatrix before it is combined with clip.
|
938
|
+
|
939
|
+
@param rect SkRect to combine with clip
|
940
|
+
@param op SkClipOp to apply to clip
|
941
|
+
*/
|
942
|
+
void clipRect(const SkRect& rect, SkClipOp op) {
|
943
|
+
this->clipRect(rect, op, false);
|
944
|
+
}
|
945
|
+
|
946
|
+
/** Replaces clip with the intersection of clip and rect.
|
947
|
+
Resulting clip is aliased; pixels are fully contained by the clip.
|
948
|
+
rect is transformed by SkMatrix
|
949
|
+
before it is combined with clip.
|
950
|
+
|
951
|
+
@param rect SkRect to combine with clip
|
952
|
+
@param doAntiAlias true if clip is to be anti-aliased
|
953
|
+
*/
|
954
|
+
void clipRect(const SkRect& rect, bool doAntiAlias = false) {
|
955
|
+
this->clipRect(rect, SkClipOp::kIntersect, doAntiAlias);
|
956
|
+
}
|
957
|
+
|
958
|
+
void clipIRect(const SkIRect& irect, SkClipOp op = SkClipOp::kIntersect) {
|
959
|
+
this->clipRect(SkRect::Make(irect), op, false);
|
960
|
+
}
|
961
|
+
|
962
|
+
/** Sets the maximum clip rectangle, which can be set by clipRect(), clipRRect() and
|
963
|
+
clipPath() and intersect the current clip with the specified rect.
|
964
|
+
The maximum clip affects only future clipping operations; it is not retroactive.
|
965
|
+
The clip restriction is not recorded in pictures.
|
966
|
+
|
967
|
+
Pass an empty rect to disable maximum clip.
|
968
|
+
This private API is for use by Android framework only.
|
969
|
+
|
970
|
+
DEPRECATED: Replace usage with SkAndroidFrameworkUtils::replaceClip()
|
971
|
+
|
972
|
+
@param rect maximum allowed clip in device coordinates
|
973
|
+
*/
|
974
|
+
void androidFramework_setDeviceClipRestriction(const SkIRect& rect);
|
975
|
+
|
976
|
+
/** Replaces clip with the intersection or difference of clip and rrect,
|
977
|
+
with an aliased or anti-aliased clip edge.
|
978
|
+
rrect is transformed by SkMatrix
|
979
|
+
before it is combined with clip.
|
980
|
+
|
981
|
+
@param rrect SkRRect to combine with clip
|
982
|
+
@param op SkClipOp to apply to clip
|
983
|
+
@param doAntiAlias true if clip is to be anti-aliased
|
984
|
+
|
985
|
+
example: https://fiddle.skia.org/c/@Canvas_clipRRect
|
986
|
+
*/
|
987
|
+
void clipRRect(const SkRRect& rrect, SkClipOp op, bool doAntiAlias);
|
988
|
+
|
989
|
+
/** Replaces clip with the intersection or difference of clip and rrect.
|
990
|
+
Resulting clip is aliased; pixels are fully contained by the clip.
|
991
|
+
rrect is transformed by SkMatrix before it is combined with clip.
|
992
|
+
|
993
|
+
@param rrect SkRRect to combine with clip
|
994
|
+
@param op SkClipOp to apply to clip
|
995
|
+
*/
|
996
|
+
void clipRRect(const SkRRect& rrect, SkClipOp op) {
|
997
|
+
this->clipRRect(rrect, op, false);
|
998
|
+
}
|
999
|
+
|
1000
|
+
/** Replaces clip with the intersection of clip and rrect,
|
1001
|
+
with an aliased or anti-aliased clip edge.
|
1002
|
+
rrect is transformed by SkMatrix before it is combined with clip.
|
1003
|
+
|
1004
|
+
@param rrect SkRRect to combine with clip
|
1005
|
+
@param doAntiAlias true if clip is to be anti-aliased
|
1006
|
+
*/
|
1007
|
+
void clipRRect(const SkRRect& rrect, bool doAntiAlias = false) {
|
1008
|
+
this->clipRRect(rrect, SkClipOp::kIntersect, doAntiAlias);
|
1009
|
+
}
|
1010
|
+
|
1011
|
+
/** Replaces clip with the intersection or difference of clip and path,
|
1012
|
+
with an aliased or anti-aliased clip edge. SkPath::FillType determines if path
|
1013
|
+
describes the area inside or outside its contours; and if path contour overlaps
|
1014
|
+
itself or another path contour, whether the overlaps form part of the area.
|
1015
|
+
path is transformed by SkMatrix before it is combined with clip.
|
1016
|
+
|
1017
|
+
@param path SkPath to combine with clip
|
1018
|
+
@param op SkClipOp to apply to clip
|
1019
|
+
@param doAntiAlias true if clip is to be anti-aliased
|
1020
|
+
|
1021
|
+
example: https://fiddle.skia.org/c/@Canvas_clipPath
|
1022
|
+
*/
|
1023
|
+
void clipPath(const SkPath& path, SkClipOp op, bool doAntiAlias);
|
1024
|
+
|
1025
|
+
/** Replaces clip with the intersection or difference of clip and path.
|
1026
|
+
Resulting clip is aliased; pixels are fully contained by the clip.
|
1027
|
+
SkPath::FillType determines if path
|
1028
|
+
describes the area inside or outside its contours; and if path contour overlaps
|
1029
|
+
itself or another path contour, whether the overlaps form part of the area.
|
1030
|
+
path is transformed by SkMatrix
|
1031
|
+
before it is combined with clip.
|
1032
|
+
|
1033
|
+
@param path SkPath to combine with clip
|
1034
|
+
@param op SkClipOp to apply to clip
|
1035
|
+
*/
|
1036
|
+
void clipPath(const SkPath& path, SkClipOp op) {
|
1037
|
+
this->clipPath(path, op, false);
|
1038
|
+
}
|
1039
|
+
|
1040
|
+
/** Replaces clip with the intersection of clip and path.
|
1041
|
+
Resulting clip is aliased; pixels are fully contained by the clip.
|
1042
|
+
SkPath::FillType determines if path
|
1043
|
+
describes the area inside or outside its contours; and if path contour overlaps
|
1044
|
+
itself or another path contour, whether the overlaps form part of the area.
|
1045
|
+
path is transformed by SkMatrix before it is combined with clip.
|
1046
|
+
|
1047
|
+
@param path SkPath to combine with clip
|
1048
|
+
@param doAntiAlias true if clip is to be anti-aliased
|
1049
|
+
*/
|
1050
|
+
void clipPath(const SkPath& path, bool doAntiAlias = false) {
|
1051
|
+
this->clipPath(path, SkClipOp::kIntersect, doAntiAlias);
|
1052
|
+
}
|
1053
|
+
|
1054
|
+
void clipShader(sk_sp<SkShader>, SkClipOp = SkClipOp::kIntersect);
|
1055
|
+
|
1056
|
+
/** Replaces clip with the intersection or difference of clip and SkRegion deviceRgn.
|
1057
|
+
Resulting clip is aliased; pixels are fully contained by the clip.
|
1058
|
+
deviceRgn is unaffected by SkMatrix.
|
1059
|
+
|
1060
|
+
@param deviceRgn SkRegion to combine with clip
|
1061
|
+
@param op SkClipOp to apply to clip
|
1062
|
+
|
1063
|
+
example: https://fiddle.skia.org/c/@Canvas_clipRegion
|
1064
|
+
*/
|
1065
|
+
void clipRegion(const SkRegion& deviceRgn, SkClipOp op = SkClipOp::kIntersect);
|
1066
|
+
|
1067
|
+
/** Returns true if SkRect rect, transformed by SkMatrix, can be quickly determined to be
|
1068
|
+
outside of clip. May return false even though rect is outside of clip.
|
1069
|
+
|
1070
|
+
Use to check if an area to be drawn is clipped out, to skip subsequent draw calls.
|
1071
|
+
|
1072
|
+
@param rect SkRect to compare with clip
|
1073
|
+
@return true if rect, transformed by SkMatrix, does not intersect clip
|
1074
|
+
|
1075
|
+
example: https://fiddle.skia.org/c/@Canvas_quickReject
|
1076
|
+
*/
|
1077
|
+
bool quickReject(const SkRect& rect) const;
|
1078
|
+
|
1079
|
+
/** Returns true if path, transformed by SkMatrix, can be quickly determined to be
|
1080
|
+
outside of clip. May return false even though path is outside of clip.
|
1081
|
+
|
1082
|
+
Use to check if an area to be drawn is clipped out, to skip subsequent draw calls.
|
1083
|
+
|
1084
|
+
@param path SkPath to compare with clip
|
1085
|
+
@return true if path, transformed by SkMatrix, does not intersect clip
|
1086
|
+
|
1087
|
+
example: https://fiddle.skia.org/c/@Canvas_quickReject_2
|
1088
|
+
*/
|
1089
|
+
bool quickReject(const SkPath& path) const;
|
1090
|
+
|
1091
|
+
/** Returns bounds of clip, transformed by inverse of SkMatrix. If clip is empty,
|
1092
|
+
return SkRect::MakeEmpty, where all SkRect sides equal zero.
|
1093
|
+
|
1094
|
+
SkRect returned is outset by one to account for partial pixel coverage if clip
|
1095
|
+
is anti-aliased.
|
1096
|
+
|
1097
|
+
@return bounds of clip in local coordinates
|
1098
|
+
|
1099
|
+
example: https://fiddle.skia.org/c/@Canvas_getLocalClipBounds
|
1100
|
+
*/
|
1101
|
+
SkRect getLocalClipBounds() const;
|
1102
|
+
|
1103
|
+
/** Returns bounds of clip, transformed by inverse of SkMatrix. If clip is empty,
|
1104
|
+
return false, and set bounds to SkRect::MakeEmpty, where all SkRect sides equal zero.
|
1105
|
+
|
1106
|
+
bounds is outset by one to account for partial pixel coverage if clip
|
1107
|
+
is anti-aliased.
|
1108
|
+
|
1109
|
+
@param bounds SkRect of clip in local coordinates
|
1110
|
+
@return true if clip bounds is not empty
|
1111
|
+
*/
|
1112
|
+
bool getLocalClipBounds(SkRect* bounds) const {
|
1113
|
+
*bounds = this->getLocalClipBounds();
|
1114
|
+
return !bounds->isEmpty();
|
1115
|
+
}
|
1116
|
+
|
1117
|
+
/** Returns SkIRect bounds of clip, unaffected by SkMatrix. If clip is empty,
|
1118
|
+
return SkRect::MakeEmpty, where all SkRect sides equal zero.
|
1119
|
+
|
1120
|
+
Unlike getLocalClipBounds(), returned SkIRect is not outset.
|
1121
|
+
|
1122
|
+
@return bounds of clip in base device coordinates
|
1123
|
+
|
1124
|
+
example: https://fiddle.skia.org/c/@Canvas_getDeviceClipBounds
|
1125
|
+
*/
|
1126
|
+
SkIRect getDeviceClipBounds() const;
|
1127
|
+
|
1128
|
+
/** Returns SkIRect bounds of clip, unaffected by SkMatrix. If clip is empty,
|
1129
|
+
return false, and set bounds to SkRect::MakeEmpty, where all SkRect sides equal zero.
|
1130
|
+
|
1131
|
+
Unlike getLocalClipBounds(), bounds is not outset.
|
1132
|
+
|
1133
|
+
@param bounds SkRect of clip in device coordinates
|
1134
|
+
@return true if clip bounds is not empty
|
1135
|
+
*/
|
1136
|
+
bool getDeviceClipBounds(SkIRect* bounds) const {
|
1137
|
+
*bounds = this->getDeviceClipBounds();
|
1138
|
+
return !bounds->isEmpty();
|
1139
|
+
}
|
1140
|
+
|
1141
|
+
/** Fills clip with color color.
|
1142
|
+
mode determines how ARGB is combined with destination.
|
1143
|
+
|
1144
|
+
@param color unpremultiplied ARGB
|
1145
|
+
@param mode SkBlendMode used to combine source color and destination
|
1146
|
+
|
1147
|
+
example: https://fiddle.skia.org/c/@Canvas_drawColor
|
1148
|
+
*/
|
1149
|
+
void drawColor(SkColor color, SkBlendMode mode = SkBlendMode::kSrcOver) {
|
1150
|
+
this->drawColor(SkColor4f::FromColor(color), mode);
|
1151
|
+
}
|
1152
|
+
|
1153
|
+
/** Fills clip with color color.
|
1154
|
+
mode determines how ARGB is combined with destination.
|
1155
|
+
|
1156
|
+
@param color SkColor4f representing unpremultiplied color.
|
1157
|
+
@param mode SkBlendMode used to combine source color and destination
|
1158
|
+
*/
|
1159
|
+
void drawColor(const SkColor4f& color, SkBlendMode mode = SkBlendMode::kSrcOver);
|
1160
|
+
|
1161
|
+
/** Fills clip with color color using SkBlendMode::kSrc.
|
1162
|
+
This has the effect of replacing all pixels contained by clip with color.
|
1163
|
+
|
1164
|
+
@param color unpremultiplied ARGB
|
1165
|
+
*/
|
1166
|
+
void clear(SkColor color) {
|
1167
|
+
this->clear(SkColor4f::FromColor(color));
|
1168
|
+
}
|
1169
|
+
|
1170
|
+
/** Fills clip with color color using SkBlendMode::kSrc.
|
1171
|
+
This has the effect of replacing all pixels contained by clip with color.
|
1172
|
+
|
1173
|
+
@param color SkColor4f representing unpremultiplied color.
|
1174
|
+
*/
|
1175
|
+
void clear(const SkColor4f& color) {
|
1176
|
+
this->drawColor(color, SkBlendMode::kSrc);
|
1177
|
+
}
|
1178
|
+
|
1179
|
+
/** Makes SkCanvas contents undefined. Subsequent calls that read SkCanvas pixels,
|
1180
|
+
such as drawing with SkBlendMode, return undefined results. discard() does
|
1181
|
+
not change clip or SkMatrix.
|
1182
|
+
|
1183
|
+
discard() may do nothing, depending on the implementation of SkSurface or SkDevice
|
1184
|
+
that created SkCanvas.
|
1185
|
+
|
1186
|
+
discard() allows optimized performance on subsequent draws by removing
|
1187
|
+
cached data associated with SkSurface or SkDevice.
|
1188
|
+
It is not necessary to call discard() once done with SkCanvas;
|
1189
|
+
any cached data is deleted when owning SkSurface or SkDevice is deleted.
|
1190
|
+
*/
|
1191
|
+
void discard() { this->onDiscard(); }
|
1192
|
+
|
1193
|
+
/** Fills clip with SkPaint paint. SkPaint components, SkShader,
|
1194
|
+
SkColorFilter, SkImageFilter, and SkBlendMode affect drawing;
|
1195
|
+
SkMaskFilter and SkPathEffect in paint are ignored.
|
1196
|
+
|
1197
|
+
@param paint graphics state used to fill SkCanvas
|
1198
|
+
|
1199
|
+
example: https://fiddle.skia.org/c/@Canvas_drawPaint
|
1200
|
+
*/
|
1201
|
+
void drawPaint(const SkPaint& paint);
|
1202
|
+
|
1203
|
+
/** \enum SkCanvas::PointMode
|
1204
|
+
Selects if an array of points are drawn as discrete points, as lines, or as
|
1205
|
+
an open polygon.
|
1206
|
+
*/
|
1207
|
+
enum PointMode {
|
1208
|
+
kPoints_PointMode, //!< draw each point separately
|
1209
|
+
kLines_PointMode, //!< draw each pair of points as a line segment
|
1210
|
+
kPolygon_PointMode, //!< draw the array of points as a open polygon
|
1211
|
+
};
|
1212
|
+
|
1213
|
+
/** Draws pts using clip, SkMatrix and SkPaint paint.
|
1214
|
+
count is the number of points; if count is less than one, has no effect.
|
1215
|
+
mode may be one of: kPoints_PointMode, kLines_PointMode, or kPolygon_PointMode.
|
1216
|
+
|
1217
|
+
If mode is kPoints_PointMode, the shape of point drawn depends on paint
|
1218
|
+
SkPaint::Cap. If paint is set to SkPaint::kRound_Cap, each point draws a
|
1219
|
+
circle of diameter SkPaint stroke width. If paint is set to SkPaint::kSquare_Cap
|
1220
|
+
or SkPaint::kButt_Cap, each point draws a square of width and height
|
1221
|
+
SkPaint stroke width.
|
1222
|
+
|
1223
|
+
If mode is kLines_PointMode, each pair of points draws a line segment.
|
1224
|
+
One line is drawn for every two points; each point is used once. If count is odd,
|
1225
|
+
the final point is ignored.
|
1226
|
+
|
1227
|
+
If mode is kPolygon_PointMode, each adjacent pair of points draws a line segment.
|
1228
|
+
count minus one lines are drawn; the first and last point are used once.
|
1229
|
+
|
1230
|
+
Each line segment respects paint SkPaint::Cap and SkPaint stroke width.
|
1231
|
+
SkPaint::Style is ignored, as if were set to SkPaint::kStroke_Style.
|
1232
|
+
|
1233
|
+
Always draws each element one at a time; is not affected by
|
1234
|
+
SkPaint::Join, and unlike drawPath(), does not create a mask from all points
|
1235
|
+
and lines before drawing.
|
1236
|
+
|
1237
|
+
@param mode whether pts draws points or lines
|
1238
|
+
@param count number of points in the array
|
1239
|
+
@param pts array of points to draw
|
1240
|
+
@param paint stroke, blend, color, and so on, used to draw
|
1241
|
+
|
1242
|
+
example: https://fiddle.skia.org/c/@Canvas_drawPoints
|
1243
|
+
*/
|
1244
|
+
void drawPoints(PointMode mode, size_t count, const SkPoint pts[], const SkPaint& paint);
|
1245
|
+
|
1246
|
+
/** Draws point at (x, y) using clip, SkMatrix and SkPaint paint.
|
1247
|
+
|
1248
|
+
The shape of point drawn depends on paint SkPaint::Cap.
|
1249
|
+
If paint is set to SkPaint::kRound_Cap, draw a circle of diameter
|
1250
|
+
SkPaint stroke width. If paint is set to SkPaint::kSquare_Cap or SkPaint::kButt_Cap,
|
1251
|
+
draw a square of width and height SkPaint stroke width.
|
1252
|
+
SkPaint::Style is ignored, as if were set to SkPaint::kStroke_Style.
|
1253
|
+
|
1254
|
+
@param x left edge of circle or square
|
1255
|
+
@param y top edge of circle or square
|
1256
|
+
@param paint stroke, blend, color, and so on, used to draw
|
1257
|
+
|
1258
|
+
example: https://fiddle.skia.org/c/@Canvas_drawPoint
|
1259
|
+
*/
|
1260
|
+
void drawPoint(SkScalar x, SkScalar y, const SkPaint& paint);
|
1261
|
+
|
1262
|
+
/** Draws point p using clip, SkMatrix and SkPaint paint.
|
1263
|
+
|
1264
|
+
The shape of point drawn depends on paint SkPaint::Cap.
|
1265
|
+
If paint is set to SkPaint::kRound_Cap, draw a circle of diameter
|
1266
|
+
SkPaint stroke width. If paint is set to SkPaint::kSquare_Cap or SkPaint::kButt_Cap,
|
1267
|
+
draw a square of width and height SkPaint stroke width.
|
1268
|
+
SkPaint::Style is ignored, as if were set to SkPaint::kStroke_Style.
|
1269
|
+
|
1270
|
+
@param p top-left edge of circle or square
|
1271
|
+
@param paint stroke, blend, color, and so on, used to draw
|
1272
|
+
*/
|
1273
|
+
void drawPoint(SkPoint p, const SkPaint& paint) {
|
1274
|
+
this->drawPoint(p.x(), p.y(), paint);
|
1275
|
+
}
|
1276
|
+
|
1277
|
+
/** Draws line segment from (x0, y0) to (x1, y1) using clip, SkMatrix, and SkPaint paint.
|
1278
|
+
In paint: SkPaint stroke width describes the line thickness;
|
1279
|
+
SkPaint::Cap draws the end rounded or square;
|
1280
|
+
SkPaint::Style is ignored, as if were set to SkPaint::kStroke_Style.
|
1281
|
+
|
1282
|
+
@param x0 start of line segment on x-axis
|
1283
|
+
@param y0 start of line segment on y-axis
|
1284
|
+
@param x1 end of line segment on x-axis
|
1285
|
+
@param y1 end of line segment on y-axis
|
1286
|
+
@param paint stroke, blend, color, and so on, used to draw
|
1287
|
+
|
1288
|
+
example: https://fiddle.skia.org/c/@Canvas_drawLine
|
1289
|
+
*/
|
1290
|
+
void drawLine(SkScalar x0, SkScalar y0, SkScalar x1, SkScalar y1, const SkPaint& paint);
|
1291
|
+
|
1292
|
+
/** Draws line segment from p0 to p1 using clip, SkMatrix, and SkPaint paint.
|
1293
|
+
In paint: SkPaint stroke width describes the line thickness;
|
1294
|
+
SkPaint::Cap draws the end rounded or square;
|
1295
|
+
SkPaint::Style is ignored, as if were set to SkPaint::kStroke_Style.
|
1296
|
+
|
1297
|
+
@param p0 start of line segment
|
1298
|
+
@param p1 end of line segment
|
1299
|
+
@param paint stroke, blend, color, and so on, used to draw
|
1300
|
+
*/
|
1301
|
+
void drawLine(SkPoint p0, SkPoint p1, const SkPaint& paint) {
|
1302
|
+
this->drawLine(p0.x(), p0.y(), p1.x(), p1.y(), paint);
|
1303
|
+
}
|
1304
|
+
|
1305
|
+
/** Draws SkRect rect using clip, SkMatrix, and SkPaint paint.
|
1306
|
+
In paint: SkPaint::Style determines if rectangle is stroked or filled;
|
1307
|
+
if stroked, SkPaint stroke width describes the line thickness, and
|
1308
|
+
SkPaint::Join draws the corners rounded or square.
|
1309
|
+
|
1310
|
+
@param rect rectangle to draw
|
1311
|
+
@param paint stroke or fill, blend, color, and so on, used to draw
|
1312
|
+
|
1313
|
+
example: https://fiddle.skia.org/c/@Canvas_drawRect
|
1314
|
+
*/
|
1315
|
+
void drawRect(const SkRect& rect, const SkPaint& paint);
|
1316
|
+
|
1317
|
+
/** Draws SkIRect rect using clip, SkMatrix, and SkPaint paint.
|
1318
|
+
In paint: SkPaint::Style determines if rectangle is stroked or filled;
|
1319
|
+
if stroked, SkPaint stroke width describes the line thickness, and
|
1320
|
+
SkPaint::Join draws the corners rounded or square.
|
1321
|
+
|
1322
|
+
@param rect rectangle to draw
|
1323
|
+
@param paint stroke or fill, blend, color, and so on, used to draw
|
1324
|
+
*/
|
1325
|
+
void drawIRect(const SkIRect& rect, const SkPaint& paint) {
|
1326
|
+
SkRect r;
|
1327
|
+
r.set(rect); // promotes the ints to scalars
|
1328
|
+
this->drawRect(r, paint);
|
1329
|
+
}
|
1330
|
+
|
1331
|
+
/** Draws SkRegion region using clip, SkMatrix, and SkPaint paint.
|
1332
|
+
In paint: SkPaint::Style determines if rectangle is stroked or filled;
|
1333
|
+
if stroked, SkPaint stroke width describes the line thickness, and
|
1334
|
+
SkPaint::Join draws the corners rounded or square.
|
1335
|
+
|
1336
|
+
@param region region to draw
|
1337
|
+
@param paint SkPaint stroke or fill, blend, color, and so on, used to draw
|
1338
|
+
|
1339
|
+
example: https://fiddle.skia.org/c/@Canvas_drawRegion
|
1340
|
+
*/
|
1341
|
+
void drawRegion(const SkRegion& region, const SkPaint& paint);
|
1342
|
+
|
1343
|
+
/** Draws oval oval using clip, SkMatrix, and SkPaint.
|
1344
|
+
In paint: SkPaint::Style determines if oval is stroked or filled;
|
1345
|
+
if stroked, SkPaint stroke width describes the line thickness.
|
1346
|
+
|
1347
|
+
@param oval SkRect bounds of oval
|
1348
|
+
@param paint SkPaint stroke or fill, blend, color, and so on, used to draw
|
1349
|
+
|
1350
|
+
example: https://fiddle.skia.org/c/@Canvas_drawOval
|
1351
|
+
*/
|
1352
|
+
void drawOval(const SkRect& oval, const SkPaint& paint);
|
1353
|
+
|
1354
|
+
/** Draws SkRRect rrect using clip, SkMatrix, and SkPaint paint.
|
1355
|
+
In paint: SkPaint::Style determines if rrect is stroked or filled;
|
1356
|
+
if stroked, SkPaint stroke width describes the line thickness.
|
1357
|
+
|
1358
|
+
rrect may represent a rectangle, circle, oval, uniformly rounded rectangle, or
|
1359
|
+
may have any combination of positive non-square radii for the four corners.
|
1360
|
+
|
1361
|
+
@param rrect SkRRect with up to eight corner radii to draw
|
1362
|
+
@param paint SkPaint stroke or fill, blend, color, and so on, used to draw
|
1363
|
+
|
1364
|
+
example: https://fiddle.skia.org/c/@Canvas_drawRRect
|
1365
|
+
*/
|
1366
|
+
void drawRRect(const SkRRect& rrect, const SkPaint& paint);
|
1367
|
+
|
1368
|
+
/** Draws SkRRect outer and inner
|
1369
|
+
using clip, SkMatrix, and SkPaint paint.
|
1370
|
+
outer must contain inner or the drawing is undefined.
|
1371
|
+
In paint: SkPaint::Style determines if SkRRect is stroked or filled;
|
1372
|
+
if stroked, SkPaint stroke width describes the line thickness.
|
1373
|
+
If stroked and SkRRect corner has zero length radii, SkPaint::Join can
|
1374
|
+
draw corners rounded or square.
|
1375
|
+
|
1376
|
+
GPU-backed platforms optimize drawing when both outer and inner are
|
1377
|
+
concave and outer contains inner. These platforms may not be able to draw
|
1378
|
+
SkPath built with identical data as fast.
|
1379
|
+
|
1380
|
+
@param outer SkRRect outer bounds to draw
|
1381
|
+
@param inner SkRRect inner bounds to draw
|
1382
|
+
@param paint SkPaint stroke or fill, blend, color, and so on, used to draw
|
1383
|
+
|
1384
|
+
example: https://fiddle.skia.org/c/@Canvas_drawDRRect_a
|
1385
|
+
example: https://fiddle.skia.org/c/@Canvas_drawDRRect_b
|
1386
|
+
*/
|
1387
|
+
void drawDRRect(const SkRRect& outer, const SkRRect& inner, const SkPaint& paint);
|
1388
|
+
|
1389
|
+
/** Draws circle at (cx, cy) with radius using clip, SkMatrix, and SkPaint paint.
|
1390
|
+
If radius is zero or less, nothing is drawn.
|
1391
|
+
In paint: SkPaint::Style determines if circle is stroked or filled;
|
1392
|
+
if stroked, SkPaint stroke width describes the line thickness.
|
1393
|
+
|
1394
|
+
@param cx circle center on the x-axis
|
1395
|
+
@param cy circle center on the y-axis
|
1396
|
+
@param radius half the diameter of circle
|
1397
|
+
@param paint SkPaint stroke or fill, blend, color, and so on, used to draw
|
1398
|
+
|
1399
|
+
example: https://fiddle.skia.org/c/@Canvas_drawCircle
|
1400
|
+
*/
|
1401
|
+
void drawCircle(SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint& paint);
|
1402
|
+
|
1403
|
+
/** Draws circle at center with radius using clip, SkMatrix, and SkPaint paint.
|
1404
|
+
If radius is zero or less, nothing is drawn.
|
1405
|
+
In paint: SkPaint::Style determines if circle is stroked or filled;
|
1406
|
+
if stroked, SkPaint stroke width describes the line thickness.
|
1407
|
+
|
1408
|
+
@param center circle center
|
1409
|
+
@param radius half the diameter of circle
|
1410
|
+
@param paint SkPaint stroke or fill, blend, color, and so on, used to draw
|
1411
|
+
*/
|
1412
|
+
void drawCircle(SkPoint center, SkScalar radius, const SkPaint& paint) {
|
1413
|
+
this->drawCircle(center.x(), center.y(), radius, paint);
|
1414
|
+
}
|
1415
|
+
|
1416
|
+
/** Draws arc using clip, SkMatrix, and SkPaint paint.
|
1417
|
+
|
1418
|
+
Arc is part of oval bounded by oval, sweeping from startAngle to startAngle plus
|
1419
|
+
sweepAngle. startAngle and sweepAngle are in degrees.
|
1420
|
+
|
1421
|
+
startAngle of zero places start point at the right middle edge of oval.
|
1422
|
+
A positive sweepAngle places arc end point clockwise from start point;
|
1423
|
+
a negative sweepAngle places arc end point counterclockwise from start point.
|
1424
|
+
sweepAngle may exceed 360 degrees, a full circle.
|
1425
|
+
If useCenter is true, draw a wedge that includes lines from oval
|
1426
|
+
center to arc end points. If useCenter is false, draw arc between end points.
|
1427
|
+
|
1428
|
+
If SkRect oval is empty or sweepAngle is zero, nothing is drawn.
|
1429
|
+
|
1430
|
+
@param oval SkRect bounds of oval containing arc to draw
|
1431
|
+
@param startAngle angle in degrees where arc begins
|
1432
|
+
@param sweepAngle sweep angle in degrees; positive is clockwise
|
1433
|
+
@param useCenter if true, include the center of the oval
|
1434
|
+
@param paint SkPaint stroke or fill, blend, color, and so on, used to draw
|
1435
|
+
*/
|
1436
|
+
void drawArc(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle,
|
1437
|
+
bool useCenter, const SkPaint& paint);
|
1438
|
+
|
1439
|
+
/** Draws SkRRect bounded by SkRect rect, with corner radii (rx, ry) using clip,
|
1440
|
+
SkMatrix, and SkPaint paint.
|
1441
|
+
|
1442
|
+
In paint: SkPaint::Style determines if SkRRect is stroked or filled;
|
1443
|
+
if stroked, SkPaint stroke width describes the line thickness.
|
1444
|
+
If rx or ry are less than zero, they are treated as if they are zero.
|
1445
|
+
If rx plus ry exceeds rect width or rect height, radii are scaled down to fit.
|
1446
|
+
If rx and ry are zero, SkRRect is drawn as SkRect and if stroked is affected by
|
1447
|
+
SkPaint::Join.
|
1448
|
+
|
1449
|
+
@param rect SkRect bounds of SkRRect to draw
|
1450
|
+
@param rx axis length on x-axis of oval describing rounded corners
|
1451
|
+
@param ry axis length on y-axis of oval describing rounded corners
|
1452
|
+
@param paint stroke, blend, color, and so on, used to draw
|
1453
|
+
|
1454
|
+
example: https://fiddle.skia.org/c/@Canvas_drawRoundRect
|
1455
|
+
*/
|
1456
|
+
void drawRoundRect(const SkRect& rect, SkScalar rx, SkScalar ry, const SkPaint& paint);
|
1457
|
+
|
1458
|
+
/** Draws SkPath path using clip, SkMatrix, and SkPaint paint.
|
1459
|
+
SkPath contains an array of path contour, each of which may be open or closed.
|
1460
|
+
|
1461
|
+
In paint: SkPaint::Style determines if SkRRect is stroked or filled:
|
1462
|
+
if filled, SkPath::FillType determines whether path contour describes inside or
|
1463
|
+
outside of fill; if stroked, SkPaint stroke width describes the line thickness,
|
1464
|
+
SkPaint::Cap describes line ends, and SkPaint::Join describes how
|
1465
|
+
corners are drawn.
|
1466
|
+
|
1467
|
+
@param path SkPath to draw
|
1468
|
+
@param paint stroke, blend, color, and so on, used to draw
|
1469
|
+
|
1470
|
+
example: https://fiddle.skia.org/c/@Canvas_drawPath
|
1471
|
+
*/
|
1472
|
+
void drawPath(const SkPath& path, const SkPaint& paint);
|
1473
|
+
|
1474
|
+
void drawImage(const SkImage* image, SkScalar left, SkScalar top) {
|
1475
|
+
this->drawImage(image, left, top, SkSamplingOptions(), nullptr);
|
1476
|
+
}
|
1477
|
+
void drawImage(const sk_sp<SkImage>& image, SkScalar left, SkScalar top) {
|
1478
|
+
this->drawImage(image.get(), left, top, SkSamplingOptions(), nullptr);
|
1479
|
+
}
|
1480
|
+
|
1481
|
+
/** \enum SkCanvas::SrcRectConstraint
|
1482
|
+
SrcRectConstraint controls the behavior at the edge of source SkRect,
|
1483
|
+
provided to drawImageRect() when there is any filtering. If kStrict is set,
|
1484
|
+
then extra code is used to ensure it never samples outside of the src-rect.
|
1485
|
+
kStrict_SrcRectConstraint disables the use of mipmaps and anisotropic filtering.
|
1486
|
+
*/
|
1487
|
+
enum SrcRectConstraint {
|
1488
|
+
kStrict_SrcRectConstraint, //!< sample only inside bounds; slower
|
1489
|
+
kFast_SrcRectConstraint, //!< sample outside bounds; faster
|
1490
|
+
};
|
1491
|
+
|
1492
|
+
void drawImage(const SkImage*, SkScalar x, SkScalar y, const SkSamplingOptions&,
|
1493
|
+
const SkPaint* = nullptr);
|
1494
|
+
void drawImage(const sk_sp<SkImage>& image, SkScalar x, SkScalar y,
|
1495
|
+
const SkSamplingOptions& sampling, const SkPaint* paint = nullptr) {
|
1496
|
+
this->drawImage(image.get(), x, y, sampling, paint);
|
1497
|
+
}
|
1498
|
+
void drawImageRect(const SkImage*, const SkRect& src, const SkRect& dst,
|
1499
|
+
const SkSamplingOptions&, const SkPaint*, SrcRectConstraint);
|
1500
|
+
void drawImageRect(const SkImage*, const SkRect& dst, const SkSamplingOptions&,
|
1501
|
+
const SkPaint* = nullptr);
|
1502
|
+
void drawImageRect(const sk_sp<SkImage>& image, const SkRect& src, const SkRect& dst,
|
1503
|
+
const SkSamplingOptions& sampling, const SkPaint* paint,
|
1504
|
+
SrcRectConstraint constraint) {
|
1505
|
+
this->drawImageRect(image.get(), src, dst, sampling, paint, constraint);
|
1506
|
+
}
|
1507
|
+
void drawImageRect(const sk_sp<SkImage>& image, const SkRect& dst,
|
1508
|
+
const SkSamplingOptions& sampling, const SkPaint* paint = nullptr) {
|
1509
|
+
this->drawImageRect(image.get(), dst, sampling, paint);
|
1510
|
+
}
|
1511
|
+
|
1512
|
+
/** Draws SkImage image stretched proportionally to fit into SkRect dst.
|
1513
|
+
SkIRect center divides the image into nine sections: four sides, four corners, and
|
1514
|
+
the center. Corners are unmodified or scaled down proportionately if their sides
|
1515
|
+
are larger than dst; center and four sides are scaled to fit remaining space, if any.
|
1516
|
+
|
1517
|
+
Additionally transform draw using clip, SkMatrix, and optional SkPaint paint.
|
1518
|
+
|
1519
|
+
If SkPaint paint is supplied, apply SkColorFilter, alpha, SkImageFilter, and
|
1520
|
+
SkBlendMode. If image is kAlpha_8_SkColorType, apply SkShader.
|
1521
|
+
If paint contains SkMaskFilter, generate mask from image bounds.
|
1522
|
+
Any SkMaskFilter on paint is ignored as is paint anti-aliasing state.
|
1523
|
+
|
1524
|
+
If generated mask extends beyond image bounds, replicate image edge colors, just
|
1525
|
+
as SkShader made from SkImage::makeShader with SkShader::kClamp_TileMode set
|
1526
|
+
replicates the image edge color when it samples outside of its bounds.
|
1527
|
+
|
1528
|
+
@param image SkImage containing pixels, dimensions, and format
|
1529
|
+
@param center SkIRect edge of image corners and sides
|
1530
|
+
@param dst destination SkRect of image to draw to
|
1531
|
+
@param filter what technique to use when sampling the image
|
1532
|
+
@param paint SkPaint containing SkBlendMode, SkColorFilter, SkImageFilter,
|
1533
|
+
and so on; or nullptr
|
1534
|
+
*/
|
1535
|
+
void drawImageNine(const SkImage* image, const SkIRect& center, const SkRect& dst,
|
1536
|
+
SkFilterMode filter, const SkPaint* paint = nullptr);
|
1537
|
+
|
1538
|
+
/** \struct SkCanvas::Lattice
|
1539
|
+
SkCanvas::Lattice divides SkBitmap or SkImage into a rectangular grid.
|
1540
|
+
Grid entries on even columns and even rows are fixed; these entries are
|
1541
|
+
always drawn at their original size if the destination is large enough.
|
1542
|
+
If the destination side is too small to hold the fixed entries, all fixed
|
1543
|
+
entries are proportionately scaled down to fit.
|
1544
|
+
The grid entries not on even columns and rows are scaled to fit the
|
1545
|
+
remaining space, if any.
|
1546
|
+
*/
|
1547
|
+
struct Lattice {
|
1548
|
+
|
1549
|
+
/** \enum SkCanvas::Lattice::RectType
|
1550
|
+
Optional setting per rectangular grid entry to make it transparent,
|
1551
|
+
or to fill the grid entry with a color.
|
1552
|
+
*/
|
1553
|
+
enum RectType : uint8_t {
|
1554
|
+
kDefault = 0, //!< draws SkBitmap into lattice rectangle
|
1555
|
+
kTransparent, //!< skips lattice rectangle by making it transparent
|
1556
|
+
kFixedColor, //!< draws one of fColors into lattice rectangle
|
1557
|
+
};
|
1558
|
+
|
1559
|
+
const int* fXDivs; //!< x-axis values dividing bitmap
|
1560
|
+
const int* fYDivs; //!< y-axis values dividing bitmap
|
1561
|
+
const RectType* fRectTypes; //!< array of fill types
|
1562
|
+
int fXCount; //!< number of x-coordinates
|
1563
|
+
int fYCount; //!< number of y-coordinates
|
1564
|
+
const SkIRect* fBounds; //!< source bounds to draw from
|
1565
|
+
const SkColor* fColors; //!< array of colors
|
1566
|
+
};
|
1567
|
+
|
1568
|
+
/** Draws SkImage image stretched proportionally to fit into SkRect dst.
|
1569
|
+
|
1570
|
+
SkCanvas::Lattice lattice divides image into a rectangular grid.
|
1571
|
+
Each intersection of an even-numbered row and column is fixed;
|
1572
|
+
fixed lattice elements never scale larger than their initial
|
1573
|
+
size and shrink proportionately when all fixed elements exceed the bitmap
|
1574
|
+
dimension. All other grid elements scale to fill the available space, if any.
|
1575
|
+
|
1576
|
+
Additionally transform draw using clip, SkMatrix, and optional SkPaint paint.
|
1577
|
+
|
1578
|
+
If SkPaint paint is supplied, apply SkColorFilter, alpha, SkImageFilter, and
|
1579
|
+
SkBlendMode. If image is kAlpha_8_SkColorType, apply SkShader.
|
1580
|
+
If paint contains SkMaskFilter, generate mask from image bounds.
|
1581
|
+
Any SkMaskFilter on paint is ignored as is paint anti-aliasing state.
|
1582
|
+
|
1583
|
+
If generated mask extends beyond bitmap bounds, replicate bitmap edge colors,
|
1584
|
+
just as SkShader made from SkShader::MakeBitmapShader with
|
1585
|
+
SkShader::kClamp_TileMode set replicates the bitmap edge color when it samples
|
1586
|
+
outside of its bounds.
|
1587
|
+
|
1588
|
+
@param image SkImage containing pixels, dimensions, and format
|
1589
|
+
@param lattice division of bitmap into fixed and variable rectangles
|
1590
|
+
@param dst destination SkRect of image to draw to
|
1591
|
+
@param filter what technique to use when sampling the image
|
1592
|
+
@param paint SkPaint containing SkBlendMode, SkColorFilter, SkImageFilter,
|
1593
|
+
and so on; or nullptr
|
1594
|
+
*/
|
1595
|
+
void drawImageLattice(const SkImage* image, const Lattice& lattice, const SkRect& dst,
|
1596
|
+
SkFilterMode filter, const SkPaint* paint = nullptr);
|
1597
|
+
void drawImageLattice(const SkImage* image, const Lattice& lattice, const SkRect& dst) {
|
1598
|
+
this->drawImageLattice(image, lattice, dst, SkFilterMode::kNearest, nullptr);
|
1599
|
+
}
|
1600
|
+
|
1601
|
+
/**
|
1602
|
+
* Experimental. Controls anti-aliasing of each edge of images in an image-set.
|
1603
|
+
*/
|
1604
|
+
enum QuadAAFlags : unsigned {
|
1605
|
+
kLeft_QuadAAFlag = 0b0001,
|
1606
|
+
kTop_QuadAAFlag = 0b0010,
|
1607
|
+
kRight_QuadAAFlag = 0b0100,
|
1608
|
+
kBottom_QuadAAFlag = 0b1000,
|
1609
|
+
|
1610
|
+
kNone_QuadAAFlags = 0b0000,
|
1611
|
+
kAll_QuadAAFlags = 0b1111,
|
1612
|
+
};
|
1613
|
+
|
1614
|
+
/** This is used by the experimental API below. */
|
1615
|
+
struct SK_API ImageSetEntry {
|
1616
|
+
ImageSetEntry(sk_sp<const SkImage> image, const SkRect& srcRect, const SkRect& dstRect,
|
1617
|
+
int matrixIndex, float alpha, unsigned aaFlags, bool hasClip);
|
1618
|
+
|
1619
|
+
ImageSetEntry(sk_sp<const SkImage> image, const SkRect& srcRect, const SkRect& dstRect,
|
1620
|
+
float alpha, unsigned aaFlags);
|
1621
|
+
|
1622
|
+
ImageSetEntry();
|
1623
|
+
~ImageSetEntry();
|
1624
|
+
ImageSetEntry(const ImageSetEntry&);
|
1625
|
+
ImageSetEntry& operator=(const ImageSetEntry&);
|
1626
|
+
|
1627
|
+
sk_sp<const SkImage> fImage;
|
1628
|
+
SkRect fSrcRect;
|
1629
|
+
SkRect fDstRect;
|
1630
|
+
int fMatrixIndex = -1; // Index into the preViewMatrices arg, or < 0
|
1631
|
+
float fAlpha = 1.f;
|
1632
|
+
unsigned fAAFlags = kNone_QuadAAFlags; // QuadAAFlags
|
1633
|
+
bool fHasClip = false; // True to use next 4 points in dstClip arg as quad
|
1634
|
+
};
|
1635
|
+
|
1636
|
+
/**
|
1637
|
+
* This is an experimental API for the SkiaRenderer Chromium project, and its API will surely
|
1638
|
+
* evolve if it is not removed outright.
|
1639
|
+
*
|
1640
|
+
* This behaves very similarly to drawRect() combined with a clipPath() formed by clip
|
1641
|
+
* quadrilateral. 'rect' and 'clip' are in the same coordinate space. If 'clip' is null, then it
|
1642
|
+
* is as if the rectangle was not clipped (or, alternatively, clipped to itself). If not null,
|
1643
|
+
* then it must provide 4 points.
|
1644
|
+
*
|
1645
|
+
* In addition to combining the draw and clipping into one operation, this function adds the
|
1646
|
+
* additional capability of controlling each of the rectangle's edges anti-aliasing
|
1647
|
+
* independently. The edges of the clip will respect the per-edge AA flags. It is required that
|
1648
|
+
* 'clip' be contained inside 'rect'. In terms of mapping to edge labels, the 'clip' points
|
1649
|
+
* should be ordered top-left, top-right, bottom-right, bottom-left so that the edge between [0]
|
1650
|
+
* and [1] is "top", [1] and [2] is "right", [2] and [3] is "bottom", and [3] and [0] is "left".
|
1651
|
+
* This ordering matches SkRect::toQuad().
|
1652
|
+
*
|
1653
|
+
* This API only draws solid color, filled rectangles so it does not accept a full SkPaint.
|
1654
|
+
*/
|
1655
|
+
void experimental_DrawEdgeAAQuad(const SkRect& rect, const SkPoint clip[4], QuadAAFlags aaFlags,
|
1656
|
+
const SkColor4f& color, SkBlendMode mode);
|
1657
|
+
void experimental_DrawEdgeAAQuad(const SkRect& rect, const SkPoint clip[4], QuadAAFlags aaFlags,
|
1658
|
+
SkColor color, SkBlendMode mode) {
|
1659
|
+
this->experimental_DrawEdgeAAQuad(rect, clip, aaFlags, SkColor4f::FromColor(color), mode);
|
1660
|
+
}
|
1661
|
+
|
1662
|
+
/**
|
1663
|
+
* This is an bulk variant of experimental_DrawEdgeAAQuad() that renders 'cnt' textured quads.
|
1664
|
+
* For each entry, 'fDstRect' is rendered with its clip (determined by entry's 'fHasClip' and
|
1665
|
+
* the current index in 'dstClip'). The entry's fImage is applied to the destination rectangle
|
1666
|
+
* by sampling from 'fSrcRect' sub-image. The corners of 'fSrcRect' map to the corners of
|
1667
|
+
* 'fDstRect', just like in drawImageRect(), and they will be properly interpolated when
|
1668
|
+
* applying a clip.
|
1669
|
+
*
|
1670
|
+
* Like experimental_DrawEdgeAAQuad(), each entry can specify edge AA flags that apply to both
|
1671
|
+
* the destination rect and its clip.
|
1672
|
+
*
|
1673
|
+
* If provided, the 'dstClips' array must have length equal 4 * the number of entries with
|
1674
|
+
* fHasClip true. If 'dstClips' is null, every entry must have 'fHasClip' set to false. The
|
1675
|
+
* destination clip coordinates will be read consecutively with the image set entries, advancing
|
1676
|
+
* by 4 points every time an entry with fHasClip is passed.
|
1677
|
+
*
|
1678
|
+
* This entry point supports per-entry manipulations to the canvas's current matrix. If an
|
1679
|
+
* entry provides 'fMatrixIndex' >= 0, it will be drawn as if the canvas's CTM was
|
1680
|
+
* canvas->getTotalMatrix() * preViewMatrices[fMatrixIndex]. If 'fMatrixIndex' is less than 0,
|
1681
|
+
* the pre-view matrix transform is implicitly the identity, so it will be drawn using just the
|
1682
|
+
* current canvas matrix. The pre-view matrix modifies the canvas's view matrix, it does not
|
1683
|
+
* affect the local coordinates of each entry.
|
1684
|
+
*
|
1685
|
+
* An optional paint may be provided, which supports the same subset of features usable with
|
1686
|
+
* drawImageRect (i.e. assumed to be filled and no path effects). When a paint is provided, the
|
1687
|
+
* image set is drawn as if each image used the applied paint independently, so each is affected
|
1688
|
+
* by the image, color, and/or mask filter.
|
1689
|
+
*/
|
1690
|
+
void experimental_DrawEdgeAAImageSet(const ImageSetEntry imageSet[], int cnt,
|
1691
|
+
const SkPoint dstClips[], const SkMatrix preViewMatrices[],
|
1692
|
+
const SkSamplingOptions&, const SkPaint* paint = nullptr,
|
1693
|
+
SrcRectConstraint constraint = kStrict_SrcRectConstraint);
|
1694
|
+
|
1695
|
+
/** Draws text, with origin at (x, y), using clip, SkMatrix, SkFont font,
|
1696
|
+
and SkPaint paint.
|
1697
|
+
|
1698
|
+
When encoding is SkTextEncoding::kUTF8, SkTextEncoding::kUTF16, or
|
1699
|
+
SkTextEncoding::kUTF32, this function uses the default
|
1700
|
+
character-to-glyph mapping from the SkTypeface in font. It does not
|
1701
|
+
perform typeface fallback for characters not found in the SkTypeface.
|
1702
|
+
It does not perform kerning or other complex shaping; glyphs are
|
1703
|
+
positioned based on their default advances.
|
1704
|
+
|
1705
|
+
Text meaning depends on SkTextEncoding.
|
1706
|
+
|
1707
|
+
Text size is affected by SkMatrix and SkFont text size. Default text
|
1708
|
+
size is 12 point.
|
1709
|
+
|
1710
|
+
All elements of paint: SkPathEffect, SkMaskFilter, SkShader,
|
1711
|
+
SkColorFilter, and SkImageFilter; apply to text. By
|
1712
|
+
default, draws filled black glyphs.
|
1713
|
+
|
1714
|
+
@param text character code points or glyphs drawn
|
1715
|
+
@param byteLength byte length of text array
|
1716
|
+
@param encoding text encoding used in the text array
|
1717
|
+
@param x start of text on x-axis
|
1718
|
+
@param y start of text on y-axis
|
1719
|
+
@param font typeface, text size and so, used to describe the text
|
1720
|
+
@param paint blend, color, and so on, used to draw
|
1721
|
+
*/
|
1722
|
+
void drawSimpleText(const void* text, size_t byteLength, SkTextEncoding encoding,
|
1723
|
+
SkScalar x, SkScalar y, const SkFont& font, const SkPaint& paint);
|
1724
|
+
|
1725
|
+
/** Draws null terminated string, with origin at (x, y), using clip, SkMatrix,
|
1726
|
+
SkFont font, and SkPaint paint.
|
1727
|
+
|
1728
|
+
This function uses the default character-to-glyph mapping from the
|
1729
|
+
SkTypeface in font. It does not perform typeface fallback for
|
1730
|
+
characters not found in the SkTypeface. It does not perform kerning;
|
1731
|
+
glyphs are positioned based on their default advances.
|
1732
|
+
|
1733
|
+
String str is encoded as UTF-8.
|
1734
|
+
|
1735
|
+
Text size is affected by SkMatrix and font text size. Default text
|
1736
|
+
size is 12 point.
|
1737
|
+
|
1738
|
+
All elements of paint: SkPathEffect, SkMaskFilter, SkShader,
|
1739
|
+
SkColorFilter, and SkImageFilter; apply to text. By
|
1740
|
+
default, draws filled black glyphs.
|
1741
|
+
|
1742
|
+
@param str character code points drawn,
|
1743
|
+
ending with a char value of zero
|
1744
|
+
@param x start of string on x-axis
|
1745
|
+
@param y start of string on y-axis
|
1746
|
+
@param font typeface, text size and so, used to describe the text
|
1747
|
+
@param paint blend, color, and so on, used to draw
|
1748
|
+
*/
|
1749
|
+
void drawString(const char str[], SkScalar x, SkScalar y, const SkFont& font,
|
1750
|
+
const SkPaint& paint) {
|
1751
|
+
this->drawSimpleText(str, strlen(str), SkTextEncoding::kUTF8, x, y, font, paint);
|
1752
|
+
}
|
1753
|
+
|
1754
|
+
/** Draws SkString, with origin at (x, y), using clip, SkMatrix, SkFont font,
|
1755
|
+
and SkPaint paint.
|
1756
|
+
|
1757
|
+
This function uses the default character-to-glyph mapping from the
|
1758
|
+
SkTypeface in font. It does not perform typeface fallback for
|
1759
|
+
characters not found in the SkTypeface. It does not perform kerning;
|
1760
|
+
glyphs are positioned based on their default advances.
|
1761
|
+
|
1762
|
+
SkString str is encoded as UTF-8.
|
1763
|
+
|
1764
|
+
Text size is affected by SkMatrix and SkFont text size. Default text
|
1765
|
+
size is 12 point.
|
1766
|
+
|
1767
|
+
All elements of paint: SkPathEffect, SkMaskFilter, SkShader,
|
1768
|
+
SkColorFilter, and SkImageFilter; apply to text. By
|
1769
|
+
default, draws filled black glyphs.
|
1770
|
+
|
1771
|
+
@param str character code points drawn,
|
1772
|
+
ending with a char value of zero
|
1773
|
+
@param x start of string on x-axis
|
1774
|
+
@param y start of string on y-axis
|
1775
|
+
@param font typeface, text size and so, used to describe the text
|
1776
|
+
@param paint blend, color, and so on, used to draw
|
1777
|
+
*/
|
1778
|
+
void drawString(const SkString& str, SkScalar x, SkScalar y, const SkFont& font,
|
1779
|
+
const SkPaint& paint) {
|
1780
|
+
this->drawSimpleText(str.c_str(), str.size(), SkTextEncoding::kUTF8, x, y, font, paint);
|
1781
|
+
}
|
1782
|
+
|
1783
|
+
/** Draws count glyphs, at positions relative to origin styled with font and paint with
|
1784
|
+
supporting utf8 and cluster information.
|
1785
|
+
|
1786
|
+
This function draw glyphs at the given positions relative to the given origin.
|
1787
|
+
It does not perform typeface fallback for glyphs not found in the SkTypeface in font.
|
1788
|
+
|
1789
|
+
The drawing obeys the current transform matrix and clipping.
|
1790
|
+
|
1791
|
+
All elements of paint: SkPathEffect, SkMaskFilter, SkShader,
|
1792
|
+
SkColorFilter, and SkImageFilter; apply to text. By
|
1793
|
+
default, draws filled black glyphs.
|
1794
|
+
|
1795
|
+
@param count number of glyphs to draw
|
1796
|
+
@param glyphs the array of glyphIDs to draw
|
1797
|
+
@param positions where to draw each glyph relative to origin
|
1798
|
+
@param clusters array of size count of cluster information
|
1799
|
+
@param textByteCount size of the utf8text
|
1800
|
+
@param utf8text utf8text supporting information for the glyphs
|
1801
|
+
@param origin the origin of all the positions
|
1802
|
+
@param font typeface, text size and so, used to describe the text
|
1803
|
+
@param paint blend, color, and so on, used to draw
|
1804
|
+
*/
|
1805
|
+
void drawGlyphs(int count, const SkGlyphID glyphs[], const SkPoint positions[],
|
1806
|
+
const uint32_t clusters[], int textByteCount, const char utf8text[],
|
1807
|
+
SkPoint origin, const SkFont& font, const SkPaint& paint);
|
1808
|
+
|
1809
|
+
/** Draws count glyphs, at positions relative to origin styled with font and paint.
|
1810
|
+
|
1811
|
+
This function draw glyphs at the given positions relative to the given origin.
|
1812
|
+
It does not perform typeface fallback for glyphs not found in the SkTypeface in font.
|
1813
|
+
|
1814
|
+
The drawing obeys the current transform matrix and clipping.
|
1815
|
+
|
1816
|
+
All elements of paint: SkPathEffect, SkMaskFilter, SkShader,
|
1817
|
+
SkColorFilter, and SkImageFilter; apply to text. By
|
1818
|
+
default, draws filled black glyphs.
|
1819
|
+
|
1820
|
+
@param count number of glyphs to draw
|
1821
|
+
@param glyphs the array of glyphIDs to draw
|
1822
|
+
@param positions where to draw each glyph relative to origin
|
1823
|
+
@param origin the origin of all the positions
|
1824
|
+
@param font typeface, text size and so, used to describe the text
|
1825
|
+
@param paint blend, color, and so on, used to draw
|
1826
|
+
*/
|
1827
|
+
void drawGlyphs(int count, const SkGlyphID glyphs[], const SkPoint positions[],
|
1828
|
+
SkPoint origin, const SkFont& font, const SkPaint& paint);
|
1829
|
+
|
1830
|
+
/** Draws count glyphs, at positions relative to origin styled with font and paint.
|
1831
|
+
|
1832
|
+
This function draw glyphs using the given scaling and rotations. They are positioned
|
1833
|
+
relative to the given origin. It does not perform typeface fallback for glyphs not found
|
1834
|
+
in the SkTypeface in font.
|
1835
|
+
|
1836
|
+
The drawing obeys the current transform matrix and clipping.
|
1837
|
+
|
1838
|
+
All elements of paint: SkPathEffect, SkMaskFilter, SkShader,
|
1839
|
+
SkColorFilter, and SkImageFilter; apply to text. By
|
1840
|
+
default, draws filled black glyphs.
|
1841
|
+
|
1842
|
+
@param count number of glyphs to draw
|
1843
|
+
@param glyphs the array of glyphIDs to draw
|
1844
|
+
@param xforms where to draw and orient each glyph
|
1845
|
+
@param origin the origin of all the positions
|
1846
|
+
@param font typeface, text size and so, used to describe the text
|
1847
|
+
@param paint blend, color, and so on, used to draw
|
1848
|
+
*/
|
1849
|
+
void drawGlyphs(int count, const SkGlyphID glyphs[], const SkRSXform xforms[],
|
1850
|
+
SkPoint origin, const SkFont& font, const SkPaint& paint);
|
1851
|
+
|
1852
|
+
/** Draws SkTextBlob blob at (x, y), using clip, SkMatrix, and SkPaint paint.
|
1853
|
+
|
1854
|
+
blob contains glyphs, their positions, and paint attributes specific to text:
|
1855
|
+
SkTypeface, SkPaint text size, SkPaint text scale x,
|
1856
|
+
SkPaint text skew x, SkPaint::Align, SkPaint::Hinting, anti-alias, SkPaint fake bold,
|
1857
|
+
SkPaint font embedded bitmaps, SkPaint full hinting spacing, LCD text, SkPaint linear text,
|
1858
|
+
and SkPaint subpixel text.
|
1859
|
+
|
1860
|
+
SkTextEncoding must be set to SkTextEncoding::kGlyphID.
|
1861
|
+
|
1862
|
+
Elements of paint: anti-alias, SkBlendMode, color including alpha,
|
1863
|
+
SkColorFilter, SkPaint dither, SkMaskFilter, SkPathEffect, SkShader, and
|
1864
|
+
SkPaint::Style; apply to blob. If SkPaint contains SkPaint::kStroke_Style:
|
1865
|
+
SkPaint miter limit, SkPaint::Cap, SkPaint::Join, and SkPaint stroke width;
|
1866
|
+
apply to SkPath created from blob.
|
1867
|
+
|
1868
|
+
@param blob glyphs, positions, and their paints' text size, typeface, and so on
|
1869
|
+
@param x horizontal offset applied to blob
|
1870
|
+
@param y vertical offset applied to blob
|
1871
|
+
@param paint blend, color, stroking, and so on, used to draw
|
1872
|
+
|
1873
|
+
example: https://fiddle.skia.org/c/@Canvas_drawTextBlob
|
1874
|
+
*/
|
1875
|
+
void drawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, const SkPaint& paint);
|
1876
|
+
|
1877
|
+
/** Draws SkTextBlob blob at (x, y), using clip, SkMatrix, and SkPaint paint.
|
1878
|
+
|
1879
|
+
blob contains glyphs, their positions, and paint attributes specific to text:
|
1880
|
+
SkTypeface, SkPaint text size, SkPaint text scale x,
|
1881
|
+
SkPaint text skew x, SkPaint::Align, SkPaint::Hinting, anti-alias, SkPaint fake bold,
|
1882
|
+
SkPaint font embedded bitmaps, SkPaint full hinting spacing, LCD text, SkPaint linear text,
|
1883
|
+
and SkPaint subpixel text.
|
1884
|
+
|
1885
|
+
SkTextEncoding must be set to SkTextEncoding::kGlyphID.
|
1886
|
+
|
1887
|
+
Elements of paint: SkPathEffect, SkMaskFilter, SkShader, SkColorFilter,
|
1888
|
+
and SkImageFilter; apply to blob.
|
1889
|
+
|
1890
|
+
@param blob glyphs, positions, and their paints' text size, typeface, and so on
|
1891
|
+
@param x horizontal offset applied to blob
|
1892
|
+
@param y vertical offset applied to blob
|
1893
|
+
@param paint blend, color, stroking, and so on, used to draw
|
1894
|
+
*/
|
1895
|
+
void drawTextBlob(const sk_sp<SkTextBlob>& blob, SkScalar x, SkScalar y, const SkPaint& paint) {
|
1896
|
+
this->drawTextBlob(blob.get(), x, y, paint);
|
1897
|
+
}
|
1898
|
+
|
1899
|
+
/** Draws SkPicture picture, using clip and SkMatrix.
|
1900
|
+
Clip and SkMatrix are unchanged by picture contents, as if
|
1901
|
+
save() was called before and restore() was called after drawPicture().
|
1902
|
+
|
1903
|
+
SkPicture records a series of draw commands for later playback.
|
1904
|
+
|
1905
|
+
@param picture recorded drawing commands to play
|
1906
|
+
*/
|
1907
|
+
void drawPicture(const SkPicture* picture) {
|
1908
|
+
this->drawPicture(picture, nullptr, nullptr);
|
1909
|
+
}
|
1910
|
+
|
1911
|
+
/** Draws SkPicture picture, using clip and SkMatrix.
|
1912
|
+
Clip and SkMatrix are unchanged by picture contents, as if
|
1913
|
+
save() was called before and restore() was called after drawPicture().
|
1914
|
+
|
1915
|
+
SkPicture records a series of draw commands for later playback.
|
1916
|
+
|
1917
|
+
@param picture recorded drawing commands to play
|
1918
|
+
*/
|
1919
|
+
void drawPicture(const sk_sp<SkPicture>& picture) {
|
1920
|
+
this->drawPicture(picture.get());
|
1921
|
+
}
|
1922
|
+
|
1923
|
+
/** Draws SkPicture picture, using clip and SkMatrix; transforming picture with
|
1924
|
+
SkMatrix matrix, if provided; and use SkPaint paint alpha, SkColorFilter,
|
1925
|
+
SkImageFilter, and SkBlendMode, if provided.
|
1926
|
+
|
1927
|
+
If paint is non-null, then the picture is always drawn into a temporary layer before
|
1928
|
+
actually landing on the canvas. Note that drawing into a layer can also change its
|
1929
|
+
appearance if there are any non-associative blendModes inside any of the pictures elements.
|
1930
|
+
|
1931
|
+
@param picture recorded drawing commands to play
|
1932
|
+
@param matrix SkMatrix to rotate, scale, translate, and so on; may be nullptr
|
1933
|
+
@param paint SkPaint to apply transparency, filtering, and so on; may be nullptr
|
1934
|
+
|
1935
|
+
example: https://fiddle.skia.org/c/@Canvas_drawPicture_3
|
1936
|
+
*/
|
1937
|
+
void drawPicture(const SkPicture* picture, const SkMatrix* matrix, const SkPaint* paint);
|
1938
|
+
|
1939
|
+
/** Draws SkPicture picture, using clip and SkMatrix; transforming picture with
|
1940
|
+
SkMatrix matrix, if provided; and use SkPaint paint alpha, SkColorFilter,
|
1941
|
+
SkImageFilter, and SkBlendMode, if provided.
|
1942
|
+
|
1943
|
+
If paint is non-null, then the picture is always drawn into a temporary layer before
|
1944
|
+
actually landing on the canvas. Note that drawing into a layer can also change its
|
1945
|
+
appearance if there are any non-associative blendModes inside any of the pictures elements.
|
1946
|
+
|
1947
|
+
@param picture recorded drawing commands to play
|
1948
|
+
@param matrix SkMatrix to rotate, scale, translate, and so on; may be nullptr
|
1949
|
+
@param paint SkPaint to apply transparency, filtering, and so on; may be nullptr
|
1950
|
+
*/
|
1951
|
+
void drawPicture(const sk_sp<SkPicture>& picture, const SkMatrix* matrix,
|
1952
|
+
const SkPaint* paint) {
|
1953
|
+
this->drawPicture(picture.get(), matrix, paint);
|
1954
|
+
}
|
1955
|
+
|
1956
|
+
/** Draws SkVertices vertices, a triangle mesh, using clip and SkMatrix.
|
1957
|
+
If paint contains an SkShader and vertices does not contain texCoords, the shader
|
1958
|
+
is mapped using the vertices' positions.
|
1959
|
+
|
1960
|
+
SkBlendMode is ignored if SkVertices does not have colors. Otherwise, it combines
|
1961
|
+
- the SkShader if SkPaint contains SkShader
|
1962
|
+
- or the opaque SkPaint color if SkPaint does not contain SkShader
|
1963
|
+
as the src of the blend and the interpolated vertex colors as the dst.
|
1964
|
+
|
1965
|
+
SkMaskFilter, SkPathEffect, and antialiasing on SkPaint are ignored.
|
1966
|
+
|
1967
|
+
@param vertices triangle mesh to draw
|
1968
|
+
@param mode combines vertices' colors with SkShader if present or SkPaint opaque color
|
1969
|
+
if not. Ignored if the vertices do not contain color.
|
1970
|
+
@param paint specifies the SkShader, used as SkVertices texture, and SkColorFilter.
|
1971
|
+
|
1972
|
+
example: https://fiddle.skia.org/c/@Canvas_drawVertices
|
1973
|
+
*/
|
1974
|
+
void drawVertices(const SkVertices* vertices, SkBlendMode mode, const SkPaint& paint);
|
1975
|
+
|
1976
|
+
/** Draws SkVertices vertices, a triangle mesh, using clip and SkMatrix.
|
1977
|
+
If paint contains an SkShader and vertices does not contain texCoords, the shader
|
1978
|
+
is mapped using the vertices' positions.
|
1979
|
+
|
1980
|
+
SkBlendMode is ignored if SkVertices does not have colors. Otherwise, it combines
|
1981
|
+
- the SkShader if SkPaint contains SkShader
|
1982
|
+
- or the opaque SkPaint color if SkPaint does not contain SkShader
|
1983
|
+
as the src of the blend and the interpolated vertex colors as the dst.
|
1984
|
+
|
1985
|
+
SkMaskFilter, SkPathEffect, and antialiasing on SkPaint are ignored.
|
1986
|
+
|
1987
|
+
@param vertices triangle mesh to draw
|
1988
|
+
@param mode combines vertices' colors with SkShader if present or SkPaint opaque color
|
1989
|
+
if not. Ignored if the vertices do not contain color.
|
1990
|
+
@param paint specifies the SkShader, used as SkVertices texture, may be nullptr
|
1991
|
+
|
1992
|
+
example: https://fiddle.skia.org/c/@Canvas_drawVertices_2
|
1993
|
+
*/
|
1994
|
+
void drawVertices(const sk_sp<SkVertices>& vertices, SkBlendMode mode, const SkPaint& paint);
|
1995
|
+
|
1996
|
+
/**
|
1997
|
+
Experimental, under active development, and subject to change without notice.
|
1998
|
+
|
1999
|
+
Draws a mesh using a user-defined specification (see SkMeshSpecification). Requires
|
2000
|
+
a GPU backend or SkSL to be compiled in.
|
2001
|
+
|
2002
|
+
SkBlender is ignored if SkMesh's specification does not output fragment shader color.
|
2003
|
+
Otherwise, it combines
|
2004
|
+
- the SkShader if SkPaint contains SkShader
|
2005
|
+
- or the opaque SkPaint color if SkPaint does not contain SkShader
|
2006
|
+
as the src of the blend and the mesh's fragment color as the dst.
|
2007
|
+
|
2008
|
+
SkMaskFilter, SkPathEffect, and antialiasing on SkPaint are ignored.
|
2009
|
+
|
2010
|
+
@param mesh the mesh vertices and compatible specification.
|
2011
|
+
@param blender combines vertices colors with SkShader if present or SkPaint opaque color
|
2012
|
+
if not. Ignored if the custom mesh does not output color. Defaults to
|
2013
|
+
SkBlendMode::kModulate if nullptr.
|
2014
|
+
@param paint specifies the SkShader, used as SkVertices texture, may be nullptr
|
2015
|
+
*/
|
2016
|
+
void drawMesh(const SkMesh& mesh, sk_sp<SkBlender> blender, const SkPaint& paint);
|
2017
|
+
|
2018
|
+
/** Draws a Coons patch: the interpolation of four cubics with shared corners,
|
2019
|
+
associating a color, and optionally a texture SkPoint, with each corner.
|
2020
|
+
|
2021
|
+
SkPoint array cubics specifies four SkPath cubic starting at the top-left corner,
|
2022
|
+
in clockwise order, sharing every fourth point. The last SkPath cubic ends at the
|
2023
|
+
first point.
|
2024
|
+
|
2025
|
+
Color array color associates colors with corners in top-left, top-right,
|
2026
|
+
bottom-right, bottom-left order.
|
2027
|
+
|
2028
|
+
If paint contains SkShader, SkPoint array texCoords maps SkShader as texture to
|
2029
|
+
corners in top-left, top-right, bottom-right, bottom-left order. If texCoords is
|
2030
|
+
nullptr, SkShader is mapped using positions (derived from cubics).
|
2031
|
+
|
2032
|
+
SkBlendMode is ignored if colors is null. Otherwise, it combines
|
2033
|
+
- the SkShader if SkPaint contains SkShader
|
2034
|
+
- or the opaque SkPaint color if SkPaint does not contain SkShader
|
2035
|
+
as the src of the blend and the interpolated patch colors as the dst.
|
2036
|
+
|
2037
|
+
SkMaskFilter, SkPathEffect, and antialiasing on SkPaint are ignored.
|
2038
|
+
|
2039
|
+
@param cubics SkPath cubic array, sharing common points
|
2040
|
+
@param colors color array, one for each corner
|
2041
|
+
@param texCoords SkPoint array of texture coordinates, mapping SkShader to corners;
|
2042
|
+
may be nullptr
|
2043
|
+
@param mode combines patch's colors with SkShader if present or SkPaint opaque color
|
2044
|
+
if not. Ignored if colors is null.
|
2045
|
+
@param paint SkShader, SkColorFilter, SkBlendMode, used to draw
|
2046
|
+
*/
|
2047
|
+
void drawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
2048
|
+
const SkPoint texCoords[4], SkBlendMode mode, const SkPaint& paint);
|
2049
|
+
|
2050
|
+
/** Draws a set of sprites from atlas, using clip, SkMatrix, and optional SkPaint paint.
|
2051
|
+
paint uses anti-alias, alpha, SkColorFilter, SkImageFilter, and SkBlendMode
|
2052
|
+
to draw, if present. For each entry in the array, SkRect tex locates sprite in
|
2053
|
+
atlas, and SkRSXform xform transforms it into destination space.
|
2054
|
+
|
2055
|
+
SkMaskFilter and SkPathEffect on paint are ignored.
|
2056
|
+
|
2057
|
+
xform, tex, and colors if present, must contain count entries.
|
2058
|
+
Optional colors are applied for each sprite using SkBlendMode mode, treating
|
2059
|
+
sprite as source and colors as destination.
|
2060
|
+
Optional cullRect is a conservative bounds of all transformed sprites.
|
2061
|
+
If cullRect is outside of clip, canvas can skip drawing.
|
2062
|
+
|
2063
|
+
If atlas is nullptr, this draws nothing.
|
2064
|
+
|
2065
|
+
@param atlas SkImage containing sprites
|
2066
|
+
@param xform SkRSXform mappings for sprites in atlas
|
2067
|
+
@param tex SkRect locations of sprites in atlas
|
2068
|
+
@param colors one per sprite, blended with sprite using SkBlendMode; may be nullptr
|
2069
|
+
@param count number of sprites to draw
|
2070
|
+
@param mode SkBlendMode combining colors and sprites
|
2071
|
+
@param sampling SkSamplingOptions used when sampling from the atlas image
|
2072
|
+
@param cullRect bounds of transformed sprites for efficient clipping; may be nullptr
|
2073
|
+
@param paint SkColorFilter, SkImageFilter, SkBlendMode, and so on; may be nullptr
|
2074
|
+
*/
|
2075
|
+
void drawAtlas(const SkImage* atlas, const SkRSXform xform[], const SkRect tex[],
|
2076
|
+
const SkColor colors[], int count, SkBlendMode mode,
|
2077
|
+
const SkSamplingOptions& sampling, const SkRect* cullRect, const SkPaint* paint);
|
2078
|
+
|
2079
|
+
/** Draws SkDrawable drawable using clip and SkMatrix, concatenated with
|
2080
|
+
optional matrix.
|
2081
|
+
|
2082
|
+
If SkCanvas has an asynchronous implementation, as is the case
|
2083
|
+
when it is recording into SkPicture, then drawable will be referenced,
|
2084
|
+
so that SkDrawable::draw() can be called when the operation is finalized. To force
|
2085
|
+
immediate drawing, call SkDrawable::draw() instead.
|
2086
|
+
|
2087
|
+
@param drawable custom struct encapsulating drawing commands
|
2088
|
+
@param matrix transformation applied to drawing; may be nullptr
|
2089
|
+
|
2090
|
+
example: https://fiddle.skia.org/c/@Canvas_drawDrawable
|
2091
|
+
*/
|
2092
|
+
void drawDrawable(SkDrawable* drawable, const SkMatrix* matrix = nullptr);
|
2093
|
+
|
2094
|
+
/** Draws SkDrawable drawable using clip and SkMatrix, offset by (x, y).
|
2095
|
+
|
2096
|
+
If SkCanvas has an asynchronous implementation, as is the case
|
2097
|
+
when it is recording into SkPicture, then drawable will be referenced,
|
2098
|
+
so that SkDrawable::draw() can be called when the operation is finalized. To force
|
2099
|
+
immediate drawing, call SkDrawable::draw() instead.
|
2100
|
+
|
2101
|
+
@param drawable custom struct encapsulating drawing commands
|
2102
|
+
@param x offset into SkCanvas writable pixels on x-axis
|
2103
|
+
@param y offset into SkCanvas writable pixels on y-axis
|
2104
|
+
|
2105
|
+
example: https://fiddle.skia.org/c/@Canvas_drawDrawable_2
|
2106
|
+
*/
|
2107
|
+
void drawDrawable(SkDrawable* drawable, SkScalar x, SkScalar y);
|
2108
|
+
|
2109
|
+
/** Associates SkRect on SkCanvas with an annotation; a key-value pair, where the key is
|
2110
|
+
a null-terminated UTF-8 string, and optional value is stored as SkData.
|
2111
|
+
|
2112
|
+
Only some canvas implementations, such as recording to SkPicture, or drawing to
|
2113
|
+
document PDF, use annotations.
|
2114
|
+
|
2115
|
+
@param rect SkRect extent of canvas to annotate
|
2116
|
+
@param key string used for lookup
|
2117
|
+
@param value data holding value stored in annotation
|
2118
|
+
|
2119
|
+
example: https://fiddle.skia.org/c/@Canvas_drawAnnotation_2
|
2120
|
+
*/
|
2121
|
+
void drawAnnotation(const SkRect& rect, const char key[], SkData* value);
|
2122
|
+
|
2123
|
+
/** Associates SkRect on SkCanvas when an annotation; a key-value pair, where the key is
|
2124
|
+
a null-terminated UTF-8 string, and optional value is stored as SkData.
|
2125
|
+
|
2126
|
+
Only some canvas implementations, such as recording to SkPicture, or drawing to
|
2127
|
+
document PDF, use annotations.
|
2128
|
+
|
2129
|
+
@param rect SkRect extent of canvas to annotate
|
2130
|
+
@param key string used for lookup
|
2131
|
+
@param value data holding value stored in annotation
|
2132
|
+
*/
|
2133
|
+
void drawAnnotation(const SkRect& rect, const char key[], const sk_sp<SkData>& value) {
|
2134
|
+
this->drawAnnotation(rect, key, value.get());
|
2135
|
+
}
|
2136
|
+
|
2137
|
+
/** Returns true if clip is empty; that is, nothing will draw.
|
2138
|
+
|
2139
|
+
May do work when called; it should not be called
|
2140
|
+
more often than needed. However, once called, subsequent calls perform no
|
2141
|
+
work until clip changes.
|
2142
|
+
|
2143
|
+
@return true if clip is empty
|
2144
|
+
|
2145
|
+
example: https://fiddle.skia.org/c/@Canvas_isClipEmpty
|
2146
|
+
*/
|
2147
|
+
virtual bool isClipEmpty() const;
|
2148
|
+
|
2149
|
+
/** Returns true if clip is SkRect and not empty.
|
2150
|
+
Returns false if the clip is empty, or if it is not SkRect.
|
2151
|
+
|
2152
|
+
@return true if clip is SkRect and not empty
|
2153
|
+
|
2154
|
+
example: https://fiddle.skia.org/c/@Canvas_isClipRect
|
2155
|
+
*/
|
2156
|
+
virtual bool isClipRect() const;
|
2157
|
+
|
2158
|
+
/** Returns the current transform from local coordinates to the 'device', which for most
|
2159
|
+
* purposes means pixels.
|
2160
|
+
*
|
2161
|
+
* @return transformation from local coordinates to device / pixels.
|
2162
|
+
*/
|
2163
|
+
SkM44 getLocalToDevice() const;
|
2164
|
+
|
2165
|
+
/**
|
2166
|
+
* Throws away the 3rd row and column in the matrix, so be warned.
|
2167
|
+
*/
|
2168
|
+
SkMatrix getLocalToDeviceAs3x3() const {
|
2169
|
+
return this->getLocalToDevice().asM33();
|
2170
|
+
}
|
2171
|
+
|
2172
|
+
#ifdef SK_SUPPORT_LEGACY_GETTOTALMATRIX
|
2173
|
+
/** DEPRECATED
|
2174
|
+
* Legacy version of getLocalToDevice(), which strips away any Z information, and
|
2175
|
+
* just returns a 3x3 version.
|
2176
|
+
*
|
2177
|
+
* @return 3x3 version of getLocalToDevice()
|
2178
|
+
*
|
2179
|
+
* example: https://fiddle.skia.org/c/@Canvas_getTotalMatrix
|
2180
|
+
* example: https://fiddle.skia.org/c/@Clip
|
2181
|
+
*/
|
2182
|
+
SkMatrix getTotalMatrix() const;
|
2183
|
+
#endif
|
2184
|
+
|
2185
|
+
///////////////////////////////////////////////////////////////////////////
|
2186
|
+
|
2187
|
+
/**
|
2188
|
+
* Returns the global clip as a region. If the clip contains AA, then only the bounds
|
2189
|
+
* of the clip may be returned.
|
2190
|
+
*/
|
2191
|
+
void temporary_internal_getRgnClip(SkRegion* region);
|
2192
|
+
|
2193
|
+
void private_draw_shadow_rec(const SkPath&, const SkDrawShadowRec&);
|
2194
|
+
|
2195
|
+
|
2196
|
+
protected:
|
2197
|
+
// default impl defers to getDevice()->newSurface(info)
|
2198
|
+
virtual sk_sp<SkSurface> onNewSurface(const SkImageInfo& info, const SkSurfaceProps& props);
|
2199
|
+
|
2200
|
+
// default impl defers to its device
|
2201
|
+
virtual bool onPeekPixels(SkPixmap* pixmap);
|
2202
|
+
virtual bool onAccessTopLayerPixels(SkPixmap* pixmap);
|
2203
|
+
virtual SkImageInfo onImageInfo() const;
|
2204
|
+
virtual bool onGetProps(SkSurfaceProps* props, bool top) const;
|
2205
|
+
|
2206
|
+
// Subclass save/restore notifiers.
|
2207
|
+
// Overriders should call the corresponding INHERITED method up the inheritance chain.
|
2208
|
+
// getSaveLayerStrategy()'s return value may suppress full layer allocation.
|
2209
|
+
enum SaveLayerStrategy {
|
2210
|
+
kFullLayer_SaveLayerStrategy,
|
2211
|
+
kNoLayer_SaveLayerStrategy,
|
2212
|
+
};
|
2213
|
+
|
2214
|
+
virtual void willSave() {}
|
2215
|
+
// Overriders should call the corresponding INHERITED method up the inheritance chain.
|
2216
|
+
virtual SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec& ) {
|
2217
|
+
return kFullLayer_SaveLayerStrategy;
|
2218
|
+
}
|
2219
|
+
|
2220
|
+
// returns true if we should actually perform the saveBehind, or false if we should just save.
|
2221
|
+
virtual bool onDoSaveBehind(const SkRect*) { return true; }
|
2222
|
+
virtual void willRestore() {}
|
2223
|
+
virtual void didRestore() {}
|
2224
|
+
|
2225
|
+
virtual void didConcat44(const SkM44&) {}
|
2226
|
+
virtual void didSetM44(const SkM44&) {}
|
2227
|
+
virtual void didTranslate(SkScalar, SkScalar) {}
|
2228
|
+
virtual void didScale(SkScalar, SkScalar) {}
|
2229
|
+
|
2230
|
+
// NOTE: If you are adding a new onDraw virtual to SkCanvas, PLEASE add an override to
|
2231
|
+
// SkCanvasVirtualEnforcer (in SkCanvasVirtualEnforcer.h). This ensures that subclasses using
|
2232
|
+
// that mechanism will be required to implement the new function.
|
2233
|
+
virtual void onDrawPaint(const SkPaint& paint);
|
2234
|
+
virtual void onDrawBehind(const SkPaint& paint);
|
2235
|
+
virtual void onDrawRect(const SkRect& rect, const SkPaint& paint);
|
2236
|
+
virtual void onDrawRRect(const SkRRect& rrect, const SkPaint& paint);
|
2237
|
+
virtual void onDrawDRRect(const SkRRect& outer, const SkRRect& inner, const SkPaint& paint);
|
2238
|
+
virtual void onDrawOval(const SkRect& rect, const SkPaint& paint);
|
2239
|
+
virtual void onDrawArc(const SkRect& rect, SkScalar startAngle, SkScalar sweepAngle,
|
2240
|
+
bool useCenter, const SkPaint& paint);
|
2241
|
+
virtual void onDrawPath(const SkPath& path, const SkPaint& paint);
|
2242
|
+
virtual void onDrawRegion(const SkRegion& region, const SkPaint& paint);
|
2243
|
+
|
2244
|
+
virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y,
|
2245
|
+
const SkPaint& paint);
|
2246
|
+
|
2247
|
+
virtual void onDrawGlyphRunList(const sktext::GlyphRunList& glyphRunList, const SkPaint& paint);
|
2248
|
+
|
2249
|
+
virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
2250
|
+
const SkPoint texCoords[4], SkBlendMode mode, const SkPaint& paint);
|
2251
|
+
virtual void onDrawPoints(PointMode mode, size_t count, const SkPoint pts[],
|
2252
|
+
const SkPaint& paint);
|
2253
|
+
|
2254
|
+
virtual void onDrawImage2(const SkImage*, SkScalar dx, SkScalar dy, const SkSamplingOptions&,
|
2255
|
+
const SkPaint*);
|
2256
|
+
virtual void onDrawImageRect2(const SkImage*, const SkRect& src, const SkRect& dst,
|
2257
|
+
const SkSamplingOptions&, const SkPaint*, SrcRectConstraint);
|
2258
|
+
virtual void onDrawImageLattice2(const SkImage*, const Lattice&, const SkRect& dst,
|
2259
|
+
SkFilterMode, const SkPaint*);
|
2260
|
+
virtual void onDrawAtlas2(const SkImage*, const SkRSXform[], const SkRect src[],
|
2261
|
+
const SkColor[], int count, SkBlendMode, const SkSamplingOptions&,
|
2262
|
+
const SkRect* cull, const SkPaint*);
|
2263
|
+
virtual void onDrawEdgeAAImageSet2(const ImageSetEntry imageSet[], int count,
|
2264
|
+
const SkPoint dstClips[], const SkMatrix preViewMatrices[],
|
2265
|
+
const SkSamplingOptions&, const SkPaint*,
|
2266
|
+
SrcRectConstraint);
|
2267
|
+
|
2268
|
+
virtual void onDrawVerticesObject(const SkVertices* vertices, SkBlendMode mode,
|
2269
|
+
const SkPaint& paint);
|
2270
|
+
virtual void onDrawMesh(const SkMesh&, sk_sp<SkBlender>, const SkPaint&);
|
2271
|
+
virtual void onDrawAnnotation(const SkRect& rect, const char key[], SkData* value);
|
2272
|
+
virtual void onDrawShadowRec(const SkPath&, const SkDrawShadowRec&);
|
2273
|
+
|
2274
|
+
virtual void onDrawDrawable(SkDrawable* drawable, const SkMatrix* matrix);
|
2275
|
+
virtual void onDrawPicture(const SkPicture* picture, const SkMatrix* matrix,
|
2276
|
+
const SkPaint* paint);
|
2277
|
+
|
2278
|
+
virtual void onDrawEdgeAAQuad(const SkRect& rect, const SkPoint clip[4], QuadAAFlags aaFlags,
|
2279
|
+
const SkColor4f& color, SkBlendMode mode);
|
2280
|
+
|
2281
|
+
enum ClipEdgeStyle {
|
2282
|
+
kHard_ClipEdgeStyle,
|
2283
|
+
kSoft_ClipEdgeStyle
|
2284
|
+
};
|
2285
|
+
|
2286
|
+
virtual void onClipRect(const SkRect& rect, SkClipOp op, ClipEdgeStyle edgeStyle);
|
2287
|
+
virtual void onClipRRect(const SkRRect& rrect, SkClipOp op, ClipEdgeStyle edgeStyle);
|
2288
|
+
virtual void onClipPath(const SkPath& path, SkClipOp op, ClipEdgeStyle edgeStyle);
|
2289
|
+
virtual void onClipShader(sk_sp<SkShader>, SkClipOp);
|
2290
|
+
virtual void onClipRegion(const SkRegion& deviceRgn, SkClipOp op);
|
2291
|
+
virtual void onResetClip();
|
2292
|
+
|
2293
|
+
virtual void onDiscard();
|
2294
|
+
|
2295
|
+
/**
|
2296
|
+
*/
|
2297
|
+
virtual sk_sp<sktext::gpu::Slug> onConvertGlyphRunListToSlug(
|
2298
|
+
const sktext::GlyphRunList& glyphRunList, const SkPaint& paint);
|
2299
|
+
|
2300
|
+
/**
|
2301
|
+
*/
|
2302
|
+
virtual void onDrawSlug(const sktext::gpu::Slug* slug);
|
2303
|
+
|
2304
|
+
private:
|
2305
|
+
enum class PredrawFlags : unsigned {
|
2306
|
+
kNone = 0,
|
2307
|
+
kOpaqueShaderOverride = 1, // The paint's shader is overridden with an opaque image
|
2308
|
+
kNonOpaqueShaderOverride = 2, // The paint's shader is overridden but is not opaque
|
2309
|
+
kCheckForOverwrite = 4, // Check if the draw would overwrite the entire surface
|
2310
|
+
kSkipMaskFilterAutoLayer = 8, // Do not apply mask filters in the AutoLayer
|
2311
|
+
};
|
2312
|
+
// Inlined SK_DECL_BITMASK_OPS_FRIENDS to avoid including SkEnumBitMask.h
|
2313
|
+
friend constexpr SkEnumBitMask<PredrawFlags> operator|(PredrawFlags, PredrawFlags);
|
2314
|
+
friend constexpr SkEnumBitMask<PredrawFlags> operator&(PredrawFlags, PredrawFlags);
|
2315
|
+
friend constexpr SkEnumBitMask<PredrawFlags> operator^(PredrawFlags, PredrawFlags);
|
2316
|
+
friend constexpr SkEnumBitMask<PredrawFlags> operator~(PredrawFlags);
|
2317
|
+
|
2318
|
+
// notify our surface (if we have one) that we are about to draw, so it
|
2319
|
+
// can perform copy-on-write or invalidate any cached images
|
2320
|
+
// returns false if the copy failed
|
2321
|
+
[[nodiscard]] bool predrawNotify(bool willOverwritesEntireSurface = false);
|
2322
|
+
[[nodiscard]] bool predrawNotify(const SkRect*, const SkPaint*, SkEnumBitMask<PredrawFlags>);
|
2323
|
+
|
2324
|
+
// call the appropriate predrawNotify and create a layer if needed.
|
2325
|
+
std::optional<AutoLayerForImageFilter> aboutToDraw(
|
2326
|
+
const SkPaint& paint,
|
2327
|
+
const SkRect* rawBounds,
|
2328
|
+
SkEnumBitMask<PredrawFlags> flags);
|
2329
|
+
std::optional<AutoLayerForImageFilter> aboutToDraw(
|
2330
|
+
const SkPaint& paint,
|
2331
|
+
const SkRect* rawBounds = nullptr);
|
2332
|
+
|
2333
|
+
// The bottom-most device in the stack, only changed by init(). Image properties and the final
|
2334
|
+
// canvas pixels are determined by this device.
|
2335
|
+
SkDevice* rootDevice() const {
|
2336
|
+
SkASSERT(fRootDevice);
|
2337
|
+
return fRootDevice.get();
|
2338
|
+
}
|
2339
|
+
|
2340
|
+
// The top-most device in the stack, will change within saveLayer()'s. All drawing and clipping
|
2341
|
+
// operations should route to this device.
|
2342
|
+
SkDevice* topDevice() const;
|
2343
|
+
|
2344
|
+
// Canvases maintain a sparse stack of layers, where the top-most layer receives the drawing,
|
2345
|
+
// clip, and matrix commands. There is a layer per call to saveLayer() using the
|
2346
|
+
// kFullLayer_SaveLayerStrategy.
|
2347
|
+
struct Layer {
|
2348
|
+
sk_sp<SkDevice> fDevice;
|
2349
|
+
skia_private::STArray<1, sk_sp<SkImageFilter>> fImageFilters;
|
2350
|
+
SkPaint fPaint;
|
2351
|
+
bool fIsCoverage;
|
2352
|
+
bool fDiscard;
|
2353
|
+
|
2354
|
+
Layer(sk_sp<SkDevice> device,
|
2355
|
+
FilterSpan imageFilters,
|
2356
|
+
const SkPaint& paint,
|
2357
|
+
bool isCoverage);
|
2358
|
+
};
|
2359
|
+
|
2360
|
+
// Encapsulate state needed to restore from saveBehind()
|
2361
|
+
struct BackImage {
|
2362
|
+
// Out of line to avoid including SkSpecialImage.h
|
2363
|
+
BackImage(sk_sp<SkSpecialImage>, SkIPoint);
|
2364
|
+
BackImage(const BackImage&);
|
2365
|
+
BackImage(BackImage&&);
|
2366
|
+
BackImage& operator=(const BackImage&);
|
2367
|
+
~BackImage();
|
2368
|
+
|
2369
|
+
sk_sp<SkSpecialImage> fImage;
|
2370
|
+
SkIPoint fLoc;
|
2371
|
+
};
|
2372
|
+
|
2373
|
+
class MCRec {
|
2374
|
+
public:
|
2375
|
+
// If not null, this MCRec corresponds with the saveLayer() record that made the layer.
|
2376
|
+
// The base "layer" is not stored here, since it is stored inline in SkCanvas and has no
|
2377
|
+
// restoration behavior.
|
2378
|
+
std::unique_ptr<Layer> fLayer;
|
2379
|
+
|
2380
|
+
// This points to the device of the top-most layer (which may be lower in the stack), or
|
2381
|
+
// to the canvas's fRootDevice. The MCRec does not own the device.
|
2382
|
+
SkDevice* fDevice;
|
2383
|
+
|
2384
|
+
std::unique_ptr<BackImage> fBackImage;
|
2385
|
+
SkM44 fMatrix;
|
2386
|
+
int fDeferredSaveCount = 0;
|
2387
|
+
|
2388
|
+
MCRec(SkDevice* device);
|
2389
|
+
MCRec(const MCRec* prev);
|
2390
|
+
~MCRec();
|
2391
|
+
|
2392
|
+
void newLayer(sk_sp<SkDevice> layerDevice,
|
2393
|
+
FilterSpan filters,
|
2394
|
+
const SkPaint& restorePaint,
|
2395
|
+
bool layerIsCoverage);
|
2396
|
+
|
2397
|
+
void reset(SkDevice* device);
|
2398
|
+
};
|
2399
|
+
|
2400
|
+
// the first N recs that can fit here mean we won't call malloc
|
2401
|
+
static constexpr int kMCRecSize = 96; // most recent measurement
|
2402
|
+
static constexpr int kMCRecCount = 32; // common depth for save/restores
|
2403
|
+
|
2404
|
+
intptr_t fMCRecStorage[kMCRecSize * kMCRecCount / sizeof(intptr_t)];
|
2405
|
+
|
2406
|
+
SkDeque fMCStack;
|
2407
|
+
// points to top of stack
|
2408
|
+
MCRec* fMCRec;
|
2409
|
+
|
2410
|
+
// Installed via init()
|
2411
|
+
sk_sp<SkDevice> fRootDevice;
|
2412
|
+
const SkSurfaceProps fProps;
|
2413
|
+
|
2414
|
+
int fSaveCount; // value returned by getSaveCount()
|
2415
|
+
|
2416
|
+
std::unique_ptr<SkRasterHandleAllocator> fAllocator;
|
2417
|
+
|
2418
|
+
SkSurface_Base* fSurfaceBase;
|
2419
|
+
SkSurface_Base* getSurfaceBase() const { return fSurfaceBase; }
|
2420
|
+
void setSurfaceBase(SkSurface_Base* sb) {
|
2421
|
+
fSurfaceBase = sb;
|
2422
|
+
}
|
2423
|
+
friend class SkSurface_Base;
|
2424
|
+
friend class SkSurface_Ganesh;
|
2425
|
+
|
2426
|
+
SkIRect fClipRestrictionRect = SkIRect::MakeEmpty();
|
2427
|
+
int fClipRestrictionSaveCount = -1;
|
2428
|
+
|
2429
|
+
void doSave();
|
2430
|
+
void checkForDeferredSave();
|
2431
|
+
void internalSetMatrix(const SkM44&);
|
2432
|
+
|
2433
|
+
friend class SkAndroidFrameworkUtils;
|
2434
|
+
friend class SkCanvasPriv; // needs to expose android functions for testing outside android
|
2435
|
+
friend class AutoLayerForImageFilter;
|
2436
|
+
friend class SkSurface_Raster; // needs getDevice()
|
2437
|
+
friend class SkNoDrawCanvas; // needs resetForNextPicture()
|
2438
|
+
friend class SkNWayCanvas;
|
2439
|
+
friend class SkPictureRecord; // predrawNotify (why does it need it? <reed>)
|
2440
|
+
friend class SkOverdrawCanvas;
|
2441
|
+
friend class SkRasterHandleAllocator;
|
2442
|
+
friend class SkRecords::Draw;
|
2443
|
+
template <typename Key>
|
2444
|
+
friend class SkTestCanvas;
|
2445
|
+
|
2446
|
+
protected:
|
2447
|
+
// For use by SkNoDrawCanvas (via SkCanvasVirtualEnforcer, which can't be a friend)
|
2448
|
+
SkCanvas(const SkIRect& bounds);
|
2449
|
+
private:
|
2450
|
+
SkCanvas(const SkBitmap&, std::unique_ptr<SkRasterHandleAllocator>,
|
2451
|
+
SkRasterHandleAllocator::Handle, const SkSurfaceProps* props);
|
2452
|
+
|
2453
|
+
SkCanvas(SkCanvas&&) = delete;
|
2454
|
+
SkCanvas(const SkCanvas&) = delete;
|
2455
|
+
SkCanvas& operator=(SkCanvas&&) = delete;
|
2456
|
+
SkCanvas& operator=(const SkCanvas&) = delete;
|
2457
|
+
|
2458
|
+
friend class sktext::gpu::Slug;
|
2459
|
+
friend class SkPicturePlayback;
|
2460
|
+
/**
|
2461
|
+
* Convert a SkTextBlob to a sktext::gpu::Slug using the current canvas state.
|
2462
|
+
*/
|
2463
|
+
sk_sp<sktext::gpu::Slug> convertBlobToSlug(const SkTextBlob& blob, SkPoint origin,
|
2464
|
+
const SkPaint& paint);
|
2465
|
+
|
2466
|
+
/**
|
2467
|
+
* Draw an sktext::gpu::Slug given the current canvas state.
|
2468
|
+
*/
|
2469
|
+
void drawSlug(const sktext::gpu::Slug* slug);
|
2470
|
+
|
2471
|
+
/** Experimental
|
2472
|
+
* Saves the specified subset of the current pixels in the current layer,
|
2473
|
+
* and then clears those pixels to transparent black.
|
2474
|
+
* Restores the pixels on restore() by drawing them in SkBlendMode::kDstOver.
|
2475
|
+
*
|
2476
|
+
* @param subset conservative bounds of the area to be saved / restored.
|
2477
|
+
* @return depth of save state stack before this call was made.
|
2478
|
+
*/
|
2479
|
+
int only_axis_aligned_saveBehind(const SkRect* subset);
|
2480
|
+
|
2481
|
+
/**
|
2482
|
+
* Like drawPaint, but magically clipped to the most recent saveBehind buffer rectangle.
|
2483
|
+
* If there is no active saveBehind, then this draws nothing.
|
2484
|
+
*/
|
2485
|
+
void drawClippedToSaveBehind(const SkPaint&);
|
2486
|
+
|
2487
|
+
void resetForNextPicture(const SkIRect& bounds);
|
2488
|
+
|
2489
|
+
// needs gettotalclip()
|
2490
|
+
friend class SkCanvasStateUtils;
|
2491
|
+
|
2492
|
+
void init(sk_sp<SkDevice>);
|
2493
|
+
|
2494
|
+
// All base onDrawX() functions should call this and skip drawing if it returns true.
|
2495
|
+
// If 'matrix' is non-null, it maps the paint's fast bounds before checking for quick rejection
|
2496
|
+
bool internalQuickReject(const SkRect& bounds, const SkPaint& paint,
|
2497
|
+
const SkMatrix* matrix = nullptr);
|
2498
|
+
|
2499
|
+
void internalDrawPaint(const SkPaint& paint);
|
2500
|
+
void internalSaveLayer(const SaveLayerRec&, SaveLayerStrategy, bool coverageOnly=false);
|
2501
|
+
void internalSaveBehind(const SkRect*);
|
2502
|
+
|
2503
|
+
void internalConcat44(const SkM44&);
|
2504
|
+
|
2505
|
+
// shared by save() and saveLayer()
|
2506
|
+
void internalSave();
|
2507
|
+
void internalRestore();
|
2508
|
+
|
2509
|
+
enum class DeviceCompatibleWithFilter : bool {
|
2510
|
+
// Check the src device's local-to-device matrix for compatibility with the filter, and if
|
2511
|
+
// it is not compatible, introduce an intermediate image and transformation that allows the
|
2512
|
+
// filter to be evaluated on the modified src content.
|
2513
|
+
kUnknown = false,
|
2514
|
+
// Assume that the src device's local-to-device matrix is compatible with the filter.
|
2515
|
+
kYes = true
|
2516
|
+
};
|
2517
|
+
/**
|
2518
|
+
* Filters the contents of 'src' and draws the result into 'dst'. The filter is evaluated
|
2519
|
+
* relative to the current canvas matrix, and src is drawn to dst using their relative transform
|
2520
|
+
* 'paint' is applied after the filter and must not have a mask or image filter of its own.
|
2521
|
+
* A null 'filter' behaves as if the identity filter were used.
|
2522
|
+
*
|
2523
|
+
* 'scaleFactor' is an extra uniform scale transform applied to downscale the 'src' image
|
2524
|
+
* before any filtering, or as part of the copy, and is then drawn with 1/scaleFactor to 'dst'.
|
2525
|
+
* Must be 1.0 if 'compat' is kYes (i.e. any scale factor has already been baked into the
|
2526
|
+
* relative transforms between the devices).
|
2527
|
+
*/
|
2528
|
+
void internalDrawDeviceWithFilter(SkDevice* src, SkDevice* dst,
|
2529
|
+
FilterSpan filters, const SkPaint& paint,
|
2530
|
+
DeviceCompatibleWithFilter compat,
|
2531
|
+
SkScalar scaleFactor = 1.f,
|
2532
|
+
bool srcIsCoverageLayer = false);
|
2533
|
+
|
2534
|
+
/*
|
2535
|
+
* Returns true if drawing the specified rect (or all if it is null) with the specified
|
2536
|
+
* paint (or default if null) would overwrite the entire root device of the canvas
|
2537
|
+
* (i.e. the canvas' surface if it had one).
|
2538
|
+
*/
|
2539
|
+
bool wouldOverwriteEntireSurface(const SkRect*, const SkPaint*,
|
2540
|
+
SkEnumBitMask<PredrawFlags>) const;
|
2541
|
+
|
2542
|
+
/**
|
2543
|
+
* Returns true if the paint's imagefilter can be invoked directly, without needed a layer.
|
2544
|
+
*/
|
2545
|
+
bool canDrawBitmapAsSprite(SkScalar x, SkScalar y, int w, int h, const SkSamplingOptions&,
|
2546
|
+
const SkPaint&);
|
2547
|
+
|
2548
|
+
/**
|
2549
|
+
* Returns true if the clip (for any active layer) contains antialiasing.
|
2550
|
+
* If the clip is empty, this will return false.
|
2551
|
+
*/
|
2552
|
+
bool androidFramework_isClipAA() const;
|
2553
|
+
|
2554
|
+
/**
|
2555
|
+
* Reset the clip to be wide-open (modulo any separately specified device clip restriction).
|
2556
|
+
* This operate within the save/restore clip stack so it can be undone by restoring to an
|
2557
|
+
* earlier save point.
|
2558
|
+
*/
|
2559
|
+
void internal_private_resetClip();
|
2560
|
+
|
2561
|
+
virtual SkPaintFilterCanvas* internal_private_asPaintFilterCanvas() const { return nullptr; }
|
2562
|
+
|
2563
|
+
// Keep track of the device clip bounds in the canvas' global space to reject draws before
|
2564
|
+
// invoking the top-level device.
|
2565
|
+
SkRect fQuickRejectBounds;
|
2566
|
+
|
2567
|
+
// Compute the clip's bounds based on all clipped SkDevice's reported device bounds transformed
|
2568
|
+
// into the canvas' global space.
|
2569
|
+
SkRect computeDeviceClipBounds(bool outsetForAA=true) const;
|
2570
|
+
|
2571
|
+
class AutoUpdateQRBounds;
|
2572
|
+
void validateClip() const;
|
2573
|
+
|
2574
|
+
std::unique_ptr<sktext::GlyphRunBuilder> fScratchGlyphRunBuilder;
|
2575
|
+
};
|
2576
|
+
|
2577
|
+
/** \class SkAutoCanvasRestore
|
2578
|
+
Stack helper class calls SkCanvas::restoreToCount when SkAutoCanvasRestore
|
2579
|
+
goes out of scope. Use this to guarantee that the canvas is restored to a known
|
2580
|
+
state.
|
2581
|
+
*/
|
2582
|
+
class SkAutoCanvasRestore {
|
2583
|
+
public:
|
2584
|
+
|
2585
|
+
/** Preserves SkCanvas::save() count. Optionally saves SkCanvas clip and SkCanvas matrix.
|
2586
|
+
|
2587
|
+
@param canvas SkCanvas to guard
|
2588
|
+
@param doSave call SkCanvas::save()
|
2589
|
+
@return utility to restore SkCanvas state on destructor
|
2590
|
+
*/
|
2591
|
+
SkAutoCanvasRestore(SkCanvas* canvas, bool doSave) : fCanvas(canvas), fSaveCount(0) {
|
2592
|
+
if (fCanvas) {
|
2593
|
+
fSaveCount = canvas->getSaveCount();
|
2594
|
+
if (doSave) {
|
2595
|
+
canvas->save();
|
2596
|
+
}
|
2597
|
+
}
|
2598
|
+
}
|
2599
|
+
|
2600
|
+
/** Restores SkCanvas to saved state. Destructor is called when container goes out of
|
2601
|
+
scope.
|
2602
|
+
*/
|
2603
|
+
~SkAutoCanvasRestore() {
|
2604
|
+
if (fCanvas) {
|
2605
|
+
fCanvas->restoreToCount(fSaveCount);
|
2606
|
+
}
|
2607
|
+
}
|
2608
|
+
|
2609
|
+
/** Restores SkCanvas to saved state immediately. Subsequent calls and
|
2610
|
+
~SkAutoCanvasRestore() have no effect.
|
2611
|
+
*/
|
2612
|
+
void restore() {
|
2613
|
+
if (fCanvas) {
|
2614
|
+
fCanvas->restoreToCount(fSaveCount);
|
2615
|
+
fCanvas = nullptr;
|
2616
|
+
}
|
2617
|
+
}
|
2618
|
+
|
2619
|
+
private:
|
2620
|
+
SkCanvas* fCanvas;
|
2621
|
+
int fSaveCount;
|
2622
|
+
|
2623
|
+
SkAutoCanvasRestore(SkAutoCanvasRestore&&) = delete;
|
2624
|
+
SkAutoCanvasRestore(const SkAutoCanvasRestore&) = delete;
|
2625
|
+
SkAutoCanvasRestore& operator=(SkAutoCanvasRestore&&) = delete;
|
2626
|
+
SkAutoCanvasRestore& operator=(const SkAutoCanvasRestore&) = delete;
|
2627
|
+
};
|
2628
|
+
|
2629
|
+
#endif
|