@shopify/react-native-skia 0.0.135
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 +52 -0
- package/android/CMakeLists.txt +151 -0
- package/android/README.md +14 -0
- package/android/build.gradle +258 -0
- package/android/cpp/jni/JniLoad.cpp +13 -0
- package/android/cpp/jni/JniPlatformContext.cpp +142 -0
- package/android/cpp/jni/JniSkiaDrawView.cpp +113 -0
- package/android/cpp/jni/JniSkiaManager.cpp +57 -0
- package/android/cpp/jni/include/JniPlatformContext.h +75 -0
- package/android/cpp/jni/include/JniSkiaDrawView.h +78 -0
- package/android/cpp/jni/include/JniSkiaManager.h +81 -0
- package/android/cpp/rnskia-android/RNSkDrawViewImpl.cpp +73 -0
- package/android/cpp/rnskia-android/RNSkDrawViewImpl.h +48 -0
- package/android/cpp/rnskia-android/RNSkPlatformContextImpl.h +54 -0
- package/android/cpp/rnskia-android/SkiaOpenGLRenderer.cpp +325 -0
- package/android/cpp/rnskia-android/SkiaOpenGLRenderer.h +131 -0
- package/android/src/main/AndroidManifest.xml +6 -0
- package/android/src/main/java/com/shopify/reactnative/skia/PlatformContext.java +181 -0
- package/android/src/main/java/com/shopify/reactnative/skia/RNSkiaModule.java +88 -0
- package/android/src/main/java/com/shopify/reactnative/skia/RNSkiaPackage.java +24 -0
- package/android/src/main/java/com/shopify/reactnative/skia/RNSkiaViewManager.java +72 -0
- package/android/src/main/java/com/shopify/reactnative/skia/SkiaDrawView.java +131 -0
- package/android/src/main/java/com/shopify/reactnative/skia/SkiaManager.java +66 -0
- package/cpp/api/JsiSkApi.h +105 -0
- package/cpp/api/JsiSkCanvas.h +540 -0
- package/cpp/api/JsiSkColor.h +83 -0
- package/cpp/api/JsiSkColorFilter.h +43 -0
- package/cpp/api/JsiSkColorFilterFactory.h +99 -0
- package/cpp/api/JsiSkContourMeasure.h +102 -0
- package/cpp/api/JsiSkContourMeasureIter.h +90 -0
- package/cpp/api/JsiSkData.h +46 -0
- package/cpp/api/JsiSkDataFactory.h +92 -0
- package/cpp/api/JsiSkFont.h +354 -0
- package/cpp/api/JsiSkFontMgr.h +84 -0
- package/cpp/api/JsiSkFontMgrFactory.h +48 -0
- package/cpp/api/JsiSkHostObjects.h +83 -0
- package/cpp/api/JsiSkImage.h +124 -0
- package/cpp/api/JsiSkImageFactory.h +50 -0
- package/cpp/api/JsiSkImageFilter.h +45 -0
- package/cpp/api/JsiSkImageFilterFactory.h +237 -0
- package/cpp/api/JsiSkImageInfo.h +57 -0
- package/cpp/api/JsiSkMaskFilter.h +45 -0
- package/cpp/api/JsiSkMaskFilterFactory.h +42 -0
- package/cpp/api/JsiSkMatrix.h +119 -0
- package/cpp/api/JsiSkPaint.h +199 -0
- package/cpp/api/JsiSkPath.h +592 -0
- package/cpp/api/JsiSkPathEffect.h +45 -0
- package/cpp/api/JsiSkPathEffectFactory.h +123 -0
- package/cpp/api/JsiSkPathFactory.h +172 -0
- package/cpp/api/JsiSkPicture.h +71 -0
- package/cpp/api/JsiSkPictureFactory.h +50 -0
- package/cpp/api/JsiSkPictureRecorder.h +53 -0
- package/cpp/api/JsiSkPoint.h +81 -0
- package/cpp/api/JsiSkRRect.h +93 -0
- package/cpp/api/JsiSkRSXform.h +105 -0
- package/cpp/api/JsiSkRect.h +119 -0
- package/cpp/api/JsiSkRuntimeEffect.h +222 -0
- package/cpp/api/JsiSkRuntimeEffectFactory.h +42 -0
- package/cpp/api/JsiSkRuntimeShaderBuilder.h +88 -0
- package/cpp/api/JsiSkSVG.h +43 -0
- package/cpp/api/JsiSkSVGFactory.h +48 -0
- package/cpp/api/JsiSkShader.h +45 -0
- package/cpp/api/JsiSkShaderFactory.h +214 -0
- package/cpp/api/JsiSkSurface.h +67 -0
- package/cpp/api/JsiSkSurfaceFactory.h +44 -0
- package/cpp/api/JsiSkTextBlob.h +50 -0
- package/cpp/api/JsiSkTextBlobFactory.h +109 -0
- package/cpp/api/JsiSkTypeface.h +85 -0
- package/cpp/api/JsiSkTypefaceFactory.h +34 -0
- package/cpp/api/JsiSkVertices.h +145 -0
- package/cpp/api/third_party/CSSColorParser.cpp +194 -0
- package/cpp/api/third_party/CSSColorParser.h +134 -0
- package/cpp/jsi/JsiHostObject.cpp +154 -0
- package/cpp/jsi/JsiHostObject.h +241 -0
- package/cpp/jsi/JsiSimpleValueWrapper.h +108 -0
- package/cpp/rnskia/RNSkAnimation.h +68 -0
- package/cpp/rnskia/RNSkDispatchQueue.cpp +84 -0
- package/cpp/rnskia/RNSkDispatchQueue.h +47 -0
- package/cpp/rnskia/RNSkDrawView.cpp +291 -0
- package/cpp/rnskia/RNSkDrawView.h +212 -0
- package/cpp/rnskia/RNSkInfoParameter.h +102 -0
- package/cpp/rnskia/RNSkJsiViewApi.h +308 -0
- package/cpp/rnskia/RNSkManager.cpp +81 -0
- package/cpp/rnskia/RNSkManager.h +81 -0
- package/cpp/rnskia/RNSkPlatformContext.h +196 -0
- package/cpp/rnskia/RNSkValueApi.h +73 -0
- package/cpp/rnskia/values/RNSkClockValue.h +141 -0
- package/cpp/rnskia/values/RNSkComputedValue.h +99 -0
- package/cpp/rnskia/values/RNSkReadonlyValue.h +142 -0
- package/cpp/rnskia/values/RNSkValue.h +117 -0
- package/cpp/skia/include/android/SkAndroidFrameworkUtils.h +61 -0
- package/cpp/skia/include/android/SkAnimatedImage.h +179 -0
- package/cpp/skia/include/c/sk_canvas.h +159 -0
- package/cpp/skia/include/c/sk_colorspace.h +25 -0
- package/cpp/skia/include/c/sk_data.h +65 -0
- package/cpp/skia/include/c/sk_image.h +71 -0
- package/cpp/skia/include/c/sk_imageinfo.h +62 -0
- package/cpp/skia/include/c/sk_maskfilter.h +47 -0
- package/cpp/skia/include/c/sk_matrix.h +49 -0
- package/cpp/skia/include/c/sk_paint.h +145 -0
- package/cpp/skia/include/c/sk_path.h +102 -0
- package/cpp/skia/include/c/sk_picture.h +70 -0
- package/cpp/skia/include/c/sk_shader.h +143 -0
- package/cpp/skia/include/c/sk_surface.h +73 -0
- package/cpp/skia/include/c/sk_types.h +278 -0
- package/cpp/skia/include/codec/SkAndroidCodec.h +263 -0
- package/cpp/skia/include/codec/SkCodec.h +998 -0
- package/cpp/skia/include/codec/SkCodecAnimation.h +61 -0
- package/cpp/skia/include/codec/SkEncodedOrigin.h +54 -0
- package/cpp/skia/include/config/SkUserConfig.h +89 -0
- package/cpp/skia/include/core/SkAlphaType.h +45 -0
- package/cpp/skia/include/core/SkAnnotation.h +50 -0
- package/cpp/skia/include/core/SkBBHFactory.h +63 -0
- package/cpp/skia/include/core/SkBitmap.h +1214 -0
- package/cpp/skia/include/core/SkBlendMode.h +110 -0
- package/cpp/skia/include/core/SkBlender.h +33 -0
- package/cpp/skia/include/core/SkBlurTypes.h +22 -0
- package/cpp/skia/include/core/SkCanvas.h +2594 -0
- package/cpp/skia/include/core/SkCanvasVirtualEnforcer.h +61 -0
- package/cpp/skia/include/core/SkClipOp.h +19 -0
- package/cpp/skia/include/core/SkColor.h +438 -0
- package/cpp/skia/include/core/SkColorFilter.h +91 -0
- package/cpp/skia/include/core/SkColorPriv.h +152 -0
- package/cpp/skia/include/core/SkColorSpace.h +245 -0
- package/cpp/skia/include/core/SkColorType.h +66 -0
- package/cpp/skia/include/core/SkContourMeasure.h +131 -0
- package/cpp/skia/include/core/SkCoverageMode.h +30 -0
- package/cpp/skia/include/core/SkCubicMap.h +45 -0
- package/cpp/skia/include/core/SkData.h +188 -0
- package/cpp/skia/include/core/SkDataTable.h +118 -0
- package/cpp/skia/include/core/SkDeferredDisplayList.h +110 -0
- package/cpp/skia/include/core/SkDeferredDisplayListRecorder.h +97 -0
- package/cpp/skia/include/core/SkDocument.h +91 -0
- package/cpp/skia/include/core/SkDrawLooper.h +135 -0
- package/cpp/skia/include/core/SkDrawable.h +167 -0
- package/cpp/skia/include/core/SkEncodedImageFormat.h +36 -0
- package/cpp/skia/include/core/SkExecutor.h +41 -0
- package/cpp/skia/include/core/SkFlattenable.h +113 -0
- package/cpp/skia/include/core/SkFont.h +535 -0
- package/cpp/skia/include/core/SkFontArguments.h +94 -0
- package/cpp/skia/include/core/SkFontMetrics.h +138 -0
- package/cpp/skia/include/core/SkFontMgr.h +157 -0
- package/cpp/skia/include/core/SkFontParameters.h +42 -0
- package/cpp/skia/include/core/SkFontStyle.h +81 -0
- package/cpp/skia/include/core/SkFontTypes.h +25 -0
- package/cpp/skia/include/core/SkGraphics.h +166 -0
- package/cpp/skia/include/core/SkICC.h +19 -0
- package/cpp/skia/include/core/SkImage.h +1347 -0
- package/cpp/skia/include/core/SkImageEncoder.h +69 -0
- package/cpp/skia/include/core/SkImageFilter.h +114 -0
- package/cpp/skia/include/core/SkImageGenerator.h +216 -0
- package/cpp/skia/include/core/SkImageInfo.h +614 -0
- package/cpp/skia/include/core/SkM44.h +426 -0
- package/cpp/skia/include/core/SkMallocPixelRef.h +42 -0
- package/cpp/skia/include/core/SkMaskFilter.h +50 -0
- package/cpp/skia/include/core/SkMath.h +54 -0
- package/cpp/skia/include/core/SkMatrix.h +1986 -0
- package/cpp/skia/include/core/SkMesh.h +303 -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 +68 -0
- package/cpp/skia/include/core/SkPaint.h +705 -0
- package/cpp/skia/include/core/SkPath.h +1878 -0
- package/cpp/skia/include/core/SkPathBuilder.h +263 -0
- package/cpp/skia/include/core/SkPathEffect.h +106 -0
- package/cpp/skia/include/core/SkPathMeasure.h +88 -0
- package/cpp/skia/include/core/SkPathTypes.h +59 -0
- package/cpp/skia/include/core/SkPicture.h +280 -0
- package/cpp/skia/include/core/SkPictureRecorder.h +115 -0
- package/cpp/skia/include/core/SkPixelRef.h +123 -0
- package/cpp/skia/include/core/SkPixmap.h +721 -0
- package/cpp/skia/include/core/SkPngChunkReader.h +45 -0
- package/cpp/skia/include/core/SkPoint.h +566 -0
- package/cpp/skia/include/core/SkPoint3.h +157 -0
- package/cpp/skia/include/core/SkPromiseImageTexture.h +46 -0
- package/cpp/skia/include/core/SkRRect.h +512 -0
- package/cpp/skia/include/core/SkRSXform.h +69 -0
- package/cpp/skia/include/core/SkRasterHandleAllocator.h +92 -0
- package/cpp/skia/include/core/SkRect.h +1378 -0
- package/cpp/skia/include/core/SkRefCnt.h +382 -0
- package/cpp/skia/include/core/SkRegion.h +672 -0
- package/cpp/skia/include/core/SkSamplingOptions.h +103 -0
- package/cpp/skia/include/core/SkScalar.h +194 -0
- package/cpp/skia/include/core/SkSerialProcs.h +73 -0
- package/cpp/skia/include/core/SkShader.h +148 -0
- package/cpp/skia/include/core/SkSize.h +90 -0
- package/cpp/skia/include/core/SkSpan.h +89 -0
- package/cpp/skia/include/core/SkStream.h +524 -0
- package/cpp/skia/include/core/SkString.h +299 -0
- package/cpp/skia/include/core/SkStrokeRec.h +154 -0
- package/cpp/skia/include/core/SkSurface.h +1100 -0
- package/cpp/skia/include/core/SkSurfaceCharacterization.h +263 -0
- package/cpp/skia/include/core/SkSurfaceProps.h +92 -0
- package/cpp/skia/include/core/SkSwizzle.h +19 -0
- package/cpp/skia/include/core/SkTextBlob.h +503 -0
- package/cpp/skia/include/core/SkTileMode.h +41 -0
- package/cpp/skia/include/core/SkTime.h +63 -0
- package/cpp/skia/include/core/SkTraceMemoryDump.h +99 -0
- package/cpp/skia/include/core/SkTypeface.h +470 -0
- package/cpp/skia/include/core/SkTypes.h +625 -0
- package/cpp/skia/include/core/SkUnPreMultiply.h +56 -0
- package/cpp/skia/include/core/SkVertices.h +132 -0
- package/cpp/skia/include/core/SkYUVAInfo.h +304 -0
- package/cpp/skia/include/core/SkYUVAPixmaps.h +336 -0
- package/cpp/skia/include/docs/SkPDFDocument.h +196 -0
- package/cpp/skia/include/docs/SkXPSDocument.h +27 -0
- package/cpp/skia/include/effects/Sk1DPathEffect.h +35 -0
- package/cpp/skia/include/effects/Sk2DPathEffect.h +30 -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 +55 -0
- package/cpp/skia/include/effects/SkColorMatrixFilter.h +25 -0
- package/cpp/skia/include/effects/SkCornerPathEffect.h +28 -0
- package/cpp/skia/include/effects/SkDashPathEffect.h +39 -0
- package/cpp/skia/include/effects/SkDiscretePathEffect.h +37 -0
- package/cpp/skia/include/effects/SkGradientShader.h +255 -0
- package/cpp/skia/include/effects/SkHighContrastFilter.h +80 -0
- package/cpp/skia/include/effects/SkImageFilters.h +551 -0
- package/cpp/skia/include/effects/SkLayerDrawLooper.h +161 -0
- package/cpp/skia/include/effects/SkLumaColorFilter.h +34 -0
- package/cpp/skia/include/effects/SkOpPathEffect.h +39 -0
- package/cpp/skia/include/effects/SkOverdrawColorFilter.h +29 -0
- package/cpp/skia/include/effects/SkPerlinNoiseShader.h +54 -0
- package/cpp/skia/include/effects/SkRuntimeEffect.h +522 -0
- package/cpp/skia/include/effects/SkShaderMaskFilter.h +24 -0
- package/cpp/skia/include/effects/SkStrokeAndFillPathEffect.h +28 -0
- package/cpp/skia/include/effects/SkTableColorFilter.h +42 -0
- package/cpp/skia/include/effects/SkTableMaskFilter.h +37 -0
- package/cpp/skia/include/effects/SkTrimPathEffect.h +41 -0
- package/cpp/skia/include/encode/SkEncoder.h +42 -0
- package/cpp/skia/include/encode/SkJpegEncoder.h +97 -0
- package/cpp/skia/include/encode/SkPngEncoder.h +99 -0
- package/cpp/skia/include/encode/SkWebpEncoder.h +48 -0
- package/cpp/skia/include/gpu/GpuTypes.h +32 -0
- package/cpp/skia/include/gpu/GrBackendDrawableInfo.h +44 -0
- package/cpp/skia/include/gpu/GrBackendSemaphore.h +140 -0
- package/cpp/skia/include/gpu/GrBackendSurface.h +644 -0
- package/cpp/skia/include/gpu/GrBackendSurfaceMutableState.h +91 -0
- package/cpp/skia/include/gpu/GrConfig.h +53 -0
- package/cpp/skia/include/gpu/GrContextOptions.h +355 -0
- package/cpp/skia/include/gpu/GrContextThreadSafeProxy.h +166 -0
- package/cpp/skia/include/gpu/GrDirectContext.h +885 -0
- package/cpp/skia/include/gpu/GrDriverBugWorkarounds.h +52 -0
- package/cpp/skia/include/gpu/GrDriverBugWorkaroundsAutogen.h +43 -0
- package/cpp/skia/include/gpu/GrRecordingContext.h +282 -0
- package/cpp/skia/include/gpu/GrSurfaceInfo.h +166 -0
- package/cpp/skia/include/gpu/GrTypes.h +244 -0
- package/cpp/skia/include/gpu/GrYUVABackendTextures.h +124 -0
- package/cpp/skia/include/gpu/ShaderErrorHandler.h +36 -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/dawn/GrDawnTypes.h +95 -0
- package/cpp/skia/include/gpu/gl/GrGLAssembleHelpers.h +11 -0
- package/cpp/skia/include/gpu/gl/GrGLAssembleInterface.h +39 -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 +306 -0
- package/cpp/skia/include/gpu/gl/GrGLInterface.h +342 -0
- package/cpp/skia/include/gpu/gl/GrGLTypes.h +207 -0
- package/cpp/skia/include/gpu/gl/egl/GrGLMakeEGLInterface.h +14 -0
- package/cpp/skia/include/gpu/gl/glx/GrGLMakeGLXInterface.h +14 -0
- package/cpp/skia/include/gpu/graphite/BackendTexture.h +64 -0
- package/cpp/skia/include/gpu/graphite/Context.h +124 -0
- package/cpp/skia/include/gpu/graphite/GraphiteTypes.h +71 -0
- package/cpp/skia/include/gpu/graphite/Recorder.h +104 -0
- package/cpp/skia/include/gpu/graphite/Recording.h +39 -0
- package/cpp/skia/include/gpu/graphite/SkStuff.h +47 -0
- package/cpp/skia/include/gpu/graphite/TextureInfo.h +91 -0
- package/cpp/skia/include/gpu/graphite/mtl/MtlBackendContext.h +24 -0
- package/cpp/skia/include/gpu/graphite/mtl/MtlTypes.h +68 -0
- package/cpp/skia/include/gpu/mock/GrMockTypes.h +143 -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/vk/GrVkBackendContext.h +76 -0
- package/cpp/skia/include/gpu/vk/GrVkExtensions.h +63 -0
- package/cpp/skia/include/gpu/vk/GrVkMemoryAllocator.h +140 -0
- package/cpp/skia/include/gpu/vk/GrVkTypes.h +187 -0
- package/cpp/skia/include/gpu/vk/GrVkVulkan.h +32 -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 +115 -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_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 +20 -0
- package/cpp/skia/include/ports/SkImageGeneratorNDK.h +40 -0
- package/cpp/skia/include/ports/SkImageGeneratorWIC.h +35 -0
- package/cpp/skia/include/ports/SkRemotableFontMgr.h +139 -0
- package/cpp/skia/include/ports/SkTypeface_mac.h +44 -0
- package/cpp/skia/include/ports/SkTypeface_win.h +79 -0
- package/cpp/skia/include/private/SingleOwner.h +72 -0
- package/cpp/skia/include/private/SkBitmaskEnum.h +59 -0
- package/cpp/skia/include/private/SkChecksum.h +77 -0
- package/cpp/skia/include/private/SkColorData.h +441 -0
- package/cpp/skia/include/private/SkDeque.h +141 -0
- package/cpp/skia/include/private/SkEncodedInfo.h +266 -0
- package/cpp/skia/include/private/SkFixed.h +141 -0
- package/cpp/skia/include/private/SkFloatBits.h +91 -0
- package/cpp/skia/include/private/SkFloatingPoint.h +219 -0
- package/cpp/skia/include/private/SkHalf.h +85 -0
- package/cpp/skia/include/private/SkIDChangeListener.h +75 -0
- package/cpp/skia/include/private/SkImageInfoPriv.h +199 -0
- package/cpp/skia/include/private/SkMacros.h +79 -0
- package/cpp/skia/include/private/SkMalloc.h +143 -0
- package/cpp/skia/include/private/SkMutex.h +64 -0
- package/cpp/skia/include/private/SkNoncopyable.h +30 -0
- package/cpp/skia/include/private/SkNx.h +430 -0
- package/cpp/skia/include/private/SkNx_neon.h +713 -0
- package/cpp/skia/include/private/SkNx_sse.h +823 -0
- package/cpp/skia/include/private/SkOnce.h +53 -0
- package/cpp/skia/include/private/SkOpts_spi.h +21 -0
- package/cpp/skia/include/private/SkPathRef.h +522 -0
- package/cpp/skia/include/private/SkSLDefines.h +64 -0
- package/cpp/skia/include/private/SkSLIRNode.h +64 -0
- package/cpp/skia/include/private/SkSLLayout.h +144 -0
- package/cpp/skia/include/private/SkSLModifiers.h +142 -0
- package/cpp/skia/include/private/SkSLProgramElement.h +77 -0
- package/cpp/skia/include/private/SkSLProgramKind.h +34 -0
- package/cpp/skia/include/private/SkSLSampleUsage.h +89 -0
- package/cpp/skia/include/private/SkSLStatement.h +86 -0
- package/cpp/skia/include/private/SkSLString.h +41 -0
- package/cpp/skia/include/private/SkSLSymbol.h +90 -0
- package/cpp/skia/include/private/SkSafe32.h +34 -0
- package/cpp/skia/include/private/SkSafe_math.h +52 -0
- package/cpp/skia/include/private/SkSemaphore.h +83 -0
- package/cpp/skia/include/private/SkShadowFlags.h +27 -0
- package/cpp/skia/include/private/SkSpinlock.h +57 -0
- package/cpp/skia/include/private/SkStringView.h +47 -0
- package/cpp/skia/include/private/SkTArray.h +641 -0
- package/cpp/skia/include/private/SkTDArray.h +385 -0
- package/cpp/skia/include/private/SkTFitsIn.h +99 -0
- package/cpp/skia/include/private/SkTHash.h +590 -0
- package/cpp/skia/include/private/SkTLogic.h +56 -0
- package/cpp/skia/include/private/SkTPin.h +23 -0
- package/cpp/skia/include/private/SkTemplates.h +453 -0
- package/cpp/skia/include/private/SkThreadAnnotations.h +91 -0
- package/cpp/skia/include/private/SkThreadID.h +20 -0
- package/cpp/skia/include/private/SkTo.h +28 -0
- package/cpp/skia/include/private/SkUniquePaintParamsID.h +35 -0
- package/cpp/skia/include/private/SkVx.h +943 -0
- package/cpp/skia/include/private/SkWeakRefCnt.h +170 -0
- package/cpp/skia/include/private/chromium/GrSlug.h +78 -0
- package/cpp/skia/include/private/chromium/SkChromeRemoteGlyphCache.h +149 -0
- package/cpp/skia/include/private/gpu/ganesh/GrContext_Base.h +99 -0
- package/cpp/skia/include/private/gpu/ganesh/GrD3DTypesMinimal.h +74 -0
- package/cpp/skia/include/private/gpu/ganesh/GrDawnTypesPriv.h +26 -0
- package/cpp/skia/include/private/gpu/ganesh/GrGLTypesPriv.h +108 -0
- package/cpp/skia/include/private/gpu/ganesh/GrImageContext.h +55 -0
- package/cpp/skia/include/private/gpu/ganesh/GrMockTypesPriv.h +31 -0
- package/cpp/skia/include/private/gpu/ganesh/GrMtlTypesPriv.h +75 -0
- package/cpp/skia/include/private/gpu/ganesh/GrTypesPriv.h +1012 -0
- package/cpp/skia/include/private/gpu/ganesh/GrVkTypesPriv.h +107 -0
- package/cpp/skia/include/private/gpu/graphite/MtlTypesPriv.h +74 -0
- package/cpp/skia/include/sksl/DSL.h +38 -0
- package/cpp/skia/include/sksl/DSLBlock.h +72 -0
- package/cpp/skia/include/sksl/DSLCase.h +68 -0
- package/cpp/skia/include/sksl/DSLCore.h +499 -0
- package/cpp/skia/include/sksl/DSLExpression.h +332 -0
- package/cpp/skia/include/sksl/DSLFunction.h +121 -0
- package/cpp/skia/include/sksl/DSLLayout.h +92 -0
- package/cpp/skia/include/sksl/DSLModifiers.h +66 -0
- package/cpp/skia/include/sksl/DSLRuntimeEffects.h +32 -0
- package/cpp/skia/include/sksl/DSLStatement.h +117 -0
- package/cpp/skia/include/sksl/DSLSymbols.h +71 -0
- package/cpp/skia/include/sksl/DSLType.h +263 -0
- package/cpp/skia/include/sksl/DSLVar.h +321 -0
- package/cpp/skia/include/sksl/DSLWrapper.h +77 -0
- package/cpp/skia/include/sksl/SkSLDebugTrace.h +28 -0
- package/cpp/skia/include/sksl/SkSLErrorReporter.h +78 -0
- package/cpp/skia/include/sksl/SkSLOperator.h +151 -0
- package/cpp/skia/include/sksl/SkSLPosition.h +102 -0
- package/cpp/skia/include/svg/SkSVGCanvas.h +41 -0
- package/cpp/skia/include/third_party/skcms/LICENSE +29 -0
- package/cpp/skia/include/third_party/skcms/skcms.h +394 -0
- package/cpp/skia/include/third_party/vulkan/LICENSE +29 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_platform.h +84 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan.h +93 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_android.h +112 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_core.h +12620 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_ios.h +47 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_macos.h +47 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_win32.h +315 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_xcb.h +55 -0
- package/cpp/skia/include/utils/SkAnimCodecPlayer.h +67 -0
- package/cpp/skia/include/utils/SkBase64.h +51 -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 +50 -0
- package/cpp/skia/include/utils/SkEventTracer.h +79 -0
- package/cpp/skia/include/utils/SkNWayCanvas.h +126 -0
- package/cpp/skia/include/utils/SkNoDrawCanvas.h +80 -0
- package/cpp/skia/include/utils/SkNullCanvas.h +22 -0
- package/cpp/skia/include/utils/SkOrderedFontMgr.h +65 -0
- package/cpp/skia/include/utils/SkPaintFilterCanvas.h +136 -0
- package/cpp/skia/include/utils/SkParse.h +34 -0
- package/cpp/skia/include/utils/SkParsePath.h +25 -0
- package/cpp/skia/include/utils/SkRandom.h +169 -0
- package/cpp/skia/include/utils/SkShadowUtils.h +86 -0
- package/cpp/skia/include/utils/SkTextUtils.h +42 -0
- package/cpp/skia/include/utils/SkTraceEventPhase.h +19 -0
- package/cpp/skia/include/utils/mac/SkCGUtils.h +78 -0
- package/cpp/skia/modules/skresources/include/SkResources.h +254 -0
- package/cpp/skia/modules/svg/include/SkSVGAttribute.h +113 -0
- package/cpp/skia/modules/svg/include/SkSVGAttributeParser.h +160 -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 +100 -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 +188 -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 +730 -0
- package/cpp/skia/modules/svg/include/SkSVGUse.h +42 -0
- package/cpp/skia/modules/svg/include/SkSVGValue.h +85 -0
- package/cpp/skia/readme.txt +1 -0
- package/cpp/utils/RNSkLog.h +80 -0
- package/cpp/utils/RNSkMeasureTime.h +32 -0
- package/cpp/utils/RNSkTimingInfo.h +103 -0
- package/ios/RNSkia-iOS/DisplayLink.h +17 -0
- package/ios/RNSkia-iOS/DisplayLink.mm +36 -0
- package/ios/RNSkia-iOS/PlatformContext.h +76 -0
- package/ios/RNSkia-iOS/PlatformContext.mm +52 -0
- package/ios/RNSkia-iOS/RNSkDrawViewImpl.h +52 -0
- package/ios/RNSkia-iOS/RNSkDrawViewImpl.mm +112 -0
- package/ios/RNSkia-iOS/SkiaDrawView.h +23 -0
- package/ios/RNSkia-iOS/SkiaDrawView.mm +169 -0
- package/ios/RNSkia-iOS/SkiaDrawViewManager.h +7 -0
- package/ios/RNSkia-iOS/SkiaDrawViewManager.mm +42 -0
- package/ios/RNSkia-iOS/SkiaManager.h +17 -0
- package/ios/RNSkia-iOS/SkiaManager.mm +50 -0
- package/ios/RNSkiaModule.h +11 -0
- package/ios/RNSkiaModule.mm +42 -0
- package/ios/Rnskia.xcodeproj/project.pbxproj +281 -0
- package/ios/Rnskia.xcworkspace/contents.xcworkspacedata +7 -0
- package/jestSetup.js +5 -0
- package/lib/commonjs/animation/decay/decay.js +42 -0
- package/lib/commonjs/animation/decay/decay.js.map +1 -0
- package/lib/commonjs/animation/decay/index.js +14 -0
- package/lib/commonjs/animation/decay/index.js.map +1 -0
- package/lib/commonjs/animation/decay/runDecay.js +48 -0
- package/lib/commonjs/animation/decay/runDecay.js.map +1 -0
- package/lib/commonjs/animation/decay/types.js +6 -0
- package/lib/commonjs/animation/decay/types.js.map +1 -0
- package/lib/commonjs/animation/functions/index.js +58 -0
- package/lib/commonjs/animation/functions/index.js.map +1 -0
- package/lib/commonjs/animation/functions/interpolate.js +142 -0
- package/lib/commonjs/animation/functions/interpolate.js.map +1 -0
- package/lib/commonjs/animation/functions/interpolateColors.js +39 -0
- package/lib/commonjs/animation/functions/interpolateColors.js.map +1 -0
- package/lib/commonjs/animation/functions/interpolatePaths.js +79 -0
- package/lib/commonjs/animation/functions/interpolatePaths.js.map +1 -0
- package/lib/commonjs/animation/functions/interpolateVector.js +20 -0
- package/lib/commonjs/animation/functions/interpolateVector.js.map +1 -0
- package/lib/commonjs/animation/index.js +58 -0
- package/lib/commonjs/animation/index.js.map +1 -0
- package/lib/commonjs/animation/spring/Spring.js +77 -0
- package/lib/commonjs/animation/spring/Spring.js.map +1 -0
- package/lib/commonjs/animation/spring/functions/index.js +14 -0
- package/lib/commonjs/animation/spring/functions/index.js.map +1 -0
- package/lib/commonjs/animation/spring/functions/spring.js +94 -0
- package/lib/commonjs/animation/spring/functions/spring.js.map +1 -0
- package/lib/commonjs/animation/spring/index.js +30 -0
- package/lib/commonjs/animation/spring/index.js.map +1 -0
- package/lib/commonjs/animation/spring/runSpring.js +32 -0
- package/lib/commonjs/animation/spring/runSpring.js.map +1 -0
- package/lib/commonjs/animation/spring/types.js +2 -0
- package/lib/commonjs/animation/spring/types.js.map +1 -0
- package/lib/commonjs/animation/spring/useSpring.js +24 -0
- package/lib/commonjs/animation/spring/useSpring.js.map +1 -0
- package/lib/commonjs/animation/timing/Easing.js +108 -0
- package/lib/commonjs/animation/timing/Easing.js.map +1 -0
- package/lib/commonjs/animation/timing/createTiming.js +59 -0
- package/lib/commonjs/animation/timing/createTiming.js.map +1 -0
- package/lib/commonjs/animation/timing/functions/bezier.js +147 -0
- package/lib/commonjs/animation/timing/functions/bezier.js.map +1 -0
- package/lib/commonjs/animation/timing/functions/getResolvedParams.js +56 -0
- package/lib/commonjs/animation/timing/functions/getResolvedParams.js.map +1 -0
- package/lib/commonjs/animation/timing/functions/index.js +54 -0
- package/lib/commonjs/animation/timing/functions/index.js.map +1 -0
- package/lib/commonjs/animation/timing/functions/timing.js +50 -0
- package/lib/commonjs/animation/timing/functions/timing.js.map +1 -0
- package/lib/commonjs/animation/timing/functions/types.js +2 -0
- package/lib/commonjs/animation/timing/functions/types.js.map +1 -0
- package/lib/commonjs/animation/timing/index.js +38 -0
- package/lib/commonjs/animation/timing/index.js.map +1 -0
- package/lib/commonjs/animation/timing/runTiming.js +33 -0
- package/lib/commonjs/animation/timing/runTiming.js.map +1 -0
- package/lib/commonjs/animation/timing/useLoop.js +22 -0
- package/lib/commonjs/animation/timing/useLoop.js.map +1 -0
- package/lib/commonjs/animation/timing/useTiming.js +66 -0
- package/lib/commonjs/animation/timing/useTiming.js.map +1 -0
- package/lib/commonjs/animation/types.js +2 -0
- package/lib/commonjs/animation/types.js.map +1 -0
- package/lib/commonjs/external/index.js +19 -0
- package/lib/commonjs/external/index.js.map +1 -0
- package/lib/commonjs/external/reanimated/index.js +19 -0
- package/lib/commonjs/external/reanimated/index.js.map +1 -0
- package/lib/commonjs/external/reanimated/useSharedValueEffect.js +86 -0
- package/lib/commonjs/external/reanimated/useSharedValueEffect.js.map +1 -0
- package/lib/commonjs/index.js +99 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/mock/index.js +134 -0
- package/lib/commonjs/mock/index.js.map +1 -0
- package/lib/commonjs/renderer/Canvas.js +163 -0
- package/lib/commonjs/renderer/Canvas.js.map +1 -0
- package/lib/commonjs/renderer/DependencyManager.js +70 -0
- package/lib/commonjs/renderer/DependencyManager.js.map +1 -0
- package/lib/commonjs/renderer/DrawingContext.js +6 -0
- package/lib/commonjs/renderer/DrawingContext.js.map +1 -0
- package/lib/commonjs/renderer/HostConfig.js +250 -0
- package/lib/commonjs/renderer/HostConfig.js.map +1 -0
- package/lib/commonjs/renderer/components/Blend.js +47 -0
- package/lib/commonjs/renderer/components/Blend.js.map +1 -0
- package/lib/commonjs/renderer/components/Compose.js +40 -0
- package/lib/commonjs/renderer/components/Compose.js.map +1 -0
- package/lib/commonjs/renderer/components/Drawing.js +31 -0
- package/lib/commonjs/renderer/components/Drawing.js.map +1 -0
- package/lib/commonjs/renderer/components/Group.js +85 -0
- package/lib/commonjs/renderer/components/Group.js.map +1 -0
- package/lib/commonjs/renderer/components/Mask.js +61 -0
- package/lib/commonjs/renderer/components/Mask.js.map +1 -0
- package/lib/commonjs/renderer/components/Paint.js +37 -0
- package/lib/commonjs/renderer/components/Paint.js.map +1 -0
- package/lib/commonjs/renderer/components/Picture.js +35 -0
- package/lib/commonjs/renderer/components/Picture.js.map +1 -0
- package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js +33 -0
- package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js.map +1 -0
- package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js +54 -0
- package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js.map +1 -0
- package/lib/commonjs/renderer/components/backdrop/index.js +32 -0
- package/lib/commonjs/renderer/components/backdrop/index.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/BlendColor.js +41 -0
- package/lib/commonjs/renderer/components/colorFilters/BlendColor.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/Compose.js +24 -0
- package/lib/commonjs/renderer/components/colorFilters/Compose.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/Lerp.js +39 -0
- package/lib/commonjs/renderer/components/colorFilters/Lerp.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js +33 -0
- package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js +33 -0
- package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/Matrix.js +40 -0
- package/lib/commonjs/renderer/components/colorFilters/Matrix.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js +33 -0
- package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/index.js +84 -0
- package/lib/commonjs/renderer/components/colorFilters/index.js.map +1 -0
- package/lib/commonjs/renderer/components/image/BoxFit.js +160 -0
- package/lib/commonjs/renderer/components/image/BoxFit.js.map +1 -0
- package/lib/commonjs/renderer/components/image/Image.js +56 -0
- package/lib/commonjs/renderer/components/image/Image.js.map +1 -0
- package/lib/commonjs/renderer/components/image/ImageSVG.js +46 -0
- package/lib/commonjs/renderer/components/image/ImageSVG.js.map +1 -0
- package/lib/commonjs/renderer/components/image/ImageShader.js +85 -0
- package/lib/commonjs/renderer/components/image/ImageShader.js.map +1 -0
- package/lib/commonjs/renderer/components/image/index.js +58 -0
- package/lib/commonjs/renderer/components/image/index.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/Blur.js +46 -0
- package/lib/commonjs/renderer/components/imageFilters/Blur.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js +54 -0
- package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/InnerShadow.js +28 -0
- package/lib/commonjs/renderer/components/imageFilters/InnerShadow.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/Morphology.js +44 -0
- package/lib/commonjs/renderer/components/imageFilters/Morphology.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/Offset.js +40 -0
- package/lib/commonjs/renderer/components/imageFilters/Offset.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js +44 -0
- package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/Shadow.js +55 -0
- package/lib/commonjs/renderer/components/imageFilters/Shadow.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/getInput.js +33 -0
- package/lib/commonjs/renderer/components/imageFilters/getInput.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/index.js +84 -0
- package/lib/commonjs/renderer/components/imageFilters/index.js.map +1 -0
- package/lib/commonjs/renderer/components/index.js +227 -0
- package/lib/commonjs/renderer/components/index.js.map +1 -0
- package/lib/commonjs/renderer/components/maskFilters/Blur.js +43 -0
- package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -0
- package/lib/commonjs/renderer/components/maskFilters/index.js +19 -0
- package/lib/commonjs/renderer/components/maskFilters/index.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Corner.js +46 -0
- package/lib/commonjs/renderer/components/pathEffects/Corner.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Dash.js +43 -0
- package/lib/commonjs/renderer/components/pathEffects/Dash.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Discrete.js +47 -0
- package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Line2D.js +47 -0
- package/lib/commonjs/renderer/components/pathEffects/Line2D.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Path1D.js +53 -0
- package/lib/commonjs/renderer/components/pathEffects/Path1D.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Path2D.js +49 -0
- package/lib/commonjs/renderer/components/pathEffects/Path2D.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Sum.js +33 -0
- package/lib/commonjs/renderer/components/pathEffects/Sum.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/index.js +97 -0
- package/lib/commonjs/renderer/components/pathEffects/index.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/Color.js +35 -0
- package/lib/commonjs/renderer/components/shaders/Color.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/FractalNoise.js +43 -0
- package/lib/commonjs/renderer/components/shaders/FractalNoise.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/Gradient.js +32 -0
- package/lib/commonjs/renderer/components/shaders/Gradient.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/LinearGradient.js +44 -0
- package/lib/commonjs/renderer/components/shaders/LinearGradient.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/RadialGradient.js +44 -0
- package/lib/commonjs/renderer/components/shaders/RadialGradient.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/Shader.js +42 -0
- package/lib/commonjs/renderer/components/shaders/Shader.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/ShaderLib.js +52 -0
- package/lib/commonjs/renderer/components/shaders/ShaderLib.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/SweepGradient.js +45 -0
- package/lib/commonjs/renderer/components/shaders/SweepGradient.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/Turbulence.js +43 -0
- package/lib/commonjs/renderer/components/shaders/Turbulence.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js +46 -0
- package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/index.js +123 -0
- package/lib/commonjs/renderer/components/shaders/index.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Box.js +123 -0
- package/lib/commonjs/renderer/components/shapes/Box.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Circle.js +44 -0
- package/lib/commonjs/renderer/components/shapes/Circle.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/DiffRect.js +35 -0
- package/lib/commonjs/renderer/components/shapes/DiffRect.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Fill.js +31 -0
- package/lib/commonjs/renderer/components/shapes/Fill.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/FitBox.js +42 -0
- package/lib/commonjs/renderer/components/shapes/FitBox.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Line.js +35 -0
- package/lib/commonjs/renderer/components/shapes/Line.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Oval.js +39 -0
- package/lib/commonjs/renderer/components/shapes/Oval.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Patch.js +53 -0
- package/lib/commonjs/renderer/components/shapes/Patch.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Path.js +67 -0
- package/lib/commonjs/renderer/components/shapes/Path.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Points.js +45 -0
- package/lib/commonjs/renderer/components/shapes/Points.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Rect.js +35 -0
- package/lib/commonjs/renderer/components/shapes/Rect.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/RoundedRect.js +38 -0
- package/lib/commonjs/renderer/components/shapes/RoundedRect.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Vertices.js +55 -0
- package/lib/commonjs/renderer/components/shapes/Vertices.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/index.js +175 -0
- package/lib/commonjs/renderer/components/shapes/index.js.map +1 -0
- package/lib/commonjs/renderer/components/text/Glyphs.js +61 -0
- package/lib/commonjs/renderer/components/text/Glyphs.js.map +1 -0
- package/lib/commonjs/renderer/components/text/Text.js +46 -0
- package/lib/commonjs/renderer/components/text/Text.js.map +1 -0
- package/lib/commonjs/renderer/components/text/TextBlob.js +40 -0
- package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -0
- package/lib/commonjs/renderer/components/text/TextPath.js +91 -0
- package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -0
- package/lib/commonjs/renderer/components/text/index.js +58 -0
- package/lib/commonjs/renderer/components/text/index.js.map +1 -0
- package/lib/commonjs/renderer/index.js +71 -0
- package/lib/commonjs/renderer/index.js.map +1 -0
- package/lib/commonjs/renderer/nodes/Container.js +28 -0
- package/lib/commonjs/renderer/nodes/Container.js.map +1 -0
- package/lib/commonjs/renderer/nodes/Declaration.js +58 -0
- package/lib/commonjs/renderer/nodes/Declaration.js.map +1 -0
- package/lib/commonjs/renderer/nodes/Drawing.js +60 -0
- package/lib/commonjs/renderer/nodes/Drawing.js.map +1 -0
- package/lib/commonjs/renderer/nodes/Node.js +71 -0
- package/lib/commonjs/renderer/nodes/Node.js.map +1 -0
- package/lib/commonjs/renderer/nodes/index.js +58 -0
- package/lib/commonjs/renderer/nodes/index.js.map +1 -0
- package/lib/commonjs/renderer/processors/Animations/Animations.js +52 -0
- package/lib/commonjs/renderer/processors/Animations/Animations.js.map +1 -0
- package/lib/commonjs/renderer/processors/Animations/index.js +19 -0
- package/lib/commonjs/renderer/processors/Animations/index.js.map +1 -0
- package/lib/commonjs/renderer/processors/Circles.js +24 -0
- package/lib/commonjs/renderer/processors/Circles.js.map +1 -0
- package/lib/commonjs/renderer/processors/Clips.js +24 -0
- package/lib/commonjs/renderer/processors/Clips.js.map +1 -0
- package/lib/commonjs/renderer/processors/Color.js +27 -0
- package/lib/commonjs/renderer/processors/Color.js.map +1 -0
- package/lib/commonjs/renderer/processors/Font.js +39 -0
- package/lib/commonjs/renderer/processors/Font.js.map +1 -0
- package/lib/commonjs/renderer/processors/Paint.js +98 -0
- package/lib/commonjs/renderer/processors/Paint.js.map +1 -0
- package/lib/commonjs/renderer/processors/Paths.js +26 -0
- package/lib/commonjs/renderer/processors/Paths.js.map +1 -0
- package/lib/commonjs/renderer/processors/Radius.js +17 -0
- package/lib/commonjs/renderer/processors/Radius.js.map +1 -0
- package/lib/commonjs/renderer/processors/Rects.js +41 -0
- package/lib/commonjs/renderer/processors/Rects.js.map +1 -0
- package/lib/commonjs/renderer/processors/Transform.js +65 -0
- package/lib/commonjs/renderer/processors/Transform.js.map +1 -0
- package/lib/commonjs/renderer/processors/index.js +149 -0
- package/lib/commonjs/renderer/processors/index.js.map +1 -0
- package/lib/commonjs/renderer/processors/math/Coordinates.js +43 -0
- package/lib/commonjs/renderer/processors/math/Coordinates.js.map +1 -0
- package/lib/commonjs/renderer/processors/math/Math.js +29 -0
- package/lib/commonjs/renderer/processors/math/Math.js.map +1 -0
- package/lib/commonjs/renderer/processors/math/Transforms.js +22 -0
- package/lib/commonjs/renderer/processors/math/Transforms.js.map +1 -0
- package/lib/commonjs/renderer/processors/math/index.js +45 -0
- package/lib/commonjs/renderer/processors/math/index.js.map +1 -0
- package/lib/commonjs/renderer/typeddash.js +41 -0
- package/lib/commonjs/renderer/typeddash.js.map +1 -0
- package/lib/commonjs/renderer/useCanvas.js +30 -0
- package/lib/commonjs/renderer/useCanvas.js.map +1 -0
- package/lib/commonjs/renderer/useContextBridge.js +35 -0
- package/lib/commonjs/renderer/useContextBridge.js.map +1 -0
- package/lib/commonjs/skia/NativeSetup.js +19 -0
- package/lib/commonjs/skia/NativeSetup.js.map +1 -0
- package/lib/commonjs/skia/Skia.js +15 -0
- package/lib/commonjs/skia/Skia.js.map +1 -0
- package/lib/commonjs/skia/Skia.web.js +12 -0
- package/lib/commonjs/skia/Skia.web.js.map +1 -0
- package/lib/commonjs/skia/core/Data.js +69 -0
- package/lib/commonjs/skia/core/Data.js.map +1 -0
- package/lib/commonjs/skia/core/Font.js +34 -0
- package/lib/commonjs/skia/core/Font.js.map +1 -0
- package/lib/commonjs/skia/core/Image.js +18 -0
- package/lib/commonjs/skia/core/Image.js.map +1 -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/Paint.js +28 -0
- package/lib/commonjs/skia/core/Paint.js.map +1 -0
- package/lib/commonjs/skia/core/Path.js +72 -0
- package/lib/commonjs/skia/core/Path.js.map +1 -0
- package/lib/commonjs/skia/core/Picture.js +30 -0
- package/lib/commonjs/skia/core/Picture.js.map +1 -0
- package/lib/commonjs/skia/core/RRect.js +13 -0
- package/lib/commonjs/skia/core/RRect.js.map +1 -0
- package/lib/commonjs/skia/core/Rect.js +47 -0
- package/lib/commonjs/skia/core/Rect.js.map +1 -0
- package/lib/commonjs/skia/core/SVG.js +15 -0
- package/lib/commonjs/skia/core/SVG.js.map +1 -0
- package/lib/commonjs/skia/core/Typeface.js +18 -0
- package/lib/commonjs/skia/core/Typeface.js.map +1 -0
- package/lib/commonjs/skia/core/Vector.js +49 -0
- package/lib/commonjs/skia/core/Vector.js.map +1 -0
- package/lib/commonjs/skia/core/index.js +162 -0
- package/lib/commonjs/skia/core/index.js.map +1 -0
- package/lib/commonjs/skia/index.js +45 -0
- package/lib/commonjs/skia/index.js.map +1 -0
- package/lib/commonjs/skia/types/Canvas.js +22 -0
- package/lib/commonjs/skia/types/Canvas.js.map +1 -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.js +11 -0
- package/lib/commonjs/skia/types/ColorFilter/ColorFilter.js.map +1 -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.js +32 -0
- package/lib/commonjs/skia/types/ColorFilter/index.js.map +1 -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.js +6 -0
- package/lib/commonjs/skia/types/Data/Data.js.map +1 -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.js +32 -0
- package/lib/commonjs/skia/types/Data/index.js.map +1 -0
- package/lib/commonjs/skia/types/Font/Font.js +81 -0
- package/lib/commonjs/skia/types/Font/Font.js.map +1 -0
- package/lib/commonjs/skia/types/Font/index.js +19 -0
- package/lib/commonjs/skia/types/Font/index.js.map +1 -0
- package/lib/commonjs/skia/types/FontMgr/FontMgr.js +6 -0
- package/lib/commonjs/skia/types/FontMgr/FontMgr.js.map +1 -0
- package/lib/commonjs/skia/types/FontMgr/FontMgrFactory.js +6 -0
- package/lib/commonjs/skia/types/FontMgr/FontMgrFactory.js.map +1 -0
- package/lib/commonjs/skia/types/FontMgr/index.js +32 -0
- package/lib/commonjs/skia/types/FontMgr/index.js.map +1 -0
- package/lib/commonjs/skia/types/Image/Image.js +32 -0
- package/lib/commonjs/skia/types/Image/Image.js.map +1 -0
- package/lib/commonjs/skia/types/Image/ImageFactory.js +46 -0
- package/lib/commonjs/skia/types/Image/ImageFactory.js.map +1 -0
- package/lib/commonjs/skia/types/Image/index.js +32 -0
- package/lib/commonjs/skia/types/Image/index.js.map +1 -0
- package/lib/commonjs/skia/types/ImageFilter/ImageFilter.js +20 -0
- package/lib/commonjs/skia/types/ImageFilter/ImageFilter.js.map +1 -0
- package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js +16 -0
- package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -0
- package/lib/commonjs/skia/types/ImageFilter/index.js +32 -0
- package/lib/commonjs/skia/types/ImageFilter/index.js.map +1 -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.js +20 -0
- package/lib/commonjs/skia/types/MaskFilter.js.map +1 -0
- package/lib/commonjs/skia/types/Matrix.js +78 -0
- package/lib/commonjs/skia/types/Matrix.js.map +1 -0
- package/lib/commonjs/skia/types/Paint/BlendMode.js +69 -0
- package/lib/commonjs/skia/types/Paint/BlendMode.js.map +1 -0
- package/lib/commonjs/skia/types/Paint/Paint.js +36 -0
- package/lib/commonjs/skia/types/Paint/Paint.js.map +1 -0
- package/lib/commonjs/skia/types/Paint/index.js +32 -0
- package/lib/commonjs/skia/types/Paint/index.js.map +1 -0
- package/lib/commonjs/skia/types/Path/Path.js +47 -0
- package/lib/commonjs/skia/types/Path/Path.js.map +1 -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.js +32 -0
- package/lib/commonjs/skia/types/Path/index.js.map +1 -0
- package/lib/commonjs/skia/types/PathEffect.js +19 -0
- package/lib/commonjs/skia/types/PathEffect.js.map +1 -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.js +6 -0
- package/lib/commonjs/skia/types/Picture/PictureFactory.js.map +1 -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.js +45 -0
- package/lib/commonjs/skia/types/Picture/index.js.map +1 -0
- package/lib/commonjs/skia/types/Point.js +15 -0
- package/lib/commonjs/skia/types/Point.js.map +1 -0
- package/lib/commonjs/skia/types/RRect.js +13 -0
- package/lib/commonjs/skia/types/RRect.js.map +1 -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.js +2 -0
- package/lib/commonjs/skia/types/Rect.js.map +1 -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.js +6 -0
- package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffectFactory.js.map +1 -0
- package/lib/commonjs/skia/types/RuntimeEffect/index.js +32 -0
- package/lib/commonjs/skia/types/RuntimeEffect/index.js.map +1 -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.js +6 -0
- package/lib/commonjs/skia/types/SVG/SVGFactory.js.map +1 -0
- package/lib/commonjs/skia/types/SVG/index.js +32 -0
- package/lib/commonjs/skia/types/SVG/index.js.map +1 -0
- package/lib/commonjs/skia/types/Shader/Shader.js +55 -0
- package/lib/commonjs/skia/types/Shader/Shader.js.map +1 -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.js +32 -0
- package/lib/commonjs/skia/types/Shader/index.js.map +1 -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.js +6 -0
- package/lib/commonjs/skia/types/Surface/Surface.js.map +1 -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.js +32 -0
- package/lib/commonjs/skia/types/Surface/index.js.map +1 -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.js +6 -0
- package/lib/commonjs/skia/types/Typeface/Typeface.js.map +1 -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.js +32 -0
- package/lib/commonjs/skia/types/Typeface/index.js.map +1 -0
- package/lib/commonjs/skia/types/Vertices/Vertices.js +15 -0
- package/lib/commonjs/skia/types/Vertices/Vertices.js.map +1 -0
- package/lib/commonjs/skia/types/Vertices/index.js +19 -0
- package/lib/commonjs/skia/types/Vertices/index.js.map +1 -0
- package/lib/commonjs/skia/types/index.js +370 -0
- package/lib/commonjs/skia/types/index.js.map +1 -0
- package/lib/commonjs/skia/web/Host.js +75 -0
- package/lib/commonjs/skia/web/Host.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkCanvas.js +184 -0
- package/lib/commonjs/skia/web/JsiSkCanvas.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkColor.js +339 -0
- package/lib/commonjs/skia/web/JsiSkColor.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkColorFilter.js +18 -0
- package/lib/commonjs/skia/web/JsiSkColorFilter.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js +48 -0
- package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkContourMeasure.js +42 -0
- package/lib/commonjs/skia/web/JsiSkContourMeasure.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js +30 -0
- package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkData.js +18 -0
- package/lib/commonjs/skia/web/JsiSkData.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkDataFactory.js +44 -0
- package/lib/commonjs/skia/web/JsiSkDataFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkFont.js +119 -0
- package/lib/commonjs/skia/web/JsiSkFont.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkFontMgr.js +33 -0
- package/lib/commonjs/skia/web/JsiSkFontMgr.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js +25 -0
- package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkImage.js +60 -0
- package/lib/commonjs/skia/web/JsiSkImage.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkImageFactory.js +47 -0
- package/lib/commonjs/skia/web/JsiSkImageFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkImageFilter.js +18 -0
- package/lib/commonjs/skia/web/JsiSkImageFilter.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js +68 -0
- package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkMaskFilter.js +18 -0
- package/lib/commonjs/skia/web/JsiSkMaskFilter.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js +24 -0
- package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkMatrix.js +38 -0
- package/lib/commonjs/skia/web/JsiSkMatrix.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPaint.js +101 -0
- package/lib/commonjs/skia/web/JsiSkPaint.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPath.js +337 -0
- package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPathEffect.js +18 -0
- package/lib/commonjs/skia/web/JsiSkPathEffect.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js +78 -0
- package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPathFactory.js +58 -0
- package/lib/commonjs/skia/web/JsiSkPathFactory.js.map +1 -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.js +30 -0
- package/lib/commonjs/skia/web/JsiSkPictureFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPictureRecorder.js +30 -0
- package/lib/commonjs/skia/web/JsiSkPictureRecorder.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPoint.js +26 -0
- package/lib/commonjs/skia/web/JsiSkPoint.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkRRect.js +32 -0
- package/lib/commonjs/skia/web/JsiSkRRect.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkRSXform.js +18 -0
- package/lib/commonjs/skia/web/JsiSkRSXform.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkRect.js +42 -0
- package/lib/commonjs/skia/web/JsiSkRect.js.map +1 -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.js +30 -0
- package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkSVGFactory.js +26 -0
- package/lib/commonjs/skia/web/JsiSkSVGFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkShader.js +18 -0
- package/lib/commonjs/skia/web/JsiSkShader.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkShaderFactory.js +52 -0
- package/lib/commonjs/skia/web/JsiSkShaderFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkSurface.js +31 -0
- package/lib/commonjs/skia/web/JsiSkSurface.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js +30 -0
- package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkTextBlob.js +18 -0
- package/lib/commonjs/skia/web/JsiSkTextBlob.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js +36 -0
- package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkTypeface.js +28 -0
- package/lib/commonjs/skia/web/JsiSkTypeface.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js +30 -0
- package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkVertices.js +28 -0
- package/lib/commonjs/skia/web/JsiSkVertices.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkVerticesFactory.js +49 -0
- package/lib/commonjs/skia/web/JsiSkVerticesFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkia.js +97 -0
- package/lib/commonjs/skia/web/JsiSkia.js.map +1 -0
- package/lib/commonjs/skia/web/index.js +19 -0
- package/lib/commonjs/skia/web/index.js.map +1 -0
- package/lib/commonjs/values/api.js +12 -0
- package/lib/commonjs/values/api.js.map +1 -0
- package/lib/commonjs/values/api.web.js +18 -0
- package/lib/commonjs/values/api.web.js.map +1 -0
- package/lib/commonjs/values/hooks/index.js +58 -0
- package/lib/commonjs/values/hooks/index.js.map +1 -0
- package/lib/commonjs/values/hooks/useClockValue.js +27 -0
- package/lib/commonjs/values/hooks/useClockValue.js.map +1 -0
- package/lib/commonjs/values/hooks/useComputedValue.js +32 -0
- package/lib/commonjs/values/hooks/useComputedValue.js.map +1 -0
- package/lib/commonjs/values/hooks/useValue.js +23 -0
- package/lib/commonjs/values/hooks/useValue.js.map +1 -0
- package/lib/commonjs/values/hooks/useValueEffect.js +22 -0
- package/lib/commonjs/values/hooks/useValueEffect.js.map +1 -0
- package/lib/commonjs/values/index.js +45 -0
- package/lib/commonjs/values/index.js.map +1 -0
- package/lib/commonjs/values/types.js +2 -0
- package/lib/commonjs/values/types.js.map +1 -0
- package/lib/commonjs/values/web/RNSkAnimation.js +46 -0
- package/lib/commonjs/values/web/RNSkAnimation.js.map +1 -0
- package/lib/commonjs/values/web/RNSkClockValue.js +75 -0
- package/lib/commonjs/values/web/RNSkClockValue.js.map +1 -0
- package/lib/commonjs/values/web/RNSkComputedValue.js +51 -0
- package/lib/commonjs/values/web/RNSkComputedValue.js.map +1 -0
- package/lib/commonjs/values/web/RNSkReadonlyValue.js +45 -0
- package/lib/commonjs/values/web/RNSkReadonlyValue.js.map +1 -0
- package/lib/commonjs/values/web/RNSkValue.js +73 -0
- package/lib/commonjs/values/web/RNSkValue.js.map +1 -0
- package/lib/commonjs/values/web/api.js +31 -0
- package/lib/commonjs/values/web/api.js.map +1 -0
- package/lib/commonjs/values/web/index.js +19 -0
- package/lib/commonjs/values/web/index.js.map +1 -0
- package/lib/commonjs/views/SkiaView.js +128 -0
- package/lib/commonjs/views/SkiaView.js.map +1 -0
- package/lib/commonjs/views/SkiaView.web.js +216 -0
- package/lib/commonjs/views/SkiaView.web.js.map +1 -0
- package/lib/commonjs/views/api.js +11 -0
- package/lib/commonjs/views/api.js.map +1 -0
- package/lib/commonjs/views/index.js +58 -0
- package/lib/commonjs/views/index.js.map +1 -0
- package/lib/commonjs/views/types.js +16 -0
- package/lib/commonjs/views/types.js.map +1 -0
- package/lib/commonjs/views/useDrawCallback.js +23 -0
- package/lib/commonjs/views/useDrawCallback.js.map +1 -0
- package/lib/commonjs/views/useTouchHandler.js +99 -0
- package/lib/commonjs/views/useTouchHandler.js.map +1 -0
- package/lib/commonjs/web/index.js +22 -0
- package/lib/commonjs/web/index.js.map +1 -0
- package/lib/module/animation/decay/decay.js +33 -0
- package/lib/module/animation/decay/decay.js.map +1 -0
- package/lib/module/animation/decay/index.js +2 -0
- package/lib/module/animation/decay/index.js.map +1 -0
- package/lib/module/animation/decay/runDecay.js +38 -0
- package/lib/module/animation/decay/runDecay.js.map +1 -0
- package/lib/module/animation/decay/types.js +2 -0
- package/lib/module/animation/decay/types.js.map +1 -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.js +132 -0
- package/lib/module/animation/functions/interpolate.js.map +1 -0
- package/lib/module/animation/functions/interpolateColors.js +23 -0
- package/lib/module/animation/functions/interpolateColors.js.map +1 -0
- package/lib/module/animation/functions/interpolatePaths.js +69 -0
- package/lib/module/animation/functions/interpolatePaths.js.map +1 -0
- package/lib/module/animation/functions/interpolateVector.js +7 -0
- package/lib/module/animation/functions/interpolateVector.js.map +1 -0
- package/lib/module/animation/index.js +5 -0
- package/lib/module/animation/index.js.map +1 -0
- package/lib/module/animation/spring/Spring.js +69 -0
- package/lib/module/animation/spring/Spring.js.map +1 -0
- package/lib/module/animation/spring/functions/index.js +2 -0
- package/lib/module/animation/spring/functions/index.js.map +1 -0
- package/lib/module/animation/spring/functions/spring.js +85 -0
- package/lib/module/animation/spring/functions/spring.js.map +1 -0
- package/lib/module/animation/spring/index.js +4 -0
- package/lib/module/animation/spring/index.js.map +1 -0
- package/lib/module/animation/spring/runSpring.js +21 -0
- package/lib/module/animation/spring/runSpring.js.map +1 -0
- package/lib/module/animation/spring/types.js +2 -0
- package/lib/module/animation/spring/types.js.map +1 -0
- package/lib/module/animation/spring/useSpring.js +13 -0
- package/lib/module/animation/spring/useSpring.js.map +1 -0
- package/lib/module/animation/timing/Easing.js +98 -0
- package/lib/module/animation/timing/Easing.js.map +1 -0
- package/lib/module/animation/timing/createTiming.js +49 -0
- package/lib/module/animation/timing/createTiming.js.map +1 -0
- package/lib/module/animation/timing/functions/bezier.js +141 -0
- package/lib/module/animation/timing/functions/bezier.js.map +1 -0
- package/lib/module/animation/timing/functions/getResolvedParams.js +48 -0
- package/lib/module/animation/timing/functions/getResolvedParams.js.map +1 -0
- package/lib/module/animation/timing/functions/index.js +5 -0
- package/lib/module/animation/timing/functions/index.js.map +1 -0
- package/lib/module/animation/timing/functions/timing.js +41 -0
- package/lib/module/animation/timing/functions/timing.js.map +1 -0
- package/lib/module/animation/timing/functions/types.js +2 -0
- package/lib/module/animation/timing/functions/types.js.map +1 -0
- package/lib/module/animation/timing/index.js +5 -0
- package/lib/module/animation/timing/index.js.map +1 -0
- package/lib/module/animation/timing/runTiming.js +23 -0
- package/lib/module/animation/timing/runTiming.js.map +1 -0
- package/lib/module/animation/timing/useLoop.js +13 -0
- package/lib/module/animation/timing/useLoop.js.map +1 -0
- package/lib/module/animation/timing/useTiming.js +54 -0
- package/lib/module/animation/timing/useTiming.js.map +1 -0
- package/lib/module/animation/types.js +2 -0
- package/lib/module/animation/types.js.map +1 -0
- package/lib/module/external/index.js +2 -0
- package/lib/module/external/index.js.map +1 -0
- package/lib/module/external/reanimated/index.js +2 -0
- package/lib/module/external/reanimated/index.js.map +1 -0
- package/lib/module/external/reanimated/useSharedValueEffect.js +81 -0
- package/lib/module/external/reanimated/useSharedValueEffect.js.map +1 -0
- package/lib/module/index.js +9 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/mock/index.js +108 -0
- package/lib/module/mock/index.js.map +1 -0
- package/lib/module/renderer/Canvas.js +131 -0
- package/lib/module/renderer/Canvas.js.map +1 -0
- package/lib/module/renderer/DependencyManager.js +60 -0
- package/lib/module/renderer/DependencyManager.js.map +1 -0
- package/lib/module/renderer/DrawingContext.js +2 -0
- package/lib/module/renderer/DrawingContext.js.map +1 -0
- package/lib/module/renderer/HostConfig.js +237 -0
- package/lib/module/renderer/HostConfig.js.map +1 -0
- package/lib/module/renderer/components/Blend.js +30 -0
- package/lib/module/renderer/components/Blend.js.map +1 -0
- package/lib/module/renderer/components/Compose.js +25 -0
- package/lib/module/renderer/components/Compose.js.map +1 -0
- package/lib/module/renderer/components/Drawing.js +17 -0
- package/lib/module/renderer/components/Drawing.js.map +1 -0
- package/lib/module/renderer/components/Group.js +69 -0
- package/lib/module/renderer/components/Group.js.map +1 -0
- package/lib/module/renderer/components/Mask.js +44 -0
- package/lib/module/renderer/components/Mask.js.map +1 -0
- package/lib/module/renderer/components/Paint.js +19 -0
- package/lib/module/renderer/components/Paint.js.map +1 -0
- package/lib/module/renderer/components/Picture.js +21 -0
- package/lib/module/renderer/components/Picture.js.map +1 -0
- package/lib/module/renderer/components/backdrop/BackdropBlur.js +19 -0
- package/lib/module/renderer/components/backdrop/BackdropBlur.js.map +1 -0
- package/lib/module/renderer/components/backdrop/BackdropFilter.js +39 -0
- package/lib/module/renderer/components/backdrop/BackdropFilter.js.map +1 -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.js +24 -0
- package/lib/module/renderer/components/colorFilters/BlendColor.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/Compose.js +14 -0
- package/lib/module/renderer/components/colorFilters/Compose.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/Lerp.js +23 -0
- package/lib/module/renderer/components/colorFilters/Lerp.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js +19 -0
- package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/LumaColorFilter.js +19 -0
- package/lib/module/renderer/components/colorFilters/LumaColorFilter.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/Matrix.js +22 -0
- package/lib/module/renderer/components/colorFilters/Matrix.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js +19 -0
- package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -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/BoxFit.js +144 -0
- package/lib/module/renderer/components/image/BoxFit.js.map +1 -0
- package/lib/module/renderer/components/image/Image.js +40 -0
- package/lib/module/renderer/components/image/Image.js.map +1 -0
- package/lib/module/renderer/components/image/ImageSVG.js +31 -0
- package/lib/module/renderer/components/image/ImageSVG.js.map +1 -0
- package/lib/module/renderer/components/image/ImageShader.js +69 -0
- package/lib/module/renderer/components/image/ImageShader.js.map +1 -0
- package/lib/module/renderer/components/image/index.js +5 -0
- package/lib/module/renderer/components/image/index.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/Blur.js +28 -0
- package/lib/module/renderer/components/imageFilters/Blur.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/DisplacementMap.js +34 -0
- package/lib/module/renderer/components/imageFilters/DisplacementMap.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/InnerShadow.js +17 -0
- package/lib/module/renderer/components/imageFilters/InnerShadow.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/Morphology.js +28 -0
- package/lib/module/renderer/components/imageFilters/Morphology.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/Offset.js +25 -0
- package/lib/module/renderer/components/imageFilters/Offset.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/RuntimeShader.js +28 -0
- package/lib/module/renderer/components/imageFilters/RuntimeShader.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/Shadow.js +38 -0
- package/lib/module/renderer/components/imageFilters/Shadow.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/getInput.js +23 -0
- package/lib/module/renderer/components/imageFilters/getInput.js.map +1 -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.js +18 -0
- package/lib/module/renderer/components/index.js.map +1 -0
- package/lib/module/renderer/components/maskFilters/Blur.js +27 -0
- package/lib/module/renderer/components/maskFilters/Blur.js.map +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/pathEffects/Corner.js +31 -0
- package/lib/module/renderer/components/pathEffects/Corner.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Dash.js +28 -0
- package/lib/module/renderer/components/pathEffects/Dash.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Discrete.js +32 -0
- package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Line2D.js +32 -0
- package/lib/module/renderer/components/pathEffects/Line2D.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Path1D.js +36 -0
- package/lib/module/renderer/components/pathEffects/Path1D.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Path2D.js +33 -0
- package/lib/module/renderer/components/pathEffects/Path2D.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Sum.js +18 -0
- package/lib/module/renderer/components/pathEffects/Sum.js.map +1 -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.js +20 -0
- package/lib/module/renderer/components/shaders/Color.js.map +1 -0
- package/lib/module/renderer/components/shaders/FractalNoise.js +29 -0
- package/lib/module/renderer/components/shaders/FractalNoise.js.map +1 -0
- package/lib/module/renderer/components/shaders/Gradient.js +20 -0
- package/lib/module/renderer/components/shaders/Gradient.js.map +1 -0
- package/lib/module/renderer/components/shaders/LinearGradient.js +29 -0
- package/lib/module/renderer/components/shaders/LinearGradient.js.map +1 -0
- package/lib/module/renderer/components/shaders/RadialGradient.js +29 -0
- package/lib/module/renderer/components/shaders/RadialGradient.js.map +1 -0
- package/lib/module/renderer/components/shaders/Shader.js +26 -0
- package/lib/module/renderer/components/shaders/Shader.js.map +1 -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.js +30 -0
- package/lib/module/renderer/components/shaders/SweepGradient.js.map +1 -0
- package/lib/module/renderer/components/shaders/Turbulence.js +29 -0
- package/lib/module/renderer/components/shaders/Turbulence.js.map +1 -0
- package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js +31 -0
- package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -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/Box.js +103 -0
- package/lib/module/renderer/components/shapes/Box.js.map +1 -0
- package/lib/module/renderer/components/shapes/Circle.js +29 -0
- package/lib/module/renderer/components/shapes/Circle.js.map +1 -0
- package/lib/module/renderer/components/shapes/DiffRect.js +21 -0
- package/lib/module/renderer/components/shapes/DiffRect.js.map +1 -0
- package/lib/module/renderer/components/shapes/Fill.js +17 -0
- package/lib/module/renderer/components/shapes/Fill.js.map +1 -0
- package/lib/module/renderer/components/shapes/FitBox.js +23 -0
- package/lib/module/renderer/components/shapes/FitBox.js.map +1 -0
- package/lib/module/renderer/components/shapes/Line.js +21 -0
- package/lib/module/renderer/components/shapes/Line.js.map +1 -0
- package/lib/module/renderer/components/shapes/Oval.js +24 -0
- package/lib/module/renderer/components/shapes/Oval.js.map +1 -0
- package/lib/module/renderer/components/shapes/Patch.js +36 -0
- package/lib/module/renderer/components/shapes/Patch.js.map +1 -0
- package/lib/module/renderer/components/shapes/Path.js +51 -0
- package/lib/module/renderer/components/shapes/Path.js.map +1 -0
- package/lib/module/renderer/components/shapes/Points.js +27 -0
- package/lib/module/renderer/components/shapes/Points.js.map +1 -0
- package/lib/module/renderer/components/shapes/Rect.js +20 -0
- package/lib/module/renderer/components/shapes/Rect.js.map +1 -0
- package/lib/module/renderer/components/shapes/RoundedRect.js +23 -0
- package/lib/module/renderer/components/shapes/RoundedRect.js.map +1 -0
- package/lib/module/renderer/components/shapes/Vertices.js +38 -0
- package/lib/module/renderer/components/shapes/Vertices.js.map +1 -0
- package/lib/module/renderer/components/shapes/index.js +14 -0
- package/lib/module/renderer/components/shapes/index.js.map +1 -0
- package/lib/module/renderer/components/text/Glyphs.js +46 -0
- package/lib/module/renderer/components/text/Glyphs.js.map +1 -0
- package/lib/module/renderer/components/text/Text.js +31 -0
- package/lib/module/renderer/components/text/Text.js.map +1 -0
- package/lib/module/renderer/components/text/TextBlob.js +26 -0
- package/lib/module/renderer/components/text/TextBlob.js.map +1 -0
- package/lib/module/renderer/components/text/TextPath.js +76 -0
- package/lib/module/renderer/components/text/TextPath.js.map +1 -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.js +6 -0
- package/lib/module/renderer/index.js.map +1 -0
- package/lib/module/renderer/nodes/Container.js +18 -0
- package/lib/module/renderer/nodes/Container.js.map +1 -0
- package/lib/module/renderer/nodes/Declaration.js +37 -0
- package/lib/module/renderer/nodes/Declaration.js.map +1 -0
- package/lib/module/renderer/nodes/Drawing.js +40 -0
- package/lib/module/renderer/nodes/Drawing.js.map +1 -0
- package/lib/module/renderer/nodes/Node.js +61 -0
- package/lib/module/renderer/nodes/Node.js.map +1 -0
- package/lib/module/renderer/nodes/index.js +5 -0
- package/lib/module/renderer/nodes/index.js.map +1 -0
- package/lib/module/renderer/processors/Animations/Animations.js +36 -0
- package/lib/module/renderer/processors/Animations/Animations.js.map +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/Circles.js +15 -0
- package/lib/module/renderer/processors/Circles.js.map +1 -0
- package/lib/module/renderer/processors/Clips.js +13 -0
- package/lib/module/renderer/processors/Clips.js.map +1 -0
- package/lib/module/renderer/processors/Color.js +11 -0
- package/lib/module/renderer/processors/Color.js.map +1 -0
- package/lib/module/renderer/processors/Font.js +27 -0
- package/lib/module/renderer/processors/Font.js.map +1 -0
- package/lib/module/renderer/processors/Paint.js +84 -0
- package/lib/module/renderer/processors/Paint.js.map +1 -0
- package/lib/module/renderer/processors/Paths.js +13 -0
- package/lib/module/renderer/processors/Paths.js.map +1 -0
- package/lib/module/renderer/processors/Radius.js +8 -0
- package/lib/module/renderer/processors/Radius.js.map +1 -0
- package/lib/module/renderer/processors/Rects.js +25 -0
- package/lib/module/renderer/processors/Rects.js.map +1 -0
- package/lib/module/renderer/processors/Transform.js +49 -0
- package/lib/module/renderer/processors/Transform.js.map +1 -0
- package/lib/module/renderer/processors/index.js +12 -0
- package/lib/module/renderer/processors/index.js.map +1 -0
- package/lib/module/renderer/processors/math/Coordinates.js +19 -0
- package/lib/module/renderer/processors/math/Coordinates.js.map +1 -0
- package/lib/module/renderer/processors/math/Math.js +17 -0
- package/lib/module/renderer/processors/math/Math.js.map +1 -0
- package/lib/module/renderer/processors/math/Transforms.js +12 -0
- package/lib/module/renderer/processors/math/Transforms.js.map +1 -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.js +26 -0
- package/lib/module/renderer/typeddash.js.map +1 -0
- package/lib/module/renderer/useCanvas.js +13 -0
- package/lib/module/renderer/useCanvas.js.map +1 -0
- package/lib/module/renderer/useContextBridge.js +21 -0
- package/lib/module/renderer/useContextBridge.js.map +1 -0
- package/lib/module/skia/NativeSetup.js +17 -0
- package/lib/module/skia/NativeSetup.js.map +1 -0
- package/lib/module/skia/Skia.js +7 -0
- package/lib/module/skia/Skia.js.map +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/Data.js +53 -0
- package/lib/module/skia/core/Data.js.map +1 -0
- package/lib/module/skia/core/Font.js +22 -0
- package/lib/module/skia/core/Font.js.map +1 -0
- package/lib/module/skia/core/Image.js +8 -0
- package/lib/module/skia/core/Image.js.map +1 -0
- package/lib/module/skia/core/Matrix.js +4 -0
- package/lib/module/skia/core/Matrix.js.map +1 -0
- package/lib/module/skia/core/Paint.js +17 -0
- package/lib/module/skia/core/Paint.js.map +1 -0
- package/lib/module/skia/core/Path.js +53 -0
- package/lib/module/skia/core/Path.js.map +1 -0
- package/lib/module/skia/core/Picture.js +19 -0
- package/lib/module/skia/core/Picture.js.map +1 -0
- package/lib/module/skia/core/RRect.js +3 -0
- package/lib/module/skia/core/RRect.js.map +1 -0
- package/lib/module/skia/core/Rect.js +17 -0
- package/lib/module/skia/core/Rect.js.map +1 -0
- package/lib/module/skia/core/SVG.js +4 -0
- package/lib/module/skia/core/SVG.js.map +1 -0
- package/lib/module/skia/core/Typeface.js +8 -0
- package/lib/module/skia/core/Typeface.js.map +1 -0
- package/lib/module/skia/core/Vector.js +23 -0
- package/lib/module/skia/core/Vector.js.map +1 -0
- package/lib/module/skia/core/index.js +13 -0
- package/lib/module/skia/core/index.js.map +1 -0
- package/lib/module/skia/index.js +4 -0
- package/lib/module/skia/index.js.map +1 -0
- package/lib/module/skia/types/Canvas.js +14 -0
- package/lib/module/skia/types/Canvas.js.map +1 -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.js +2 -0
- package/lib/module/skia/types/ColorFilter/ColorFilter.js.map +1 -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.js +3 -0
- package/lib/module/skia/types/ColorFilter/index.js.map +1 -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.js +2 -0
- package/lib/module/skia/types/Data/Data.js.map +1 -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.js +3 -0
- package/lib/module/skia/types/Data/index.js.map +1 -0
- package/lib/module/skia/types/Font/Font.js +68 -0
- package/lib/module/skia/types/Font/Font.js.map +1 -0
- package/lib/module/skia/types/Font/index.js +2 -0
- package/lib/module/skia/types/Font/index.js.map +1 -0
- package/lib/module/skia/types/FontMgr/FontMgr.js +2 -0
- package/lib/module/skia/types/FontMgr/FontMgr.js.map +1 -0
- package/lib/module/skia/types/FontMgr/FontMgrFactory.js +2 -0
- package/lib/module/skia/types/FontMgr/FontMgrFactory.js.map +1 -0
- package/lib/module/skia/types/FontMgr/index.js +3 -0
- package/lib/module/skia/types/FontMgr/index.js.map +1 -0
- package/lib/module/skia/types/Image/Image.js +23 -0
- package/lib/module/skia/types/Image/Image.js.map +1 -0
- package/lib/module/skia/types/Image/ImageFactory.js +37 -0
- package/lib/module/skia/types/Image/ImageFactory.js.map +1 -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.js +11 -0
- package/lib/module/skia/types/ImageFilter/ImageFilter.js.map +1 -0
- package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js +9 -0
- package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -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.js +2 -0
- package/lib/module/skia/types/JsiInstance.js.map +1 -0
- package/lib/module/skia/types/MaskFilter.js +11 -0
- package/lib/module/skia/types/MaskFilter.js.map +1 -0
- package/lib/module/skia/types/Matrix.js +69 -0
- package/lib/module/skia/types/Matrix.js.map +1 -0
- package/lib/module/skia/types/Paint/BlendMode.js +61 -0
- package/lib/module/skia/types/Paint/BlendMode.js.map +1 -0
- package/lib/module/skia/types/Paint/Paint.js +25 -0
- package/lib/module/skia/types/Paint/Paint.js.map +1 -0
- package/lib/module/skia/types/Paint/index.js +3 -0
- package/lib/module/skia/types/Paint/index.js.map +1 -0
- package/lib/module/skia/types/Path/Path.js +35 -0
- package/lib/module/skia/types/Path/Path.js.map +1 -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.js +3 -0
- package/lib/module/skia/types/Path/index.js.map +1 -0
- package/lib/module/skia/types/PathEffect.js +9 -0
- package/lib/module/skia/types/PathEffect.js.map +1 -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.js +2 -0
- package/lib/module/skia/types/Picture/PictureFactory.js.map +1 -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.js +4 -0
- package/lib/module/skia/types/Picture/index.js.map +1 -0
- package/lib/module/skia/types/Point.js +8 -0
- package/lib/module/skia/types/Point.js.map +1 -0
- package/lib/module/skia/types/RRect.js +4 -0
- package/lib/module/skia/types/RRect.js.map +1 -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.js +2 -0
- package/lib/module/skia/types/Rect.js.map +1 -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.js +2 -0
- package/lib/module/skia/types/RuntimeEffect/RuntimeEffectFactory.js.map +1 -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.js +2 -0
- package/lib/module/skia/types/SVG/SVG.js.map +1 -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.js +3 -0
- package/lib/module/skia/types/SVG/index.js.map +1 -0
- package/lib/module/skia/types/Shader/Shader.js +44 -0
- package/lib/module/skia/types/Shader/Shader.js.map +1 -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.js +3 -0
- package/lib/module/skia/types/Shader/index.js.map +1 -0
- package/lib/module/skia/types/Skia.js +2 -0
- package/lib/module/skia/types/Skia.js.map +1 -0
- package/lib/module/skia/types/Surface/Surface.js +2 -0
- package/lib/module/skia/types/Surface/Surface.js.map +1 -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.js +3 -0
- package/lib/module/skia/types/Surface/index.js.map +1 -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.js +2 -0
- package/lib/module/skia/types/Typeface/Typeface.js.map +1 -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.js +3 -0
- package/lib/module/skia/types/Typeface/index.js.map +1 -0
- package/lib/module/skia/types/Vertices/Vertices.js +8 -0
- package/lib/module/skia/types/Vertices/Vertices.js.map +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/index.js +29 -0
- package/lib/module/skia/types/index.js.map +1 -0
- package/lib/module/skia/web/Host.js +42 -0
- package/lib/module/skia/web/Host.js.map +1 -0
- package/lib/module/skia/web/JsiSkCanvas.js +173 -0
- package/lib/module/skia/web/JsiSkCanvas.js.map +1 -0
- package/lib/module/skia/web/JsiSkColor.js +330 -0
- package/lib/module/skia/web/JsiSkColor.js.map +1 -0
- package/lib/module/skia/web/JsiSkColorFilter.js +8 -0
- package/lib/module/skia/web/JsiSkColorFilter.js.map +1 -0
- package/lib/module/skia/web/JsiSkColorFilterFactory.js +37 -0
- package/lib/module/skia/web/JsiSkColorFilterFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkContourMeasure.js +31 -0
- package/lib/module/skia/web/JsiSkContourMeasure.js.map +1 -0
- package/lib/module/skia/web/JsiSkContourMeasureIter.js +19 -0
- package/lib/module/skia/web/JsiSkContourMeasureIter.js.map +1 -0
- package/lib/module/skia/web/JsiSkData.js +8 -0
- package/lib/module/skia/web/JsiSkData.js.map +1 -0
- package/lib/module/skia/web/JsiSkDataFactory.js +33 -0
- package/lib/module/skia/web/JsiSkDataFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkFont.js +107 -0
- package/lib/module/skia/web/JsiSkFont.js.map +1 -0
- package/lib/module/skia/web/JsiSkFontMgr.js +23 -0
- package/lib/module/skia/web/JsiSkFontMgr.js.map +1 -0
- package/lib/module/skia/web/JsiSkFontMgrFactory.js +14 -0
- package/lib/module/skia/web/JsiSkFontMgrFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkImage.js +49 -0
- package/lib/module/skia/web/JsiSkImage.js.map +1 -0
- package/lib/module/skia/web/JsiSkImageFactory.js +36 -0
- package/lib/module/skia/web/JsiSkImageFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkImageFilter.js +8 -0
- package/lib/module/skia/web/JsiSkImageFilter.js.map +1 -0
- package/lib/module/skia/web/JsiSkImageFilterFactory.js +57 -0
- package/lib/module/skia/web/JsiSkImageFilterFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkMaskFilter.js +8 -0
- package/lib/module/skia/web/JsiSkMaskFilter.js.map +1 -0
- package/lib/module/skia/web/JsiSkMaskFilterFactory.js +13 -0
- package/lib/module/skia/web/JsiSkMaskFilterFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkMatrix.js +28 -0
- package/lib/module/skia/web/JsiSkMatrix.js.map +1 -0
- package/lib/module/skia/web/JsiSkPaint.js +91 -0
- package/lib/module/skia/web/JsiSkPaint.js.map +1 -0
- package/lib/module/skia/web/JsiSkPath.js +324 -0
- package/lib/module/skia/web/JsiSkPath.js.map +1 -0
- package/lib/module/skia/web/JsiSkPathEffect.js +8 -0
- package/lib/module/skia/web/JsiSkPathEffect.js.map +1 -0
- package/lib/module/skia/web/JsiSkPathEffectFactory.js +67 -0
- package/lib/module/skia/web/JsiSkPathEffectFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkPathFactory.js +47 -0
- package/lib/module/skia/web/JsiSkPathFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkPicture.js +18 -0
- package/lib/module/skia/web/JsiSkPicture.js.map +1 -0
- package/lib/module/skia/web/JsiSkPictureFactory.js +19 -0
- package/lib/module/skia/web/JsiSkPictureFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkPictureRecorder.js +18 -0
- package/lib/module/skia/web/JsiSkPictureRecorder.js.map +1 -0
- package/lib/module/skia/web/JsiSkPoint.js +16 -0
- package/lib/module/skia/web/JsiSkPoint.js.map +1 -0
- package/lib/module/skia/web/JsiSkRRect.js +21 -0
- package/lib/module/skia/web/JsiSkRRect.js.map +1 -0
- package/lib/module/skia/web/JsiSkRSXform.js +8 -0
- package/lib/module/skia/web/JsiSkRSXform.js.map +1 -0
- package/lib/module/skia/web/JsiSkRect.js +32 -0
- package/lib/module/skia/web/JsiSkRect.js.map +1 -0
- package/lib/module/skia/web/JsiSkRuntimeEffect.js +33 -0
- package/lib/module/skia/web/JsiSkRuntimeEffect.js.map +1 -0
- package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js +19 -0
- package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkSVGFactory.js +16 -0
- package/lib/module/skia/web/JsiSkSVGFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkShader.js +8 -0
- package/lib/module/skia/web/JsiSkShader.js.map +1 -0
- package/lib/module/skia/web/JsiSkShaderFactory.js +41 -0
- package/lib/module/skia/web/JsiSkShaderFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkSurface.js +19 -0
- package/lib/module/skia/web/JsiSkSurface.js.map +1 -0
- package/lib/module/skia/web/JsiSkSurfaceFactory.js +19 -0
- package/lib/module/skia/web/JsiSkSurfaceFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkTextBlob.js +8 -0
- package/lib/module/skia/web/JsiSkTextBlob.js.map +1 -0
- package/lib/module/skia/web/JsiSkTextBlobFactory.js +25 -0
- package/lib/module/skia/web/JsiSkTextBlobFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkTypeface.js +18 -0
- package/lib/module/skia/web/JsiSkTypeface.js.map +1 -0
- package/lib/module/skia/web/JsiSkTypefaceFactory.js +19 -0
- package/lib/module/skia/web/JsiSkTypefaceFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkVertices.js +17 -0
- package/lib/module/skia/web/JsiSkVertices.js.map +1 -0
- package/lib/module/skia/web/JsiSkVerticesFactory.js +39 -0
- package/lib/module/skia/web/JsiSkVerticesFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkia.js +61 -0
- package/lib/module/skia/web/JsiSkia.js.map +1 -0
- package/lib/module/skia/web/index.js +2 -0
- package/lib/module/skia/web/index.js.map +1 -0
- package/lib/module/values/api.js +5 -0
- package/lib/module/values/api.js.map +1 -0
- package/lib/module/values/api.web.js +7 -0
- package/lib/module/values/api.web.js.map +1 -0
- package/lib/module/values/hooks/index.js +5 -0
- package/lib/module/values/hooks/index.js.map +1 -0
- package/lib/module/values/hooks/useClockValue.js +17 -0
- package/lib/module/values/hooks/useClockValue.js.map +1 -0
- package/lib/module/values/hooks/useComputedValue.js +18 -0
- package/lib/module/values/hooks/useComputedValue.js.map +1 -0
- package/lib/module/values/hooks/useValue.js +13 -0
- package/lib/module/values/hooks/useValue.js.map +1 -0
- package/lib/module/values/hooks/useValueEffect.js +13 -0
- package/lib/module/values/hooks/useValueEffect.js.map +1 -0
- package/lib/module/values/index.js +4 -0
- package/lib/module/values/index.js.map +1 -0
- package/lib/module/values/types.js +2 -0
- package/lib/module/values/types.js.map +1 -0
- package/lib/module/values/web/RNSkAnimation.js +36 -0
- package/lib/module/values/web/RNSkAnimation.js.map +1 -0
- package/lib/module/values/web/RNSkClockValue.js +65 -0
- package/lib/module/values/web/RNSkClockValue.js.map +1 -0
- package/lib/module/values/web/RNSkComputedValue.js +41 -0
- package/lib/module/values/web/RNSkComputedValue.js.map +1 -0
- package/lib/module/values/web/RNSkReadonlyValue.js +36 -0
- package/lib/module/values/web/RNSkReadonlyValue.js.map +1 -0
- package/lib/module/values/web/RNSkValue.js +63 -0
- package/lib/module/values/web/RNSkValue.js.map +1 -0
- package/lib/module/values/web/api.js +19 -0
- package/lib/module/values/web/api.js.map +1 -0
- package/lib/module/values/web/index.js +2 -0
- package/lib/module/values/web/index.js.map +1 -0
- package/lib/module/views/SkiaView.js +109 -0
- package/lib/module/views/SkiaView.js.map +1 -0
- package/lib/module/views/SkiaView.web.js +202 -0
- package/lib/module/views/SkiaView.web.js.map +1 -0
- package/lib/module/views/api.js +4 -0
- package/lib/module/views/api.js.map +1 -0
- package/lib/module/views/index.js +5 -0
- package/lib/module/views/index.js.map +1 -0
- package/lib/module/views/types.js +9 -0
- package/lib/module/views/types.js.map +1 -0
- package/lib/module/views/useDrawCallback.js +14 -0
- package/lib/module/views/useDrawCallback.js.map +1 -0
- package/lib/module/views/useTouchHandler.js +85 -0
- package/lib/module/views/useTouchHandler.js.map +1 -0
- package/lib/module/web/index.js +10 -0
- package/lib/module/web/index.js.map +1 -0
- package/lib/typescript/index.d.ts +1 -0
- package/lib/typescript/jestSetup.d.ts +1 -0
- package/lib/typescript/src/animation/decay/decay.d.ts +2 -0
- package/lib/typescript/src/animation/decay/index.d.ts +1 -0
- package/lib/typescript/src/animation/decay/runDecay.d.ts +10 -0
- package/lib/typescript/src/animation/decay/types.d.ts +21 -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 +4 -0
- package/lib/typescript/src/animation/spring/Spring.d.ts +65 -0
- package/lib/typescript/src/animation/spring/functions/index.d.ts +1 -0
- package/lib/typescript/src/animation/spring/functions/spring.d.ts +10 -0
- package/lib/typescript/src/animation/spring/index.d.ts +3 -0
- package/lib/typescript/src/animation/spring/runSpring.d.ts +16 -0
- package/lib/typescript/src/animation/spring/types.d.ts +6 -0
- package/lib/typescript/src/animation/spring/useSpring.d.ts +10 -0
- package/lib/typescript/src/animation/timing/Easing.d.ts +19 -0
- package/lib/typescript/src/animation/timing/createTiming.d.ts +17 -0
- package/lib/typescript/src/animation/timing/functions/bezier.d.ts +1 -0
- package/lib/typescript/src/animation/timing/functions/getResolvedParams.d.ts +7 -0
- package/lib/typescript/src/animation/timing/functions/index.d.ts +4 -0
- package/lib/typescript/src/animation/timing/functions/timing.d.ts +17 -0
- package/lib/typescript/src/animation/timing/functions/types.d.ts +7 -0
- package/lib/typescript/src/animation/timing/index.d.ts +4 -0
- package/lib/typescript/src/animation/timing/runTiming.d.ts +16 -0
- package/lib/typescript/src/animation/timing/useLoop.d.ts +8 -0
- package/lib/typescript/src/animation/timing/useTiming.d.ts +10 -0
- package/lib/typescript/src/animation/types.d.ts +18 -0
- package/lib/typescript/src/external/index.d.ts +1 -0
- package/lib/typescript/src/external/reanimated/index.d.ts +1 -0
- package/lib/typescript/src/external/reanimated/useSharedValueEffect.d.ts +11 -0
- package/lib/typescript/src/index.d.ts +8 -0
- package/lib/typescript/src/mock/index.d.ts +16 -0
- package/lib/typescript/src/renderer/Canvas.d.ts +16 -0
- package/lib/typescript/src/renderer/DependencyManager.d.ts +21 -0
- package/lib/typescript/src/renderer/DrawingContext.d.ts +12 -0
- package/lib/typescript/src/renderer/HostConfig.d.ts +27 -0
- package/lib/typescript/src/renderer/components/Blend.d.ts +9 -0
- package/lib/typescript/src/renderer/components/Compose.d.ts +6 -0
- package/lib/typescript/src/renderer/components/Drawing.d.ts +7 -0
- package/lib/typescript/src/renderer/components/Group.d.ts +9 -0
- package/lib/typescript/src/renderer/components/Mask.d.ts +15 -0
- package/lib/typescript/src/renderer/components/Paint.d.ts +9 -0
- package/lib/typescript/src/renderer/components/Picture.d.ts +6 -0
- package/lib/typescript/src/renderer/components/backdrop/BackdropBlur.d.ts +8 -0
- package/lib/typescript/src/renderer/components/backdrop/BackdropFilter.d.ts +7 -0
- package/lib/typescript/src/renderer/components/backdrop/index.d.ts +2 -0
- package/lib/typescript/src/renderer/components/colorFilters/BlendColor.d.ts +10 -0
- package/lib/typescript/src/renderer/components/colorFilters/Compose.d.ts +3 -0
- package/lib/typescript/src/renderer/components/colorFilters/Lerp.d.ts +7 -0
- package/lib/typescript/src/renderer/components/colorFilters/LinearToSRGBGamma.d.ts +5 -0
- package/lib/typescript/src/renderer/components/colorFilters/LumaColorFilter.d.ts +5 -0
- package/lib/typescript/src/renderer/components/colorFilters/Matrix.d.ts +9 -0
- package/lib/typescript/src/renderer/components/colorFilters/SRGBToLinearGamma.d.ts +5 -0
- package/lib/typescript/src/renderer/components/colorFilters/index.d.ts +6 -0
- package/lib/typescript/src/renderer/components/image/BoxFit.d.ts +33 -0
- package/lib/typescript/src/renderer/components/image/Image.d.ts +19 -0
- package/lib/typescript/src/renderer/components/image/ImageSVG.d.ts +7 -0
- package/lib/typescript/src/renderer/components/image/ImageShader.d.ts +26 -0
- package/lib/typescript/src/renderer/components/image/index.d.ts +4 -0
- package/lib/typescript/src/renderer/components/imageFilters/Blur.d.ts +15 -0
- package/lib/typescript/src/renderer/components/imageFilters/DisplacementMap.d.ts +10 -0
- package/lib/typescript/src/renderer/components/imageFilters/InnerShadow.d.ts +2 -0
- package/lib/typescript/src/renderer/components/imageFilters/Morphology.d.ts +13 -0
- package/lib/typescript/src/renderer/components/imageFilters/Offset.d.ts +14 -0
- package/lib/typescript/src/renderer/components/imageFilters/RuntimeShader.d.ts +8 -0
- package/lib/typescript/src/renderer/components/imageFilters/Shadow.d.ts +12 -0
- package/lib/typescript/src/renderer/components/imageFilters/getInput.d.ts +3 -0
- package/lib/typescript/src/renderer/components/imageFilters/index.d.ts +6 -0
- package/lib/typescript/src/renderer/components/index.d.ts +17 -0
- package/lib/typescript/src/renderer/components/maskFilters/Blur.d.ts +16 -0
- package/lib/typescript/src/renderer/components/maskFilters/index.d.ts +1 -0
- package/lib/typescript/src/renderer/components/pathEffects/Corner.d.ts +7 -0
- package/lib/typescript/src/renderer/components/pathEffects/Dash.d.ts +8 -0
- package/lib/typescript/src/renderer/components/pathEffects/Discrete.d.ts +14 -0
- package/lib/typescript/src/renderer/components/pathEffects/Line2D.d.ts +9 -0
- package/lib/typescript/src/renderer/components/pathEffects/Path1D.d.ts +13 -0
- package/lib/typescript/src/renderer/components/pathEffects/Path2D.d.ts +10 -0
- package/lib/typescript/src/renderer/components/pathEffects/Sum.d.ts +6 -0
- package/lib/typescript/src/renderer/components/pathEffects/index.d.ts +7 -0
- package/lib/typescript/src/renderer/components/shaders/Color.d.ts +7 -0
- package/lib/typescript/src/renderer/components/shaders/FractalNoise.d.ts +18 -0
- package/lib/typescript/src/renderer/components/shaders/Gradient.d.ts +17 -0
- package/lib/typescript/src/renderer/components/shaders/LinearGradient.d.ts +9 -0
- package/lib/typescript/src/renderer/components/shaders/RadialGradient.d.ts +9 -0
- package/lib/typescript/src/renderer/components/shaders/Shader.d.ts +14 -0
- package/lib/typescript/src/renderer/components/shaders/ShaderLib.d.ts +4 -0
- package/lib/typescript/src/renderer/components/shaders/SweepGradient.d.ts +10 -0
- package/lib/typescript/src/renderer/components/shaders/Turbulence.d.ts +18 -0
- package/lib/typescript/src/renderer/components/shaders/TwoPointConicalGradient.d.ts +11 -0
- package/lib/typescript/src/renderer/components/shaders/index.d.ts +9 -0
- package/lib/typescript/src/renderer/components/shapes/Box.d.ts +22 -0
- package/lib/typescript/src/renderer/components/shapes/Circle.d.ts +12 -0
- package/lib/typescript/src/renderer/components/shapes/DiffRect.d.ts +9 -0
- package/lib/typescript/src/renderer/components/shapes/Fill.d.ts +5 -0
- package/lib/typescript/src/renderer/components/shapes/FitBox.d.ts +25 -0
- package/lib/typescript/src/renderer/components/shapes/Line.d.ts +8 -0
- package/lib/typescript/src/renderer/components/shapes/Oval.d.ts +10 -0
- package/lib/typescript/src/renderer/components/shapes/Patch.d.ts +21 -0
- package/lib/typescript/src/renderer/components/shapes/Path.d.ts +23 -0
- package/lib/typescript/src/renderer/components/shapes/Points.d.ts +15 -0
- package/lib/typescript/src/renderer/components/shapes/Rect.d.ts +4 -0
- package/lib/typescript/src/renderer/components/shapes/RoundedRect.d.ts +9 -0
- package/lib/typescript/src/renderer/components/shapes/Vertices.d.ts +18 -0
- package/lib/typescript/src/renderer/components/shapes/index.d.ts +13 -0
- package/lib/typescript/src/renderer/components/text/Glyphs.d.ts +20 -0
- package/lib/typescript/src/renderer/components/text/Text.d.ts +15 -0
- package/lib/typescript/src/renderer/components/text/TextBlob.d.ts +15 -0
- package/lib/typescript/src/renderer/components/text/TextPath.d.ts +15 -0
- package/lib/typescript/src/renderer/components/text/index.d.ts +4 -0
- package/lib/typescript/src/renderer/index.d.ts +5 -0
- package/lib/typescript/src/renderer/nodes/Container.d.ts +8 -0
- package/lib/typescript/src/renderer/nodes/Declaration.d.ts +22 -0
- package/lib/typescript/src/renderer/nodes/Drawing.d.ts +21 -0
- package/lib/typescript/src/renderer/nodes/Node.d.ts +23 -0
- package/lib/typescript/src/renderer/nodes/index.d.ts +4 -0
- package/lib/typescript/src/renderer/processors/Animations/Animations.d.ts +7 -0
- package/lib/typescript/src/renderer/processors/Animations/index.d.ts +1 -0
- package/lib/typescript/src/renderer/processors/Circles.d.ts +13 -0
- package/lib/typescript/src/renderer/processors/Clips.d.ts +4 -0
- package/lib/typescript/src/renderer/processors/Color.d.ts +7 -0
- package/lib/typescript/src/renderer/processors/Font.d.ts +11 -0
- package/lib/typescript/src/renderer/processors/Paint.d.ts +22 -0
- package/lib/typescript/src/renderer/processors/Paths.d.ts +4 -0
- package/lib/typescript/src/renderer/processors/Radius.d.ts +3 -0
- package/lib/typescript/src/renderer/processors/Rects.d.ts +20 -0
- package/lib/typescript/src/renderer/processors/Transform.d.ts +90 -0
- package/lib/typescript/src/renderer/processors/index.d.ts +11 -0
- package/lib/typescript/src/renderer/processors/math/Coordinates.d.ts +29 -0
- package/lib/typescript/src/renderer/processors/math/Math.d.ts +15 -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/renderer/useCanvas.d.ts +14 -0
- package/lib/typescript/src/renderer/useContextBridge.d.ts +5 -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/Data.d.ts +5 -0
- package/lib/typescript/src/skia/core/Font.d.ts +5 -0
- package/lib/typescript/src/skia/core/Image.d.ts +5 -0
- package/lib/typescript/src/skia/core/Matrix.d.ts +2 -0
- package/lib/typescript/src/skia/core/Paint.d.ts +6 -0
- package/lib/typescript/src/skia/core/Path.d.ts +21 -0
- package/lib/typescript/src/skia/core/Picture.d.ts +9 -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/Typeface.d.ts +5 -0
- package/lib/typescript/src/skia/core/Vector.d.ts +12 -0
- package/lib/typescript/src/skia/core/index.d.ts +12 -0
- package/lib/typescript/src/skia/index.d.ts +3 -0
- package/lib/typescript/src/skia/types/Canvas.d.ts +381 -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 +40 -0
- package/lib/typescript/src/skia/types/Data/Data.d.ts +5 -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 +192 -0
- package/lib/typescript/src/skia/types/Font/index.d.ts +1 -0
- package/lib/typescript/src/skia/types/FontMgr/FontMgr.d.ts +18 -0
- package/lib/typescript/src/skia/types/FontMgr/FontMgrFactory.d.ts +4 -0
- package/lib/typescript/src/skia/types/FontMgr/index.d.ts +2 -0
- package/lib/typescript/src/skia/types/Image/Image.d.ts +75 -0
- package/lib/typescript/src/skia/types/Image/ImageFactory.d.ts +62 -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 +3 -0
- package/lib/typescript/src/skia/types/MaskFilter.d.ts +21 -0
- package/lib/typescript/src/skia/types/Matrix.d.ts +29 -0
- package/lib/typescript/src/skia/types/Paint/BlendMode.d.ts +58 -0
- package/lib/typescript/src/skia/types/Paint/Paint.d.ts +127 -0
- package/lib/typescript/src/skia/types/Paint/index.d.ts +2 -0
- package/lib/typescript/src/skia/types/Path/Path.d.ts +461 -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 +26 -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 +7 -0
- package/lib/typescript/src/skia/types/RSXform.d.ts +2 -0
- package/lib/typescript/src/skia/types/Rect.d.ts +6 -0
- package/lib/typescript/src/skia/types/RuntimeEffect/RuntimeEffect.d.ts +48 -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 +2 -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 +11 -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/Skia.d.ts +68 -0
- package/lib/typescript/src/skia/types/Surface/Surface.d.ts +25 -0
- package/lib/typescript/src/skia/types/Surface/SurfaceFactory.d.ts +11 -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 +5 -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/index.d.ts +28 -0
- package/lib/typescript/src/skia/web/Host.d.ts +21 -0
- package/lib/typescript/src/skia/web/JsiSkCanvas.d.ts +44 -0
- package/lib/typescript/src/skia/web/JsiSkColor.d.ts +2 -0
- package/lib/typescript/src/skia/web/JsiSkColorFilter.d.ts +6 -0
- package/lib/typescript/src/skia/web/JsiSkColorFilterFactory.d.ts +14 -0
- package/lib/typescript/src/skia/web/JsiSkContourMeasure.d.ts +16 -0
- package/lib/typescript/src/skia/web/JsiSkContourMeasureIter.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkData.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkDataFactory.d.ts +19 -0
- package/lib/typescript/src/skia/web/JsiSkFont.d.ts +34 -0
- package/lib/typescript/src/skia/web/JsiSkFontMgr.d.ts +9 -0
- package/lib/typescript/src/skia/web/JsiSkFontMgrFactory.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkImage.d.ts +12 -0
- package/lib/typescript/src/skia/web/JsiSkImageFactory.d.ts +10 -0
- package/lib/typescript/src/skia/web/JsiSkImageFilter.d.ts +6 -0
- package/lib/typescript/src/skia/web/JsiSkImageFilterFactory.d.ts +19 -0
- package/lib/typescript/src/skia/web/JsiSkMaskFilter.d.ts +6 -0
- package/lib/typescript/src/skia/web/JsiSkMaskFilterFactory.d.ts +9 -0
- package/lib/typescript/src/skia/web/JsiSkMatrix.d.ts +11 -0
- package/lib/typescript/src/skia/web/JsiSkPaint.d.ts +26 -0
- package/lib/typescript/src/skia/web/JsiSkPath.d.ts +56 -0
- package/lib/typescript/src/skia/web/JsiSkPathEffect.d.ts +6 -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 +9 -0
- package/lib/typescript/src/skia/web/JsiSkPictureFactory.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkPictureRecorder.d.ts +11 -0
- package/lib/typescript/src/skia/web/JsiSkPoint.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkRRect.d.ts +10 -0
- package/lib/typescript/src/skia/web/JsiSkRSXform.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkRect.d.ts +11 -0
- package/lib/typescript/src/skia/web/JsiSkRuntimeEffect.d.ts +14 -0
- package/lib/typescript/src/skia/web/JsiSkRuntimeEffectFactory.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkSVGFactory.d.ts +9 -0
- package/lib/typescript/src/skia/web/JsiSkShader.d.ts +6 -0
- package/lib/typescript/src/skia/web/JsiSkShaderFactory.d.ts +16 -0
- package/lib/typescript/src/skia/web/JsiSkSurface.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkSurfaceFactory.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkTextBlob.d.ts +6 -0
- package/lib/typescript/src/skia/web/JsiSkTextBlobFactory.d.ts +12 -0
- package/lib/typescript/src/skia/web/JsiSkTypeface.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkTypefaceFactory.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkVertices.d.ts +9 -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/index.d.ts +1 -0
- package/lib/typescript/src/values/api.d.ts +5 -0
- package/lib/typescript/src/values/api.web.d.ts +2 -0
- package/lib/typescript/src/values/hooks/index.d.ts +4 -0
- package/lib/typescript/src/values/hooks/useClockValue.d.ts +6 -0
- package/lib/typescript/src/values/hooks/useComputedValue.d.ts +9 -0
- package/lib/typescript/src/values/hooks/useValue.d.ts +7 -0
- package/lib/typescript/src/values/hooks/useValueEffect.d.ts +7 -0
- package/lib/typescript/src/values/index.d.ts +3 -0
- package/lib/typescript/src/values/types.d.ts +59 -0
- package/lib/typescript/src/values/web/RNSkAnimation.d.ts +9 -0
- package/lib/typescript/src/values/web/RNSkClockValue.d.ts +13 -0
- package/lib/typescript/src/values/web/RNSkComputedValue.d.ts +9 -0
- package/lib/typescript/src/values/web/RNSkReadonlyValue.d.ts +11 -0
- package/lib/typescript/src/values/web/RNSkValue.d.ts +14 -0
- package/lib/typescript/src/values/web/api.d.ts +2 -0
- package/lib/typescript/src/values/web/index.d.ts +1 -0
- package/lib/typescript/src/views/SkiaView.d.ts +37 -0
- package/lib/typescript/src/views/SkiaView.web.d.ts +56 -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 +76 -0
- package/lib/typescript/src/views/useDrawCallback.d.ts +8 -0
- package/lib/typescript/src/views/useTouchHandler.d.ts +22 -0
- package/lib/typescript/src/web/index.d.ts +5 -0
- package/libs/android/arm64-v8a/libskia.a +0 -0
- package/libs/android/arm64-v8a/libskshaper.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/libskshaper.a +0 -0
- package/libs/android/armeabi-v7a/libsvg.a +0 -0
- package/libs/android/x86/libskia.a +0 -0
- package/libs/android/x86/libskshaper.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/libskshaper.a +0 -0
- package/libs/android/x86_64/libsvg.a +0 -0
- package/libs/ios/libskia.xcframework/Info.plist +42 -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/libskshaper.xcframework/Info.plist +42 -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/libsvg.xcframework/Info.plist +42 -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 +102 -0
- package/react-native-skia.podspec +71 -0
- package/scripts/install-npm.js +23 -0
- package/src/animation/decay/decay.ts +35 -0
- package/src/animation/decay/index.ts +1 -0
- package/src/animation/decay/runDecay.ts +40 -0
- package/src/animation/decay/types.ts +24 -0
- package/src/animation/functions/index.ts +4 -0
- package/src/animation/functions/interpolate.ts +184 -0
- package/src/animation/functions/interpolateColors.ts +57 -0
- package/src/animation/functions/interpolatePaths.ts +87 -0
- package/src/animation/functions/interpolateVector.ts +26 -0
- package/src/animation/index.ts +4 -0
- package/src/animation/spring/Spring.ts +61 -0
- package/src/animation/spring/functions/index.ts +1 -0
- package/src/animation/spring/functions/spring.ts +86 -0
- package/src/animation/spring/index.ts +3 -0
- package/src/animation/spring/runSpring.ts +37 -0
- package/src/animation/spring/types.ts +6 -0
- package/src/animation/spring/useSpring.ts +28 -0
- package/src/animation/timing/Easing.ts +102 -0
- package/src/animation/timing/createTiming.ts +62 -0
- package/src/animation/timing/functions/bezier.ts +165 -0
- package/src/animation/timing/functions/getResolvedParams.ts +50 -0
- package/src/animation/timing/functions/index.ts +4 -0
- package/src/animation/timing/functions/timing.ts +44 -0
- package/src/animation/timing/functions/types.ts +8 -0
- package/src/animation/timing/index.ts +4 -0
- package/src/animation/timing/runTiming.ts +33 -0
- package/src/animation/timing/useLoop.ts +18 -0
- package/src/animation/timing/useTiming.ts +68 -0
- package/src/animation/types.ts +23 -0
- package/src/external/index.ts +1 -0
- package/src/external/reanimated/index.ts +1 -0
- package/src/external/reanimated/useSharedValueEffect.ts +81 -0
- package/src/index.ts +8 -0
- package/src/mock/index.ts +110 -0
- package/src/renderer/Canvas.tsx +158 -0
- package/src/renderer/DependencyManager.tsx +59 -0
- package/src/renderer/DrawingContext.ts +14 -0
- package/src/renderer/HostConfig.ts +303 -0
- package/src/renderer/components/Blend.tsx +29 -0
- package/src/renderer/components/Compose.tsx +26 -0
- package/src/renderer/components/Drawing.tsx +16 -0
- package/src/renderer/components/Group.tsx +83 -0
- package/src/renderer/components/Mask.tsx +45 -0
- package/src/renderer/components/Paint.tsx +30 -0
- package/src/renderer/components/Picture.tsx +17 -0
- package/src/renderer/components/backdrop/BackdropBlur.tsx +23 -0
- package/src/renderer/components/backdrop/BackdropFilter.tsx +47 -0
- package/src/renderer/components/backdrop/index.ts +2 -0
- package/src/renderer/components/colorFilters/BlendColor.tsx +30 -0
- package/src/renderer/components/colorFilters/Compose.ts +18 -0
- package/src/renderer/components/colorFilters/Lerp.tsx +27 -0
- package/src/renderer/components/colorFilters/LinearToSRGBGamma.tsx +20 -0
- package/src/renderer/components/colorFilters/LumaColorFilter.tsx +18 -0
- package/src/renderer/components/colorFilters/Matrix.tsx +46 -0
- package/src/renderer/components/colorFilters/SRGBToLinearGamma.tsx +20 -0
- package/src/renderer/components/colorFilters/index.ts +6 -0
- package/src/renderer/components/image/BoxFit.ts +125 -0
- package/src/renderer/components/image/Image.tsx +50 -0
- package/src/renderer/components/image/ImageSVG.tsx +24 -0
- package/src/renderer/components/image/ImageShader.tsx +82 -0
- package/src/renderer/components/image/index.ts +4 -0
- package/src/renderer/components/imageFilters/Blur.tsx +37 -0
- package/src/renderer/components/imageFilters/DisplacementMap.tsx +34 -0
- package/src/renderer/components/imageFilters/InnerShadow.tsx +38 -0
- package/src/renderer/components/imageFilters/Morphology.tsx +33 -0
- package/src/renderer/components/imageFilters/Offset.tsx +28 -0
- package/src/renderer/components/imageFilters/RuntimeShader.tsx +31 -0
- package/src/renderer/components/imageFilters/Shadow.tsx +42 -0
- package/src/renderer/components/imageFilters/getInput.ts +20 -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 +32 -0
- package/src/renderer/components/maskFilters/index.ts +1 -0
- package/src/renderer/components/pathEffects/Corner.tsx +31 -0
- package/src/renderer/components/pathEffects/Dash.tsx +27 -0
- package/src/renderer/components/pathEffects/Discrete.tsx +34 -0
- package/src/renderer/components/pathEffects/Line2D.tsx +33 -0
- package/src/renderer/components/pathEffects/Path1D.tsx +43 -0
- package/src/renderer/components/pathEffects/Path2D.tsx +35 -0
- package/src/renderer/components/pathEffects/Sum.tsx +21 -0
- package/src/renderer/components/pathEffects/index.ts +7 -0
- package/src/renderer/components/shaders/Color.tsx +20 -0
- package/src/renderer/components/shaders/FractalNoise.tsx +36 -0
- package/src/renderer/components/shaders/Gradient.ts +24 -0
- package/src/renderer/components/shaders/LinearGradient.tsx +33 -0
- package/src/renderer/components/shaders/RadialGradient.tsx +33 -0
- package/src/renderer/components/shaders/Shader.tsx +32 -0
- package/src/renderer/components/shaders/ShaderLib.ts +46 -0
- package/src/renderer/components/shaders/SweepGradient.tsx +36 -0
- package/src/renderer/components/shaders/Turbulence.tsx +36 -0
- package/src/renderer/components/shaders/TwoPointConicalGradient.tsx +39 -0
- package/src/renderer/components/shaders/index.ts +9 -0
- package/src/renderer/components/shapes/Box.tsx +115 -0
- package/src/renderer/components/shapes/Circle.tsx +24 -0
- package/src/renderer/components/shapes/DiffRect.tsx +21 -0
- package/src/renderer/components/shapes/Fill.tsx +15 -0
- package/src/renderer/components/shapes/FitBox.tsx +28 -0
- package/src/renderer/components/shapes/Line.tsx +17 -0
- package/src/renderer/components/shapes/Oval.tsx +27 -0
- package/src/renderer/components/shapes/Patch.tsx +63 -0
- package/src/renderer/components/shapes/Path.tsx +57 -0
- package/src/renderer/components/shapes/Points.tsx +28 -0
- package/src/renderer/components/shapes/Rect.tsx +22 -0
- package/src/renderer/components/shapes/RoundedRect.tsx +25 -0
- package/src/renderer/components/shapes/Vertices.tsx +45 -0
- package/src/renderer/components/shapes/index.ts +13 -0
- package/src/renderer/components/text/Glyphs.tsx +52 -0
- package/src/renderer/components/text/Text.tsx +32 -0
- package/src/renderer/components/text/TextBlob.tsx +26 -0
- package/src/renderer/components/text/TextPath.tsx +68 -0
- package/src/renderer/components/text/index.ts +4 -0
- package/src/renderer/index.ts +5 -0
- package/src/renderer/nodes/Container.tsx +17 -0
- package/src/renderer/nodes/Declaration.tsx +67 -0
- package/src/renderer/nodes/Drawing.tsx +67 -0
- package/src/renderer/nodes/Node.ts +57 -0
- package/src/renderer/nodes/index.ts +4 -0
- package/src/renderer/processors/Animations/Animations.ts +42 -0
- package/src/renderer/processors/Animations/index.ts +1 -0
- package/src/renderer/processors/Circles.ts +26 -0
- package/src/renderer/processors/Clips.ts +23 -0
- package/src/renderer/processors/Color.ts +15 -0
- package/src/renderer/processors/Font.ts +31 -0
- package/src/renderer/processors/Paint.ts +118 -0
- package/src/renderer/processors/Paths.ts +19 -0
- package/src/renderer/processors/Radius.ts +10 -0
- package/src/renderer/processors/Rects.ts +50 -0
- package/src/renderer/processors/Transform.ts +53 -0
- package/src/renderer/processors/index.ts +11 -0
- package/src/renderer/processors/math/Coordinates.ts +32 -0
- package/src/renderer/processors/math/Math.ts +18 -0
- package/src/renderer/processors/math/Transforms.ts +8 -0
- package/src/renderer/processors/math/index.ts +3 -0
- package/src/renderer/typeddash.ts +23 -0
- package/src/renderer/useCanvas.ts +21 -0
- package/src/renderer/useContextBridge.tsx +21 -0
- package/src/skia/NativeSetup.ts +18 -0
- package/src/skia/Skia.ts +11 -0
- package/src/skia/Skia.web.ts +3 -0
- package/src/skia/core/Data.ts +98 -0
- package/src/skia/core/Font.ts +28 -0
- package/src/skia/core/Image.ts +12 -0
- package/src/skia/core/Matrix.ts +6 -0
- package/src/skia/core/Paint.ts +22 -0
- package/src/skia/core/Path.ts +60 -0
- package/src/skia/core/Picture.ts +25 -0
- package/src/skia/core/RRect.tsx +5 -0
- package/src/skia/core/Rect.ts +33 -0
- package/src/skia/core/SVG.ts +9 -0
- package/src/skia/core/Typeface.ts +16 -0
- package/src/skia/core/Vector.ts +11 -0
- package/src/skia/core/index.ts +12 -0
- package/src/skia/index.ts +3 -0
- package/src/skia/types/Canvas.ts +495 -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 +47 -0
- package/src/skia/types/Data/Data.ts +5 -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 +232 -0
- package/src/skia/types/Font/index.ts +1 -0
- package/src/skia/types/FontMgr/FontMgr.ts +24 -0
- package/src/skia/types/FontMgr/FontMgrFactory.ts +12 -0
- package/src/skia/types/FontMgr/index.ts +2 -0
- package/src/skia/types/Image/Image.ts +96 -0
- package/src/skia/types/Image/ImageFactory.ts +78 -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 +3 -0
- package/src/skia/types/MaskFilter.ts +27 -0
- package/src/skia/types/Matrix.ts +95 -0
- package/src/skia/types/Paint/BlendMode.ts +61 -0
- package/src/skia/types/Paint/Paint.ts +153 -0
- package/src/skia/types/Paint/index.ts +2 -0
- package/src/skia/types/Path/Path.ts +564 -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 +34 -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 +12 -0
- package/src/skia/types/RSXform.ts +3 -0
- package/src/skia/types/Rect.ts +6 -0
- package/src/skia/types/RuntimeEffect/RuntimeEffect.ts +61 -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 +3 -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 +65 -0
- package/src/skia/types/Shader/ShaderFactory.ts +169 -0
- package/src/skia/types/Shader/index.ts +2 -0
- package/src/skia/types/Skia.ts +84 -0
- package/src/skia/types/Surface/Surface.ts +27 -0
- package/src/skia/types/Surface/SurfaceFactory.ts +12 -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 +6 -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/index.ts +28 -0
- package/src/skia/web/Host.ts +56 -0
- package/src/skia/web/JsiSkCanvas.ts +330 -0
- package/src/skia/web/JsiSkColor.ts +327 -0
- package/src/skia/web/JsiSkColorFilter.ts +14 -0
- package/src/skia/web/JsiSkColorFilterFactory.ts +67 -0
- package/src/skia/web/JsiSkContourMeasure.ts +35 -0
- package/src/skia/web/JsiSkContourMeasureIter.ts +23 -0
- package/src/skia/web/JsiSkData.ts +13 -0
- package/src/skia/web/JsiSkDataFactory.ts +35 -0
- package/src/skia/web/JsiSkFont.ts +134 -0
- package/src/skia/web/JsiSkFontMgr.ts +38 -0
- package/src/skia/web/JsiSkFontMgrFactory.ts +18 -0
- package/src/skia/web/JsiSkImage.ts +87 -0
- package/src/skia/web/JsiSkImageFactory.ts +40 -0
- package/src/skia/web/JsiSkImageFilter.ts +14 -0
- package/src/skia/web/JsiSkImageFilterFactory.ts +144 -0
- package/src/skia/web/JsiSkMaskFilter.ts +14 -0
- package/src/skia/web/JsiSkMaskFilterFactory.ts +20 -0
- package/src/skia/web/JsiSkMatrix.ts +54 -0
- package/src/skia/web/JsiSkPaint.ts +104 -0
- package/src/skia/web/JsiSkPath.ts +386 -0
- package/src/skia/web/JsiSkPathEffect.ts +14 -0
- package/src/skia/web/JsiSkPathEffectFactory.ts +85 -0
- package/src/skia/web/JsiSkPathFactory.ts +54 -0
- package/src/skia/web/JsiSkPicture.ts +45 -0
- package/src/skia/web/JsiSkPictureFactory.ts +20 -0
- package/src/skia/web/JsiSkPictureRecorder.ts +31 -0
- package/src/skia/web/JsiSkPoint.ts +19 -0
- package/src/skia/web/JsiSkRRect.ts +27 -0
- package/src/skia/web/JsiSkRSXform.ts +16 -0
- package/src/skia/web/JsiSkRect.ts +37 -0
- package/src/skia/web/JsiSkRuntimeEffect.ts +57 -0
- package/src/skia/web/JsiSkRuntimeEffectFactory.ts +23 -0
- package/src/skia/web/JsiSkSVGFactory.ts +20 -0
- package/src/skia/web/JsiSkShader.ts +14 -0
- package/src/skia/web/JsiSkShaderFactory.ts +181 -0
- package/src/skia/web/JsiSkSurface.ts +25 -0
- package/src/skia/web/JsiSkSurfaceFactory.ts +20 -0
- package/src/skia/web/JsiSkTextBlob.ts +14 -0
- package/src/skia/web/JsiSkTextBlobFactory.ts +49 -0
- package/src/skia/web/JsiSkTypeface.ts +28 -0
- package/src/skia/web/JsiSkTypefaceFactory.tsx +20 -0
- package/src/skia/web/JsiSkVertices.ts +23 -0
- package/src/skia/web/JsiSkVerticesFactory.ts +41 -0
- package/src/skia/web/JsiSkia.ts +98 -0
- package/src/skia/web/index.ts +1 -0
- package/src/values/api.ts +8 -0
- package/src/values/api.web.ts +5 -0
- package/src/values/hooks/index.ts +4 -0
- package/src/values/hooks/useClockValue.ts +18 -0
- package/src/values/hooks/useComputedValue.ts +23 -0
- package/src/values/hooks/useValue.ts +14 -0
- package/src/values/hooks/useValueEffect.ts +15 -0
- package/src/values/index.ts +3 -0
- package/src/values/types.ts +69 -0
- package/src/values/web/RNSkAnimation.ts +33 -0
- package/src/values/web/RNSkClockValue.ts +58 -0
- package/src/values/web/RNSkComputedValue.ts +38 -0
- package/src/values/web/RNSkReadonlyValue.ts +32 -0
- package/src/values/web/RNSkValue.ts +57 -0
- package/src/values/web/api.ts +33 -0
- package/src/values/web/index.ts +1 -0
- package/src/views/SkiaView.tsx +105 -0
- package/src/views/SkiaView.web.tsx +193 -0
- package/src/views/api.ts +7 -0
- package/src/views/index.ts +4 -0
- package/src/views/types.ts +96 -0
- package/src/views/useDrawCallback.ts +19 -0
- package/src/views/useTouchHandler.ts +111 -0
- package/src/web/index.ts +15 -0
@@ -0,0 +1,1347 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2012 Google Inc.
|
3
|
+
*
|
4
|
+
* Use of this source code is governed by a BSD-style license that can be
|
5
|
+
* found in the LICENSE file.
|
6
|
+
*/
|
7
|
+
|
8
|
+
#ifndef SkImage_DEFINED
|
9
|
+
#define SkImage_DEFINED
|
10
|
+
|
11
|
+
#include "include/core/SkImageInfo.h"
|
12
|
+
#include "include/core/SkRefCnt.h"
|
13
|
+
#include "include/core/SkSamplingOptions.h"
|
14
|
+
#include "include/core/SkScalar.h"
|
15
|
+
#include "include/core/SkShader.h"
|
16
|
+
#include "include/core/SkTileMode.h"
|
17
|
+
#if SK_SUPPORT_GPU
|
18
|
+
#include "include/gpu/GrTypes.h"
|
19
|
+
#endif
|
20
|
+
#if SK_GRAPHITE_ENABLED
|
21
|
+
#include "include/gpu/graphite/GraphiteTypes.h"
|
22
|
+
#endif
|
23
|
+
#include <functional> // std::function
|
24
|
+
#include <optional>
|
25
|
+
|
26
|
+
#if defined(SK_BUILD_FOR_ANDROID) && __ANDROID_API__ >= 26
|
27
|
+
#include <android/hardware_buffer.h>
|
28
|
+
#endif
|
29
|
+
|
30
|
+
class GrBackendFormat;
|
31
|
+
class GrBackendTexture;
|
32
|
+
class GrContextThreadSafeProxy;
|
33
|
+
class GrDirectContext;
|
34
|
+
class GrRecordingContext;
|
35
|
+
class GrYUVABackendTextureInfo;
|
36
|
+
class GrYUVABackendTextures;
|
37
|
+
class SkCanvas;
|
38
|
+
class SkData;
|
39
|
+
class SkImage;
|
40
|
+
class SkImageFilter;
|
41
|
+
class SkImageGenerator;
|
42
|
+
class SkMipmap;
|
43
|
+
class SkPaint;
|
44
|
+
class SkPicture;
|
45
|
+
class SkPixmap;
|
46
|
+
class SkPromiseImageTexture;
|
47
|
+
class SkSurface;
|
48
|
+
class SkYUVAPixmaps;
|
49
|
+
|
50
|
+
enum class SkEncodedImageFormat;
|
51
|
+
|
52
|
+
#if SK_GRAPHITE_ENABLED
|
53
|
+
namespace skgpu::graphite {
|
54
|
+
class Recorder;
|
55
|
+
};
|
56
|
+
#endif
|
57
|
+
|
58
|
+
/** \class SkImage
|
59
|
+
SkImage describes a two dimensional array of pixels to draw. The pixels may be
|
60
|
+
decoded in a raster bitmap, encoded in a SkPicture or compressed data stream,
|
61
|
+
or located in GPU memory as a GPU texture.
|
62
|
+
|
63
|
+
SkImage cannot be modified after it is created. SkImage may allocate additional
|
64
|
+
storage as needed; for instance, an encoded SkImage may decode when drawn.
|
65
|
+
|
66
|
+
SkImage width and height are greater than zero. Creating an SkImage with zero width
|
67
|
+
or height returns SkImage equal to nullptr.
|
68
|
+
|
69
|
+
SkImage may be created from SkBitmap, SkPixmap, SkSurface, SkPicture, encoded streams,
|
70
|
+
GPU texture, YUV_ColorSpace data, or hardware buffer. Encoded streams supported
|
71
|
+
include BMP, GIF, HEIF, ICO, JPEG, PNG, WBMP, WebP. Supported encoding details
|
72
|
+
vary with platform.
|
73
|
+
*/
|
74
|
+
class SK_API SkImage : public SkRefCnt {
|
75
|
+
public:
|
76
|
+
|
77
|
+
/** Caller data passed to RasterReleaseProc; may be nullptr.
|
78
|
+
*/
|
79
|
+
typedef void* ReleaseContext;
|
80
|
+
|
81
|
+
/** Creates SkImage from SkPixmap and copy of pixels. Since pixels are copied, SkPixmap
|
82
|
+
pixels may be modified or deleted without affecting SkImage.
|
83
|
+
|
84
|
+
SkImage is returned if SkPixmap is valid. Valid SkPixmap parameters include:
|
85
|
+
dimensions are greater than zero;
|
86
|
+
each dimension fits in 29 bits;
|
87
|
+
SkColorType and SkAlphaType are valid, and SkColorType is not kUnknown_SkColorType;
|
88
|
+
row bytes are large enough to hold one row of pixels;
|
89
|
+
pixel address is not nullptr.
|
90
|
+
|
91
|
+
@param pixmap SkImageInfo, pixel address, and row bytes
|
92
|
+
@return copy of SkPixmap pixels, or nullptr
|
93
|
+
|
94
|
+
example: https://fiddle.skia.org/c/@Image_MakeRasterCopy
|
95
|
+
*/
|
96
|
+
static sk_sp<SkImage> MakeRasterCopy(const SkPixmap& pixmap);
|
97
|
+
|
98
|
+
/** Creates SkImage from SkImageInfo, sharing pixels.
|
99
|
+
|
100
|
+
SkImage is returned if SkImageInfo is valid. Valid SkImageInfo parameters include:
|
101
|
+
dimensions are greater than zero;
|
102
|
+
each dimension fits in 29 bits;
|
103
|
+
SkColorType and SkAlphaType are valid, and SkColorType is not kUnknown_SkColorType;
|
104
|
+
rowBytes are large enough to hold one row of pixels;
|
105
|
+
pixels is not nullptr, and contains enough data for SkImage.
|
106
|
+
|
107
|
+
@param info contains width, height, SkAlphaType, SkColorType, SkColorSpace
|
108
|
+
@param pixels address or pixel storage
|
109
|
+
@param rowBytes size of pixel row or larger
|
110
|
+
@return SkImage sharing pixels, or nullptr
|
111
|
+
*/
|
112
|
+
static sk_sp<SkImage> MakeRasterData(const SkImageInfo& info, sk_sp<SkData> pixels,
|
113
|
+
size_t rowBytes);
|
114
|
+
|
115
|
+
/** Function called when SkImage no longer shares pixels. ReleaseContext is
|
116
|
+
provided by caller when SkImage is created, and may be nullptr.
|
117
|
+
*/
|
118
|
+
typedef void (*RasterReleaseProc)(const void* pixels, ReleaseContext);
|
119
|
+
|
120
|
+
/** Creates SkImage from pixmap, sharing SkPixmap pixels. Pixels must remain valid and
|
121
|
+
unchanged until rasterReleaseProc is called. rasterReleaseProc is passed
|
122
|
+
releaseContext when SkImage is deleted or no longer refers to pixmap pixels.
|
123
|
+
|
124
|
+
Pass nullptr for rasterReleaseProc to share SkPixmap without requiring a callback
|
125
|
+
when SkImage is released. Pass nullptr for releaseContext if rasterReleaseProc
|
126
|
+
does not require state.
|
127
|
+
|
128
|
+
SkImage is returned if pixmap is valid. Valid SkPixmap parameters include:
|
129
|
+
dimensions are greater than zero;
|
130
|
+
each dimension fits in 29 bits;
|
131
|
+
SkColorType and SkAlphaType are valid, and SkColorType is not kUnknown_SkColorType;
|
132
|
+
row bytes are large enough to hold one row of pixels;
|
133
|
+
pixel address is not nullptr.
|
134
|
+
|
135
|
+
@param pixmap SkImageInfo, pixel address, and row bytes
|
136
|
+
@param rasterReleaseProc function called when pixels can be released; or nullptr
|
137
|
+
@param releaseContext state passed to rasterReleaseProc; or nullptr
|
138
|
+
@return SkImage sharing pixmap
|
139
|
+
*/
|
140
|
+
static sk_sp<SkImage> MakeFromRaster(const SkPixmap& pixmap,
|
141
|
+
RasterReleaseProc rasterReleaseProc,
|
142
|
+
ReleaseContext releaseContext);
|
143
|
+
|
144
|
+
/** Creates SkImage from bitmap, sharing or copying bitmap pixels. If the bitmap
|
145
|
+
is marked immutable, and its pixel memory is shareable, it may be shared
|
146
|
+
instead of copied.
|
147
|
+
|
148
|
+
SkImage is returned if bitmap is valid. Valid SkBitmap parameters include:
|
149
|
+
dimensions are greater than zero;
|
150
|
+
each dimension fits in 29 bits;
|
151
|
+
SkColorType and SkAlphaType are valid, and SkColorType is not kUnknown_SkColorType;
|
152
|
+
row bytes are large enough to hold one row of pixels;
|
153
|
+
pixel address is not nullptr.
|
154
|
+
|
155
|
+
@param bitmap SkImageInfo, row bytes, and pixels
|
156
|
+
@return created SkImage, or nullptr
|
157
|
+
|
158
|
+
example: https://fiddle.skia.org/c/@Image_MakeFromBitmap
|
159
|
+
*/
|
160
|
+
static sk_sp<SkImage> MakeFromBitmap(const SkBitmap& bitmap);
|
161
|
+
|
162
|
+
/** Creates SkImage from data returned by imageGenerator. Generated data is owned by SkImage and
|
163
|
+
may not be shared or accessed.
|
164
|
+
|
165
|
+
SkImage is returned if generator data is valid. Valid data parameters vary by type of data
|
166
|
+
and platform.
|
167
|
+
|
168
|
+
imageGenerator may wrap SkPicture data, codec data, or custom data.
|
169
|
+
|
170
|
+
@param imageGenerator stock or custom routines to retrieve SkImage
|
171
|
+
@return created SkImage, or nullptr
|
172
|
+
*/
|
173
|
+
static sk_sp<SkImage> MakeFromGenerator(std::unique_ptr<SkImageGenerator> imageGenerator);
|
174
|
+
|
175
|
+
/**
|
176
|
+
* Return an image backed by the encoded data, but attempt to defer decoding until the image
|
177
|
+
* is actually used/drawn. This deferral allows the system to cache the result, either on the
|
178
|
+
* CPU or on the GPU, depending on where the image is drawn. If memory is low, the cache may
|
179
|
+
* be purged, causing the next draw of the image to have to re-decode.
|
180
|
+
*
|
181
|
+
* If alphaType is nullopt, the image's alpha type will be chosen automatically based on the
|
182
|
+
* image format. Transparent images will default to kPremul_SkAlphaType. If alphaType contains
|
183
|
+
* kPremul_SkAlphaType or kUnpremul_SkAlphaType, that alpha type will be used. Forcing opaque
|
184
|
+
* (passing kOpaque_SkAlphaType) is not allowed, and will return nullptr.
|
185
|
+
*
|
186
|
+
* This is similar to DecodeTo[Raster,Texture], but this method will attempt to defer the
|
187
|
+
* actual decode, while the DecodeTo... method explicitly decode and allocate the backend
|
188
|
+
* when the call is made.
|
189
|
+
*
|
190
|
+
* If the encoded format is not supported, nullptr is returned.
|
191
|
+
*
|
192
|
+
* @param encoded the encoded data
|
193
|
+
* @return created SkImage, or nullptr
|
194
|
+
|
195
|
+
example: https://fiddle.skia.org/c/@Image_MakeFromEncoded
|
196
|
+
*/
|
197
|
+
static sk_sp<SkImage> MakeFromEncoded(sk_sp<SkData> encoded,
|
198
|
+
std::optional<SkAlphaType> alphaType = std::nullopt);
|
199
|
+
|
200
|
+
/*
|
201
|
+
* Experimental:
|
202
|
+
* Skia | GL_COMPRESSED_* | MTLPixelFormat* | VK_FORMAT_*_BLOCK
|
203
|
+
* --------------------------------------------------------------------------------------
|
204
|
+
* kETC2_RGB8_UNORM | ETC1_RGB8 | ETC2_RGB8 (iOS-only) | ETC2_R8G8B8_UNORM
|
205
|
+
* | RGB8_ETC2 | |
|
206
|
+
* --------------------------------------------------------------------------------------
|
207
|
+
* kBC1_RGB8_UNORM | RGB_S3TC_DXT1_EXT | N/A | BC1_RGB_UNORM
|
208
|
+
* --------------------------------------------------------------------------------------
|
209
|
+
* kBC1_RGBA8_UNORM | RGBA_S3TC_DXT1_EXT | BC1_RGBA (macOS-only)| BC1_RGBA_UNORM
|
210
|
+
*/
|
211
|
+
enum class CompressionType {
|
212
|
+
kNone,
|
213
|
+
kETC2_RGB8_UNORM, // the same as ETC1
|
214
|
+
|
215
|
+
kBC1_RGB8_UNORM,
|
216
|
+
kBC1_RGBA8_UNORM,
|
217
|
+
kLast = kBC1_RGBA8_UNORM,
|
218
|
+
};
|
219
|
+
|
220
|
+
static constexpr int kCompressionTypeCount = static_cast<int>(CompressionType::kLast) + 1;
|
221
|
+
|
222
|
+
static const CompressionType kETC1_CompressionType = CompressionType::kETC2_RGB8_UNORM;
|
223
|
+
|
224
|
+
/** Creates a CPU-backed SkImage from compressed data.
|
225
|
+
|
226
|
+
This method will decompress the compressed data and create an image wrapping
|
227
|
+
it. Any mipmap levels present in the compressed data are discarded.
|
228
|
+
|
229
|
+
@param data compressed data to store in SkImage
|
230
|
+
@param width width of full SkImage
|
231
|
+
@param height height of full SkImage
|
232
|
+
@param type type of compression used
|
233
|
+
@return created SkImage, or nullptr
|
234
|
+
*/
|
235
|
+
static sk_sp<SkImage> MakeRasterFromCompressed(sk_sp<SkData> data,
|
236
|
+
int width, int height,
|
237
|
+
CompressionType type);
|
238
|
+
|
239
|
+
enum class BitDepth {
|
240
|
+
kU8, //!< uses 8-bit unsigned int per color component
|
241
|
+
kF16, //!< uses 16-bit float per color component
|
242
|
+
};
|
243
|
+
|
244
|
+
/** Creates SkImage from picture. Returned SkImage width and height are set by dimensions.
|
245
|
+
SkImage draws picture with matrix and paint, set to bitDepth and colorSpace.
|
246
|
+
|
247
|
+
If matrix is nullptr, draws with identity SkMatrix. If paint is nullptr, draws
|
248
|
+
with default SkPaint. colorSpace may be nullptr.
|
249
|
+
|
250
|
+
@param picture stream of drawing commands
|
251
|
+
@param dimensions width and height
|
252
|
+
@param matrix SkMatrix to rotate, scale, translate, and so on; may be nullptr
|
253
|
+
@param paint SkPaint to apply transparency, filtering, and so on; may be nullptr
|
254
|
+
@param bitDepth 8-bit integer or 16-bit float: per component
|
255
|
+
@param colorSpace range of colors; may be nullptr
|
256
|
+
@return created SkImage, or nullptr
|
257
|
+
*/
|
258
|
+
static sk_sp<SkImage> MakeFromPicture(sk_sp<SkPicture> picture, const SkISize& dimensions,
|
259
|
+
const SkMatrix* matrix, const SkPaint* paint,
|
260
|
+
BitDepth bitDepth,
|
261
|
+
sk_sp<SkColorSpace> colorSpace);
|
262
|
+
|
263
|
+
#if SK_SUPPORT_GPU
|
264
|
+
/** Creates a GPU-backed SkImage from compressed data.
|
265
|
+
|
266
|
+
This method will return an SkImage representing the compressed data.
|
267
|
+
If the GPU doesn't support the specified compression method, the data
|
268
|
+
will be decompressed and then wrapped in a GPU-backed image.
|
269
|
+
|
270
|
+
Note: one can query the supported compression formats via
|
271
|
+
GrRecordingContext::compressedBackendFormat.
|
272
|
+
|
273
|
+
@param context GPU context
|
274
|
+
@param data compressed data to store in SkImage
|
275
|
+
@param width width of full SkImage
|
276
|
+
@param height height of full SkImage
|
277
|
+
@param type type of compression used
|
278
|
+
@param mipmapped does 'data' contain data for all the mipmap levels?
|
279
|
+
@param isProtected do the contents of 'data' require DRM protection (on Vulkan)?
|
280
|
+
@return created SkImage, or nullptr
|
281
|
+
*/
|
282
|
+
static sk_sp<SkImage> MakeTextureFromCompressed(GrDirectContext* direct,
|
283
|
+
sk_sp<SkData> data,
|
284
|
+
int width, int height,
|
285
|
+
CompressionType type,
|
286
|
+
GrMipmapped mipmapped = GrMipmapped::kNo,
|
287
|
+
GrProtected isProtected = GrProtected::kNo);
|
288
|
+
|
289
|
+
/** User function called when supplied texture may be deleted.
|
290
|
+
*/
|
291
|
+
typedef void (*TextureReleaseProc)(ReleaseContext releaseContext);
|
292
|
+
|
293
|
+
/** Creates SkImage from GPU texture associated with context. GPU texture must stay
|
294
|
+
valid and unchanged until textureReleaseProc is called. textureReleaseProc is
|
295
|
+
passed releaseContext when SkImage is deleted or no longer refers to texture.
|
296
|
+
|
297
|
+
SkImage is returned if format of backendTexture is recognized and supported.
|
298
|
+
Recognized formats vary by GPU back-end.
|
299
|
+
|
300
|
+
@note When using a DDL recording context, textureReleaseProc will be called on the
|
301
|
+
GPU thread after the DDL is played back on the direct context.
|
302
|
+
|
303
|
+
@param context GPU context
|
304
|
+
@param backendTexture texture residing on GPU
|
305
|
+
@param colorSpace This describes the color space of this image's contents, as
|
306
|
+
seen after sampling. In general, if the format of the backend
|
307
|
+
texture is SRGB, some linear colorSpace should be supplied
|
308
|
+
(e.g., SkColorSpace::MakeSRGBLinear()). If the format of the
|
309
|
+
backend texture is linear, then the colorSpace should include
|
310
|
+
a description of the transfer function as
|
311
|
+
well (e.g., SkColorSpace::MakeSRGB()).
|
312
|
+
@param textureReleaseProc function called when texture can be released
|
313
|
+
@param releaseContext state passed to textureReleaseProc
|
314
|
+
@return created SkImage, or nullptr
|
315
|
+
*/
|
316
|
+
static sk_sp<SkImage> MakeFromTexture(GrRecordingContext* context,
|
317
|
+
const GrBackendTexture& backendTexture,
|
318
|
+
GrSurfaceOrigin origin,
|
319
|
+
SkColorType colorType,
|
320
|
+
SkAlphaType alphaType,
|
321
|
+
sk_sp<SkColorSpace> colorSpace,
|
322
|
+
TextureReleaseProc textureReleaseProc = nullptr,
|
323
|
+
ReleaseContext releaseContext = nullptr);
|
324
|
+
|
325
|
+
/** Creates an SkImage from a GPU backend texture. The backend texture must stay
|
326
|
+
valid and unchanged until textureReleaseProc is called. The textureReleaseProc is
|
327
|
+
called when the SkImage is deleted or no longer refers to the texture and will be
|
328
|
+
passed the releaseContext.
|
329
|
+
|
330
|
+
An SkImage is returned if the format of backendTexture is recognized and supported.
|
331
|
+
Recognized formats vary by GPU back-end.
|
332
|
+
|
333
|
+
@note When using a DDL recording context, textureReleaseProc will be called on the
|
334
|
+
GPU thread after the DDL is played back on the direct context.
|
335
|
+
|
336
|
+
@param context the GPU context
|
337
|
+
@param backendTexture a texture already allocated by the GPU
|
338
|
+
@param alphaType This characterizes the nature of the alpha values in the
|
339
|
+
backend texture. For opaque compressed formats (e.g., ETC1)
|
340
|
+
this should usually be set to kOpaque_SkAlphaType.
|
341
|
+
@param colorSpace This describes the color space of this image's contents, as
|
342
|
+
seen after sampling. In general, if the format of the backend
|
343
|
+
texture is SRGB, some linear colorSpace should be supplied
|
344
|
+
(e.g., SkColorSpace::MakeSRGBLinear()). If the format of the
|
345
|
+
backend texture is linear, then the colorSpace should include
|
346
|
+
a description of the transfer function as
|
347
|
+
well (e.g., SkColorSpace::MakeSRGB()).
|
348
|
+
@param textureReleaseProc function called when the backend texture can be released
|
349
|
+
@param releaseContext state passed to textureReleaseProc
|
350
|
+
@return created SkImage, or nullptr
|
351
|
+
*/
|
352
|
+
static sk_sp<SkImage> MakeFromCompressedTexture(GrRecordingContext* context,
|
353
|
+
const GrBackendTexture& backendTexture,
|
354
|
+
GrSurfaceOrigin origin,
|
355
|
+
SkAlphaType alphaType,
|
356
|
+
sk_sp<SkColorSpace> colorSpace,
|
357
|
+
TextureReleaseProc textureReleaseProc = nullptr,
|
358
|
+
ReleaseContext releaseContext = nullptr);
|
359
|
+
|
360
|
+
/** Creates SkImage from pixmap. SkImage is uploaded to GPU back-end using context.
|
361
|
+
|
362
|
+
Created SkImage is available to other GPU contexts, and is available across thread
|
363
|
+
boundaries. All contexts must be in the same GPU share group, or otherwise
|
364
|
+
share resources.
|
365
|
+
|
366
|
+
When SkImage is no longer referenced, context releases texture memory
|
367
|
+
asynchronously.
|
368
|
+
|
369
|
+
GrBackendTexture created from pixmap is uploaded to match SkSurface created with
|
370
|
+
dstColorSpace. SkColorSpace of SkImage is determined by pixmap.colorSpace().
|
371
|
+
|
372
|
+
SkImage is returned referring to GPU back-end if context is not nullptr,
|
373
|
+
format of data is recognized and supported, and if context supports moving
|
374
|
+
resources between contexts. Otherwise, pixmap pixel data is copied and SkImage
|
375
|
+
as returned in raster format if possible; nullptr may be returned.
|
376
|
+
Recognized GPU formats vary by platform and GPU back-end.
|
377
|
+
|
378
|
+
@param context GPU context
|
379
|
+
@param pixmap SkImageInfo, pixel address, and row bytes
|
380
|
+
@param buildMips create SkImage as mip map if true
|
381
|
+
@param dstColorSpace range of colors of matching SkSurface on GPU
|
382
|
+
@param limitToMaxTextureSize downscale image to GPU maximum texture size, if necessary
|
383
|
+
@return created SkImage, or nullptr
|
384
|
+
*/
|
385
|
+
static sk_sp<SkImage> MakeCrossContextFromPixmap(GrDirectContext* context,
|
386
|
+
const SkPixmap& pixmap,
|
387
|
+
bool buildMips,
|
388
|
+
bool limitToMaxTextureSize = false);
|
389
|
+
|
390
|
+
/** Creates SkImage from backendTexture associated with context. backendTexture and
|
391
|
+
returned SkImage are managed internally, and are released when no longer needed.
|
392
|
+
|
393
|
+
SkImage is returned if format of backendTexture is recognized and supported.
|
394
|
+
Recognized formats vary by GPU back-end.
|
395
|
+
|
396
|
+
@param context GPU context
|
397
|
+
@param backendTexture texture residing on GPU
|
398
|
+
@param textureOrigin origin of backendTexture
|
399
|
+
@param colorType color type of the resulting image
|
400
|
+
@param alphaType alpha type of the resulting image
|
401
|
+
@param colorSpace range of colors; may be nullptr
|
402
|
+
@return created SkImage, or nullptr
|
403
|
+
*/
|
404
|
+
static sk_sp<SkImage> MakeFromAdoptedTexture(GrRecordingContext* context,
|
405
|
+
const GrBackendTexture& backendTexture,
|
406
|
+
GrSurfaceOrigin textureOrigin,
|
407
|
+
SkColorType colorType);
|
408
|
+
static sk_sp<SkImage> MakeFromAdoptedTexture(GrRecordingContext* context,
|
409
|
+
const GrBackendTexture& backendTexture,
|
410
|
+
GrSurfaceOrigin textureOrigin,
|
411
|
+
SkColorType colorType,
|
412
|
+
SkAlphaType alphaType);
|
413
|
+
static sk_sp<SkImage> MakeFromAdoptedTexture(GrRecordingContext* context,
|
414
|
+
const GrBackendTexture& backendTexture,
|
415
|
+
GrSurfaceOrigin textureOrigin,
|
416
|
+
SkColorType colorType,
|
417
|
+
SkAlphaType alphaType,
|
418
|
+
sk_sp<SkColorSpace> colorSpace);
|
419
|
+
|
420
|
+
/** Creates an SkImage from YUV[A] planar textures. This requires that the textures stay valid
|
421
|
+
for the lifetime of the image. The ReleaseContext can be used to know when it is safe to
|
422
|
+
either delete or overwrite the textures. If ReleaseProc is provided it is also called before
|
423
|
+
return on failure.
|
424
|
+
|
425
|
+
@param context GPU context
|
426
|
+
@param yuvaTextures A set of textures containing YUVA data and a description of the
|
427
|
+
data and transformation to RGBA.
|
428
|
+
@param imageColorSpace range of colors of the resulting image after conversion to RGB;
|
429
|
+
may be nullptr
|
430
|
+
@param textureReleaseProc called when the backend textures can be released
|
431
|
+
@param releaseContext state passed to textureReleaseProc
|
432
|
+
@return created SkImage, or nullptr
|
433
|
+
*/
|
434
|
+
static sk_sp<SkImage> MakeFromYUVATextures(GrRecordingContext* context,
|
435
|
+
const GrYUVABackendTextures& yuvaTextures,
|
436
|
+
sk_sp<SkColorSpace> imageColorSpace = nullptr,
|
437
|
+
TextureReleaseProc textureReleaseProc = nullptr,
|
438
|
+
ReleaseContext releaseContext = nullptr);
|
439
|
+
|
440
|
+
/** Creates SkImage from SkYUVAPixmaps.
|
441
|
+
|
442
|
+
The image will remain planar with each plane converted to a texture using the passed
|
443
|
+
GrRecordingContext.
|
444
|
+
|
445
|
+
SkYUVAPixmaps has a SkYUVAInfo which specifies the transformation from YUV to RGB.
|
446
|
+
The SkColorSpace of the resulting RGB values is specified by imageColorSpace. This will
|
447
|
+
be the SkColorSpace reported by the image and when drawn the RGB values will be converted
|
448
|
+
from this space into the destination space (if the destination is tagged).
|
449
|
+
|
450
|
+
Currently, this is only supported using the GPU backend and will fail if context is nullptr.
|
451
|
+
|
452
|
+
SkYUVAPixmaps does not need to remain valid after this returns.
|
453
|
+
|
454
|
+
@param context GPU context
|
455
|
+
@param pixmaps The planes as pixmaps with supported SkYUVAInfo that
|
456
|
+
specifies conversion to RGB.
|
457
|
+
@param buildMips create internal YUVA textures as mip map if kYes. This is
|
458
|
+
silently ignored if the context does not support mip maps.
|
459
|
+
@param limitToMaxTextureSize downscale image to GPU maximum texture size, if necessary
|
460
|
+
@param imageColorSpace range of colors of the resulting image; may be nullptr
|
461
|
+
@return created SkImage, or nullptr
|
462
|
+
*/
|
463
|
+
static sk_sp<SkImage> MakeFromYUVAPixmaps(GrRecordingContext* context,
|
464
|
+
const SkYUVAPixmaps& pixmaps,
|
465
|
+
GrMipmapped buildMips = GrMipmapped::kNo,
|
466
|
+
bool limitToMaxTextureSize = false,
|
467
|
+
sk_sp<SkColorSpace> imageColorSpace = nullptr);
|
468
|
+
|
469
|
+
using PromiseImageTextureContext = void*;
|
470
|
+
using PromiseImageTextureFulfillProc =
|
471
|
+
sk_sp<SkPromiseImageTexture> (*)(PromiseImageTextureContext);
|
472
|
+
using PromiseImageTextureReleaseProc = void (*)(PromiseImageTextureContext);
|
473
|
+
|
474
|
+
/** Create a new SkImage that is very similar to an SkImage created by MakeFromTexture. The
|
475
|
+
difference is that the caller need not have created the texture nor populated it with the
|
476
|
+
image pixel data. Moreover, the SkImage may be created on a thread as the creation of the
|
477
|
+
image does not require access to the backend API or GrDirectContext. Instead of passing a
|
478
|
+
GrBackendTexture the client supplies a description of the texture consisting of
|
479
|
+
GrBackendFormat, width, height, and GrMipmapped state. The resulting SkImage can be drawn
|
480
|
+
to a SkDeferredDisplayListRecorder or directly to a GPU-backed SkSurface.
|
481
|
+
|
482
|
+
When the actual texture is required to perform a backend API draw, textureFulfillProc will
|
483
|
+
be called to receive a GrBackendTexture. The properties of the GrBackendTexture must match
|
484
|
+
those set during the SkImage creation, and it must refer to a valid existing texture in the
|
485
|
+
backend API context/device, and be populated with the image pixel data. The texture cannot
|
486
|
+
be deleted until textureReleaseProc is called.
|
487
|
+
|
488
|
+
There is at most one call to each of textureFulfillProc and textureReleaseProc.
|
489
|
+
textureReleaseProc is always called even if image creation fails or if the
|
490
|
+
image is never fulfilled (e.g. it is never drawn or all draws are clipped out)
|
491
|
+
|
492
|
+
@param gpuContextProxy the thread-safe proxy of the gpu context. required.
|
493
|
+
@param backendFormat format of promised gpu texture
|
494
|
+
@param dimensions width & height of promised gpu texture
|
495
|
+
@param mipmapped mip mapped state of promised gpu texture
|
496
|
+
@param origin surface origin of promised gpu texture
|
497
|
+
@param colorType color type of promised gpu texture
|
498
|
+
@param alphaType alpha type of promised gpu texture
|
499
|
+
@param colorSpace range of colors; may be nullptr
|
500
|
+
@param textureFulfillProc function called to get actual gpu texture
|
501
|
+
@param textureReleaseProc function called when texture can be deleted
|
502
|
+
@param textureContext state passed to textureFulfillProc and textureReleaseProc
|
503
|
+
@return created SkImage, or nullptr
|
504
|
+
*/
|
505
|
+
static sk_sp<SkImage> MakePromiseTexture(sk_sp<GrContextThreadSafeProxy> gpuContextProxy,
|
506
|
+
const GrBackendFormat& backendFormat,
|
507
|
+
SkISize dimensions,
|
508
|
+
GrMipmapped mipmapped,
|
509
|
+
GrSurfaceOrigin origin,
|
510
|
+
SkColorType colorType,
|
511
|
+
SkAlphaType alphaType,
|
512
|
+
sk_sp<SkColorSpace> colorSpace,
|
513
|
+
PromiseImageTextureFulfillProc textureFulfillProc,
|
514
|
+
PromiseImageTextureReleaseProc textureReleaseProc,
|
515
|
+
PromiseImageTextureContext textureContext);
|
516
|
+
|
517
|
+
/** This entry point operates like 'MakePromiseTexture' but it is used to construct a SkImage
|
518
|
+
from YUV[A] data. The source data may be planar (i.e. spread across multiple textures). In
|
519
|
+
the extreme Y, U, V, and A are all in different planes and thus the image is specified by
|
520
|
+
four textures. 'backendTextureInfo' describes the planar arrangement, texture formats,
|
521
|
+
conversion to RGB, and origin of the textures. Separate 'textureFulfillProc' and
|
522
|
+
'textureReleaseProc' calls are made for each texture. Each texture has its own
|
523
|
+
PromiseImageTextureContext. If 'backendTextureInfo' is not valid then no release proc
|
524
|
+
calls are made. Otherwise, the calls will be made even on failure. 'textureContexts' has one
|
525
|
+
entry for each of the up to four textures, as indicated by 'backendTextureInfo'.
|
526
|
+
|
527
|
+
Currently the mip mapped property of 'backendTextureInfo' is ignored. However, in the
|
528
|
+
near future it will be required that if it is kYes then textureFulfillProc must return
|
529
|
+
a mip mapped texture for each plane in order to successfully draw the image.
|
530
|
+
|
531
|
+
@param gpuContextProxy the thread-safe proxy of the gpu context. required.
|
532
|
+
@param backendTextureInfo info about the promised yuva gpu texture
|
533
|
+
@param imageColorSpace range of colors; may be nullptr
|
534
|
+
@param textureFulfillProc function called to get actual gpu texture
|
535
|
+
@param textureReleaseProc function called when texture can be deleted
|
536
|
+
@param textureContexts state passed to textureFulfillProc and textureReleaseProc
|
537
|
+
@return created SkImage, or nullptr
|
538
|
+
*/
|
539
|
+
static sk_sp<SkImage> MakePromiseYUVATexture(sk_sp<GrContextThreadSafeProxy> gpuContextProxy,
|
540
|
+
const GrYUVABackendTextureInfo& backendTextureInfo,
|
541
|
+
sk_sp<SkColorSpace> imageColorSpace,
|
542
|
+
PromiseImageTextureFulfillProc textureFulfillProc,
|
543
|
+
PromiseImageTextureReleaseProc textureReleaseProc,
|
544
|
+
PromiseImageTextureContext textureContexts[]);
|
545
|
+
|
546
|
+
#endif // SK_SUPPORT_GPU
|
547
|
+
|
548
|
+
#if defined(SK_BUILD_FOR_ANDROID) && __ANDROID_API__ >= 26
|
549
|
+
/** (See Skia bug 7447)
|
550
|
+
Creates SkImage from Android hardware buffer.
|
551
|
+
Returned SkImage takes a reference on the buffer.
|
552
|
+
|
553
|
+
Only available on Android, when __ANDROID_API__ is defined to be 26 or greater.
|
554
|
+
|
555
|
+
@param hardwareBuffer AHardwareBuffer Android hardware buffer
|
556
|
+
@param colorSpace range of colors; may be nullptr
|
557
|
+
@return created SkImage, or nullptr
|
558
|
+
*/
|
559
|
+
static sk_sp<SkImage> MakeFromAHardwareBuffer(
|
560
|
+
AHardwareBuffer* hardwareBuffer,
|
561
|
+
SkAlphaType alphaType = kPremul_SkAlphaType,
|
562
|
+
sk_sp<SkColorSpace> colorSpace = nullptr,
|
563
|
+
GrSurfaceOrigin surfaceOrigin = kTopLeft_GrSurfaceOrigin);
|
564
|
+
|
565
|
+
/** Creates SkImage from Android hardware buffer and uploads the data from the SkPixmap to it.
|
566
|
+
Returned SkImage takes a reference on the buffer.
|
567
|
+
|
568
|
+
Only available on Android, when __ANDROID_API__ is defined to be 26 or greater.
|
569
|
+
|
570
|
+
@param context GPU context
|
571
|
+
@param pixmap SkPixmap that contains data to be uploaded to the AHardwareBuffer
|
572
|
+
@param hardwareBuffer AHardwareBuffer Android hardware buffer
|
573
|
+
@param surfaceOrigin surface origin for resulting image
|
574
|
+
@return created SkImage, or nullptr
|
575
|
+
*/
|
576
|
+
static sk_sp<SkImage> MakeFromAHardwareBufferWithData(
|
577
|
+
GrDirectContext* context,
|
578
|
+
const SkPixmap& pixmap,
|
579
|
+
AHardwareBuffer* hardwareBuffer,
|
580
|
+
GrSurfaceOrigin surfaceOrigin = kTopLeft_GrSurfaceOrigin);
|
581
|
+
#endif
|
582
|
+
|
583
|
+
/** Returns a SkImageInfo describing the width, height, color type, alpha type, and color space
|
584
|
+
of the SkImage.
|
585
|
+
|
586
|
+
@return image info of SkImage.
|
587
|
+
*/
|
588
|
+
const SkImageInfo& imageInfo() const { return fInfo; }
|
589
|
+
|
590
|
+
/** Returns pixel count in each row.
|
591
|
+
|
592
|
+
@return pixel width in SkImage
|
593
|
+
*/
|
594
|
+
int width() const { return fInfo.width(); }
|
595
|
+
|
596
|
+
/** Returns pixel row count.
|
597
|
+
|
598
|
+
@return pixel height in SkImage
|
599
|
+
*/
|
600
|
+
int height() const { return fInfo.height(); }
|
601
|
+
|
602
|
+
/** Returns SkISize { width(), height() }.
|
603
|
+
|
604
|
+
@return integral size of width() and height()
|
605
|
+
*/
|
606
|
+
SkISize dimensions() const { return SkISize::Make(fInfo.width(), fInfo.height()); }
|
607
|
+
|
608
|
+
/** Returns SkIRect { 0, 0, width(), height() }.
|
609
|
+
|
610
|
+
@return integral rectangle from origin to width() and height()
|
611
|
+
*/
|
612
|
+
SkIRect bounds() const { return SkIRect::MakeWH(fInfo.width(), fInfo.height()); }
|
613
|
+
|
614
|
+
/** Returns value unique to image. SkImage contents cannot change after SkImage is
|
615
|
+
created. Any operation to create a new SkImage will receive generate a new
|
616
|
+
unique number.
|
617
|
+
|
618
|
+
@return unique identifier
|
619
|
+
*/
|
620
|
+
uint32_t uniqueID() const { return fUniqueID; }
|
621
|
+
|
622
|
+
/** Returns SkAlphaType.
|
623
|
+
|
624
|
+
SkAlphaType returned was a parameter to an SkImage constructor,
|
625
|
+
or was parsed from encoded data.
|
626
|
+
|
627
|
+
@return SkAlphaType in SkImage
|
628
|
+
|
629
|
+
example: https://fiddle.skia.org/c/@Image_alphaType
|
630
|
+
*/
|
631
|
+
SkAlphaType alphaType() const;
|
632
|
+
|
633
|
+
/** Returns SkColorType if known; otherwise, returns kUnknown_SkColorType.
|
634
|
+
|
635
|
+
@return SkColorType of SkImage
|
636
|
+
|
637
|
+
example: https://fiddle.skia.org/c/@Image_colorType
|
638
|
+
*/
|
639
|
+
SkColorType colorType() const;
|
640
|
+
|
641
|
+
/** Returns SkColorSpace, the range of colors, associated with SkImage. The
|
642
|
+
reference count of SkColorSpace is unchanged. The returned SkColorSpace is
|
643
|
+
immutable.
|
644
|
+
|
645
|
+
SkColorSpace returned was passed to an SkImage constructor,
|
646
|
+
or was parsed from encoded data. SkColorSpace returned may be ignored when SkImage
|
647
|
+
is drawn, depending on the capabilities of the SkSurface receiving the drawing.
|
648
|
+
|
649
|
+
@return SkColorSpace in SkImage, or nullptr
|
650
|
+
|
651
|
+
example: https://fiddle.skia.org/c/@Image_colorSpace
|
652
|
+
*/
|
653
|
+
SkColorSpace* colorSpace() const;
|
654
|
+
|
655
|
+
/** Returns a smart pointer to SkColorSpace, the range of colors, associated with
|
656
|
+
SkImage. The smart pointer tracks the number of objects sharing this
|
657
|
+
SkColorSpace reference so the memory is released when the owners destruct.
|
658
|
+
|
659
|
+
The returned SkColorSpace is immutable.
|
660
|
+
|
661
|
+
SkColorSpace returned was passed to an SkImage constructor,
|
662
|
+
or was parsed from encoded data. SkColorSpace returned may be ignored when SkImage
|
663
|
+
is drawn, depending on the capabilities of the SkSurface receiving the drawing.
|
664
|
+
|
665
|
+
@return SkColorSpace in SkImage, or nullptr, wrapped in a smart pointer
|
666
|
+
|
667
|
+
example: https://fiddle.skia.org/c/@Image_refColorSpace
|
668
|
+
*/
|
669
|
+
sk_sp<SkColorSpace> refColorSpace() const;
|
670
|
+
|
671
|
+
/** Returns true if SkImage pixels represent transparency only. If true, each pixel
|
672
|
+
is packed in 8 bits as defined by kAlpha_8_SkColorType.
|
673
|
+
|
674
|
+
@return true if pixels represent a transparency mask
|
675
|
+
|
676
|
+
example: https://fiddle.skia.org/c/@Image_isAlphaOnly
|
677
|
+
*/
|
678
|
+
bool isAlphaOnly() const;
|
679
|
+
|
680
|
+
/** Returns true if pixels ignore their alpha value and are treated as fully opaque.
|
681
|
+
|
682
|
+
@return true if SkAlphaType is kOpaque_SkAlphaType
|
683
|
+
*/
|
684
|
+
bool isOpaque() const { return SkAlphaTypeIsOpaque(this->alphaType()); }
|
685
|
+
|
686
|
+
/**
|
687
|
+
* Make a shader with the specified tiling and mipmap sampling.
|
688
|
+
*/
|
689
|
+
sk_sp<SkShader> makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions&,
|
690
|
+
const SkMatrix* localMatrix = nullptr) const;
|
691
|
+
|
692
|
+
sk_sp<SkShader> makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions& sampling,
|
693
|
+
const SkMatrix& lm) const {
|
694
|
+
return this->makeShader(tmx, tmy, sampling, &lm);
|
695
|
+
}
|
696
|
+
sk_sp<SkShader> makeShader(const SkSamplingOptions& sampling, const SkMatrix& lm) const {
|
697
|
+
return this->makeShader(SkTileMode::kClamp, SkTileMode::kClamp, sampling, &lm);
|
698
|
+
}
|
699
|
+
sk_sp<SkShader> makeShader(const SkSamplingOptions& sampling,
|
700
|
+
const SkMatrix* lm = nullptr) const {
|
701
|
+
return this->makeShader(SkTileMode::kClamp, SkTileMode::kClamp, sampling, lm);
|
702
|
+
}
|
703
|
+
|
704
|
+
/**
|
705
|
+
* makeRawShader functions like makeShader, but for images that contain non-color data.
|
706
|
+
* This includes images encoding things like normals, material properties (eg, roughness),
|
707
|
+
* heightmaps, or any other purely mathematical data that happens to be stored in an image.
|
708
|
+
* These types of images are useful with some programmable shaders (see: SkRuntimeEffect).
|
709
|
+
*
|
710
|
+
* Raw image shaders work like regular image shaders (including filtering and tiling), with
|
711
|
+
* a few major differences:
|
712
|
+
* - No color space transformation is ever applied (the color space of the image is ignored).
|
713
|
+
* - Images with an alpha type of kUnpremul are *not* automatically premultiplied.
|
714
|
+
* - Bicubic filtering is not supported. If SkSamplingOptions::useCubic is true, these
|
715
|
+
* factories will return nullptr.
|
716
|
+
*/
|
717
|
+
sk_sp<SkShader> makeRawShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions&,
|
718
|
+
const SkMatrix* localMatrix = nullptr) const;
|
719
|
+
|
720
|
+
sk_sp<SkShader> makeRawShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions& sampling,
|
721
|
+
const SkMatrix& lm) const {
|
722
|
+
return this->makeRawShader(tmx, tmy, sampling, &lm);
|
723
|
+
}
|
724
|
+
sk_sp<SkShader> makeRawShader(const SkSamplingOptions& sampling, const SkMatrix& lm) const {
|
725
|
+
return this->makeRawShader(SkTileMode::kClamp, SkTileMode::kClamp, sampling, &lm);
|
726
|
+
}
|
727
|
+
sk_sp<SkShader> makeRawShader(const SkSamplingOptions& sampling,
|
728
|
+
const SkMatrix* lm = nullptr) const {
|
729
|
+
return this->makeRawShader(SkTileMode::kClamp, SkTileMode::kClamp, sampling, lm);
|
730
|
+
}
|
731
|
+
|
732
|
+
using CubicResampler = SkCubicResampler;
|
733
|
+
|
734
|
+
/** Copies SkImage pixel address, row bytes, and SkImageInfo to pixmap, if address
|
735
|
+
is available, and returns true. If pixel address is not available, return
|
736
|
+
false and leave pixmap unchanged.
|
737
|
+
|
738
|
+
@param pixmap storage for pixel state if pixels are readable; otherwise, ignored
|
739
|
+
@return true if SkImage has direct access to pixels
|
740
|
+
|
741
|
+
example: https://fiddle.skia.org/c/@Image_peekPixels
|
742
|
+
*/
|
743
|
+
bool peekPixels(SkPixmap* pixmap) const;
|
744
|
+
|
745
|
+
/** Returns true if the contents of SkImage was created on or uploaded to GPU memory,
|
746
|
+
and is available as a GPU texture.
|
747
|
+
|
748
|
+
@return true if SkImage is a GPU texture
|
749
|
+
|
750
|
+
example: https://fiddle.skia.org/c/@Image_isTextureBacked
|
751
|
+
*/
|
752
|
+
bool isTextureBacked() const;
|
753
|
+
|
754
|
+
/** Returns an approximation of the amount of texture memory used by the image. Returns
|
755
|
+
zero if the image is not texture backed or if the texture has an external format.
|
756
|
+
*/
|
757
|
+
size_t textureSize() const;
|
758
|
+
|
759
|
+
/** Returns true if SkImage can be drawn on either raster surface or GPU surface.
|
760
|
+
If context is nullptr, tests if SkImage draws on raster surface;
|
761
|
+
otherwise, tests if SkImage draws on GPU surface associated with context.
|
762
|
+
|
763
|
+
SkImage backed by GPU texture may become invalid if associated context is
|
764
|
+
invalid. lazy image may be invalid and may not draw to raster surface or
|
765
|
+
GPU surface or both.
|
766
|
+
|
767
|
+
@param context GPU context
|
768
|
+
@return true if SkImage can be drawn
|
769
|
+
|
770
|
+
example: https://fiddle.skia.org/c/@Image_isValid
|
771
|
+
*/
|
772
|
+
bool isValid(GrRecordingContext* context) const;
|
773
|
+
|
774
|
+
#if SK_SUPPORT_GPU
|
775
|
+
/** Flushes any pending uses of texture-backed images in the GPU backend. If the image is not
|
776
|
+
texture-backed (including promise texture images) or if the GrDirectContext does not
|
777
|
+
have the same context ID as the context backing the image then this is a no-op.
|
778
|
+
|
779
|
+
If the image was not used in any non-culled draws in the current queue of work for the
|
780
|
+
passed GrDirectContext then this is a no-op unless the GrFlushInfo contains semaphores or
|
781
|
+
a finish proc. Those are respected even when the image has not been used.
|
782
|
+
|
783
|
+
@param context the context on which to flush pending usages of the image.
|
784
|
+
@param info flush options
|
785
|
+
*/
|
786
|
+
GrSemaphoresSubmitted flush(GrDirectContext* context, const GrFlushInfo& flushInfo) const;
|
787
|
+
|
788
|
+
void flush(GrDirectContext* context) const { this->flush(context, {}); }
|
789
|
+
|
790
|
+
/** Version of flush() that uses a default GrFlushInfo. Also submits the flushed work to the
|
791
|
+
GPU.
|
792
|
+
*/
|
793
|
+
void flushAndSubmit(GrDirectContext*) const;
|
794
|
+
|
795
|
+
/** Retrieves the back-end texture. If SkImage has no back-end texture, an invalid
|
796
|
+
object is returned. Call GrBackendTexture::isValid to determine if the result
|
797
|
+
is valid.
|
798
|
+
|
799
|
+
If flushPendingGrContextIO is true, completes deferred I/O operations.
|
800
|
+
|
801
|
+
If origin in not nullptr, copies location of content drawn into SkImage.
|
802
|
+
|
803
|
+
@param flushPendingGrContextIO flag to flush outstanding requests
|
804
|
+
@return back-end API texture handle; invalid on failure
|
805
|
+
*/
|
806
|
+
GrBackendTexture getBackendTexture(bool flushPendingGrContextIO,
|
807
|
+
GrSurfaceOrigin* origin = nullptr) const;
|
808
|
+
#endif // SK_SUPPORT_GPU
|
809
|
+
|
810
|
+
/** \enum SkImage::CachingHint
|
811
|
+
CachingHint selects whether Skia may internally cache SkBitmap generated by
|
812
|
+
decoding SkImage, or by copying SkImage from GPU to CPU. The default behavior
|
813
|
+
allows caching SkBitmap.
|
814
|
+
|
815
|
+
Choose kDisallow_CachingHint if SkImage pixels are to be used only once, or
|
816
|
+
if SkImage pixels reside in a cache outside of Skia, or to reduce memory pressure.
|
817
|
+
|
818
|
+
Choosing kAllow_CachingHint does not ensure that pixels will be cached.
|
819
|
+
SkImage pixels may not be cached if memory requirements are too large or
|
820
|
+
pixels are not accessible.
|
821
|
+
*/
|
822
|
+
enum CachingHint {
|
823
|
+
kAllow_CachingHint, //!< allows internally caching decoded and copied pixels
|
824
|
+
kDisallow_CachingHint, //!< disallows internally caching decoded and copied pixels
|
825
|
+
};
|
826
|
+
|
827
|
+
/** Copies SkRect of pixels from SkImage to dstPixels. Copy starts at offset (srcX, srcY),
|
828
|
+
and does not exceed SkImage (width(), height()).
|
829
|
+
|
830
|
+
dstInfo specifies width, height, SkColorType, SkAlphaType, and SkColorSpace of
|
831
|
+
destination. dstRowBytes specifies the gap from one destination row to the next.
|
832
|
+
Returns true if pixels are copied. Returns false if:
|
833
|
+
- dstInfo.addr() equals nullptr
|
834
|
+
- dstRowBytes is less than dstInfo.minRowBytes()
|
835
|
+
- SkPixelRef is nullptr
|
836
|
+
|
837
|
+
Pixels are copied only if pixel conversion is possible. If SkImage SkColorType is
|
838
|
+
kGray_8_SkColorType, or kAlpha_8_SkColorType; dstInfo.colorType() must match.
|
839
|
+
If SkImage SkColorType is kGray_8_SkColorType, dstInfo.colorSpace() must match.
|
840
|
+
If SkImage SkAlphaType is kOpaque_SkAlphaType, dstInfo.alphaType() must
|
841
|
+
match. If SkImage SkColorSpace is nullptr, dstInfo.colorSpace() must match. Returns
|
842
|
+
false if pixel conversion is not possible.
|
843
|
+
|
844
|
+
srcX and srcY may be negative to copy only top or left of source. Returns
|
845
|
+
false if width() or height() is zero or negative.
|
846
|
+
Returns false if abs(srcX) >= Image width(), or if abs(srcY) >= Image height().
|
847
|
+
|
848
|
+
If cachingHint is kAllow_CachingHint, pixels may be retained locally.
|
849
|
+
If cachingHint is kDisallow_CachingHint, pixels are not added to the local cache.
|
850
|
+
|
851
|
+
@param context the GrDirectContext in play, if it exists
|
852
|
+
@param dstInfo destination width, height, SkColorType, SkAlphaType, SkColorSpace
|
853
|
+
@param dstPixels destination pixel storage
|
854
|
+
@param dstRowBytes destination row length
|
855
|
+
@param srcX column index whose absolute value is less than width()
|
856
|
+
@param srcY row index whose absolute value is less than height()
|
857
|
+
@param cachingHint whether the pixels should be cached locally
|
858
|
+
@return true if pixels are copied to dstPixels
|
859
|
+
*/
|
860
|
+
bool readPixels(GrDirectContext* context,
|
861
|
+
const SkImageInfo& dstInfo,
|
862
|
+
void* dstPixels,
|
863
|
+
size_t dstRowBytes,
|
864
|
+
int srcX, int srcY,
|
865
|
+
CachingHint cachingHint = kAllow_CachingHint) const;
|
866
|
+
|
867
|
+
/** Copies a SkRect of pixels from SkImage to dst. Copy starts at (srcX, srcY), and
|
868
|
+
does not exceed SkImage (width(), height()).
|
869
|
+
|
870
|
+
dst specifies width, height, SkColorType, SkAlphaType, SkColorSpace, pixel storage,
|
871
|
+
and row bytes of destination. dst.rowBytes() specifics the gap from one destination
|
872
|
+
row to the next. Returns true if pixels are copied. Returns false if:
|
873
|
+
- dst pixel storage equals nullptr
|
874
|
+
- dst.rowBytes is less than SkImageInfo::minRowBytes
|
875
|
+
- SkPixelRef is nullptr
|
876
|
+
|
877
|
+
Pixels are copied only if pixel conversion is possible. If SkImage SkColorType is
|
878
|
+
kGray_8_SkColorType, or kAlpha_8_SkColorType; dst.colorType() must match.
|
879
|
+
If SkImage SkColorType is kGray_8_SkColorType, dst.colorSpace() must match.
|
880
|
+
If SkImage SkAlphaType is kOpaque_SkAlphaType, dst.alphaType() must
|
881
|
+
match. If SkImage SkColorSpace is nullptr, dst.colorSpace() must match. Returns
|
882
|
+
false if pixel conversion is not possible.
|
883
|
+
|
884
|
+
srcX and srcY may be negative to copy only top or left of source. Returns
|
885
|
+
false if width() or height() is zero or negative.
|
886
|
+
Returns false if abs(srcX) >= Image width(), or if abs(srcY) >= Image height().
|
887
|
+
|
888
|
+
If cachingHint is kAllow_CachingHint, pixels may be retained locally.
|
889
|
+
If cachingHint is kDisallow_CachingHint, pixels are not added to the local cache.
|
890
|
+
|
891
|
+
@param context the GrDirectContext in play, if it exists
|
892
|
+
@param dst destination SkPixmap: SkImageInfo, pixels, row bytes
|
893
|
+
@param srcX column index whose absolute value is less than width()
|
894
|
+
@param srcY row index whose absolute value is less than height()
|
895
|
+
@param cachingHint whether the pixels should be cached locallyZ
|
896
|
+
@return true if pixels are copied to dst
|
897
|
+
*/
|
898
|
+
bool readPixels(GrDirectContext* context,
|
899
|
+
const SkPixmap& dst,
|
900
|
+
int srcX,
|
901
|
+
int srcY,
|
902
|
+
CachingHint cachingHint = kAllow_CachingHint) const;
|
903
|
+
|
904
|
+
#ifndef SK_IMAGE_READ_PIXELS_DISABLE_LEGACY_API
|
905
|
+
/** Deprecated. Use the variants that accept a GrDirectContext. */
|
906
|
+
bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
|
907
|
+
int srcX, int srcY, CachingHint cachingHint = kAllow_CachingHint) const;
|
908
|
+
bool readPixels(const SkPixmap& dst, int srcX, int srcY,
|
909
|
+
CachingHint cachingHint = kAllow_CachingHint) const;
|
910
|
+
#endif
|
911
|
+
|
912
|
+
/** The result from asyncRescaleAndReadPixels() or asyncRescaleAndReadPixelsYUV420(). */
|
913
|
+
class AsyncReadResult {
|
914
|
+
public:
|
915
|
+
AsyncReadResult(const AsyncReadResult&) = delete;
|
916
|
+
AsyncReadResult(AsyncReadResult&&) = delete;
|
917
|
+
AsyncReadResult& operator=(const AsyncReadResult&) = delete;
|
918
|
+
AsyncReadResult& operator=(AsyncReadResult&&) = delete;
|
919
|
+
|
920
|
+
virtual ~AsyncReadResult() = default;
|
921
|
+
virtual int count() const = 0;
|
922
|
+
virtual const void* data(int i) const = 0;
|
923
|
+
virtual size_t rowBytes(int i) const = 0;
|
924
|
+
|
925
|
+
protected:
|
926
|
+
AsyncReadResult() = default;
|
927
|
+
};
|
928
|
+
|
929
|
+
/** Client-provided context that is passed to client-provided ReadPixelsContext. */
|
930
|
+
using ReadPixelsContext = void*;
|
931
|
+
|
932
|
+
/** Client-provided callback to asyncRescaleAndReadPixels() or
|
933
|
+
asyncRescaleAndReadPixelsYUV420() that is called when read result is ready or on failure.
|
934
|
+
*/
|
935
|
+
using ReadPixelsCallback = void(ReadPixelsContext, std::unique_ptr<const AsyncReadResult>);
|
936
|
+
|
937
|
+
enum class RescaleGamma : bool { kSrc, kLinear };
|
938
|
+
|
939
|
+
enum class RescaleMode {
|
940
|
+
kNearest,
|
941
|
+
kRepeatedLinear,
|
942
|
+
kRepeatedCubic,
|
943
|
+
};
|
944
|
+
|
945
|
+
/** Makes image pixel data available to caller, possibly asynchronously. It can also rescale
|
946
|
+
the image pixels.
|
947
|
+
|
948
|
+
Currently asynchronous reads are only supported on the GPU backend and only when the
|
949
|
+
underlying 3D API supports transfer buffers and CPU/GPU synchronization primitives. In all
|
950
|
+
other cases this operates synchronously.
|
951
|
+
|
952
|
+
Data is read from the source sub-rectangle, is optionally converted to a linear gamma, is
|
953
|
+
rescaled to the size indicated by 'info', is then converted to the color space, color type,
|
954
|
+
and alpha type of 'info'. A 'srcRect' that is not contained by the bounds of the image
|
955
|
+
causes failure.
|
956
|
+
|
957
|
+
When the pixel data is ready the caller's ReadPixelsCallback is called with a
|
958
|
+
AsyncReadResult containing pixel data in the requested color type, alpha type, and color
|
959
|
+
space. The AsyncReadResult will have count() == 1. Upon failure the callback is called with
|
960
|
+
nullptr for AsyncReadResult. For a GPU image this flushes work but a submit must occur to
|
961
|
+
guarantee a finite time before the callback is called.
|
962
|
+
|
963
|
+
The data is valid for the lifetime of AsyncReadResult with the exception that if the SkImage
|
964
|
+
is GPU-backed the data is immediately invalidated if the context is abandoned or
|
965
|
+
destroyed.
|
966
|
+
|
967
|
+
@param info info of the requested pixels
|
968
|
+
@param srcRect subrectangle of image to read
|
969
|
+
@param rescaleGamma controls whether rescaling is done in the image's gamma or whether
|
970
|
+
the source data is transformed to a linear gamma before rescaling.
|
971
|
+
@param rescaleMode controls the technique (and cost) of the rescaling
|
972
|
+
@param callback function to call with result of the read
|
973
|
+
@param context passed to callback
|
974
|
+
*/
|
975
|
+
void asyncRescaleAndReadPixels(const SkImageInfo& info,
|
976
|
+
const SkIRect& srcRect,
|
977
|
+
RescaleGamma rescaleGamma,
|
978
|
+
RescaleMode rescaleMode,
|
979
|
+
ReadPixelsCallback callback,
|
980
|
+
ReadPixelsContext context) const;
|
981
|
+
|
982
|
+
/**
|
983
|
+
Similar to asyncRescaleAndReadPixels but performs an additional conversion to YUV. The
|
984
|
+
RGB->YUV conversion is controlled by 'yuvColorSpace'. The YUV data is returned as three
|
985
|
+
planes ordered y, u, v. The u and v planes are half the width and height of the resized
|
986
|
+
rectangle. The y, u, and v values are single bytes. Currently this fails if 'dstSize'
|
987
|
+
width and height are not even. A 'srcRect' that is not contained by the bounds of the
|
988
|
+
image causes failure.
|
989
|
+
|
990
|
+
When the pixel data is ready the caller's ReadPixelsCallback is called with a
|
991
|
+
AsyncReadResult containing the planar data. The AsyncReadResult will have count() == 3.
|
992
|
+
Upon failure the callback is called with nullptr for AsyncReadResult. For a GPU image this
|
993
|
+
flushes work but a submit must occur to guarantee a finite time before the callback is
|
994
|
+
called.
|
995
|
+
|
996
|
+
The data is valid for the lifetime of AsyncReadResult with the exception that if the SkImage
|
997
|
+
is GPU-backed the data is immediately invalidated if the context is abandoned or
|
998
|
+
destroyed.
|
999
|
+
|
1000
|
+
@param yuvColorSpace The transformation from RGB to YUV. Applied to the resized image
|
1001
|
+
after it is converted to dstColorSpace.
|
1002
|
+
@param dstColorSpace The color space to convert the resized image to, after rescaling.
|
1003
|
+
@param srcRect The portion of the image to rescale and convert to YUV planes.
|
1004
|
+
@param dstSize The size to rescale srcRect to
|
1005
|
+
@param rescaleGamma controls whether rescaling is done in the image's gamma or whether
|
1006
|
+
the source data is transformed to a linear gamma before rescaling.
|
1007
|
+
@param rescaleMode controls the technique (and cost) of the rescaling
|
1008
|
+
@param callback function to call with the planar read result
|
1009
|
+
@param context passed to callback
|
1010
|
+
*/
|
1011
|
+
void asyncRescaleAndReadPixelsYUV420(SkYUVColorSpace yuvColorSpace,
|
1012
|
+
sk_sp<SkColorSpace> dstColorSpace,
|
1013
|
+
const SkIRect& srcRect,
|
1014
|
+
const SkISize& dstSize,
|
1015
|
+
RescaleGamma rescaleGamma,
|
1016
|
+
RescaleMode rescaleMode,
|
1017
|
+
ReadPixelsCallback callback,
|
1018
|
+
ReadPixelsContext context) const;
|
1019
|
+
|
1020
|
+
/** Copies SkImage to dst, scaling pixels to fit dst.width() and dst.height(), and
|
1021
|
+
converting pixels to match dst.colorType() and dst.alphaType(). Returns true if
|
1022
|
+
pixels are copied. Returns false if dst.addr() is nullptr, or dst.rowBytes() is
|
1023
|
+
less than dst SkImageInfo::minRowBytes.
|
1024
|
+
|
1025
|
+
Pixels are copied only if pixel conversion is possible. If SkImage SkColorType is
|
1026
|
+
kGray_8_SkColorType, or kAlpha_8_SkColorType; dst.colorType() must match.
|
1027
|
+
If SkImage SkColorType is kGray_8_SkColorType, dst.colorSpace() must match.
|
1028
|
+
If SkImage SkAlphaType is kOpaque_SkAlphaType, dst.alphaType() must
|
1029
|
+
match. If SkImage SkColorSpace is nullptr, dst.colorSpace() must match. Returns
|
1030
|
+
false if pixel conversion is not possible.
|
1031
|
+
|
1032
|
+
If cachingHint is kAllow_CachingHint, pixels may be retained locally.
|
1033
|
+
If cachingHint is kDisallow_CachingHint, pixels are not added to the local cache.
|
1034
|
+
|
1035
|
+
@param dst destination SkPixmap: SkImageInfo, pixels, row bytes
|
1036
|
+
@return true if pixels are scaled to fit dst
|
1037
|
+
*/
|
1038
|
+
bool scalePixels(const SkPixmap& dst, const SkSamplingOptions&,
|
1039
|
+
CachingHint cachingHint = kAllow_CachingHint) const;
|
1040
|
+
|
1041
|
+
/** Encodes SkImage pixels, returning result as SkData.
|
1042
|
+
|
1043
|
+
Returns nullptr if encoding fails, or if encodedImageFormat is not supported.
|
1044
|
+
|
1045
|
+
SkImage encoding in a format requires both building with one or more of:
|
1046
|
+
SK_ENCODE_JPEG, SK_ENCODE_PNG, SK_ENCODE_WEBP; and platform support
|
1047
|
+
for the encoded format.
|
1048
|
+
|
1049
|
+
If SK_BUILD_FOR_MAC or SK_BUILD_FOR_IOS is defined, encodedImageFormat can
|
1050
|
+
additionally be one of: SkEncodedImageFormat::kICO, SkEncodedImageFormat::kBMP,
|
1051
|
+
SkEncodedImageFormat::kGIF.
|
1052
|
+
|
1053
|
+
quality is a platform and format specific metric trading off size and encoding
|
1054
|
+
error. When used, quality equaling 100 encodes with the least error. quality may
|
1055
|
+
be ignored by the encoder.
|
1056
|
+
|
1057
|
+
@param encodedImageFormat one of: SkEncodedImageFormat::kJPEG, SkEncodedImageFormat::kPNG,
|
1058
|
+
SkEncodedImageFormat::kWEBP
|
1059
|
+
@param quality encoder specific metric with 100 equaling best
|
1060
|
+
@return encoded SkImage, or nullptr
|
1061
|
+
|
1062
|
+
example: https://fiddle.skia.org/c/@Image_encodeToData
|
1063
|
+
*/
|
1064
|
+
sk_sp<SkData> encodeToData(SkEncodedImageFormat encodedImageFormat, int quality) const;
|
1065
|
+
|
1066
|
+
/** Encodes SkImage pixels, returning result as SkData. Returns existing encoded data
|
1067
|
+
if present; otherwise, SkImage is encoded with SkEncodedImageFormat::kPNG. Skia
|
1068
|
+
must be built with SK_ENCODE_PNG to encode SkImage.
|
1069
|
+
|
1070
|
+
Returns nullptr if existing encoded data is missing or invalid, and
|
1071
|
+
encoding fails.
|
1072
|
+
|
1073
|
+
@return encoded SkImage, or nullptr
|
1074
|
+
|
1075
|
+
example: https://fiddle.skia.org/c/@Image_encodeToData_2
|
1076
|
+
*/
|
1077
|
+
sk_sp<SkData> encodeToData() const;
|
1078
|
+
|
1079
|
+
/** Returns encoded SkImage pixels as SkData, if SkImage was created from supported
|
1080
|
+
encoded stream format. Platform support for formats vary and may require building
|
1081
|
+
with one or more of: SK_ENCODE_JPEG, SK_ENCODE_PNG, SK_ENCODE_WEBP.
|
1082
|
+
|
1083
|
+
Returns nullptr if SkImage contents are not encoded.
|
1084
|
+
|
1085
|
+
@return encoded SkImage, or nullptr
|
1086
|
+
|
1087
|
+
example: https://fiddle.skia.org/c/@Image_refEncodedData
|
1088
|
+
*/
|
1089
|
+
sk_sp<SkData> refEncodedData() const;
|
1090
|
+
|
1091
|
+
/** Returns subset of this image.
|
1092
|
+
|
1093
|
+
Returns nullptr if any of the following are true:
|
1094
|
+
- Subset is empty
|
1095
|
+
- Subset is not contained inside the image's bounds
|
1096
|
+
- Pixels in the image could not be read or copied
|
1097
|
+
|
1098
|
+
If this image is texture-backed, the context parameter is required and must match the
|
1099
|
+
context of the source image. If the context parameter is provided, and the image is
|
1100
|
+
raster-backed, the subset will be converted to texture-backed.
|
1101
|
+
|
1102
|
+
@param subset bounds of returned SkImage
|
1103
|
+
@param context the GrDirectContext in play, if it exists
|
1104
|
+
@return the subsetted image, or nullptr
|
1105
|
+
|
1106
|
+
example: https://fiddle.skia.org/c/@Image_makeSubset
|
1107
|
+
*/
|
1108
|
+
sk_sp<SkImage> makeSubset(const SkIRect& subset, GrDirectContext* direct = nullptr) const;
|
1109
|
+
|
1110
|
+
/**
|
1111
|
+
* Returns true if the image has mipmap levels.
|
1112
|
+
*/
|
1113
|
+
bool hasMipmaps() const;
|
1114
|
+
|
1115
|
+
/**
|
1116
|
+
* Returns an image with the same "base" pixels as the this image, but with mipmap levels
|
1117
|
+
* automatically generated and attached.
|
1118
|
+
*/
|
1119
|
+
sk_sp<SkImage> withDefaultMipmaps() const;
|
1120
|
+
|
1121
|
+
#if SK_SUPPORT_GPU
|
1122
|
+
/** Returns SkImage backed by GPU texture associated with context. Returned SkImage is
|
1123
|
+
compatible with SkSurface created with dstColorSpace. The returned SkImage respects
|
1124
|
+
mipmapped setting; if mipmapped equals GrMipmapped::kYes, the backing texture
|
1125
|
+
allocates mip map levels.
|
1126
|
+
|
1127
|
+
The mipmapped parameter is effectively treated as kNo if MIP maps are not supported by the
|
1128
|
+
GPU.
|
1129
|
+
|
1130
|
+
Returns original SkImage if the image is already texture-backed, the context matches, and
|
1131
|
+
mipmapped is compatible with the backing GPU texture. SkBudgeted is ignored in this case.
|
1132
|
+
|
1133
|
+
Returns nullptr if context is nullptr, or if SkImage was created with another
|
1134
|
+
GrDirectContext.
|
1135
|
+
|
1136
|
+
@param GrDirectContext the GrDirectContext in play, if it exists
|
1137
|
+
@param GrMipmapped whether created SkImage texture must allocate mip map levels
|
1138
|
+
@param SkBudgeted whether to count a newly created texture for the returned image
|
1139
|
+
counts against the context's budget.
|
1140
|
+
@return created SkImage, or nullptr
|
1141
|
+
*/
|
1142
|
+
sk_sp<SkImage> makeTextureImage(GrDirectContext*,
|
1143
|
+
GrMipmapped = GrMipmapped::kNo,
|
1144
|
+
SkBudgeted = SkBudgeted::kYes) const;
|
1145
|
+
#endif
|
1146
|
+
#ifdef SK_GRAPHITE_ENABLED
|
1147
|
+
/** Graphite version of makeTextureImage.
|
1148
|
+
|
1149
|
+
Returns SkImage backed by GPU texture, using Recorder for creation and uploads if necessary.
|
1150
|
+
The returned SkImage respects mipmapped setting for non-GPU SkImages; if mipmapped
|
1151
|
+
equals GrMipmapped::kYes, the backing texture allocates mip map levels.
|
1152
|
+
|
1153
|
+
It is assumed that MIP maps are always supported by the GPU.
|
1154
|
+
|
1155
|
+
Returns original SkImage if the image is already texture-backed, the recorder matches, and
|
1156
|
+
mipmapped is compatible with the backing GPU texture. If mipmapped is not compatible,
|
1157
|
+
it will return nullptr.
|
1158
|
+
|
1159
|
+
Returns nullptr if recorder is nullptr, or if SkImage was created with another
|
1160
|
+
Recorder and work on that Recorder has not been submitted.
|
1161
|
+
|
1162
|
+
@param Recorder the Recorder to use for storing commands
|
1163
|
+
@param Mipmapped whether created SkImage texture must allocate mip map levels
|
1164
|
+
@return created SkImage, or nullptr
|
1165
|
+
*/
|
1166
|
+
sk_sp<SkImage> makeTextureImage(skgpu::graphite::Recorder*,
|
1167
|
+
skgpu::graphite::Mipmapped = skgpu::graphite::Mipmapped::kNo,
|
1168
|
+
SkBudgeted = SkBudgeted::kYes) const;
|
1169
|
+
|
1170
|
+
#endif
|
1171
|
+
|
1172
|
+
/** Returns raster image or lazy image. Copies SkImage backed by GPU texture into
|
1173
|
+
CPU memory if needed. Returns original SkImage if decoded in raster bitmap,
|
1174
|
+
or if encoded in a stream.
|
1175
|
+
|
1176
|
+
Returns nullptr if backed by GPU texture and copy fails.
|
1177
|
+
|
1178
|
+
@return raster image, lazy image, or nullptr
|
1179
|
+
|
1180
|
+
example: https://fiddle.skia.org/c/@Image_makeNonTextureImage
|
1181
|
+
*/
|
1182
|
+
sk_sp<SkImage> makeNonTextureImage() const;
|
1183
|
+
|
1184
|
+
/** Returns raster image. Copies SkImage backed by GPU texture into CPU memory,
|
1185
|
+
or decodes SkImage from lazy image. Returns original SkImage if decoded in
|
1186
|
+
raster bitmap.
|
1187
|
+
|
1188
|
+
Returns nullptr if copy, decode, or pixel read fails.
|
1189
|
+
|
1190
|
+
If cachingHint is kAllow_CachingHint, pixels may be retained locally.
|
1191
|
+
If cachingHint is kDisallow_CachingHint, pixels are not added to the local cache.
|
1192
|
+
|
1193
|
+
@return raster image, or nullptr
|
1194
|
+
|
1195
|
+
example: https://fiddle.skia.org/c/@Image_makeRasterImage
|
1196
|
+
*/
|
1197
|
+
sk_sp<SkImage> makeRasterImage(CachingHint cachingHint = kDisallow_CachingHint) const;
|
1198
|
+
|
1199
|
+
/** Creates filtered SkImage. filter processes original SkImage, potentially changing
|
1200
|
+
color, position, and size. subset is the bounds of original SkImage processed
|
1201
|
+
by filter. clipBounds is the expected bounds of the filtered SkImage. outSubset
|
1202
|
+
is required storage for the actual bounds of the filtered SkImage. offset is
|
1203
|
+
required storage for translation of returned SkImage.
|
1204
|
+
|
1205
|
+
Returns nullptr if SkImage could not be created or if the recording context provided doesn't
|
1206
|
+
match the GPU context in which the image was created. If nullptr is returned, outSubset
|
1207
|
+
and offset are undefined.
|
1208
|
+
|
1209
|
+
Useful for animation of SkImageFilter that varies size from frame to frame.
|
1210
|
+
Returned SkImage is created larger than required by filter so that GPU texture
|
1211
|
+
can be reused with different sized effects. outSubset describes the valid bounds
|
1212
|
+
of GPU texture returned. offset translates the returned SkImage to keep subsequent
|
1213
|
+
animation frames aligned with respect to each other.
|
1214
|
+
|
1215
|
+
@param context the GrRecordingContext in play - if it exists
|
1216
|
+
@param filter how SkImage is sampled when transformed
|
1217
|
+
@param subset bounds of SkImage processed by filter
|
1218
|
+
@param clipBounds expected bounds of filtered SkImage
|
1219
|
+
@param outSubset storage for returned SkImage bounds
|
1220
|
+
@param offset storage for returned SkImage translation
|
1221
|
+
@return filtered SkImage, or nullptr
|
1222
|
+
*/
|
1223
|
+
sk_sp<SkImage> makeWithFilter(GrRecordingContext* context,
|
1224
|
+
const SkImageFilter* filter, const SkIRect& subset,
|
1225
|
+
const SkIRect& clipBounds, SkIRect* outSubset,
|
1226
|
+
SkIPoint* offset) const;
|
1227
|
+
|
1228
|
+
/** Defines a callback function, taking one parameter of type GrBackendTexture with
|
1229
|
+
no return value. Function is called when back-end texture is to be released.
|
1230
|
+
*/
|
1231
|
+
typedef std::function<void(GrBackendTexture)> BackendTextureReleaseProc;
|
1232
|
+
|
1233
|
+
#if SK_SUPPORT_GPU
|
1234
|
+
/** Creates a GrBackendTexture from the provided SkImage. Returns true and
|
1235
|
+
stores result in backendTexture and backendTextureReleaseProc if
|
1236
|
+
texture is created; otherwise, returns false and leaves
|
1237
|
+
backendTexture and backendTextureReleaseProc unmodified.
|
1238
|
+
|
1239
|
+
Call backendTextureReleaseProc after deleting backendTexture.
|
1240
|
+
backendTextureReleaseProc cleans up auxiliary data related to returned
|
1241
|
+
backendTexture. The caller must delete returned backendTexture after use.
|
1242
|
+
|
1243
|
+
If SkImage is both texture backed and singly referenced, image is returned in
|
1244
|
+
backendTexture without conversion or making a copy. SkImage is singly referenced
|
1245
|
+
if its was transferred solely using std::move().
|
1246
|
+
|
1247
|
+
If SkImage is not texture backed, returns texture with SkImage contents.
|
1248
|
+
|
1249
|
+
@param context GPU context
|
1250
|
+
@param image SkImage used for texture
|
1251
|
+
@param backendTexture storage for back-end texture
|
1252
|
+
@param backendTextureReleaseProc storage for clean up function
|
1253
|
+
@return true if back-end texture was created
|
1254
|
+
*/
|
1255
|
+
static bool MakeBackendTextureFromSkImage(GrDirectContext* context,
|
1256
|
+
sk_sp<SkImage> image,
|
1257
|
+
GrBackendTexture* backendTexture,
|
1258
|
+
BackendTextureReleaseProc* backendTextureReleaseProc);
|
1259
|
+
#endif
|
1260
|
+
/** Deprecated.
|
1261
|
+
*/
|
1262
|
+
enum LegacyBitmapMode {
|
1263
|
+
kRO_LegacyBitmapMode, //!< returned bitmap is read-only and immutable
|
1264
|
+
};
|
1265
|
+
|
1266
|
+
/** Deprecated.
|
1267
|
+
Creates raster SkBitmap with same pixels as SkImage. If legacyBitmapMode is
|
1268
|
+
kRO_LegacyBitmapMode, returned bitmap is read-only and immutable.
|
1269
|
+
Returns true if SkBitmap is stored in bitmap. Returns false and resets bitmap if
|
1270
|
+
SkBitmap write did not succeed.
|
1271
|
+
|
1272
|
+
@param bitmap storage for legacy SkBitmap
|
1273
|
+
@param legacyBitmapMode bitmap is read-only and immutable
|
1274
|
+
@return true if SkBitmap was created
|
1275
|
+
*/
|
1276
|
+
bool asLegacyBitmap(SkBitmap* bitmap,
|
1277
|
+
LegacyBitmapMode legacyBitmapMode = kRO_LegacyBitmapMode) const;
|
1278
|
+
|
1279
|
+
/** Returns true if SkImage is backed by an image-generator or other service that creates
|
1280
|
+
and caches its pixels or texture on-demand.
|
1281
|
+
|
1282
|
+
@return true if SkImage is created as needed
|
1283
|
+
|
1284
|
+
example: https://fiddle.skia.org/c/@Image_isLazyGenerated_a
|
1285
|
+
example: https://fiddle.skia.org/c/@Image_isLazyGenerated_b
|
1286
|
+
*/
|
1287
|
+
bool isLazyGenerated() const;
|
1288
|
+
|
1289
|
+
/** Creates SkImage in target SkColorSpace.
|
1290
|
+
Returns nullptr if SkImage could not be created.
|
1291
|
+
|
1292
|
+
Returns original SkImage if it is in target SkColorSpace.
|
1293
|
+
Otherwise, converts pixels from SkImage SkColorSpace to target SkColorSpace.
|
1294
|
+
If SkImage colorSpace() returns nullptr, SkImage SkColorSpace is assumed to be sRGB.
|
1295
|
+
|
1296
|
+
If this image is texture-backed, the context parameter is required and must match the
|
1297
|
+
context of the source image.
|
1298
|
+
|
1299
|
+
@param target SkColorSpace describing color range of returned SkImage
|
1300
|
+
@param direct The GrDirectContext in play, if it exists
|
1301
|
+
@return created SkImage in target SkColorSpace
|
1302
|
+
|
1303
|
+
example: https://fiddle.skia.org/c/@Image_makeColorSpace
|
1304
|
+
*/
|
1305
|
+
sk_sp<SkImage> makeColorSpace(sk_sp<SkColorSpace> target,
|
1306
|
+
GrDirectContext* direct = nullptr) const;
|
1307
|
+
|
1308
|
+
/** Experimental.
|
1309
|
+
Creates SkImage in target SkColorType and SkColorSpace.
|
1310
|
+
Returns nullptr if SkImage could not be created.
|
1311
|
+
|
1312
|
+
Returns original SkImage if it is in target SkColorType and SkColorSpace.
|
1313
|
+
|
1314
|
+
If this image is texture-backed, the context parameter is required and must match the
|
1315
|
+
context of the source image.
|
1316
|
+
|
1317
|
+
@param targetColorType SkColorType of returned SkImage
|
1318
|
+
@param targetColorSpace SkColorSpace of returned SkImage
|
1319
|
+
@param direct The GrDirectContext in play, if it exists
|
1320
|
+
@return created SkImage in target SkColorType and SkColorSpace
|
1321
|
+
*/
|
1322
|
+
sk_sp<SkImage> makeColorTypeAndColorSpace(SkColorType targetColorType,
|
1323
|
+
sk_sp<SkColorSpace> targetColorSpace,
|
1324
|
+
GrDirectContext* direct = nullptr) const;
|
1325
|
+
|
1326
|
+
/** Creates a new SkImage identical to this one, but with a different SkColorSpace.
|
1327
|
+
This does not convert the underlying pixel data, so the resulting image will draw
|
1328
|
+
differently.
|
1329
|
+
*/
|
1330
|
+
sk_sp<SkImage> reinterpretColorSpace(sk_sp<SkColorSpace> newColorSpace) const;
|
1331
|
+
|
1332
|
+
private:
|
1333
|
+
SkImage(const SkImageInfo& info, uint32_t uniqueID);
|
1334
|
+
|
1335
|
+
friend class SkBitmap;
|
1336
|
+
friend class SkImage_Base;
|
1337
|
+
friend class SkMipmapBuilder;
|
1338
|
+
|
1339
|
+
SkImageInfo fInfo;
|
1340
|
+
const uint32_t fUniqueID;
|
1341
|
+
|
1342
|
+
sk_sp<SkImage> withMipmaps(sk_sp<SkMipmap>) const;
|
1343
|
+
|
1344
|
+
using INHERITED = SkRefCnt;
|
1345
|
+
};
|
1346
|
+
|
1347
|
+
#endif
|