@shopify/react-native-skia 1.11.9-next.1 → 1.11.10
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 +153 -30
- package/android/build.gradle +1 -1
- package/cpp/skia/include/codec/SkCodec.h +2 -7
- package/cpp/skia/include/config/SkUserConfig.h +0 -11
- package/cpp/skia/include/core/SkCanvas.h +7 -11
- package/cpp/skia/include/core/SkColor.h +0 -10
- package/cpp/skia/include/core/SkColorSpace.h +2 -184
- package/cpp/skia/include/core/SkColorType.h +32 -114
- package/cpp/skia/include/core/SkFontScanner.h +8 -5
- package/cpp/skia/include/core/SkFontStyle.h +1 -1
- package/cpp/skia/include/core/SkMaskFilter.h +8 -0
- 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 +1 -3
- 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 +0 -14
- package/cpp/skia/include/core/SkTypeface.h +7 -24
- package/cpp/skia/include/effects/SkGradientShader.h +1 -6
- package/cpp/skia/include/effects/SkRuntimeEffect.h +0 -1
- package/cpp/skia/include/encode/SkPngEncoder.h +0 -14
- package/cpp/skia/include/gpu/GpuTypes.h +0 -9
- package/cpp/skia/include/gpu/ganesh/GrContextOptions.h +133 -135
- package/cpp/skia/include/gpu/ganesh/GrDirectContext.h +0 -5
- package/cpp/skia/include/gpu/ganesh/GrDriverBugWorkarounds.h +3 -3
- package/cpp/skia/include/gpu/ganesh/GrTypes.h +9 -14
- package/cpp/skia/include/gpu/graphite/Context.h +2 -25
- package/cpp/skia/include/gpu/graphite/ContextOptions.h +5 -23
- package/cpp/skia/include/gpu/graphite/GraphiteTypes.h +1 -20
- package/cpp/skia/include/gpu/graphite/Image.h +0 -1
- package/cpp/skia/include/gpu/graphite/Recorder.h +0 -6
- package/cpp/skia/include/gpu/graphite/Recording.h +1 -3
- package/cpp/skia/include/gpu/graphite/mtl/MtlGraphiteTypes.h +36 -4
- package/cpp/skia/include/gpu/graphite/precompile/Precompile.h +2 -3
- package/cpp/skia/include/pathops/SkPathOps.h +1 -9
- package/cpp/skia/include/ports/SkFontMgr_FontConfigInterface.h +0 -3
- package/cpp/skia/include/private/SkPathRef.h +21 -15
- package/cpp/skia/include/private/base/SkAttributes.h +10 -16
- package/cpp/skia/include/private/base/SkMutex.h +0 -8
- 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 +11 -24
- package/cpp/skia/include/private/gpu/ganesh/GrTypesPriv.h +1 -1
- package/cpp/skia/include/sksl/SkSLDebugTrace.h +3 -0
- package/cpp/skia/modules/skcms/src/Transform_inl.h +20 -20
- package/cpp/skia/modules/skcms/src/skcms_Transform.h +3 -4
- package/cpp/skia/modules/skcms/src/skcms_public.h +15 -19
- package/cpp/skia/modules/skresources/include/SkResources.h +1 -3
- 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 +0 -2
- package/cpp/skia/modules/svg/include/SkSVGShape.h +0 -1
- package/cpp/skia/modules/svg/include/SkSVGText.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGTransformableNode.h +0 -4
- package/cpp/skia/modules/svg/include/SkSVGUse.h +1 -1
- package/cpp/skia/src/core/SkLRUCache.h +13 -19
- package/cpp/skia/src/core/SkTHash.h +4 -50
- package/cpp/skia/src/gpu/ganesh/gl/GrGLDefines.h +0 -1
- package/lib/commonjs/external/reanimated/textures.js +3 -4
- 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 +28 -11
- 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 +1 -3
- package/lib/commonjs/sksg/Container.js +1 -7
- package/lib/commonjs/sksg/Container.js.map +1 -1
- package/lib/commonjs/sksg/HostConfig.d.ts +1 -1
- package/lib/commonjs/sksg/HostConfig.js +6 -36
- package/lib/commonjs/sksg/HostConfig.js.map +1 -1
- package/lib/commonjs/sksg/HostConfig2.d.ts +19 -0
- package/lib/commonjs/sksg/HostConfig2.js +159 -0
- package/lib/commonjs/sksg/HostConfig2.js.map +1 -0
- package/lib/commonjs/sksg/Reconciler.d.ts +2 -3
- package/lib/commonjs/sksg/Reconciler.js +6 -16
- 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 +2 -1
- 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 +5 -3
- package/lib/module/dom/nodes/datatypes/Rect.js.map +1 -1
- package/lib/module/external/reanimated/buffers.js +2 -1
- package/lib/module/external/reanimated/buffers.js.map +1 -1
- package/lib/module/external/reanimated/textures.js +4 -5
- 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 +23 -10
- 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 +28 -10
- 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 +4 -1
- package/lib/module/skia/web/CanvasKitWebGLBufferImpl.js.map +1 -1
- package/lib/module/skia/web/Host.js +7 -1
- package/lib/module/skia/web/Host.js.map +1 -1
- package/lib/module/skia/web/JsiSkAnimatedImage.js +6 -3
- package/lib/module/skia/web/JsiSkAnimatedImage.js.map +1 -1
- package/lib/module/skia/web/JsiSkCanvas.js +6 -3
- package/lib/module/skia/web/JsiSkCanvas.js.map +1 -1
- package/lib/module/skia/web/JsiSkColorFilter.js +6 -3
- package/lib/module/skia/web/JsiSkColorFilter.js.map +1 -1
- package/lib/module/skia/web/JsiSkContourMeasure.js +6 -3
- package/lib/module/skia/web/JsiSkContourMeasure.js.map +1 -1
- package/lib/module/skia/web/JsiSkContourMeasureIter.js +6 -3
- package/lib/module/skia/web/JsiSkContourMeasureIter.js.map +1 -1
- package/lib/module/skia/web/JsiSkData.js +6 -3
- package/lib/module/skia/web/JsiSkData.js.map +1 -1
- package/lib/module/skia/web/JsiSkFont.js +6 -3
- package/lib/module/skia/web/JsiSkFont.js.map +1 -1
- package/lib/module/skia/web/JsiSkImage.js +12 -8
- package/lib/module/skia/web/JsiSkImage.js.map +1 -1
- package/lib/module/skia/web/JsiSkImageFilter.js +6 -3
- package/lib/module/skia/web/JsiSkImageFilter.js.map +1 -1
- package/lib/module/skia/web/JsiSkMaskFilter.js +6 -3
- package/lib/module/skia/web/JsiSkMaskFilter.js.map +1 -1
- package/lib/module/skia/web/JsiSkMatrix.js +8 -5
- package/lib/module/skia/web/JsiSkMatrix.js.map +1 -1
- package/lib/module/skia/web/JsiSkPaint.js +6 -3
- package/lib/module/skia/web/JsiSkPaint.js.map +1 -1
- package/lib/module/skia/web/JsiSkParagraphBuilder.js +3 -2
- 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 +6 -3
- package/lib/module/skia/web/JsiSkPath.js.map +1 -1
- package/lib/module/skia/web/JsiSkPathEffect.js +6 -3
- package/lib/module/skia/web/JsiSkPathEffect.js.map +1 -1
- package/lib/module/skia/web/JsiSkPicture.js +6 -3
- package/lib/module/skia/web/JsiSkPicture.js.map +1 -1
- package/lib/module/skia/web/JsiSkPictureRecorder.js +6 -3
- package/lib/module/skia/web/JsiSkPictureRecorder.js.map +1 -1
- package/lib/module/skia/web/JsiSkPoint.js +6 -3
- package/lib/module/skia/web/JsiSkPoint.js.map +1 -1
- package/lib/module/skia/web/JsiSkRRect.js +6 -3
- package/lib/module/skia/web/JsiSkRRect.js.map +1 -1
- package/lib/module/skia/web/JsiSkRSXform.js +6 -3
- package/lib/module/skia/web/JsiSkRSXform.js.map +1 -1
- package/lib/module/skia/web/JsiSkRect.js +6 -3
- package/lib/module/skia/web/JsiSkRect.js.map +1 -1
- package/lib/module/skia/web/JsiSkRuntimeEffect.js +6 -3
- package/lib/module/skia/web/JsiSkRuntimeEffect.js.map +1 -1
- package/lib/module/skia/web/JsiSkSVG.js +8 -5
- package/lib/module/skia/web/JsiSkSVG.js.map +1 -1
- package/lib/module/skia/web/JsiSkShader.js +6 -3
- package/lib/module/skia/web/JsiSkShader.js.map +1 -1
- package/lib/module/skia/web/JsiSkSurface.js +6 -3
- package/lib/module/skia/web/JsiSkSurface.js.map +1 -1
- package/lib/module/skia/web/JsiSkTextBlob.js +6 -3
- package/lib/module/skia/web/JsiSkTextBlob.js.map +1 -1
- package/lib/module/skia/web/JsiSkTypeface.js +6 -3
- package/lib/module/skia/web/JsiSkTypeface.js.map +1 -1
- package/lib/module/skia/web/JsiSkTypefaceFontProvider.js +4 -1
- package/lib/module/skia/web/JsiSkTypefaceFontProvider.js.map +1 -1
- package/lib/module/skia/web/JsiSkVertices.js +6 -3
- package/lib/module/skia/web/JsiSkVertices.js.map +1 -1
- package/lib/module/skia/web/JsiVideo.js +5 -2
- package/lib/module/skia/web/JsiVideo.js.map +1 -1
- package/lib/module/sksg/Container.d.ts +1 -3
- package/lib/module/sksg/Container.js +8 -11
- package/lib/module/sksg/Container.js.map +1 -1
- package/lib/module/sksg/HostConfig.d.ts +1 -1
- package/lib/module/sksg/HostConfig.js +7 -36
- package/lib/module/sksg/HostConfig.js.map +1 -1
- package/lib/module/sksg/HostConfig2.d.ts +19 -0
- package/lib/module/sksg/HostConfig2.js +152 -0
- package/lib/module/sksg/HostConfig2.js.map +1 -0
- package/lib/module/sksg/Reconciler.d.ts +2 -3
- package/lib/module/sksg/Reconciler.js +11 -16
- package/lib/module/sksg/Reconciler.js.map +1 -1
- package/lib/module/sksg/Recorder/ReanimatedRecorder.js +5 -1
- package/lib/module/sksg/Recorder/ReanimatedRecorder.js.map +1 -1
- package/lib/module/sksg/Recorder/Recorder.js +6 -3
- 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 +4 -2
- package/lib/module/sksg/Recorder/commands/Drawing.js.map +1 -1
- package/lib/module/sksg/Recorder/commands/Shaders.js +3 -2
- package/lib/module/sksg/Recorder/commands/Shaders.js.map +1 -1
- package/lib/module/views/SkiaBaseWebView.js +12 -9
- package/lib/module/views/SkiaBaseWebView.js.map +1 -1
- package/lib/module/views/SkiaPictureView.js +5 -1
- package/lib/module/views/SkiaPictureView.js.map +1 -1
- package/lib/module/views/SkiaPictureView.web.js +4 -1
- package/lib/module/views/SkiaPictureView.web.js.map +1 -1
- package/lib/module/web/LoadSkiaWeb.js +2 -1
- 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 +1 -9
- package/lib/typescript/lib/commonjs/renderer/Offscreen.d.ts +2 -2
- package/lib/typescript/lib/commonjs/sksg/Container.d.ts +0 -3
- package/lib/typescript/lib/commonjs/sksg/HostConfig.d.ts +4 -21
- package/lib/typescript/lib/commonjs/sksg/HostConfig2.d.ts +44 -0
- package/lib/typescript/lib/commonjs/sksg/Reconciler.d.ts +2 -9
- package/lib/typescript/lib/module/headless/index.d.ts +1 -1
- package/lib/typescript/lib/module/renderer/Canvas.d.ts +1 -9
- 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 +0 -1
- package/lib/typescript/lib/module/skia/web/JsiSkCanvas.d.ts +0 -1
- package/lib/typescript/lib/module/skia/web/JsiSkColorFilter.d.ts +0 -1
- package/lib/typescript/lib/module/skia/web/JsiSkContourMeasure.d.ts +0 -1
- package/lib/typescript/lib/module/skia/web/JsiSkContourMeasureIter.d.ts +0 -1
- package/lib/typescript/lib/module/skia/web/JsiSkData.d.ts +0 -1
- package/lib/typescript/lib/module/skia/web/JsiSkFont.d.ts +0 -1
- package/lib/typescript/lib/module/skia/web/JsiSkImage.d.ts +0 -1
- package/lib/typescript/lib/module/skia/web/JsiSkImageFilter.d.ts +0 -1
- package/lib/typescript/lib/module/skia/web/JsiSkMaskFilter.d.ts +0 -1
- package/lib/typescript/lib/module/skia/web/JsiSkMatrix.d.ts +0 -1
- package/lib/typescript/lib/module/skia/web/JsiSkPaint.d.ts +0 -1
- package/lib/typescript/lib/module/skia/web/JsiSkPath.d.ts +0 -1
- package/lib/typescript/lib/module/skia/web/JsiSkPathEffect.d.ts +0 -1
- package/lib/typescript/lib/module/skia/web/JsiSkPicture.d.ts +0 -1
- package/lib/typescript/lib/module/skia/web/JsiSkPictureRecorder.d.ts +0 -1
- package/lib/typescript/lib/module/skia/web/JsiSkPoint.d.ts +0 -1
- package/lib/typescript/lib/module/skia/web/JsiSkRRect.d.ts +0 -1
- package/lib/typescript/lib/module/skia/web/JsiSkRSXform.d.ts +0 -1
- package/lib/typescript/lib/module/skia/web/JsiSkRect.d.ts +0 -1
- package/lib/typescript/lib/module/skia/web/JsiSkRuntimeEffect.d.ts +0 -1
- package/lib/typescript/lib/module/skia/web/JsiSkSVG.d.ts +0 -1
- package/lib/typescript/lib/module/skia/web/JsiSkShader.d.ts +0 -1
- package/lib/typescript/lib/module/skia/web/JsiSkSurface.d.ts +0 -1
- package/lib/typescript/lib/module/skia/web/JsiSkTextBlob.d.ts +0 -1
- package/lib/typescript/lib/module/skia/web/JsiSkTypeface.d.ts +0 -1
- package/lib/typescript/lib/module/skia/web/JsiSkTypefaceFontProvider.d.ts +0 -1
- package/lib/typescript/lib/module/skia/web/JsiSkVertices.d.ts +0 -1
- package/lib/typescript/lib/module/skia/web/JsiVideo.d.ts +2 -2
- package/lib/typescript/lib/module/sksg/Container.d.ts +12 -7
- package/lib/typescript/lib/module/sksg/HostConfig.d.ts +4 -20
- package/lib/typescript/lib/module/sksg/HostConfig2.d.ts +43 -0
- package/lib/typescript/lib/module/sksg/Reconciler.d.ts +17 -18
- package/lib/typescript/lib/module/sksg/Recorder/ReanimatedRecorder.d.ts +0 -1
- package/lib/typescript/lib/module/sksg/Recorder/Recorder.d.ts +2 -5
- package/lib/typescript/lib/module/views/SkiaBaseWebView.d.ts +11 -12
- 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 +1 -3
- package/lib/typescript/src/sksg/HostConfig.d.ts +1 -1
- package/lib/typescript/src/sksg/HostConfig2.d.ts +19 -0
- package/lib/typescript/src/sksg/Reconciler.d.ts +2 -3
- package/package.json +9 -10
- package/src/external/reanimated/textures.tsx +4 -5
- package/src/headless/index.ts +2 -2
- package/src/renderer/Canvas.tsx +81 -57
- package/src/renderer/Offscreen.tsx +4 -4
- package/src/renderer/__tests__/Data.spec.tsx +10 -9
- 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 +12 -10
- 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 +1 -9
- package/src/sksg/HostConfig.ts +7 -37
- package/src/sksg/HostConfig2.ts +247 -0
- package/src/sksg/Reconciler.ts +6 -17
- package/src/sksg/__tests__/Simple.spec.tsx +8 -8
- package/cpp/skia/include/gpu/graphite/LogPriority.h +0 -36
- package/cpp/skia/include/gpu/graphite/PrecompileContext.h +0 -52
- package/cpp/skia/include/gpu/graphite/mtl/MtlGraphiteTypesUtils.h +0 -48
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","useMemo","lazy","Suspense","Platform","LoadSkiaWeb","WithSkiaWeb","getComponent","fallback","opts","componentProps","Inner","OS","console","warn","createElement"],"sources":["WithSkiaWeb.tsx"],"sourcesContent":["import type { ComponentProps, ComponentType } from \"react\";\nimport React, { useMemo, lazy, Suspense } from \"react\";\n\nimport { Platform } from \"../Platform\";\n\nimport { LoadSkiaWeb } from \"./LoadSkiaWeb\";\n\ntype NonOptionalKeys<T> = {\n [k in keyof T]-?: undefined extends T[k] ? never : k;\n}[keyof T];\n\ntype WithSkiaProps<TProps> = {\n fallback?: ComponentProps<typeof Suspense>[\"fallback\"];\n getComponent: () => Promise<{ default: ComponentType<TProps> }>;\n opts?: Parameters<typeof LoadSkiaWeb>[0];\n} & (NonOptionalKeys<TProps> extends never\n ? {\n componentProps?: TProps;\n }\n : {\n componentProps: TProps;\n });\n\nexport const WithSkiaWeb = <TProps extends object>({\n getComponent,\n fallback,\n opts,\n componentProps,\n}: WithSkiaProps<TProps>) => {\n const Inner = useMemo(\n // TODO: investigate\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (): any =>\n lazy(async () => {\n if (Platform.OS === \"web\") {\n await LoadSkiaWeb(opts);\n } else {\n console.warn(\n \"<WithSkiaWeb /> is only necessary on web. Consider not using on native.\"\n );\n }\n return getComponent();\n }),\n // We we to run this only once.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n []\n );\n return (\n <Suspense fallback={fallback ?? null}>\n <Inner {...componentProps} />\n </Suspense>\n );\n};\n"],"mappings":"AACA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,IAAI,EAAEC,QAAQ,QAAQ,OAAO;AAEtD,SAASC,QAAQ,QAAQ,aAAa;AAEtC,SAASC,WAAW,QAAQ,eAAe;AAkB3C,OAAO,MAAMC,WAAW,GAAGA,CAAwB;EACjDC,YAAY;EACZC,QAAQ;EACRC,IAAI;EACJC;AACqB,CAAC,KAAK;EAC3B,MAAMC,KAAK,GAAGV,OAAO;EACnB;EACA;EACA,mBACEC,IAAI,CAAC,YAAY;IACf,IAAIE,QAAQ,CAACQ,EAAE,KAAK,KAAK,EAAE;MACzB,MAAMP,WAAW,CAACI,IAAI,CAAC;IACzB,CAAC,MAAM;MACLI,OAAO,CAACC,IAAI,CACV,yEACF,CAAC;IACH;IACA,OAAOP,YAAY,CAAC,CAAC;EACvB,CAAC,CAAC;EACJ;EACA;EACA,EACF,CAAC;EACD,oBACEP,KAAA,CAAAe,aAAA,CAACZ,QAAQ;IAACK,QAAQ,EAAEA,QAAQ,
|
1
|
+
{"version":3,"names":["React","useMemo","lazy","Suspense","Platform","LoadSkiaWeb","WithSkiaWeb","getComponent","fallback","opts","componentProps","Inner","OS","console","warn","createElement"],"sources":["WithSkiaWeb.tsx"],"sourcesContent":["import type { ComponentProps, ComponentType } from \"react\";\nimport React, { useMemo, lazy, Suspense } from \"react\";\n\nimport { Platform } from \"../Platform\";\n\nimport { LoadSkiaWeb } from \"./LoadSkiaWeb\";\n\ntype NonOptionalKeys<T> = {\n [k in keyof T]-?: undefined extends T[k] ? never : k;\n}[keyof T];\n\ntype WithSkiaProps<TProps> = {\n fallback?: ComponentProps<typeof Suspense>[\"fallback\"];\n getComponent: () => Promise<{ default: ComponentType<TProps> }>;\n opts?: Parameters<typeof LoadSkiaWeb>[0];\n} & (NonOptionalKeys<TProps> extends never\n ? {\n componentProps?: TProps;\n }\n : {\n componentProps: TProps;\n });\n\nexport const WithSkiaWeb = <TProps extends object>({\n getComponent,\n fallback,\n opts,\n componentProps,\n}: WithSkiaProps<TProps>) => {\n const Inner = useMemo(\n // TODO: investigate\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (): any =>\n lazy(async () => {\n if (Platform.OS === \"web\") {\n await LoadSkiaWeb(opts);\n } else {\n console.warn(\n \"<WithSkiaWeb /> is only necessary on web. Consider not using on native.\"\n );\n }\n return getComponent();\n }),\n // We we to run this only once.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n []\n );\n return (\n <Suspense fallback={fallback ?? null}>\n <Inner {...componentProps} />\n </Suspense>\n );\n};\n"],"mappings":"AACA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,IAAI,EAAEC,QAAQ,QAAQ,OAAO;AAEtD,SAASC,QAAQ,QAAQ,aAAa;AAEtC,SAASC,WAAW,QAAQ,eAAe;AAkB3C,OAAO,MAAMC,WAAW,GAAGA,CAAwB;EACjDC,YAAY;EACZC,QAAQ;EACRC,IAAI;EACJC;AACqB,CAAC,KAAK;EAC3B,MAAMC,KAAK,GAAGV,OAAO;EACnB;EACA;EACA,mBACEC,IAAI,CAAC,YAAY;IACf,IAAIE,QAAQ,CAACQ,EAAE,KAAK,KAAK,EAAE;MACzB,MAAMP,WAAW,CAACI,IAAI,CAAC;IACzB,CAAC,MAAM;MACLI,OAAO,CAACC,IAAI,CACV,yEACF,CAAC;IACH;IACA,OAAOP,YAAY,CAAC,CAAC;EACvB,CAAC,CAAC;EACJ;EACA;EACA,EACF,CAAC;EACD,oBACEP,KAAA,CAAAe,aAAA,CAACZ,QAAQ;IAACK,QAAQ,EAAEA,QAAQ,aAARA,QAAQ,cAARA,QAAQ,GAAI;EAAK,gBACnCR,KAAA,CAAAe,aAAA,CAACJ,KAAK,EAAKD,cAAiB,CACpB,CAAC;AAEf,CAAC","ignoreList":[]}
|
@@ -1,11 +1,3 @@
|
|
1
1
|
export const __esModule: boolean;
|
2
|
+
export const Canvas: any;
|
2
3
|
export function useCanvasRef(): any;
|
3
|
-
export function Canvas({ debug, opaque, children, onSize, onLayout: _onLayout, ref, ...viewProps }: {
|
4
|
-
[x: string]: any;
|
5
|
-
debug: any;
|
6
|
-
opaque: any;
|
7
|
-
children: any;
|
8
|
-
onSize: any;
|
9
|
-
onLayout: any;
|
10
|
-
ref: any;
|
11
|
-
}): any;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export const __esModule: boolean;
|
2
2
|
export function isOnMainThread(): boolean;
|
3
|
-
export function drawAsPicture(element: any, bounds: any):
|
4
|
-
export function drawAsImage(element: any, size: any):
|
3
|
+
export function drawAsPicture(element: any, bounds: any): import("../../..").SkPicture;
|
4
|
+
export function drawAsImage(element: any, size: any): import("../../..").SkImage;
|
5
5
|
export function drawAsImageFromPicture(picture: any, size: any): import("../../..").SkImage;
|
@@ -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): null;
|
11
|
+
function getChildHostContext(_parentHostContext: any, _type: any, _rootContainerInstance: any): null;
|
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, _updatePayload: any, _type: any, _oldProps: any, newProps: any, _internalInstanceHandle: any, keepChildren: any, _recyclableInstance: any): {
|
30
30
|
type: any;
|
31
31
|
props: any;
|
32
32
|
children: any[];
|
@@ -44,22 +44,5 @@ 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: _react.Context<null>;
|
59
|
-
function setCurrentUpdatePriority(newPriority: any): void;
|
60
|
-
function getCurrentUpdatePriority(): number;
|
61
|
-
function resolveUpdatePriority(): number;
|
62
|
-
function resetFormInstance(): void;
|
63
47
|
}
|
64
48
|
export function debug(...args: any[]): void;
|
65
|
-
import _react = require("react");
|
@@ -0,0 +1,44 @@
|
|
1
|
+
export const __esModule: boolean;
|
2
|
+
export namespace sksgHostConfig {
|
3
|
+
let supportsMutation: boolean;
|
4
|
+
let isPrimaryRenderer: boolean;
|
5
|
+
let supportsPersistence: boolean;
|
6
|
+
let supportsHydration: boolean;
|
7
|
+
let scheduleTimeout: typeof setTimeout;
|
8
|
+
let cancelTimeout: typeof clearTimeout;
|
9
|
+
let noTimeout: number;
|
10
|
+
function appendChildToContainer(container: any, child: any): void;
|
11
|
+
function appendChild(parent: any, child: any): void;
|
12
|
+
function getRootHostContext(_rootContainerInstance: any): null;
|
13
|
+
function getChildHostContext(_parentHostContext: any, _type: any, _rootContainerInstance: any): null;
|
14
|
+
function shouldSetTextContent(_type: any, _props: any): boolean;
|
15
|
+
function createTextInstance(_text: any, _rootContainerInstance: any, _hostContext: any, _internalInstanceHandle: any): never;
|
16
|
+
function createInstance(type: any, propsWithChildren: any, _container: any, _hostContext: any, _internalInstanceHandle: any): {
|
17
|
+
type: any;
|
18
|
+
props: any;
|
19
|
+
children: never[];
|
20
|
+
};
|
21
|
+
function appendInitialChild(parentInstance: any, child: any): void;
|
22
|
+
function finalizeInitialChildren(parentInstance: any, _type: any, _props: any, _rootContainerInstance: any, _hostContext: any): boolean;
|
23
|
+
function commitMount(): void;
|
24
|
+
function prepareForCommit(_containerInfo: any): null;
|
25
|
+
function resetAfterCommit(container: any): void;
|
26
|
+
function getPublicInstance(node: any): any;
|
27
|
+
function prepareUpdate(_instance: any, type: any, oldProps: any, newProps: any, rootContainerInstance: any, _hostContext: any): any;
|
28
|
+
function commitUpdate(instance: any, _updatePayload: any, type: any, prevProps: any, nextProps: any, _internalHandle: any): void;
|
29
|
+
function commitTextUpdate(_textInstance: any, _oldText: any, _newText: any): void;
|
30
|
+
function clearContainer(container: any): void;
|
31
|
+
function preparePortalMount(): void;
|
32
|
+
function removeChild(parent: any, child: any): void;
|
33
|
+
function removeChildFromContainer(container: any, child: any): void;
|
34
|
+
function insertInContainerBefore(container: any, child: any, before: any): void;
|
35
|
+
function insertBefore(parent: any, child: any, before: any): void;
|
36
|
+
function getCurrentEventPriority(): number;
|
37
|
+
function beforeActiveInstanceBlur(): void;
|
38
|
+
function afterActiveInstanceBlur(): void;
|
39
|
+
function detachDeletedInstance(): void;
|
40
|
+
function getInstanceFromNode(_node: any): null;
|
41
|
+
function prepareScopeUpdate(_scopeInstance: any, _instance: any): void;
|
42
|
+
function getInstanceFromScope(_scopeInstance: any): null;
|
43
|
+
}
|
44
|
+
export function debug(...args: any[]): void;
|
@@ -7,8 +7,6 @@ export class SkiaSGRoot {
|
|
7
7
|
mapperId: any;
|
8
8
|
Skia: any;
|
9
9
|
nativeId: any;
|
10
|
-
root: any;
|
11
|
-
_root: any;
|
12
10
|
unmount(): void;
|
13
11
|
unmounted: boolean | undefined;
|
14
12
|
drawOnCanvas(canvas: any): void;
|
@@ -21,8 +19,6 @@ export class SkiaSGRoot {
|
|
21
19
|
mapperId: any;
|
22
20
|
Skia: any;
|
23
21
|
nativeId: any;
|
24
|
-
root: any;
|
25
|
-
_root: any;
|
26
22
|
unmount(): void;
|
27
23
|
unmounted: boolean | undefined;
|
28
24
|
drawOnCanvas(canvas: any): void;
|
@@ -35,8 +31,6 @@ export class SkiaSGRoot {
|
|
35
31
|
} | undefined;
|
36
32
|
Skia: any;
|
37
33
|
nativeId: any;
|
38
|
-
root: any;
|
39
|
-
_root: any;
|
40
34
|
unmount(): void;
|
41
35
|
unmounted: boolean | undefined;
|
42
36
|
drawOnCanvas(canvas: any): void;
|
@@ -48,9 +42,8 @@ export class SkiaSGRoot {
|
|
48
42
|
children: any;
|
49
43
|
isDeclaration: boolean;
|
50
44
|
};
|
51
|
-
|
52
|
-
render(element: any): Promise<void>;
|
45
|
+
render(element: any): void;
|
53
46
|
drawOnCanvas(canvas: any): void;
|
54
47
|
getPicture(): any;
|
55
|
-
unmount():
|
48
|
+
unmount(): void;
|
56
49
|
}
|
@@ -1,11 +1,3 @@
|
|
1
1
|
export function useCanvasRef(): React.MutableRefObject<null>;
|
2
|
-
export
|
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>;
|
2
|
+
export const Canvas: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
11
3
|
import React from "react";
|
@@ -1,4 +1,4 @@
|
|
1
1
|
export function isOnMainThread(): boolean;
|
2
|
-
export function drawAsPicture(element: any, bounds: any):
|
3
|
-
export function drawAsImage(element: any, size: any):
|
2
|
+
export function drawAsPicture(element: any, bounds: any): import("../../..").SkPicture;
|
3
|
+
export function drawAsImage(element: any, size: any): 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;
|
4
3
|
surface: any;
|
5
4
|
source: any;
|
6
|
-
toImage():
|
5
|
+
toImage(): any;
|
6
|
+
image: any;
|
7
7
|
}
|
8
8
|
import { CanvasKitWebGLBuffer } from "../types";
|
@@ -1,6 +1,5 @@
|
|
1
1
|
export class JsiSkCanvas extends HostObject {
|
2
2
|
constructor(CanvasKit: any, ref: any);
|
3
|
-
dispose: () => void;
|
4
3
|
drawRect(rect: any, paint: any): void;
|
5
4
|
drawImage(image: any, x: any, y: any, paint: any): void;
|
6
5
|
drawImageRect(img: any, src: any, dest: any, paint: any, fastSample: any): void;
|
@@ -4,7 +4,6 @@ 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;
|
8
7
|
}
|
9
8
|
import { HostObject } from "./Host";
|
10
9
|
import { JsiSkPoint } from "./JsiSkPoint";
|
@@ -14,7 +14,6 @@ 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;
|
18
17
|
makeNonTextureImage(): JsiSkImage;
|
19
18
|
getNativeTextureUnstable(): null;
|
20
19
|
}
|
@@ -2,7 +2,6 @@ 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;
|
6
5
|
concat(matrix: any): this;
|
7
6
|
translate(x: any, y: any): this;
|
8
7
|
postTranslate(x: any, y: any): this;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
export class JsiSkPath extends HostObject {
|
2
2
|
constructor(CanvasKit: any, ref: any);
|
3
|
-
dispose: () => void;
|
4
3
|
addPath(src: any, matrix: any, extend?: boolean): this;
|
5
4
|
addArc(oval: any, startAngleInDegrees: any, sweepAngleInDegrees: any): this;
|
6
5
|
addOval(oval: any, isCCW: any, startIndex: any): this;
|
@@ -1,13 +1,12 @@
|
|
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;
|
6
4
|
ImageFactory: any;
|
7
5
|
videoElement: any;
|
8
6
|
duration(): number;
|
9
7
|
framerate(): void;
|
10
8
|
setSurface(surface: any): void;
|
9
|
+
webglBuffer: CanvasKitWebGLBufferImpl | undefined;
|
11
10
|
nextImage(): any;
|
12
11
|
seek(time: any): void;
|
13
12
|
rotation(): number;
|
@@ -20,3 +19,4 @@ export class JsiVideo {
|
|
20
19
|
setVolume(volume: any): void;
|
21
20
|
dispose(): void;
|
22
21
|
}
|
22
|
+
import { CanvasKitWebGLBufferImpl } from "./CanvasKitWebGLBufferImpl";
|
@@ -1,25 +1,30 @@
|
|
1
1
|
export class Container {
|
2
2
|
constructor(Skia: any, nativeId: any);
|
3
|
-
_root: any[];
|
4
|
-
recording: null;
|
5
|
-
unmounted: boolean;
|
6
3
|
Skia: any;
|
7
4
|
nativeId: any;
|
8
|
-
set root(value: any[]);
|
9
|
-
get root(): any[];
|
10
5
|
unmount(): void;
|
6
|
+
unmounted: boolean | undefined;
|
11
7
|
drawOnCanvas(canvas: any): void;
|
12
8
|
}
|
13
9
|
export function createContainer(Skia: any, nativeId: any): StaticContainer | ReanimatedContainer | NativeReanimatedContainer;
|
14
10
|
declare class StaticContainer extends Container {
|
15
11
|
redraw(): void;
|
12
|
+
recording: {
|
13
|
+
commands: any;
|
14
|
+
paintPool: never[];
|
15
|
+
animationValues: any;
|
16
|
+
} | undefined;
|
16
17
|
}
|
17
18
|
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;
|
20
25
|
}
|
21
26
|
declare class NativeReanimatedContainer extends Container {
|
22
|
-
mapperId: null;
|
23
27
|
redraw(): void;
|
28
|
+
mapperId: any;
|
24
29
|
}
|
25
30
|
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): null;
|
11
|
+
function getChildHostContext(_parentHostContext: any, _type: any, _rootContainerInstance: any): null;
|
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, _updatePayload: any, _type: any, _oldProps: any, newProps: any, _internalInstanceHandle: any, keepChildren: any, _recyclableInstance: any): {
|
30
30
|
type: any;
|
31
31
|
props: any;
|
32
32
|
children: any[];
|
@@ -44,20 +44,4 @@ 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;
|
63
47
|
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
export function debug(...args: any[]): void;
|
2
|
+
export namespace sksgHostConfig {
|
3
|
+
let supportsMutation: boolean;
|
4
|
+
let isPrimaryRenderer: boolean;
|
5
|
+
let supportsPersistence: boolean;
|
6
|
+
let supportsHydration: boolean;
|
7
|
+
let scheduleTimeout: typeof setTimeout;
|
8
|
+
let cancelTimeout: typeof clearTimeout;
|
9
|
+
let noTimeout: number;
|
10
|
+
function appendChildToContainer(container: any, child: any): void;
|
11
|
+
function appendChild(parent: any, child: any): void;
|
12
|
+
function getRootHostContext(_rootContainerInstance: any): null;
|
13
|
+
function getChildHostContext(_parentHostContext: any, _type: any, _rootContainerInstance: any): null;
|
14
|
+
function shouldSetTextContent(_type: any, _props: any): boolean;
|
15
|
+
function createTextInstance(_text: any, _rootContainerInstance: any, _hostContext: any, _internalInstanceHandle: any): never;
|
16
|
+
function createInstance(type: any, propsWithChildren: any, _container: any, _hostContext: any, _internalInstanceHandle: any): {
|
17
|
+
type: any;
|
18
|
+
props: any;
|
19
|
+
children: never[];
|
20
|
+
};
|
21
|
+
function appendInitialChild(parentInstance: any, child: any): void;
|
22
|
+
function finalizeInitialChildren(parentInstance: any, _type: any, _props: any, _rootContainerInstance: any, _hostContext: any): boolean;
|
23
|
+
function commitMount(): void;
|
24
|
+
function prepareForCommit(_containerInfo: any): null;
|
25
|
+
function resetAfterCommit(container: any): void;
|
26
|
+
function getPublicInstance(node: any): any;
|
27
|
+
function prepareUpdate(_instance: any, type: any, oldProps: any, newProps: any, rootContainerInstance: any, _hostContext: any): any;
|
28
|
+
function commitUpdate(instance: any, _updatePayload: any, type: any, prevProps: any, nextProps: any, _internalHandle: any): void;
|
29
|
+
function commitTextUpdate(_textInstance: any, _oldText: any, _newText: any): void;
|
30
|
+
function clearContainer(container: any): void;
|
31
|
+
function preparePortalMount(): void;
|
32
|
+
function removeChild(parent: any, child: any): void;
|
33
|
+
function removeChildFromContainer(container: any, child: any): void;
|
34
|
+
function insertInContainerBefore(container: any, child: any, before: any): void;
|
35
|
+
function insertBefore(parent: any, child: any, before: any): void;
|
36
|
+
function getCurrentEventPriority(): number;
|
37
|
+
function beforeActiveInstanceBlur(): void;
|
38
|
+
function afterActiveInstanceBlur(): void;
|
39
|
+
function detachDeletedInstance(): void;
|
40
|
+
function getInstanceFromNode(_node: any): null;
|
41
|
+
function prepareScopeUpdate(_scopeInstance: any, _instance: any): void;
|
42
|
+
function getInstanceFromScope(_scopeInstance: any): null;
|
43
|
+
}
|