@shopify/react-native-skia 1.11.8 → 1.11.9-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/CMakeLists.txt +30 -153
- package/android/build.gradle +1 -1
- package/cpp/skia/include/codec/SkCodec.h +7 -2
- package/cpp/skia/include/config/SkUserConfig.h +11 -0
- package/cpp/skia/include/core/SkCanvas.h +11 -7
- package/cpp/skia/include/core/SkColor.h +10 -0
- package/cpp/skia/include/core/SkColorSpace.h +184 -2
- package/cpp/skia/include/core/SkColorType.h +114 -32
- package/cpp/skia/include/core/SkFontScanner.h +5 -8
- package/cpp/skia/include/core/SkFontStyle.h +1 -1
- package/cpp/skia/include/core/SkMaskFilter.h +0 -8
- package/cpp/skia/include/core/SkMilestone.h +1 -1
- package/cpp/skia/include/core/SkPath.h +1 -1
- package/cpp/skia/include/core/SkRRect.h +3 -1
- package/cpp/skia/include/core/SkShader.h +3 -3
- package/cpp/skia/include/core/SkString.h +8 -8
- package/cpp/skia/include/core/SkSurface.h +14 -0
- package/cpp/skia/include/core/SkTypeface.h +24 -7
- package/cpp/skia/include/effects/SkGradientShader.h +6 -1
- package/cpp/skia/include/effects/SkRuntimeEffect.h +1 -0
- package/cpp/skia/include/encode/SkPngEncoder.h +14 -0
- package/cpp/skia/include/gpu/GpuTypes.h +9 -0
- package/cpp/skia/include/gpu/ganesh/GrContextOptions.h +135 -133
- package/cpp/skia/include/gpu/ganesh/GrDirectContext.h +5 -0
- package/cpp/skia/include/gpu/ganesh/GrDriverBugWorkarounds.h +3 -3
- package/cpp/skia/include/gpu/ganesh/GrTypes.h +14 -9
- package/cpp/skia/include/gpu/graphite/Context.h +25 -2
- package/cpp/skia/include/gpu/graphite/ContextOptions.h +23 -5
- package/cpp/skia/include/gpu/graphite/GraphiteTypes.h +20 -1
- package/cpp/skia/include/gpu/graphite/Image.h +1 -0
- package/cpp/skia/include/gpu/graphite/LogPriority.h +36 -0
- package/cpp/skia/include/gpu/graphite/PrecompileContext.h +52 -0
- package/cpp/skia/include/gpu/graphite/Recorder.h +6 -0
- package/cpp/skia/include/gpu/graphite/Recording.h +3 -1
- package/cpp/skia/include/gpu/graphite/mtl/MtlGraphiteTypes.h +4 -36
- package/cpp/skia/include/gpu/graphite/mtl/MtlGraphiteTypesUtils.h +48 -0
- package/cpp/skia/include/gpu/graphite/precompile/Precompile.h +3 -2
- package/cpp/skia/include/pathops/SkPathOps.h +9 -1
- package/cpp/skia/include/ports/SkFontMgr_FontConfigInterface.h +3 -0
- package/cpp/skia/include/private/SkPathRef.h +15 -21
- package/cpp/skia/include/private/base/SkAttributes.h +16 -10
- package/cpp/skia/include/private/base/SkMutex.h +8 -0
- package/cpp/skia/include/private/base/SkTArray.h +1 -1
- package/cpp/skia/include/private/base/SkTDArray.h +1 -1
- package/cpp/skia/include/private/base/SkTemplates.h +24 -11
- package/cpp/skia/include/private/gpu/ganesh/GrTypesPriv.h +1 -1
- package/cpp/skia/include/sksl/SkSLDebugTrace.h +0 -3
- package/cpp/skia/modules/skcms/src/Transform_inl.h +20 -20
- package/cpp/skia/modules/skcms/src/skcms_Transform.h +4 -3
- package/cpp/skia/modules/skcms/src/skcms_public.h +19 -15
- package/cpp/skia/modules/skresources/include/SkResources.h +3 -1
- package/cpp/skia/modules/svg/include/SkSVGCircle.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGContainer.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeLightSource.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGImage.h +2 -2
- package/cpp/skia/modules/svg/include/SkSVGPath.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGPoly.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGRect.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGRenderContext.h +2 -0
- package/cpp/skia/modules/svg/include/SkSVGShape.h +1 -0
- package/cpp/skia/modules/svg/include/SkSVGText.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGTransformableNode.h +4 -0
- package/cpp/skia/modules/svg/include/SkSVGUse.h +1 -1
- package/cpp/skia/src/core/SkLRUCache.h +19 -13
- package/cpp/skia/src/core/SkTHash.h +50 -4
- package/cpp/skia/src/gpu/ganesh/gl/GrGLDefines.h +1 -0
- package/lib/commonjs/external/reanimated/textures.js +4 -3
- package/lib/commonjs/external/reanimated/textures.js.map +1 -1
- package/lib/commonjs/headless/index.d.ts +1 -1
- package/lib/commonjs/headless/index.js +2 -2
- package/lib/commonjs/headless/index.js.map +1 -1
- package/lib/commonjs/renderer/Canvas.d.ts +2 -2
- package/lib/commonjs/renderer/Canvas.js +10 -27
- package/lib/commonjs/renderer/Canvas.js.map +1 -1
- package/lib/commonjs/renderer/Offscreen.d.ts +2 -2
- package/lib/commonjs/renderer/Offscreen.js +4 -4
- package/lib/commonjs/renderer/Offscreen.js.map +1 -1
- package/lib/commonjs/renderer/__tests__/setup.d.ts +5 -5
- package/lib/commonjs/sksg/Container.d.ts +3 -1
- package/lib/commonjs/sksg/Container.js +7 -1
- package/lib/commonjs/sksg/Container.js.map +1 -1
- package/lib/commonjs/sksg/HostConfig.d.ts +1 -1
- package/lib/commonjs/sksg/HostConfig.js +36 -6
- package/lib/commonjs/sksg/HostConfig.js.map +1 -1
- package/lib/commonjs/sksg/Reconciler.d.ts +3 -2
- package/lib/commonjs/sksg/Reconciler.js +16 -6
- package/lib/commonjs/sksg/Reconciler.js.map +1 -1
- package/lib/module/Platform/Platform.web.js +1 -1
- package/lib/module/Platform/Platform.web.js.map +1 -1
- package/lib/module/dom/nodes/datatypes/Circle.js +1 -2
- package/lib/module/dom/nodes/datatypes/Circle.js.map +1 -1
- package/lib/module/dom/nodes/datatypes/Gradient.js +3 -3
- package/lib/module/dom/nodes/datatypes/Gradient.js.map +1 -1
- package/lib/module/dom/nodes/datatypes/Rect.js +3 -5
- package/lib/module/dom/nodes/datatypes/Rect.js.map +1 -1
- package/lib/module/external/reanimated/buffers.js +1 -2
- package/lib/module/external/reanimated/buffers.js.map +1 -1
- package/lib/module/external/reanimated/textures.js +5 -4
- package/lib/module/external/reanimated/textures.js.map +1 -1
- package/lib/module/external/reanimated/useAnimatedImageValue.js +1 -1
- package/lib/module/external/reanimated/useAnimatedImageValue.js.map +1 -1
- package/lib/module/external/reanimated/useVideo.js +10 -23
- package/lib/module/external/reanimated/useVideo.js.map +1 -1
- package/lib/module/headless/index.d.ts +1 -1
- package/lib/module/headless/index.js +2 -2
- package/lib/module/headless/index.js.map +1 -1
- package/lib/module/renderer/Canvas.d.ts +2 -2
- package/lib/module/renderer/Canvas.js +9 -27
- package/lib/module/renderer/Canvas.js.map +1 -1
- package/lib/module/renderer/Offscreen.d.ts +2 -2
- package/lib/module/renderer/Offscreen.js +4 -4
- package/lib/module/renderer/Offscreen.js.map +1 -1
- package/lib/module/renderer/__tests__/setup.d.ts +5 -5
- package/lib/module/skia/core/Vector.js +1 -1
- package/lib/module/skia/core/Vector.js.map +1 -1
- package/lib/module/skia/web/CanvasKitWebGLBufferImpl.js +1 -4
- package/lib/module/skia/web/CanvasKitWebGLBufferImpl.js.map +1 -1
- package/lib/module/skia/web/Host.js +1 -7
- package/lib/module/skia/web/Host.js.map +1 -1
- package/lib/module/skia/web/JsiSkAnimatedImage.js +3 -6
- package/lib/module/skia/web/JsiSkAnimatedImage.js.map +1 -1
- package/lib/module/skia/web/JsiSkCanvas.js +3 -6
- package/lib/module/skia/web/JsiSkCanvas.js.map +1 -1
- package/lib/module/skia/web/JsiSkColorFilter.js +3 -6
- package/lib/module/skia/web/JsiSkColorFilter.js.map +1 -1
- package/lib/module/skia/web/JsiSkContourMeasure.js +3 -6
- package/lib/module/skia/web/JsiSkContourMeasure.js.map +1 -1
- package/lib/module/skia/web/JsiSkContourMeasureIter.js +3 -6
- package/lib/module/skia/web/JsiSkContourMeasureIter.js.map +1 -1
- package/lib/module/skia/web/JsiSkData.js +3 -6
- package/lib/module/skia/web/JsiSkData.js.map +1 -1
- package/lib/module/skia/web/JsiSkFont.js +3 -6
- package/lib/module/skia/web/JsiSkFont.js.map +1 -1
- package/lib/module/skia/web/JsiSkImage.js +8 -12
- package/lib/module/skia/web/JsiSkImage.js.map +1 -1
- package/lib/module/skia/web/JsiSkImageFilter.js +3 -6
- package/lib/module/skia/web/JsiSkImageFilter.js.map +1 -1
- package/lib/module/skia/web/JsiSkMaskFilter.js +3 -6
- package/lib/module/skia/web/JsiSkMaskFilter.js.map +1 -1
- package/lib/module/skia/web/JsiSkMatrix.js +5 -8
- package/lib/module/skia/web/JsiSkMatrix.js.map +1 -1
- package/lib/module/skia/web/JsiSkPaint.js +3 -6
- package/lib/module/skia/web/JsiSkPaint.js.map +1 -1
- package/lib/module/skia/web/JsiSkParagraphBuilder.js +2 -3
- package/lib/module/skia/web/JsiSkParagraphBuilder.js.map +1 -1
- package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js +1 -1
- package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkParagraphStyle.js +15 -15
- package/lib/module/skia/web/JsiSkParagraphStyle.js.map +1 -1
- package/lib/module/skia/web/JsiSkPath.js +3 -6
- package/lib/module/skia/web/JsiSkPath.js.map +1 -1
- package/lib/module/skia/web/JsiSkPathEffect.js +3 -6
- package/lib/module/skia/web/JsiSkPathEffect.js.map +1 -1
- package/lib/module/skia/web/JsiSkPicture.js +3 -6
- package/lib/module/skia/web/JsiSkPicture.js.map +1 -1
- package/lib/module/skia/web/JsiSkPictureRecorder.js +3 -6
- package/lib/module/skia/web/JsiSkPictureRecorder.js.map +1 -1
- package/lib/module/skia/web/JsiSkPoint.js +3 -6
- package/lib/module/skia/web/JsiSkPoint.js.map +1 -1
- package/lib/module/skia/web/JsiSkRRect.js +3 -6
- package/lib/module/skia/web/JsiSkRRect.js.map +1 -1
- package/lib/module/skia/web/JsiSkRSXform.js +3 -6
- package/lib/module/skia/web/JsiSkRSXform.js.map +1 -1
- package/lib/module/skia/web/JsiSkRect.js +3 -6
- package/lib/module/skia/web/JsiSkRect.js.map +1 -1
- package/lib/module/skia/web/JsiSkRuntimeEffect.js +3 -6
- package/lib/module/skia/web/JsiSkRuntimeEffect.js.map +1 -1
- package/lib/module/skia/web/JsiSkSVG.js +5 -8
- package/lib/module/skia/web/JsiSkSVG.js.map +1 -1
- package/lib/module/skia/web/JsiSkShader.js +3 -6
- package/lib/module/skia/web/JsiSkShader.js.map +1 -1
- package/lib/module/skia/web/JsiSkSurface.js +3 -6
- package/lib/module/skia/web/JsiSkSurface.js.map +1 -1
- package/lib/module/skia/web/JsiSkTextBlob.js +3 -6
- package/lib/module/skia/web/JsiSkTextBlob.js.map +1 -1
- package/lib/module/skia/web/JsiSkTypeface.js +3 -6
- package/lib/module/skia/web/JsiSkTypeface.js.map +1 -1
- package/lib/module/skia/web/JsiSkTypefaceFontProvider.js +1 -4
- package/lib/module/skia/web/JsiSkTypefaceFontProvider.js.map +1 -1
- package/lib/module/skia/web/JsiSkVertices.js +3 -6
- package/lib/module/skia/web/JsiSkVertices.js.map +1 -1
- package/lib/module/skia/web/JsiVideo.js +2 -5
- package/lib/module/skia/web/JsiVideo.js.map +1 -1
- package/lib/module/sksg/Container.d.ts +3 -1
- package/lib/module/sksg/Container.js +11 -8
- package/lib/module/sksg/Container.js.map +1 -1
- package/lib/module/sksg/HostConfig.d.ts +1 -1
- package/lib/module/sksg/HostConfig.js +36 -7
- package/lib/module/sksg/HostConfig.js.map +1 -1
- package/lib/module/sksg/Reconciler.d.ts +3 -2
- package/lib/module/sksg/Reconciler.js +16 -11
- package/lib/module/sksg/Reconciler.js.map +1 -1
- package/lib/module/sksg/Recorder/ReanimatedRecorder.js +1 -5
- package/lib/module/sksg/Recorder/ReanimatedRecorder.js.map +1 -1
- package/lib/module/sksg/Recorder/Recorder.js +3 -6
- package/lib/module/sksg/Recorder/Recorder.js.map +1 -1
- package/lib/module/sksg/Recorder/Visitor.js +1 -1
- package/lib/module/sksg/Recorder/Visitor.js.map +1 -1
- package/lib/module/sksg/Recorder/commands/Drawing.js +2 -4
- package/lib/module/sksg/Recorder/commands/Drawing.js.map +1 -1
- package/lib/module/sksg/Recorder/commands/Shaders.js +2 -3
- package/lib/module/sksg/Recorder/commands/Shaders.js.map +1 -1
- package/lib/module/views/SkiaBaseWebView.js +9 -12
- package/lib/module/views/SkiaBaseWebView.js.map +1 -1
- package/lib/module/views/SkiaPictureView.js +1 -5
- package/lib/module/views/SkiaPictureView.js.map +1 -1
- package/lib/module/views/SkiaPictureView.web.js +1 -4
- package/lib/module/views/SkiaPictureView.web.js.map +1 -1
- package/lib/module/web/LoadSkiaWeb.js +1 -2
- package/lib/module/web/LoadSkiaWeb.js.map +1 -1
- package/lib/module/web/WithSkiaWeb.js +1 -1
- package/lib/module/web/WithSkiaWeb.js.map +1 -1
- package/lib/typescript/lib/commonjs/headless/index.d.ts +1 -1
- package/lib/typescript/lib/commonjs/renderer/Canvas.d.ts +9 -1
- package/lib/typescript/lib/commonjs/renderer/Offscreen.d.ts +2 -2
- package/lib/typescript/lib/commonjs/sksg/Container.d.ts +3 -0
- package/lib/typescript/lib/commonjs/sksg/HostConfig.d.ts +21 -4
- package/lib/typescript/lib/commonjs/sksg/Reconciler.d.ts +9 -2
- package/lib/typescript/lib/module/headless/index.d.ts +1 -1
- package/lib/typescript/lib/module/renderer/Canvas.d.ts +9 -1
- package/lib/typescript/lib/module/renderer/Offscreen.d.ts +2 -2
- package/lib/typescript/lib/module/skia/web/CanvasKitWebGLBufferImpl.d.ts +2 -2
- package/lib/typescript/lib/module/skia/web/JsiSkAnimatedImage.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkCanvas.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkColorFilter.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkContourMeasure.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkContourMeasureIter.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkData.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkFont.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkImage.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkImageFilter.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkMaskFilter.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkMatrix.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkPaint.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkPath.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkPathEffect.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkPicture.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkPictureRecorder.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkPoint.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkRRect.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkRSXform.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkRect.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkRuntimeEffect.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkSVG.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkShader.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkSurface.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkTextBlob.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkTypeface.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkTypefaceFontProvider.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkVertices.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiVideo.d.ts +2 -2
- package/lib/typescript/lib/module/sksg/Container.d.ts +7 -12
- package/lib/typescript/lib/module/sksg/HostConfig.d.ts +20 -4
- package/lib/typescript/lib/module/sksg/Reconciler.d.ts +18 -17
- package/lib/typescript/lib/module/sksg/Recorder/ReanimatedRecorder.d.ts +1 -0
- package/lib/typescript/lib/module/sksg/Recorder/Recorder.d.ts +5 -2
- package/lib/typescript/lib/module/views/SkiaBaseWebView.d.ts +12 -11
- package/lib/typescript/lib/module/views/SkiaPictureView.d.ts +2 -2
- package/lib/typescript/lib/module/views/SkiaPictureView.web.d.ts +1 -1
- package/lib/typescript/src/headless/index.d.ts +1 -1
- package/lib/typescript/src/renderer/Canvas.d.ts +2 -2
- package/lib/typescript/src/renderer/Offscreen.d.ts +2 -2
- package/lib/typescript/src/renderer/__tests__/setup.d.ts +5 -5
- package/lib/typescript/src/sksg/Container.d.ts +3 -1
- package/lib/typescript/src/sksg/HostConfig.d.ts +1 -1
- package/lib/typescript/src/sksg/Reconciler.d.ts +3 -2
- package/libs/apple/libskia.xcframework/Info.plist +15 -15
- package/libs/apple/libskia.xcframework/ios-arm64_arm64e/libskia.a +0 -0
- package/libs/apple/libskia.xcframework/ios-arm64_arm64e_x86_64-simulator/libskia.a +0 -0
- package/libs/apple/libskia.xcframework/macos-arm64_x86_64/libskia.a +0 -0
- package/libs/apple/libskia.xcframework/tvos-arm64_arm64e/libskia.a +0 -0
- package/libs/apple/libskia.xcframework/tvos-arm64_arm64e_x86_64-simulator/libskia.a +0 -0
- package/libs/apple/libskottie.xcframework/Info.plist +8 -8
- package/libs/apple/libskottie.xcframework/ios-arm64_arm64e/libskottie.a +0 -0
- package/libs/apple/libskottie.xcframework/ios-arm64_arm64e_x86_64-simulator/libskottie.a +0 -0
- package/libs/apple/libskottie.xcframework/macos-arm64_x86_64/libskottie.a +0 -0
- package/libs/apple/libskottie.xcframework/tvos-arm64_arm64e/libskottie.a +0 -0
- package/libs/apple/libskottie.xcframework/tvos-arm64_arm64e_x86_64-simulator/libskottie.a +0 -0
- package/libs/apple/libskparagraph.xcframework/Info.plist +7 -7
- package/libs/apple/libskparagraph.xcframework/ios-arm64_arm64e/libskparagraph.a +0 -0
- package/libs/apple/libskparagraph.xcframework/ios-arm64_arm64e_x86_64-simulator/libskparagraph.a +0 -0
- package/libs/apple/libskparagraph.xcframework/macos-arm64_x86_64/libskparagraph.a +0 -0
- package/libs/apple/libskparagraph.xcframework/tvos-arm64_arm64e/libskparagraph.a +0 -0
- package/libs/apple/libskparagraph.xcframework/tvos-arm64_arm64e_x86_64-simulator/libskparagraph.a +0 -0
- package/libs/apple/libsksg.xcframework/Info.plist +12 -12
- package/libs/apple/libsksg.xcframework/ios-arm64_arm64e/libsksg.a +0 -0
- package/libs/apple/libsksg.xcframework/ios-arm64_arm64e_x86_64-simulator/libsksg.a +0 -0
- package/libs/apple/libsksg.xcframework/macos-arm64_x86_64/libsksg.a +0 -0
- package/libs/apple/libsksg.xcframework/tvos-arm64_arm64e/libsksg.a +0 -0
- package/libs/apple/libsksg.xcframework/tvos-arm64_arm64e_x86_64-simulator/libsksg.a +0 -0
- package/libs/apple/libskshaper.xcframework/Info.plist +14 -14
- package/libs/apple/libskshaper.xcframework/ios-arm64_arm64e/libskshaper.a +0 -0
- package/libs/apple/libskshaper.xcframework/ios-arm64_arm64e_x86_64-simulator/libskshaper.a +0 -0
- package/libs/apple/libskshaper.xcframework/macos-arm64_x86_64/libskshaper.a +0 -0
- package/libs/apple/libskshaper.xcframework/tvos-arm64_arm64e/libskshaper.a +0 -0
- package/libs/apple/libskshaper.xcframework/tvos-arm64_arm64e_x86_64-simulator/libskshaper.a +0 -0
- package/libs/apple/libskunicode_core.xcframework/Info.plist +14 -14
- package/libs/apple/libskunicode_core.xcframework/ios-arm64_arm64e/libskunicode_core.a +0 -0
- package/libs/apple/libskunicode_core.xcframework/ios-arm64_arm64e_x86_64-simulator/libskunicode_core.a +0 -0
- package/libs/apple/libskunicode_core.xcframework/macos-arm64_x86_64/libskunicode_core.a +0 -0
- package/libs/apple/libskunicode_core.xcframework/tvos-arm64_arm64e/libskunicode_core.a +0 -0
- package/libs/apple/libskunicode_core.xcframework/tvos-arm64_arm64e_x86_64-simulator/libskunicode_core.a +0 -0
- package/libs/apple/libskunicode_libgrapheme.xcframework/Info.plist +13 -13
- package/libs/apple/libskunicode_libgrapheme.xcframework/ios-arm64_arm64e/libskunicode_libgrapheme.a +0 -0
- package/libs/apple/libskunicode_libgrapheme.xcframework/ios-arm64_arm64e_x86_64-simulator/libskunicode_libgrapheme.a +0 -0
- package/libs/apple/libskunicode_libgrapheme.xcframework/macos-arm64_x86_64/libskunicode_libgrapheme.a +0 -0
- package/libs/apple/libskunicode_libgrapheme.xcframework/tvos-arm64_arm64e/libskunicode_libgrapheme.a +0 -0
- package/libs/apple/libskunicode_libgrapheme.xcframework/tvos-arm64_arm64e_x86_64-simulator/libskunicode_libgrapheme.a +0 -0
- package/libs/apple/libsvg.xcframework/Info.plist +11 -11
- package/libs/apple/libsvg.xcframework/ios-arm64_arm64e/libsvg.a +0 -0
- package/libs/apple/libsvg.xcframework/ios-arm64_arm64e_x86_64-simulator/libsvg.a +0 -0
- package/libs/apple/libsvg.xcframework/macos-arm64_x86_64/libsvg.a +0 -0
- package/libs/apple/libsvg.xcframework/tvos-arm64_arm64e/libsvg.a +0 -0
- package/libs/apple/libsvg.xcframework/tvos-arm64_arm64e_x86_64-simulator/libsvg.a +0 -0
- package/package.json +10 -9
- package/src/external/reanimated/textures.tsx +5 -4
- package/src/headless/index.ts +2 -2
- package/src/renderer/Canvas.tsx +57 -80
- package/src/renderer/Offscreen.tsx +4 -4
- package/src/renderer/__tests__/Data.spec.tsx +9 -10
- package/src/renderer/__tests__/Drawings.spec.tsx +11 -11
- package/src/renderer/__tests__/FitBox.spec.tsx +10 -10
- package/src/renderer/__tests__/Glyphs.spec.tsx +2 -2
- package/src/renderer/__tests__/Image.spec.tsx +2 -2
- package/src/renderer/__tests__/Paths.spec.tsx +8 -8
- package/src/renderer/__tests__/Picture.spec.tsx +10 -12
- package/src/renderer/__tests__/Simple.spec.tsx +6 -6
- package/src/renderer/__tests__/Surfaces.spec.tsx +2 -2
- package/src/renderer/__tests__/Text.spec.tsx +12 -12
- package/src/renderer/__tests__/Transform.spec.tsx +8 -8
- package/src/renderer/__tests__/documentation/Group.spec.tsx +12 -12
- package/src/renderer/__tests__/documentation/getting-started/HelloWorld.spec.tsx +2 -2
- package/src/renderer/__tests__/documentation/paint/Overview.spec.tsx +8 -8
- package/src/renderer/__tests__/documentation/shapes/Box.spec.tsx +4 -4
- package/src/renderer/__tests__/e2e/Atlas.spec.tsx +3 -3
- package/src/renderer/__tests__/e2e/Offscreen.spec.tsx +1 -1
- package/src/renderer/__tests__/examples/BlendModes.spec.tsx +4 -4
- package/src/renderer/__tests__/setup.tsx +13 -13
- package/src/sksg/Container.ts +9 -1
- package/src/sksg/HostConfig.ts +37 -7
- package/src/sksg/Reconciler.ts +17 -6
- package/src/sksg/__tests__/Simple.spec.tsx +8 -8
- package/lib/commonjs/sksg/HostConfig2.d.ts +0 -19
- package/lib/commonjs/sksg/HostConfig2.js +0 -159
- package/lib/commonjs/sksg/HostConfig2.js.map +0 -1
- package/lib/module/sksg/HostConfig2.d.ts +0 -19
- package/lib/module/sksg/HostConfig2.js +0 -152
- package/lib/module/sksg/HostConfig2.js.map +0 -1
- package/lib/typescript/lib/commonjs/sksg/HostConfig2.d.ts +0 -44
- package/lib/typescript/lib/module/sksg/HostConfig2.d.ts +0 -43
- package/lib/typescript/src/sksg/HostConfig2.d.ts +0 -19
- package/src/sksg/HostConfig2.ts +0 -247
@@ -1,3 +1,11 @@
|
|
1
1
|
export function useCanvasRef(): React.MutableRefObject<null>;
|
2
|
-
export
|
2
|
+
export function Canvas({ debug, opaque, children, onSize, onLayout: _onLayout, ref, ...viewProps }: {
|
3
|
+
[x: string]: any;
|
4
|
+
debug: any;
|
5
|
+
opaque: any;
|
6
|
+
children: any;
|
7
|
+
onSize: any;
|
8
|
+
onLayout: any;
|
9
|
+
ref: any;
|
10
|
+
}): React.CElement<object, React.Component<object, {}, any> & import("react-native").NativeMethods>;
|
3
11
|
import React from "react";
|
@@ -1,4 +1,4 @@
|
|
1
1
|
export function isOnMainThread(): boolean;
|
2
|
-
export function drawAsPicture(element: any, bounds: any): import("../../..").SkPicture
|
3
|
-
export function drawAsImage(element: any, size: any): import("../../..").SkImage
|
2
|
+
export function drawAsPicture(element: any, bounds: any): Promise<import("../../..").SkPicture>;
|
3
|
+
export function drawAsImage(element: any, size: any): Promise<import("../../..").SkImage>;
|
4
4
|
export function drawAsImageFromPicture(picture: any, size: any): import("../../..").SkImage;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
export class CanvasKitWebGLBufferImpl extends CanvasKitWebGLBuffer {
|
2
2
|
constructor(surface: any, source: any);
|
3
|
+
image: null;
|
3
4
|
surface: any;
|
4
5
|
source: any;
|
5
|
-
toImage():
|
6
|
-
image: any;
|
6
|
+
toImage(): never;
|
7
7
|
}
|
8
8
|
import { CanvasKitWebGLBuffer } from "../types";
|
@@ -1,5 +1,6 @@
|
|
1
1
|
export class JsiSkCanvas extends HostObject {
|
2
2
|
constructor(CanvasKit: any, ref: any);
|
3
|
+
dispose: () => void;
|
3
4
|
drawRect(rect: any, paint: any): void;
|
4
5
|
drawImage(image: any, x: any, y: any, paint: any): void;
|
5
6
|
drawImageRect(img: any, src: any, dest: any, paint: any, fastSample: any): void;
|
@@ -4,6 +4,7 @@ export class JsiSkContourMeasure extends HostObject {
|
|
4
4
|
getSegment(startD: any, stopD: any, startWithMoveTo: any): JsiSkPath;
|
5
5
|
isClosed(): any;
|
6
6
|
length(): any;
|
7
|
+
dispose: () => void;
|
7
8
|
}
|
8
9
|
import { HostObject } from "./Host";
|
9
10
|
import { JsiSkPoint } from "./JsiSkPoint";
|
@@ -14,6 +14,7 @@ export class JsiSkImage extends HostObject {
|
|
14
14
|
encodeToBytes(fmt: any, quality: any): any;
|
15
15
|
encodeToBase64(fmt: any, quality: any): string;
|
16
16
|
readPixels(srcX: any, srcY: any, imageInfo: any): any;
|
17
|
+
dispose: () => void;
|
17
18
|
makeNonTextureImage(): JsiSkImage;
|
18
19
|
getNativeTextureUnstable(): null;
|
19
20
|
}
|
@@ -2,6 +2,7 @@ export class JsiSkMatrix extends HostObject {
|
|
2
2
|
constructor(CanvasKit: any, ref: any);
|
3
3
|
preMultiply(matrix: any): void;
|
4
4
|
postMultiply(matrix: any): void;
|
5
|
+
dispose: () => void;
|
5
6
|
concat(matrix: any): this;
|
6
7
|
translate(x: any, y: any): this;
|
7
8
|
postTranslate(x: any, y: any): this;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
export class JsiSkPath extends HostObject {
|
2
2
|
constructor(CanvasKit: any, ref: any);
|
3
|
+
dispose: () => void;
|
3
4
|
addPath(src: any, matrix: any, extend?: boolean): this;
|
4
5
|
addArc(oval: any, startAngleInDegrees: any, sweepAngleInDegrees: any): this;
|
5
6
|
addOval(oval: any, isCCW: any, startIndex: any): this;
|
@@ -1,12 +1,13 @@
|
|
1
1
|
export function createVideo(CanvasKit: any, url: any): Promise<any>;
|
2
2
|
export class JsiVideo {
|
3
3
|
constructor(ImageFactory: any, videoElement: any);
|
4
|
+
__typename__: string;
|
5
|
+
webglBuffer: null;
|
4
6
|
ImageFactory: any;
|
5
7
|
videoElement: any;
|
6
8
|
duration(): number;
|
7
9
|
framerate(): void;
|
8
10
|
setSurface(surface: any): void;
|
9
|
-
webglBuffer: CanvasKitWebGLBufferImpl | undefined;
|
10
11
|
nextImage(): any;
|
11
12
|
seek(time: any): void;
|
12
13
|
rotation(): number;
|
@@ -19,4 +20,3 @@ export class JsiVideo {
|
|
19
20
|
setVolume(volume: any): void;
|
20
21
|
dispose(): void;
|
21
22
|
}
|
22
|
-
import { CanvasKitWebGLBufferImpl } from "./CanvasKitWebGLBufferImpl";
|
@@ -1,30 +1,25 @@
|
|
1
1
|
export class Container {
|
2
2
|
constructor(Skia: any, nativeId: any);
|
3
|
+
_root: any[];
|
4
|
+
recording: null;
|
5
|
+
unmounted: boolean;
|
3
6
|
Skia: any;
|
4
7
|
nativeId: any;
|
8
|
+
set root(value: any[]);
|
9
|
+
get root(): any[];
|
5
10
|
unmount(): void;
|
6
|
-
unmounted: boolean | undefined;
|
7
11
|
drawOnCanvas(canvas: any): void;
|
8
12
|
}
|
9
13
|
export function createContainer(Skia: any, nativeId: any): StaticContainer | ReanimatedContainer | NativeReanimatedContainer;
|
10
14
|
declare class StaticContainer extends Container {
|
11
15
|
redraw(): void;
|
12
|
-
recording: {
|
13
|
-
commands: any;
|
14
|
-
paintPool: never[];
|
15
|
-
animationValues: any;
|
16
|
-
} | undefined;
|
17
16
|
}
|
18
17
|
declare class ReanimatedContainer extends Container {
|
18
|
+
mapperId: null;
|
19
19
|
redraw(): void;
|
20
|
-
recording: {
|
21
|
-
commands: any;
|
22
|
-
paintPool: never[];
|
23
|
-
} | undefined;
|
24
|
-
mapperId: any;
|
25
20
|
}
|
26
21
|
declare class NativeReanimatedContainer extends Container {
|
22
|
+
mapperId: null;
|
27
23
|
redraw(): void;
|
28
|
-
mapperId: any;
|
29
24
|
}
|
30
25
|
export {};
|
@@ -7,8 +7,8 @@ export namespace sksgHostConfig {
|
|
7
7
|
let scheduleTimeout: typeof setTimeout;
|
8
8
|
let cancelTimeout: typeof clearTimeout;
|
9
9
|
let noTimeout: number;
|
10
|
-
function getRootHostContext(_rootContainerInstance: any):
|
11
|
-
function getChildHostContext(_parentHostContext: any, _type: any, _rootContainerInstance: any):
|
10
|
+
function getRootHostContext(_rootContainerInstance: any): {};
|
11
|
+
function getChildHostContext(_parentHostContext: any, _type: any, _rootContainerInstance: any): {};
|
12
12
|
function shouldSetTextContent(_type: any, _props: any): boolean;
|
13
13
|
function createTextInstance(_text: any, _rootContainerInstance: any, _hostContext: any, _internalInstanceHandle: any): never;
|
14
14
|
function createInstance(type: any, propsWithChildren: any, _container: any, _hostContext: any, _internalInstanceHandle: any): {
|
@@ -20,13 +20,13 @@ export namespace sksgHostConfig {
|
|
20
20
|
function finalizeInitialChildren(parentInstance: any, _type: any, _props: any, _rootContainerInstance: any, _hostContext: any): boolean;
|
21
21
|
function commitMount(): void;
|
22
22
|
function prepareForCommit(_container: any): null;
|
23
|
-
function resetAfterCommit(
|
23
|
+
function resetAfterCommit(_container: any): void;
|
24
24
|
function getPublicInstance(node: any): any;
|
25
25
|
function commitTextUpdate(_textInstance: any, _oldText: any, _newText: any): void;
|
26
26
|
function clearContainer(_container: any): void;
|
27
27
|
function prepareUpdate(_instance: any, _type: any, oldProps: any, newProps: any, container: any, _hostContext: any): any;
|
28
28
|
function preparePortalMount(): void;
|
29
|
-
function cloneInstance(instance: any,
|
29
|
+
function cloneInstance(instance: any, _type: any, _oldProps: any, newProps: any, _updatePayload: any, _internalInstanceHandle: any, keepChildren: any, _recyclableInstance: any): {
|
30
30
|
type: any;
|
31
31
|
props: any;
|
32
32
|
children: any[];
|
@@ -44,4 +44,20 @@ export namespace sksgHostConfig {
|
|
44
44
|
function getInstanceFromNode(_node: any): never;
|
45
45
|
function prepareScopeUpdate(_scopeInstance: any, _instance: any): never;
|
46
46
|
function getInstanceFromScope(_scopeInstance: any): never;
|
47
|
+
function shouldAttemptEagerTransition(): boolean;
|
48
|
+
function trackSchedulerEvent(): void;
|
49
|
+
function resolveEventType(): null;
|
50
|
+
function resolveEventTimeStamp(): number;
|
51
|
+
function requestPostPaintCallback(): void;
|
52
|
+
function maySuspendCommit(): boolean;
|
53
|
+
function preloadInstance(): boolean;
|
54
|
+
function startSuspendingCommit(): void;
|
55
|
+
function suspendInstance(): void;
|
56
|
+
function waitForCommitToBeReady(): null;
|
57
|
+
let NotPendingTransition: null;
|
58
|
+
let HostTransitionContext: import("react").Context<null>;
|
59
|
+
function setCurrentUpdatePriority(newPriority: any): void;
|
60
|
+
function getCurrentUpdatePriority(): number;
|
61
|
+
function resolveUpdatePriority(): number;
|
62
|
+
function resetFormInstance(): void;
|
47
63
|
}
|
@@ -3,46 +3,47 @@ export class SkiaSGRoot {
|
|
3
3
|
Skia: any;
|
4
4
|
container: {
|
5
5
|
redraw(): void;
|
6
|
-
recording:
|
7
|
-
|
8
|
-
|
9
|
-
animationValues: any;
|
10
|
-
} | undefined;
|
6
|
+
recording: null;
|
7
|
+
_root: any[];
|
8
|
+
unmounted: boolean;
|
11
9
|
Skia: any;
|
12
10
|
nativeId: any;
|
11
|
+
root: any[];
|
13
12
|
unmount(): void;
|
14
|
-
unmounted: boolean | undefined;
|
15
13
|
drawOnCanvas(canvas: any): void;
|
16
14
|
} | {
|
15
|
+
mapperId: null;
|
17
16
|
redraw(): void;
|
18
|
-
recording:
|
19
|
-
|
20
|
-
|
21
|
-
} | undefined;
|
22
|
-
mapperId: any;
|
17
|
+
recording: null;
|
18
|
+
_root: any[];
|
19
|
+
unmounted: boolean;
|
23
20
|
Skia: any;
|
24
21
|
nativeId: any;
|
22
|
+
root: any[];
|
25
23
|
unmount(): void;
|
26
|
-
unmounted: boolean | undefined;
|
27
24
|
drawOnCanvas(canvas: any): void;
|
28
25
|
} | {
|
26
|
+
mapperId: null;
|
29
27
|
redraw(): void;
|
30
|
-
|
28
|
+
_root: any[];
|
29
|
+
recording: null;
|
30
|
+
unmounted: boolean;
|
31
31
|
Skia: any;
|
32
32
|
nativeId: any;
|
33
|
+
root: any[];
|
33
34
|
unmount(): void;
|
34
|
-
unmounted: boolean | undefined;
|
35
35
|
drawOnCanvas(canvas: any): void;
|
36
36
|
};
|
37
37
|
root: any;
|
38
38
|
get sg(): {
|
39
39
|
type: any;
|
40
40
|
props: {};
|
41
|
-
children: any;
|
41
|
+
children: any[];
|
42
42
|
isDeclaration: boolean;
|
43
43
|
};
|
44
|
-
|
44
|
+
updateContainer(element: any): Promise<any>;
|
45
|
+
render(element: any): Promise<void>;
|
45
46
|
drawOnCanvas(canvas: any): void;
|
46
47
|
getPicture(): any;
|
47
|
-
unmount():
|
48
|
+
unmount(): Promise<any>;
|
48
49
|
}
|
@@ -1,8 +1,11 @@
|
|
1
1
|
export class Recorder {
|
2
|
+
commands: any[];
|
3
|
+
cursors: any[];
|
4
|
+
animationValues: Set<any>;
|
2
5
|
getRecording(): {
|
3
|
-
commands: any;
|
6
|
+
commands: any[];
|
4
7
|
paintPool: never[];
|
5
|
-
animationValues: any
|
8
|
+
animationValues: Set<any>;
|
6
9
|
};
|
7
10
|
processProps(props: any): {
|
8
11
|
props: any;
|
@@ -1,15 +1,18 @@
|
|
1
1
|
export class SkiaBaseWebView extends React.Component<any, any, any> {
|
2
2
|
constructor(props: any);
|
3
|
+
_surface: null;
|
4
|
+
_unsubscriptions: any[];
|
5
|
+
_canvas: null;
|
6
|
+
_canvasRef: React.RefObject<any>;
|
7
|
+
_redrawRequests: number;
|
8
|
+
requestId: number;
|
9
|
+
width: number;
|
10
|
+
height: number;
|
3
11
|
unsubscribeAll(): void;
|
4
|
-
_unsubscriptions: any[] | undefined;
|
5
12
|
onLayoutEvent(evt: any): void;
|
6
|
-
width: any;
|
7
|
-
height: any;
|
8
|
-
_surface: JsiSkSurface | undefined;
|
9
|
-
_canvas: import("../skia/web/JsiSkCanvas").JsiSkCanvas | undefined;
|
10
13
|
getSize(): {
|
11
|
-
width:
|
12
|
-
height:
|
14
|
+
width: number;
|
15
|
+
height: number;
|
13
16
|
};
|
14
17
|
componentDidMount(): void;
|
15
18
|
componentDidUpdate(): void;
|
@@ -19,7 +22,7 @@ export class SkiaBaseWebView extends React.Component<any, any, any> {
|
|
19
22
|
* @param rect Rect to use as bounds. Optional.
|
20
23
|
* @returns An Image object.
|
21
24
|
*/
|
22
|
-
makeImageSnapshot(rect: any):
|
25
|
+
makeImageSnapshot(rect: any): any;
|
23
26
|
/**
|
24
27
|
* Override to render
|
25
28
|
*/
|
@@ -27,10 +30,8 @@ export class SkiaBaseWebView extends React.Component<any, any, any> {
|
|
27
30
|
* Sends a redraw request to the native SkiaView.
|
28
31
|
*/
|
29
32
|
tick(): void;
|
30
|
-
_redrawRequests: number | undefined;
|
31
|
-
requestId: number | undefined;
|
32
33
|
redraw(): void;
|
34
|
+
onLayout: (evt: any) => void;
|
33
35
|
render(): React.CElement<import("react-native").ViewProps, import("react-native").View>;
|
34
36
|
}
|
35
37
|
import React from "react";
|
36
|
-
import { JsiSkSurface } from "../skia/web/JsiSkSurface";
|
@@ -1,11 +1,11 @@
|
|
1
1
|
export class SkiaPictureView extends React.Component<any, any, any> {
|
2
2
|
constructor(props: any);
|
3
|
+
requestId: number;
|
3
4
|
_nativeId: number;
|
4
5
|
get nativeId(): number;
|
5
6
|
componentDidUpdate(prevProps: any): void;
|
6
7
|
componentWillUnmount(): void;
|
7
8
|
tick(): void;
|
8
|
-
requestId: number | undefined;
|
9
9
|
/**
|
10
10
|
* Creates a snapshot from the canvas in the surface
|
11
11
|
* @param rect Rect to use as bounds. Optional.
|
@@ -16,6 +16,6 @@ export class SkiaPictureView extends React.Component<any, any, any> {
|
|
16
16
|
* Sends a redraw request to the native SkiaView.
|
17
17
|
*/
|
18
18
|
redraw(): void;
|
19
|
-
render(): React.CElement<object, React.Component<object, {}, any> &
|
19
|
+
render(): React.CElement<object, React.Component<object, {}, any> & import("react-native").NativeMethods>;
|
20
20
|
}
|
21
21
|
import React from "react";
|
@@ -5,4 +5,4 @@ export declare const makeOffscreenSurface: (width: number, height: number) => Sk
|
|
5
5
|
export declare const getSkiaExports: () => {
|
6
6
|
Skia: import("../skia/types").Skia;
|
7
7
|
};
|
8
|
-
export declare const drawOffscreen: (surface: SkSurface, element: ReactNode) => import("../skia").SkImage
|
8
|
+
export declare const drawOffscreen: (surface: SkSurface, element: ReactNode) => Promise<import("../skia").SkImage>;
|
@@ -14,7 +14,7 @@ export interface CanvasProps extends ViewProps {
|
|
14
14
|
debug?: boolean;
|
15
15
|
opaque?: boolean;
|
16
16
|
onSize?: SharedValue<SkSize>;
|
17
|
-
|
17
|
+
ref?: React.Ref<CanvasRef>;
|
18
18
|
}
|
19
|
-
export declare const Canvas:
|
19
|
+
export declare const Canvas: ({ debug, opaque, children, onSize, onLayout: _onLayout, ref, ...viewProps }: CanvasProps) => React.JSX.Element;
|
20
20
|
export {};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { ReactElement } from "react";
|
2
2
|
import type { SkPicture, SkRect, SkSize } from "../skia/types";
|
3
3
|
export declare const isOnMainThread: () => boolean;
|
4
|
-
export declare const drawAsPicture: (element: ReactElement, bounds?: SkRect) => SkPicture
|
5
|
-
export declare const drawAsImage: (element: ReactElement, size: SkSize) => import("../skia").SkImage
|
4
|
+
export declare const drawAsPicture: (element: ReactElement, bounds?: SkRect) => Promise<SkPicture>;
|
5
|
+
export declare const drawAsImage: (element: ReactElement, size: SkSize) => Promise<import("../skia").SkImage>;
|
6
6
|
export declare const drawAsImageFromPicture: (picture: SkPicture, size: SkSize) => import("../skia").SkImage;
|
@@ -43,13 +43,13 @@ export declare const center: {
|
|
43
43
|
x: number;
|
44
44
|
y: number;
|
45
45
|
};
|
46
|
-
export declare const drawOnNode: (element: ReactNode) => SkiaExports.SkSurface
|
47
|
-
export declare const mountCanvas: (element: ReactNode) => {
|
46
|
+
export declare const drawOnNode: (element: ReactNode) => Promise<SkiaExports.SkSurface>;
|
47
|
+
export declare const mountCanvas: (element: ReactNode) => Promise<{
|
48
48
|
surface: SkiaExports.SkSurface;
|
49
49
|
root: SkiaSGRoot;
|
50
|
-
draw: () => void
|
51
|
-
}
|
52
|
-
export declare const serialize: (element: ReactNode) => string
|
50
|
+
draw: () => Promise<void>;
|
51
|
+
}>;
|
52
|
+
export declare const serialize: (element: ReactNode) => Promise<string>;
|
53
53
|
export type EvalContext = Record<string, any>;
|
54
54
|
interface TestingSurface {
|
55
55
|
eval<Ctx extends EvalContext = EvalContext, R = any>(fn: (Skia: Skia, ctx: Ctx) => R, ctx?: Ctx): Promise<R>;
|
@@ -5,10 +5,12 @@ import "../views/api";
|
|
5
5
|
export declare abstract class Container {
|
6
6
|
protected Skia: Skia;
|
7
7
|
protected nativeId: number;
|
8
|
-
|
8
|
+
private _root;
|
9
9
|
protected recording: Recording | null;
|
10
10
|
protected unmounted: boolean;
|
11
11
|
constructor(Skia: Skia, nativeId: number);
|
12
|
+
get root(): Node[];
|
13
|
+
set root(value: Node[]);
|
12
14
|
unmount(): void;
|
13
15
|
drawOnCanvas(canvas: SkCanvas): void;
|
14
16
|
abstract redraw(): void;
|
@@ -9,7 +9,7 @@ type TextInstance = Node;
|
|
9
9
|
type SuspenseInstance = Instance;
|
10
10
|
type HydratableInstance = Instance;
|
11
11
|
type PublicInstance = Instance;
|
12
|
-
type HostContext =
|
12
|
+
type HostContext = object;
|
13
13
|
type UpdatePayload = Container;
|
14
14
|
type ChildSet = Node[];
|
15
15
|
type TimeoutHandle = NodeJS.Timeout;
|
@@ -13,8 +13,9 @@ export declare class SkiaSGRoot {
|
|
13
13
|
children: import("./Node").Node<unknown>[];
|
14
14
|
isDeclaration: boolean;
|
15
15
|
};
|
16
|
-
|
16
|
+
private updateContainer;
|
17
|
+
render(element: ReactNode): Promise<void>;
|
17
18
|
drawOnCanvas(canvas: SkCanvas): void;
|
18
19
|
getPicture(): import("../skia/types").SkPicture;
|
19
|
-
unmount():
|
20
|
+
unmount(): Promise<unknown>;
|
20
21
|
}
|