@shopify/react-native-skia 0.1.229 → 0.1.231
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 +1 -0
- package/android/cpp/jni/JniLoad.cpp +0 -2
- package/android/cpp/rnskia-android/SkiaOpenGLSurfaceFactory.cpp +2 -2
- package/android/src/main/java/com/shopify/reactnative/skia/RNSkiaModule.java +0 -1
- package/android/src/main/java/com/shopify/reactnative/skia/RNSkiaPackage.java +1 -2
- package/android/src/main/java/com/shopify/reactnative/skia/SkiaBaseView.java +7 -12
- package/android/src/main/java/com/shopify/reactnative/skia/SkiaDomView.java +1 -1
- package/android/src/main/java/com/shopify/reactnative/skia/SkiaPictureView.java +1 -1
- package/cpp/api/JsiSkAnimatedImage.h +1 -1
- package/cpp/api/JsiSkApi.h +4 -1
- package/cpp/api/JsiSkDataFactory.h +6 -6
- package/cpp/api/JsiSkImage.h +4 -4
- package/cpp/api/JsiSkParagraph.h +15 -0
- package/cpp/api/JsiSkParagraphBuilder.h +3 -32
- package/cpp/api/JsiSkParagraphBuilderFactory.h +54 -0
- package/cpp/api/JsiSkPath.h +1 -1
- package/cpp/api/JsiSkRRect.h +30 -3
- package/cpp/api/third_party/base64.cpp +153 -0
- package/cpp/api/third_party/base64.h +50 -0
- package/cpp/jsi/JsiPromises.h +1 -1
- package/cpp/rnskia/RNSkJsiViewApi.h +0 -52
- package/cpp/rnskia/RNSkManager.cpp +0 -6
- package/cpp/rnskia/RNSkView.h +2 -91
- package/cpp/rnskia/dom/JsiDomApi.h +0 -9
- package/cpp/rnskia/dom/props/FontProp.h +4 -1
- package/cpp/rnskia/dom/props/RRectProp.h +50 -0
- package/ios/RNSkia-iOS/SkiaMetalSurfaceFactory.mm +1 -1
- package/lib/commonjs/animation/index.d.ts +0 -3
- package/lib/commonjs/animation/index.js +0 -39
- package/lib/commonjs/animation/index.js.map +1 -1
- package/lib/commonjs/dom/nodes/JsiSkDOM.d.ts +3 -3
- package/lib/commonjs/dom/nodes/JsiSkDOM.js +0 -6
- package/lib/commonjs/dom/nodes/JsiSkDOM.js.map +1 -1
- package/lib/commonjs/dom/nodes/Node.d.ts +0 -3
- package/lib/commonjs/dom/nodes/Node.js +0 -5
- package/lib/commonjs/dom/nodes/Node.js.map +1 -1
- package/lib/commonjs/dom/nodes/datatypes/Rect.d.ts +1 -1
- package/lib/commonjs/dom/nodes/drawings/RRectNode.d.ts +3 -3
- package/lib/commonjs/dom/nodes/drawings/RRectNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/index.d.ts +0 -1
- package/lib/commonjs/dom/nodes/drawings/index.js +0 -13
- package/lib/commonjs/dom/nodes/drawings/index.js.map +1 -1
- package/lib/commonjs/dom/types/Common.d.ts +2 -2
- package/lib/commonjs/dom/types/Common.js.map +1 -1
- package/lib/commonjs/dom/types/Drawings.d.ts +0 -4
- package/lib/commonjs/dom/types/Drawings.js.map +1 -1
- package/lib/commonjs/dom/types/NodeType.d.ts +0 -1
- package/lib/commonjs/dom/types/NodeType.js +0 -1
- package/lib/commonjs/dom/types/NodeType.js.map +1 -1
- package/lib/commonjs/dom/types/SkDOM.d.ts +1 -2
- package/lib/commonjs/dom/types/SkDOM.js.map +1 -1
- package/lib/commonjs/headless/index.d.ts +3 -1
- package/lib/commonjs/headless/index.js +12 -6
- package/lib/commonjs/headless/index.js.map +1 -1
- package/lib/commonjs/index.d.ts +0 -1
- package/lib/commonjs/index.js +0 -14
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/mock/index.js +0 -4
- package/lib/commonjs/mock/index.js.map +1 -1
- package/lib/commonjs/renderer/Canvas.js +2 -21
- package/lib/commonjs/renderer/Canvas.js.map +1 -1
- package/lib/commonjs/renderer/Container.d.ts +1 -3
- package/lib/commonjs/renderer/Container.js +4 -6
- package/lib/commonjs/renderer/Container.js.map +1 -1
- package/lib/commonjs/renderer/HostComponents.d.ts +1 -6
- package/lib/commonjs/renderer/HostComponents.js +0 -3
- package/lib/commonjs/renderer/HostComponents.js.map +1 -1
- package/lib/commonjs/renderer/HostConfig.js +2 -23
- package/lib/commonjs/renderer/HostConfig.js.map +1 -1
- package/lib/commonjs/renderer/Reconciler.d.ts +1 -5
- package/lib/commonjs/renderer/Reconciler.js +3 -18
- package/lib/commonjs/renderer/Reconciler.js.map +1 -1
- package/lib/commonjs/renderer/components/index.d.ts +0 -1
- package/lib/commonjs/renderer/components/index.js +0 -13
- package/lib/commonjs/renderer/components/index.js.map +1 -1
- package/lib/commonjs/renderer/index.d.ts +0 -1
- package/lib/commonjs/renderer/index.js +0 -13
- package/lib/commonjs/renderer/index.js.map +1 -1
- package/lib/commonjs/renderer/processors/Animations/Animations.d.ts +1 -8
- package/lib/commonjs/renderer/processors/Animations/Animations.js +0 -44
- package/lib/commonjs/renderer/processors/Animations/Animations.js.map +1 -1
- package/lib/commonjs/skia/types/Canvas.d.ts +4 -4
- package/lib/commonjs/skia/types/Canvas.js.map +1 -1
- package/lib/commonjs/skia/types/Paragraph/Paragraph.d.ts +23 -0
- package/lib/commonjs/skia/types/Paragraph/Paragraph.js.map +1 -1
- package/lib/commonjs/skia/types/Path/Path.d.ts +2 -2
- package/lib/commonjs/skia/types/Path/Path.js.map +1 -1
- package/lib/commonjs/skia/types/RRect.d.ts +9 -0
- package/lib/commonjs/skia/types/RRect.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkCanvas.d.ts +4 -4
- package/lib/commonjs/skia/web/JsiSkCanvas.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkParagraph.d.ts +3 -0
- package/lib/commonjs/skia/web/JsiSkParagraph.js +12 -0
- package/lib/commonjs/skia/web/JsiSkParagraph.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.js +5 -2
- package/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkPath.d.ts +2 -2
- package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkRRect.d.ts +2 -2
- package/lib/commonjs/skia/web/JsiSkRRect.js +4 -0
- package/lib/commonjs/skia/web/JsiSkRRect.js.map +1 -1
- package/lib/commonjs/views/SkiaBaseWebView.d.ts +0 -7
- package/lib/commonjs/views/SkiaBaseWebView.js +0 -17
- package/lib/commonjs/views/SkiaBaseWebView.js.map +1 -1
- package/lib/commonjs/views/SkiaDomView.d.ts +0 -7
- package/lib/commonjs/views/SkiaDomView.js +3 -14
- package/lib/commonjs/views/SkiaDomView.js.map +1 -1
- package/lib/commonjs/views/SkiaDomView.web.js +4 -14
- package/lib/commonjs/views/SkiaDomView.web.js.map +1 -1
- package/lib/commonjs/views/SkiaPictureView.d.ts +0 -7
- package/lib/commonjs/views/SkiaPictureView.js +3 -14
- package/lib/commonjs/views/SkiaPictureView.js.map +1 -1
- package/lib/commonjs/views/SkiaViewNativeId.d.ts +3 -0
- package/lib/commonjs/views/SkiaViewNativeId.js +11 -0
- package/lib/commonjs/views/SkiaViewNativeId.js.map +1 -0
- package/lib/commonjs/views/index.d.ts +0 -2
- package/lib/commonjs/views/index.js +0 -26
- package/lib/commonjs/views/index.js.map +1 -1
- package/lib/commonjs/views/types.d.ts +2 -15
- package/lib/commonjs/views/types.js.map +1 -1
- package/lib/module/animation/index.d.ts +0 -3
- package/lib/module/animation/index.js +0 -3
- package/lib/module/animation/index.js.map +1 -1
- package/lib/module/dom/nodes/JsiSkDOM.d.ts +3 -3
- package/lib/module/dom/nodes/JsiSkDOM.js +1 -7
- package/lib/module/dom/nodes/JsiSkDOM.js.map +1 -1
- package/lib/module/dom/nodes/Node.d.ts +0 -3
- package/lib/module/dom/nodes/Node.js +0 -5
- package/lib/module/dom/nodes/Node.js.map +1 -1
- package/lib/module/dom/nodes/datatypes/Rect.d.ts +1 -1
- package/lib/module/dom/nodes/drawings/RRectNode.d.ts +3 -3
- package/lib/module/dom/nodes/drawings/RRectNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/index.d.ts +0 -1
- package/lib/module/dom/nodes/drawings/index.js +0 -1
- package/lib/module/dom/nodes/drawings/index.js.map +1 -1
- package/lib/module/dom/types/Common.d.ts +2 -2
- package/lib/module/dom/types/Common.js.map +1 -1
- package/lib/module/dom/types/Drawings.d.ts +0 -4
- package/lib/module/dom/types/Drawings.js.map +1 -1
- package/lib/module/dom/types/NodeType.d.ts +0 -1
- package/lib/module/dom/types/NodeType.js +0 -1
- package/lib/module/dom/types/NodeType.js.map +1 -1
- package/lib/module/dom/types/SkDOM.d.ts +1 -2
- package/lib/module/dom/types/SkDOM.js.map +1 -1
- package/lib/module/headless/index.d.ts +3 -1
- package/lib/module/headless/index.js +5 -3
- package/lib/module/headless/index.js.map +1 -1
- package/lib/module/index.d.ts +0 -1
- package/lib/module/index.js +0 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/mock/index.js +1 -4
- package/lib/module/mock/index.js.map +1 -1
- package/lib/module/renderer/Canvas.js +2 -20
- package/lib/module/renderer/Canvas.js.map +1 -1
- package/lib/module/renderer/Container.d.ts +1 -3
- package/lib/module/renderer/Container.js +4 -6
- package/lib/module/renderer/Container.js.map +1 -1
- package/lib/module/renderer/HostComponents.d.ts +1 -6
- package/lib/module/renderer/HostComponents.js +0 -3
- package/lib/module/renderer/HostComponents.js.map +1 -1
- package/lib/module/renderer/HostConfig.js +3 -23
- package/lib/module/renderer/HostConfig.js.map +1 -1
- package/lib/module/renderer/Reconciler.d.ts +1 -5
- package/lib/module/renderer/Reconciler.js +3 -16
- package/lib/module/renderer/Reconciler.js.map +1 -1
- package/lib/module/renderer/components/index.d.ts +0 -1
- package/lib/module/renderer/components/index.js +0 -1
- package/lib/module/renderer/components/index.js.map +1 -1
- package/lib/module/renderer/index.d.ts +0 -1
- package/lib/module/renderer/index.js +0 -1
- package/lib/module/renderer/index.js.map +1 -1
- package/lib/module/renderer/processors/Animations/Animations.d.ts +1 -8
- package/lib/module/renderer/processors/Animations/Animations.js +0 -28
- package/lib/module/renderer/processors/Animations/Animations.js.map +1 -1
- package/lib/module/skia/types/Canvas.d.ts +4 -4
- package/lib/module/skia/types/Canvas.js.map +1 -1
- package/lib/module/skia/types/Paragraph/Paragraph.d.ts +23 -0
- package/lib/module/skia/types/Paragraph/Paragraph.js.map +1 -1
- package/lib/module/skia/types/Path/Path.d.ts +2 -2
- package/lib/module/skia/types/Path/Path.js.map +1 -1
- package/lib/module/skia/types/RRect.d.ts +9 -0
- package/lib/module/skia/types/RRect.js.map +1 -1
- package/lib/module/skia/web/JsiSkCanvas.d.ts +4 -4
- package/lib/module/skia/web/JsiSkCanvas.js.map +1 -1
- package/lib/module/skia/web/JsiSkParagraph.d.ts +3 -0
- package/lib/module/skia/web/JsiSkParagraph.js +12 -0
- package/lib/module/skia/web/JsiSkParagraph.js.map +1 -1
- package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js +5 -2
- package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkPath.d.ts +2 -2
- package/lib/module/skia/web/JsiSkPath.js.map +1 -1
- package/lib/module/skia/web/JsiSkRRect.d.ts +2 -2
- package/lib/module/skia/web/JsiSkRRect.js +4 -0
- package/lib/module/skia/web/JsiSkRRect.js.map +1 -1
- package/lib/module/views/SkiaBaseWebView.d.ts +0 -7
- package/lib/module/views/SkiaBaseWebView.js +0 -17
- package/lib/module/views/SkiaBaseWebView.js.map +1 -1
- package/lib/module/views/SkiaDomView.d.ts +0 -7
- package/lib/module/views/SkiaDomView.js +2 -13
- package/lib/module/views/SkiaDomView.js.map +1 -1
- package/lib/module/views/SkiaDomView.web.js +4 -13
- package/lib/module/views/SkiaDomView.web.js.map +1 -1
- package/lib/module/views/SkiaPictureView.d.ts +0 -7
- package/lib/module/views/SkiaPictureView.js +2 -13
- package/lib/module/views/SkiaPictureView.js.map +1 -1
- package/lib/module/views/SkiaViewNativeId.d.ts +3 -0
- package/lib/module/views/SkiaViewNativeId.js +4 -0
- package/lib/module/views/SkiaViewNativeId.js.map +1 -0
- package/lib/module/views/index.d.ts +0 -2
- package/lib/module/views/index.js +0 -2
- package/lib/module/views/index.js.map +1 -1
- package/lib/module/views/types.d.ts +2 -15
- package/lib/module/views/types.js.map +1 -1
- package/lib/typescript/src/animation/index.d.ts +0 -3
- package/lib/typescript/src/dom/nodes/JsiSkDOM.d.ts +3 -3
- package/lib/typescript/src/dom/nodes/Node.d.ts +0 -3
- package/lib/typescript/src/dom/nodes/datatypes/Rect.d.ts +1 -1
- package/lib/typescript/src/dom/nodes/drawings/RRectNode.d.ts +3 -3
- package/lib/typescript/src/dom/nodes/drawings/index.d.ts +0 -1
- package/lib/typescript/src/dom/types/Common.d.ts +2 -2
- package/lib/typescript/src/dom/types/Drawings.d.ts +0 -4
- package/lib/typescript/src/dom/types/NodeType.d.ts +0 -1
- package/lib/typescript/src/dom/types/SkDOM.d.ts +1 -2
- package/lib/typescript/src/headless/index.d.ts +3 -1
- package/lib/typescript/src/index.d.ts +0 -1
- package/lib/typescript/src/renderer/Container.d.ts +1 -3
- package/lib/typescript/src/renderer/HostComponents.d.ts +1 -6
- package/lib/typescript/src/renderer/Reconciler.d.ts +1 -5
- package/lib/typescript/src/renderer/components/index.d.ts +0 -1
- package/lib/typescript/src/renderer/index.d.ts +0 -1
- package/lib/typescript/src/renderer/processors/Animations/Animations.d.ts +1 -8
- package/lib/typescript/src/skia/types/Canvas.d.ts +4 -4
- package/lib/typescript/src/skia/types/Paragraph/Paragraph.d.ts +23 -0
- package/lib/typescript/src/skia/types/Path/Path.d.ts +2 -2
- package/lib/typescript/src/skia/types/RRect.d.ts +9 -0
- package/lib/typescript/src/skia/web/JsiSkCanvas.d.ts +4 -4
- package/lib/typescript/src/skia/web/JsiSkParagraph.d.ts +3 -0
- package/lib/typescript/src/skia/web/JsiSkPath.d.ts +2 -2
- package/lib/typescript/src/skia/web/JsiSkRRect.d.ts +2 -2
- package/lib/typescript/src/views/SkiaBaseWebView.d.ts +0 -7
- package/lib/typescript/src/views/SkiaDomView.d.ts +0 -7
- package/lib/typescript/src/views/SkiaPictureView.d.ts +0 -7
- package/lib/typescript/src/views/SkiaViewNativeId.d.ts +3 -0
- package/lib/typescript/src/views/index.d.ts +0 -2
- package/lib/typescript/src/views/types.d.ts +2 -15
- package/libs/android/arm64-v8a/libskia.a +0 -0
- package/libs/android/armeabi-v7a/libskia.a +0 -0
- package/libs/android/x86/libskia.a +0 -0
- package/libs/android/x86_64/libskia.a +0 -0
- package/libs/ios/libskia.xcframework/ios-arm64_arm64e/libskia.a +0 -0
- package/libs/ios/libskia.xcframework/ios-arm64_arm64e_x86_64-simulator/libskia.a +0 -0
- package/libs/ios/libskottie.xcframework/Info.plist +5 -5
- package/libs/ios/libskottie.xcframework/ios-arm64_arm64e/libskottie.a +0 -0
- package/libs/ios/libskottie.xcframework/ios-arm64_arm64e_x86_64-simulator/libskottie.a +0 -0
- package/libs/ios/libskparagraph.xcframework/ios-arm64_arm64e/libskparagraph.a +0 -0
- package/libs/ios/libskparagraph.xcframework/ios-arm64_arm64e_x86_64-simulator/libskparagraph.a +0 -0
- package/libs/ios/libsksg.xcframework/ios-arm64_arm64e/libsksg.a +0 -0
- package/libs/ios/libsksg.xcframework/ios-arm64_arm64e_x86_64-simulator/libsksg.a +0 -0
- package/libs/ios/libskshaper.xcframework/Info.plist +5 -5
- package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e/libskshaper.a +0 -0
- package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e_x86_64-simulator/libskshaper.a +0 -0
- package/libs/ios/libskunicode.xcframework/ios-arm64_arm64e/libskunicode.a +0 -0
- package/libs/ios/libskunicode.xcframework/ios-arm64_arm64e_x86_64-simulator/libskunicode.a +0 -0
- package/libs/ios/libsvg.xcframework/Info.plist +5 -5
- 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 +1 -1
- package/src/animation/index.ts +0 -3
- package/src/dom/nodes/JsiSkDOM.ts +0 -12
- package/src/dom/nodes/Node.ts +0 -5
- package/src/dom/nodes/drawings/RRectNode.ts +2 -2
- package/src/dom/nodes/drawings/index.ts +0 -1
- package/src/dom/types/Common.ts +2 -1
- package/src/dom/types/Drawings.ts +0 -5
- package/src/dom/types/NodeType.ts +0 -1
- package/src/dom/types/SkDOM.ts +0 -4
- package/src/headless/index.ts +7 -3
- package/src/index.ts +0 -1
- package/src/mock/index.ts +0 -3
- package/src/renderer/Canvas.tsx +3 -21
- package/src/renderer/Container.tsx +1 -4
- package/src/renderer/HostComponents.ts +0 -13
- package/src/renderer/HostConfig.ts +3 -24
- package/src/renderer/Reconciler.tsx +1 -19
- package/src/renderer/components/index.ts +0 -1
- package/src/renderer/index.ts +0 -1
- package/src/renderer/processors/Animations/Animations.ts +1 -51
- package/src/skia/types/Canvas.ts +4 -4
- package/src/skia/types/Paragraph/Paragraph.ts +25 -0
- package/src/skia/types/Path/Path.ts +2 -2
- package/src/skia/types/RRect.ts +11 -0
- package/src/skia/web/JsiSkCanvas.ts +4 -4
- package/src/skia/web/JsiSkParagraph.ts +11 -0
- package/src/skia/web/JsiSkParagraphBuilderFactory.ts +9 -3
- package/src/skia/web/JsiSkPath.ts +2 -2
- package/src/skia/web/JsiSkRRect.ts +23 -2
- package/src/views/SkiaBaseWebView.tsx +0 -19
- package/src/views/SkiaDomView.tsx +1 -13
- package/src/views/SkiaDomView.web.tsx +1 -6
- package/src/views/SkiaPictureView.tsx +1 -13
- package/src/views/SkiaViewNativeId.ts +1 -0
- package/src/views/index.ts +0 -2
- package/src/views/types.ts +2 -26
- package/android/src/main/java/com/shopify/reactnative/skia/SkiaDrawView.java +0 -44
- package/android/src/main/java/com/shopify/reactnative/skia/SkiaDrawViewManager.java +0 -34
- package/cpp/rnskia/RNSkAnimation.h +0 -65
- package/cpp/rnskia/RNSkValueApi.h +0 -72
- package/cpp/rnskia/dom/base/JsiDependencyManager.h +0 -297
- package/cpp/rnskia/dom/nodes/JsiCustomDrawingNode.h +0 -127
- package/cpp/rnskia/dom/props/DrawingProp.h +0 -35
- package/cpp/rnskia/values/RNSkClockValue.h +0 -140
- package/cpp/rnskia/values/RNSkComputedValue.h +0 -104
- package/cpp/rnskia/values/RNSkReadonlyValue.h +0 -166
- package/cpp/rnskia/values/RNSkValue.h +0 -116
- package/ios/RNSkia-iOS/SkiaDrawView.h +0 -7
- package/ios/RNSkia-iOS/SkiaDrawView.mm +0 -72
- package/ios/RNSkia-iOS/SkiaDrawViewManager.h +0 -7
- package/ios/RNSkia-iOS/SkiaDrawViewManager.mm +0 -50
- package/lib/commonjs/animation/decay/decay.d.ts +0 -2
- package/lib/commonjs/animation/decay/decay.js +0 -42
- package/lib/commonjs/animation/decay/decay.js.map +0 -1
- package/lib/commonjs/animation/decay/index.d.ts +0 -1
- package/lib/commonjs/animation/decay/index.js +0 -14
- package/lib/commonjs/animation/decay/index.js.map +0 -1
- package/lib/commonjs/animation/decay/runDecay.d.ts +0 -10
- package/lib/commonjs/animation/decay/runDecay.js +0 -48
- package/lib/commonjs/animation/decay/runDecay.js.map +0 -1
- package/lib/commonjs/animation/decay/types.d.ts +0 -21
- package/lib/commonjs/animation/decay/types.js +0 -6
- package/lib/commonjs/animation/decay/types.js.map +0 -1
- package/lib/commonjs/animation/spring/Spring.d.ts +0 -65
- package/lib/commonjs/animation/spring/Spring.js +0 -77
- package/lib/commonjs/animation/spring/Spring.js.map +0 -1
- package/lib/commonjs/animation/spring/functions/index.d.ts +0 -1
- package/lib/commonjs/animation/spring/functions/index.js +0 -14
- package/lib/commonjs/animation/spring/functions/index.js.map +0 -1
- package/lib/commonjs/animation/spring/functions/spring.d.ts +0 -10
- package/lib/commonjs/animation/spring/functions/spring.js +0 -94
- package/lib/commonjs/animation/spring/functions/spring.js.map +0 -1
- package/lib/commonjs/animation/spring/index.d.ts +0 -3
- package/lib/commonjs/animation/spring/index.js +0 -30
- package/lib/commonjs/animation/spring/index.js.map +0 -1
- package/lib/commonjs/animation/spring/runSpring.d.ts +0 -19
- package/lib/commonjs/animation/spring/runSpring.js +0 -35
- package/lib/commonjs/animation/spring/runSpring.js.map +0 -1
- package/lib/commonjs/animation/spring/types.d.ts +0 -6
- package/lib/commonjs/animation/spring/types.js +0 -2
- package/lib/commonjs/animation/spring/types.js.map +0 -1
- package/lib/commonjs/animation/spring/useSpring.d.ts +0 -13
- package/lib/commonjs/animation/spring/useSpring.js +0 -27
- package/lib/commonjs/animation/spring/useSpring.js.map +0 -1
- package/lib/commonjs/animation/timing/Easing.d.ts +0 -19
- package/lib/commonjs/animation/timing/Easing.js +0 -108
- package/lib/commonjs/animation/timing/Easing.js.map +0 -1
- package/lib/commonjs/animation/timing/createTiming.d.ts +0 -17
- package/lib/commonjs/animation/timing/createTiming.js +0 -55
- package/lib/commonjs/animation/timing/createTiming.js.map +0 -1
- package/lib/commonjs/animation/timing/functions/bezier.d.ts +0 -1
- package/lib/commonjs/animation/timing/functions/bezier.js +0 -147
- package/lib/commonjs/animation/timing/functions/bezier.js.map +0 -1
- package/lib/commonjs/animation/timing/functions/getResolvedParams.d.ts +0 -7
- package/lib/commonjs/animation/timing/functions/getResolvedParams.js +0 -52
- package/lib/commonjs/animation/timing/functions/getResolvedParams.js.map +0 -1
- package/lib/commonjs/animation/timing/functions/index.d.ts +0 -4
- package/lib/commonjs/animation/timing/functions/index.js +0 -54
- package/lib/commonjs/animation/timing/functions/index.js.map +0 -1
- package/lib/commonjs/animation/timing/functions/timing.d.ts +0 -17
- package/lib/commonjs/animation/timing/functions/timing.js +0 -50
- package/lib/commonjs/animation/timing/functions/timing.js.map +0 -1
- package/lib/commonjs/animation/timing/functions/types.d.ts +0 -7
- package/lib/commonjs/animation/timing/functions/types.js +0 -2
- package/lib/commonjs/animation/timing/functions/types.js.map +0 -1
- package/lib/commonjs/animation/timing/index.d.ts +0 -4
- package/lib/commonjs/animation/timing/index.js +0 -38
- package/lib/commonjs/animation/timing/index.js.map +0 -1
- package/lib/commonjs/animation/timing/runTiming.d.ts +0 -19
- package/lib/commonjs/animation/timing/runTiming.js +0 -36
- package/lib/commonjs/animation/timing/runTiming.js.map +0 -1
- package/lib/commonjs/animation/timing/useLoop.d.ts +0 -11
- package/lib/commonjs/animation/timing/useLoop.js +0 -25
- package/lib/commonjs/animation/timing/useLoop.js.map +0 -1
- package/lib/commonjs/animation/timing/useTiming.d.ts +0 -13
- package/lib/commonjs/animation/timing/useTiming.js +0 -67
- package/lib/commonjs/animation/timing/useTiming.js.map +0 -1
- package/lib/commonjs/dom/nodes/drawings/CustomDrawingNode.d.ts +0 -8
- package/lib/commonjs/dom/nodes/drawings/CustomDrawingNode.js +0 -28
- package/lib/commonjs/dom/nodes/drawings/CustomDrawingNode.js.map +0 -1
- package/lib/commonjs/renderer/DependencyManager.d.ts +0 -46
- package/lib/commonjs/renderer/DependencyManager.js +0 -185
- package/lib/commonjs/renderer/DependencyManager.js.map +0 -1
- package/lib/commonjs/renderer/components/Drawing.d.ts +0 -8
- package/lib/commonjs/renderer/components/Drawing.js +0 -22
- package/lib/commonjs/renderer/components/Drawing.js.map +0 -1
- package/lib/commonjs/specs/SkiaDrawViewNativeComponent.d.ts +0 -8
- package/lib/commonjs/specs/SkiaDrawViewNativeComponent.js +0 -16
- package/lib/commonjs/specs/SkiaDrawViewNativeComponent.js.map +0 -1
- package/lib/commonjs/values/api.d.ts +0 -26
- package/lib/commonjs/values/api.js +0 -55
- package/lib/commonjs/values/api.js.map +0 -1
- package/lib/commonjs/values/api.web.d.ts +0 -2
- package/lib/commonjs/values/api.web.js +0 -18
- package/lib/commonjs/values/api.web.js.map +0 -1
- package/lib/commonjs/values/hooks/index.d.ts +0 -4
- package/lib/commonjs/values/hooks/index.js +0 -58
- package/lib/commonjs/values/hooks/index.js.map +0 -1
- package/lib/commonjs/values/hooks/useClockValue.d.ts +0 -9
- package/lib/commonjs/values/hooks/useClockValue.js +0 -30
- package/lib/commonjs/values/hooks/useClockValue.js.map +0 -1
- package/lib/commonjs/values/hooks/useComputedValue.d.ts +0 -11
- package/lib/commonjs/values/hooks/useComputedValue.js +0 -32
- package/lib/commonjs/values/hooks/useComputedValue.js.map +0 -1
- package/lib/commonjs/values/hooks/useValue.d.ts +0 -10
- package/lib/commonjs/values/hooks/useValue.js +0 -26
- package/lib/commonjs/values/hooks/useValue.js.map +0 -1
- package/lib/commonjs/values/hooks/useValueEffect.d.ts +0 -10
- package/lib/commonjs/values/hooks/useValueEffect.js +0 -25
- package/lib/commonjs/values/hooks/useValueEffect.js.map +0 -1
- package/lib/commonjs/values/index.d.ts +0 -4
- package/lib/commonjs/values/index.js +0 -58
- package/lib/commonjs/values/index.js.map +0 -1
- package/lib/commonjs/values/selector.d.ts +0 -14
- package/lib/commonjs/values/selector.js +0 -24
- package/lib/commonjs/values/selector.js.map +0 -1
- package/lib/commonjs/values/types.d.ts +0 -63
- package/lib/commonjs/values/types.js +0 -2
- package/lib/commonjs/values/types.js.map +0 -1
- package/lib/commonjs/values/web/RNSkAnimation.d.ts +0 -9
- package/lib/commonjs/values/web/RNSkAnimation.js +0 -46
- package/lib/commonjs/values/web/RNSkAnimation.js.map +0 -1
- package/lib/commonjs/values/web/RNSkClockValue.d.ts +0 -13
- package/lib/commonjs/values/web/RNSkClockValue.js +0 -75
- package/lib/commonjs/values/web/RNSkClockValue.js.map +0 -1
- package/lib/commonjs/values/web/RNSkComputedValue.d.ts +0 -10
- package/lib/commonjs/values/web/RNSkComputedValue.js +0 -59
- package/lib/commonjs/values/web/RNSkComputedValue.js.map +0 -1
- package/lib/commonjs/values/web/RNSkReadonlyValue.d.ts +0 -12
- package/lib/commonjs/values/web/RNSkReadonlyValue.js +0 -51
- package/lib/commonjs/values/web/RNSkReadonlyValue.js.map +0 -1
- package/lib/commonjs/values/web/RNSkValue.d.ts +0 -14
- package/lib/commonjs/values/web/RNSkValue.js +0 -73
- package/lib/commonjs/values/web/RNSkValue.js.map +0 -1
- package/lib/commonjs/values/web/api.d.ts +0 -2
- package/lib/commonjs/values/web/api.js +0 -31
- package/lib/commonjs/values/web/api.js.map +0 -1
- package/lib/commonjs/values/web/index.d.ts +0 -1
- package/lib/commonjs/values/web/index.js +0 -19
- package/lib/commonjs/values/web/index.js.map +0 -1
- package/lib/commonjs/views/SkiaView.d.ts +0 -35
- package/lib/commonjs/views/SkiaView.js +0 -139
- package/lib/commonjs/views/SkiaView.js.map +0 -1
- package/lib/commonjs/views/SkiaView.web.d.ts +0 -7
- package/lib/commonjs/views/SkiaView.web.js +0 -30
- package/lib/commonjs/views/SkiaView.web.js.map +0 -1
- package/lib/commonjs/views/useDrawCallback.d.ts +0 -8
- package/lib/commonjs/views/useDrawCallback.js +0 -23
- package/lib/commonjs/views/useDrawCallback.js.map +0 -1
- package/lib/module/animation/decay/decay.d.ts +0 -2
- package/lib/module/animation/decay/decay.js +0 -33
- package/lib/module/animation/decay/decay.js.map +0 -1
- package/lib/module/animation/decay/index.d.ts +0 -1
- package/lib/module/animation/decay/index.js +0 -2
- package/lib/module/animation/decay/index.js.map +0 -1
- package/lib/module/animation/decay/runDecay.d.ts +0 -10
- package/lib/module/animation/decay/runDecay.js +0 -38
- package/lib/module/animation/decay/runDecay.js.map +0 -1
- package/lib/module/animation/decay/types.d.ts +0 -21
- package/lib/module/animation/decay/types.js +0 -2
- package/lib/module/animation/decay/types.js.map +0 -1
- package/lib/module/animation/spring/Spring.d.ts +0 -65
- package/lib/module/animation/spring/Spring.js +0 -69
- package/lib/module/animation/spring/Spring.js.map +0 -1
- package/lib/module/animation/spring/functions/index.d.ts +0 -1
- package/lib/module/animation/spring/functions/index.js +0 -2
- package/lib/module/animation/spring/functions/index.js.map +0 -1
- package/lib/module/animation/spring/functions/spring.d.ts +0 -10
- package/lib/module/animation/spring/functions/spring.js +0 -85
- package/lib/module/animation/spring/functions/spring.js.map +0 -1
- package/lib/module/animation/spring/index.d.ts +0 -3
- package/lib/module/animation/spring/index.js +0 -4
- package/lib/module/animation/spring/index.js.map +0 -1
- package/lib/module/animation/spring/runSpring.d.ts +0 -19
- package/lib/module/animation/spring/runSpring.js +0 -24
- package/lib/module/animation/spring/runSpring.js.map +0 -1
- package/lib/module/animation/spring/types.d.ts +0 -6
- package/lib/module/animation/spring/types.js +0 -2
- package/lib/module/animation/spring/types.js.map +0 -1
- package/lib/module/animation/spring/useSpring.d.ts +0 -13
- package/lib/module/animation/spring/useSpring.js +0 -16
- package/lib/module/animation/spring/useSpring.js.map +0 -1
- package/lib/module/animation/timing/Easing.d.ts +0 -19
- package/lib/module/animation/timing/Easing.js +0 -98
- package/lib/module/animation/timing/Easing.js.map +0 -1
- package/lib/module/animation/timing/createTiming.d.ts +0 -17
- package/lib/module/animation/timing/createTiming.js +0 -49
- package/lib/module/animation/timing/createTiming.js.map +0 -1
- package/lib/module/animation/timing/functions/bezier.d.ts +0 -1
- package/lib/module/animation/timing/functions/bezier.js +0 -141
- package/lib/module/animation/timing/functions/bezier.js.map +0 -1
- package/lib/module/animation/timing/functions/getResolvedParams.d.ts +0 -7
- package/lib/module/animation/timing/functions/getResolvedParams.js +0 -48
- package/lib/module/animation/timing/functions/getResolvedParams.js.map +0 -1
- package/lib/module/animation/timing/functions/index.d.ts +0 -4
- package/lib/module/animation/timing/functions/index.js +0 -5
- package/lib/module/animation/timing/functions/index.js.map +0 -1
- package/lib/module/animation/timing/functions/timing.d.ts +0 -17
- package/lib/module/animation/timing/functions/timing.js +0 -41
- package/lib/module/animation/timing/functions/timing.js.map +0 -1
- package/lib/module/animation/timing/functions/types.d.ts +0 -7
- package/lib/module/animation/timing/functions/types.js +0 -2
- package/lib/module/animation/timing/functions/types.js.map +0 -1
- package/lib/module/animation/timing/index.d.ts +0 -4
- package/lib/module/animation/timing/index.js +0 -5
- package/lib/module/animation/timing/index.js.map +0 -1
- package/lib/module/animation/timing/runTiming.d.ts +0 -19
- package/lib/module/animation/timing/runTiming.js +0 -26
- package/lib/module/animation/timing/runTiming.js.map +0 -1
- package/lib/module/animation/timing/useLoop.d.ts +0 -11
- package/lib/module/animation/timing/useLoop.js +0 -16
- package/lib/module/animation/timing/useLoop.js.map +0 -1
- package/lib/module/animation/timing/useTiming.d.ts +0 -13
- package/lib/module/animation/timing/useTiming.js +0 -57
- package/lib/module/animation/timing/useTiming.js.map +0 -1
- package/lib/module/dom/nodes/drawings/CustomDrawingNode.d.ts +0 -8
- package/lib/module/dom/nodes/drawings/CustomDrawingNode.js +0 -17
- package/lib/module/dom/nodes/drawings/CustomDrawingNode.js.map +0 -1
- package/lib/module/renderer/DependencyManager.d.ts +0 -46
- package/lib/module/renderer/DependencyManager.js +0 -174
- package/lib/module/renderer/DependencyManager.js.map +0 -1
- package/lib/module/renderer/components/Drawing.d.ts +0 -8
- package/lib/module/renderer/components/Drawing.js +0 -11
- package/lib/module/renderer/components/Drawing.js.map +0 -1
- package/lib/module/specs/SkiaDrawViewNativeComponent.d.ts +0 -8
- package/lib/module/specs/SkiaDrawViewNativeComponent.js +0 -4
- package/lib/module/specs/SkiaDrawViewNativeComponent.js.map +0 -1
- package/lib/module/values/api.d.ts +0 -26
- package/lib/module/values/api.js +0 -48
- package/lib/module/values/api.js.map +0 -1
- package/lib/module/values/api.web.d.ts +0 -2
- package/lib/module/values/api.web.js +0 -7
- package/lib/module/values/api.web.js.map +0 -1
- package/lib/module/values/hooks/index.d.ts +0 -4
- package/lib/module/values/hooks/index.js +0 -5
- package/lib/module/values/hooks/index.js.map +0 -1
- package/lib/module/values/hooks/useClockValue.d.ts +0 -9
- package/lib/module/values/hooks/useClockValue.js +0 -20
- package/lib/module/values/hooks/useClockValue.js.map +0 -1
- package/lib/module/values/hooks/useComputedValue.d.ts +0 -11
- package/lib/module/values/hooks/useComputedValue.js +0 -21
- package/lib/module/values/hooks/useComputedValue.js.map +0 -1
- package/lib/module/values/hooks/useValue.d.ts +0 -10
- package/lib/module/values/hooks/useValue.js +0 -16
- package/lib/module/values/hooks/useValue.js.map +0 -1
- package/lib/module/values/hooks/useValueEffect.d.ts +0 -10
- package/lib/module/values/hooks/useValueEffect.js +0 -16
- package/lib/module/values/hooks/useValueEffect.js.map +0 -1
- package/lib/module/values/index.d.ts +0 -4
- package/lib/module/values/index.js +0 -5
- package/lib/module/values/index.js.map +0 -1
- package/lib/module/values/selector.d.ts +0 -14
- package/lib/module/values/selector.js +0 -15
- package/lib/module/values/selector.js.map +0 -1
- package/lib/module/values/types.d.ts +0 -63
- package/lib/module/values/types.js +0 -2
- package/lib/module/values/types.js.map +0 -1
- package/lib/module/values/web/RNSkAnimation.d.ts +0 -9
- package/lib/module/values/web/RNSkAnimation.js +0 -36
- package/lib/module/values/web/RNSkAnimation.js.map +0 -1
- package/lib/module/values/web/RNSkClockValue.d.ts +0 -13
- package/lib/module/values/web/RNSkClockValue.js +0 -65
- package/lib/module/values/web/RNSkClockValue.js.map +0 -1
- package/lib/module/values/web/RNSkComputedValue.d.ts +0 -10
- package/lib/module/values/web/RNSkComputedValue.js +0 -49
- package/lib/module/values/web/RNSkComputedValue.js.map +0 -1
- package/lib/module/values/web/RNSkReadonlyValue.d.ts +0 -12
- package/lib/module/values/web/RNSkReadonlyValue.js +0 -42
- package/lib/module/values/web/RNSkReadonlyValue.js.map +0 -1
- package/lib/module/values/web/RNSkValue.d.ts +0 -14
- package/lib/module/values/web/RNSkValue.js +0 -63
- package/lib/module/values/web/RNSkValue.js.map +0 -1
- package/lib/module/values/web/api.d.ts +0 -2
- package/lib/module/values/web/api.js +0 -19
- package/lib/module/values/web/api.js.map +0 -1
- package/lib/module/values/web/index.d.ts +0 -1
- package/lib/module/values/web/index.js +0 -2
- package/lib/module/values/web/index.js.map +0 -1
- package/lib/module/views/SkiaView.d.ts +0 -35
- package/lib/module/views/SkiaView.js +0 -119
- package/lib/module/views/SkiaView.js.map +0 -1
- package/lib/module/views/SkiaView.web.d.ts +0 -7
- package/lib/module/views/SkiaView.web.js +0 -20
- package/lib/module/views/SkiaView.web.js.map +0 -1
- package/lib/module/views/useDrawCallback.d.ts +0 -8
- package/lib/module/views/useDrawCallback.js +0 -14
- package/lib/module/views/useDrawCallback.js.map +0 -1
- package/lib/typescript/src/animation/decay/decay.d.ts +0 -2
- package/lib/typescript/src/animation/decay/index.d.ts +0 -1
- package/lib/typescript/src/animation/decay/runDecay.d.ts +0 -10
- package/lib/typescript/src/animation/decay/types.d.ts +0 -21
- package/lib/typescript/src/animation/spring/Spring.d.ts +0 -65
- package/lib/typescript/src/animation/spring/functions/index.d.ts +0 -1
- package/lib/typescript/src/animation/spring/functions/spring.d.ts +0 -10
- package/lib/typescript/src/animation/spring/index.d.ts +0 -3
- package/lib/typescript/src/animation/spring/runSpring.d.ts +0 -19
- package/lib/typescript/src/animation/spring/types.d.ts +0 -6
- package/lib/typescript/src/animation/spring/useSpring.d.ts +0 -13
- package/lib/typescript/src/animation/timing/Easing.d.ts +0 -19
- package/lib/typescript/src/animation/timing/createTiming.d.ts +0 -17
- package/lib/typescript/src/animation/timing/functions/bezier.d.ts +0 -1
- package/lib/typescript/src/animation/timing/functions/getResolvedParams.d.ts +0 -7
- package/lib/typescript/src/animation/timing/functions/index.d.ts +0 -4
- package/lib/typescript/src/animation/timing/functions/timing.d.ts +0 -17
- package/lib/typescript/src/animation/timing/functions/types.d.ts +0 -7
- package/lib/typescript/src/animation/timing/index.d.ts +0 -4
- package/lib/typescript/src/animation/timing/runTiming.d.ts +0 -19
- package/lib/typescript/src/animation/timing/useLoop.d.ts +0 -11
- package/lib/typescript/src/animation/timing/useTiming.d.ts +0 -13
- package/lib/typescript/src/dom/nodes/drawings/CustomDrawingNode.d.ts +0 -8
- package/lib/typescript/src/renderer/DependencyManager.d.ts +0 -46
- package/lib/typescript/src/renderer/components/Drawing.d.ts +0 -8
- package/lib/typescript/src/specs/SkiaDrawViewNativeComponent.d.ts +0 -8
- package/lib/typescript/src/values/api.d.ts +0 -26
- package/lib/typescript/src/values/api.web.d.ts +0 -2
- package/lib/typescript/src/values/hooks/index.d.ts +0 -4
- package/lib/typescript/src/values/hooks/useClockValue.d.ts +0 -9
- package/lib/typescript/src/values/hooks/useComputedValue.d.ts +0 -11
- package/lib/typescript/src/values/hooks/useValue.d.ts +0 -10
- package/lib/typescript/src/values/hooks/useValueEffect.d.ts +0 -10
- package/lib/typescript/src/values/index.d.ts +0 -4
- package/lib/typescript/src/values/selector.d.ts +0 -14
- package/lib/typescript/src/values/types.d.ts +0 -63
- package/lib/typescript/src/values/web/RNSkAnimation.d.ts +0 -9
- package/lib/typescript/src/values/web/RNSkClockValue.d.ts +0 -13
- package/lib/typescript/src/values/web/RNSkComputedValue.d.ts +0 -10
- package/lib/typescript/src/values/web/RNSkReadonlyValue.d.ts +0 -12
- package/lib/typescript/src/values/web/RNSkValue.d.ts +0 -14
- package/lib/typescript/src/values/web/api.d.ts +0 -2
- package/lib/typescript/src/values/web/index.d.ts +0 -1
- package/lib/typescript/src/views/SkiaView.d.ts +0 -35
- package/lib/typescript/src/views/SkiaView.web.d.ts +0 -7
- package/lib/typescript/src/views/useDrawCallback.d.ts +0 -8
- package/src/animation/decay/decay.ts +0 -35
- package/src/animation/decay/index.ts +0 -1
- package/src/animation/decay/runDecay.ts +0 -40
- package/src/animation/decay/types.ts +0 -24
- package/src/animation/spring/Spring.ts +0 -61
- package/src/animation/spring/functions/index.ts +0 -1
- package/src/animation/spring/functions/spring.ts +0 -86
- package/src/animation/spring/index.ts +0 -3
- package/src/animation/spring/runSpring.ts +0 -40
- package/src/animation/spring/types.ts +0 -6
- package/src/animation/spring/useSpring.ts +0 -31
- package/src/animation/timing/Easing.ts +0 -102
- package/src/animation/timing/createTiming.ts +0 -62
- package/src/animation/timing/functions/bezier.ts +0 -165
- package/src/animation/timing/functions/getResolvedParams.ts +0 -50
- package/src/animation/timing/functions/index.ts +0 -4
- package/src/animation/timing/functions/timing.ts +0 -44
- package/src/animation/timing/functions/types.ts +0 -8
- package/src/animation/timing/index.ts +0 -4
- package/src/animation/timing/runTiming.ts +0 -36
- package/src/animation/timing/useLoop.ts +0 -21
- package/src/animation/timing/useTiming.ts +0 -71
- package/src/dom/nodes/drawings/CustomDrawingNode.ts +0 -21
- package/src/renderer/DependencyManager.tsx +0 -196
- package/src/renderer/components/Drawing.tsx +0 -12
- package/src/specs/SkiaDrawViewNativeComponent.ts +0 -10
- package/src/values/api.ts +0 -61
- package/src/values/api.web.ts +0 -5
- package/src/values/hooks/index.ts +0 -4
- package/src/values/hooks/useClockValue.ts +0 -21
- package/src/values/hooks/useComputedValue.ts +0 -24
- package/src/values/hooks/useValue.ts +0 -17
- package/src/values/hooks/useValueEffect.ts +0 -18
- package/src/values/index.ts +0 -4
- package/src/values/selector.ts +0 -24
- package/src/values/types.ts +0 -73
- package/src/values/web/RNSkAnimation.ts +0 -33
- package/src/values/web/RNSkClockValue.ts +0 -58
- package/src/values/web/RNSkComputedValue.ts +0 -49
- package/src/values/web/RNSkReadonlyValue.ts +0 -38
- package/src/values/web/RNSkValue.ts +0 -57
- package/src/values/web/api.ts +0 -33
- package/src/values/web/index.ts +0 -1
- package/src/views/SkiaView.tsx +0 -111
- package/src/views/SkiaView.web.tsx +0 -22
- package/src/views/useDrawCallback.ts +0 -19
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["useMemo","useDrawCallback","callback","deps"],"sources":["useDrawCallback.ts"],"sourcesContent":["import type { DependencyList } from \"react\";\nimport { useMemo } from \"react\";\n\nimport type { RNSkiaDrawCallback } from \"./types\";\n\n/**\n * Creates a memoized callback for the onDraw handler of a Skia component.\n * @param callback The callback to memoize.\n * @param deps Dependencies for the callback.\n * */\nexport const useDrawCallback = (\n callback: RNSkiaDrawCallback,\n deps: DependencyList = []\n) => {\n return useMemo(() => {\n return callback;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, deps);\n};\n"],"mappings":"AACA,SAASA,OAAT,QAAwB,OAAxB;;AAIA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,eAAe,GAAG,UAC7BC,QAD6B,EAG1B;EAAA,IADHC,IACG,uEADoB,EACpB;EACH,OAAOH,OAAO,CAAC,MAAM;IACnB,OAAOE,QAAP,CADmB,CAEnB;EACD,CAHa,EAGXC,IAHW,CAAd;AAID,CARM"}
|
@@ -1 +0,0 @@
|
|
1
|
-
export { runDecay } from "./runDecay";
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import type { SkiaMutableValue } from "../../values/types";
|
2
|
-
import type { DecayConfig } from "./types";
|
3
|
-
/**
|
4
|
-
* Runs a decay animation from the current value to zero with the given decay
|
5
|
-
* configuration.
|
6
|
-
* @param value value to animate
|
7
|
-
* @param config Configuration or default configuration
|
8
|
-
* @returns Animation
|
9
|
-
*/
|
10
|
-
export declare const runDecay: (value: SkiaMutableValue<number>, config?: DecayConfig) => import("../../values/types").SkiaAnimation;
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import type { AnimationState } from "../../values/types";
|
2
|
-
export interface DecayConfig {
|
3
|
-
from?: number;
|
4
|
-
deceleration?: number;
|
5
|
-
velocityFactor?: number;
|
6
|
-
clamp?: number[];
|
7
|
-
velocity?: number;
|
8
|
-
}
|
9
|
-
export interface DefaultDecayConfig {
|
10
|
-
from: number;
|
11
|
-
deceleration: number;
|
12
|
-
velocityFactor: number;
|
13
|
-
clamp?: number[];
|
14
|
-
velocity: number;
|
15
|
-
}
|
16
|
-
export interface DecayState extends AnimationState {
|
17
|
-
lastTimestamp: number;
|
18
|
-
startTimestamp: number;
|
19
|
-
initialVelocity: number;
|
20
|
-
velocity: number;
|
21
|
-
}
|
@@ -1,65 +0,0 @@
|
|
1
|
-
import type { SpringConfig } from "./types";
|
2
|
-
export declare const Spring: {
|
3
|
-
Config: {
|
4
|
-
Gentle: {
|
5
|
-
mass: number;
|
6
|
-
stiffness: number;
|
7
|
-
damping: number;
|
8
|
-
velocity: number;
|
9
|
-
};
|
10
|
-
Wobbly: {
|
11
|
-
mass: number;
|
12
|
-
stiffness: number;
|
13
|
-
damping: number;
|
14
|
-
velocity: number;
|
15
|
-
};
|
16
|
-
WobblySlow: {
|
17
|
-
mass: number;
|
18
|
-
stiffness: number;
|
19
|
-
damping: number;
|
20
|
-
velocity: number;
|
21
|
-
};
|
22
|
-
Stiff: {
|
23
|
-
mass: number;
|
24
|
-
stiffness: number;
|
25
|
-
damping: number;
|
26
|
-
velocity: number;
|
27
|
-
};
|
28
|
-
Default: {
|
29
|
-
mass: number;
|
30
|
-
stiffness: number;
|
31
|
-
damping: number;
|
32
|
-
velocity: number;
|
33
|
-
};
|
34
|
-
};
|
35
|
-
Gentle: (config?: SpringConfig) => {
|
36
|
-
mass: number;
|
37
|
-
stiffness: number;
|
38
|
-
velocity: number;
|
39
|
-
damping: number;
|
40
|
-
};
|
41
|
-
Wobbly: (config?: SpringConfig) => {
|
42
|
-
mass: number;
|
43
|
-
stiffness: number;
|
44
|
-
velocity: number;
|
45
|
-
damping: number;
|
46
|
-
};
|
47
|
-
WobblySlow: (config?: SpringConfig) => {
|
48
|
-
mass: number;
|
49
|
-
stiffness: number;
|
50
|
-
velocity: number;
|
51
|
-
damping: number;
|
52
|
-
};
|
53
|
-
Stiff: (config?: SpringConfig) => {
|
54
|
-
mass: number;
|
55
|
-
stiffness: number;
|
56
|
-
velocity: number;
|
57
|
-
damping: number;
|
58
|
-
};
|
59
|
-
Default: (config?: SpringConfig) => {
|
60
|
-
mass: number;
|
61
|
-
stiffness: number;
|
62
|
-
velocity: number;
|
63
|
-
damping: number;
|
64
|
-
};
|
65
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
export { createSpringEasing } from "./spring";
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import type { SpringConfig } from "../types";
|
2
|
-
import type { TimingConfig } from "../../types";
|
3
|
-
/**
|
4
|
-
* @description Returns a cached jsContext function for a spring with duration
|
5
|
-
* @param mass The mass of the spring
|
6
|
-
* @param stiffness The stiffness of the spring
|
7
|
-
* @param damping Spring damping
|
8
|
-
* @param velocity The initial velocity
|
9
|
-
*/
|
10
|
-
export declare const createSpringEasing: (params: Partial<SpringConfig>) => TimingConfig;
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import type { SkiaMutableValue, SkiaAnimation } from "../../values/types";
|
2
|
-
import type { AnimationParams, SpringConfig, AnimationCallback } from "../types";
|
3
|
-
/**
|
4
|
-
* @deprecated Use Reanimated 3 for animations:
|
5
|
-
* https://shopify.github.io/react-native-skia/docs/animations/animations
|
6
|
-
*
|
7
|
-
* Creates a new animation on an existing value that will be driven by
|
8
|
-
* an animation value. The value will be run from / to the value in
|
9
|
-
* params and modified by the provided easing curve for the length of
|
10
|
-
* the duration. When the value has reached its desired "to" value the
|
11
|
-
* animation will be stopped.
|
12
|
-
*
|
13
|
-
* @param value The value to animate
|
14
|
-
* @param toOrParams To value or Animation parameters
|
15
|
-
* @param config Spring configuration
|
16
|
-
* @returns an animation value that can be used to start/stop
|
17
|
-
* the animation.
|
18
|
-
*/
|
19
|
-
export declare const runSpring: (value: SkiaMutableValue<number>, toOrParams: number | AnimationParams, config?: SpringConfig, callback?: AnimationCallback) => SkiaAnimation;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import type { SkiaValue } from "../../values/types";
|
2
|
-
import type { SpringConfig, AnimationParams, AnimationCallback } from "../types";
|
3
|
-
/**
|
4
|
-
* @deprecated Use Reanimated 3 for animations:
|
5
|
-
* https://shopify.github.io/react-native-skia/docs/animations/animations
|
6
|
-
*
|
7
|
-
* Creats a spring based animation value that will run whenever
|
8
|
-
* the animation parameters change.
|
9
|
-
* @param toOrParams
|
10
|
-
* @param config
|
11
|
-
* @returns
|
12
|
-
*/
|
13
|
-
export declare const useSpring: (toOrParams: number | AnimationParams, config?: SpringConfig, callback?: AnimationCallback) => SkiaValue<number>;
|
@@ -1,19 +0,0 @@
|
|
1
|
-
export declare class Easing {
|
2
|
-
static step0(n: number): number;
|
3
|
-
static step1(n: number): number;
|
4
|
-
static linear(t: number): number;
|
5
|
-
static ease(t: number): number;
|
6
|
-
static quad(t: number): number;
|
7
|
-
static cubic(t: number): number;
|
8
|
-
static poly(n: number): (t: number) => number;
|
9
|
-
static sin(t: number): number;
|
10
|
-
static circle(t: number): number;
|
11
|
-
static exp(t: number): number;
|
12
|
-
static elastic(bounciness?: number): (t: number) => number;
|
13
|
-
static back(s?: number): (t: number) => number;
|
14
|
-
static bounce(t: number): number;
|
15
|
-
static bezier(x1: number, y1: number, x2: number, y2: number): (t: number) => number;
|
16
|
-
static in(easing: (t: number) => number): (t: number) => number;
|
17
|
-
static out(easing: (t: number) => number): (t: number) => number;
|
18
|
-
static inOut(easing: (t: number) => number): (t: number) => number;
|
19
|
-
}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import type { TimingConfig, RequiredAnimationParams, AnimationCallback } from "../types";
|
2
|
-
import type { SkiaMutableValue } from "../../values/types";
|
3
|
-
/**
|
4
|
-
* Creates an animation that is driven by a clock value.
|
5
|
-
* The value will be run from / to the value in params and modified
|
6
|
-
* by the provided easing curve for the length of the duration. When
|
7
|
-
* the value has reached its desired "to" value the animation
|
8
|
-
* will be stopped. If loop is set to true, the animation will continue
|
9
|
-
* to run until stopped.
|
10
|
-
*
|
11
|
-
* @param params Animation parameters
|
12
|
-
* @param config Spring or timing configuration
|
13
|
-
* @param value Optional value that the animation will update
|
14
|
-
* @params an animation value that can be used to start/stop
|
15
|
-
* the animation.
|
16
|
-
*/
|
17
|
-
export declare const createTiming: (params: RequiredAnimationParams & Required<TimingConfig>, value?: SkiaMutableValue<number>, callback?: AnimationCallback) => import("../../values/types").SkiaAnimation;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare function bezier(mX1: number, mY1: number, mX2: number, mY2: number): (x: number) => number;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import type { RequiredAnimationParams, AnimationParams, TimingConfig } from "../../types";
|
2
|
-
/**
|
3
|
-
* Resolves parameters from optional values to a single object
|
4
|
-
* @param toOrParams Params or to value
|
5
|
-
* @param config timing/spring configuration
|
6
|
-
*/
|
7
|
-
export declare const getResolvedParams: (toOrParams: number | AnimationParams, config?: TimingConfig) => RequiredAnimationParams & Required<TimingConfig>;
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import type { AnimationState } from "../../../values/types";
|
2
|
-
/**
|
3
|
-
* Calculates and returns a timing value based on the
|
4
|
-
* input parameters. The timing value is a number between
|
5
|
-
* 0 and 1.
|
6
|
-
* @param t
|
7
|
-
* @param duration
|
8
|
-
* @param easing
|
9
|
-
* @param loop
|
10
|
-
* @param yoyo
|
11
|
-
* @param onStop
|
12
|
-
* @returns
|
13
|
-
*/
|
14
|
-
export declare const timing: (t: number, duration: number, easing: (t: number) => number, loop: boolean, yoyo: boolean, state: AnimationState) => {
|
15
|
-
current: number;
|
16
|
-
finished: boolean;
|
17
|
-
};
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import type { SkiaMutableValue, SkiaAnimation } from "../../values/types";
|
2
|
-
import type { AnimationParams, TimingConfig, AnimationCallback } from "../types";
|
3
|
-
/**
|
4
|
-
* @deprecated Use Reanimated 3 for animations:
|
5
|
-
* https://shopify.github.io/react-native-skia/docs/animations/animations
|
6
|
-
*
|
7
|
-
* Creates a new animation on an existing value that will be driven by
|
8
|
-
* an animation value. The value will be run from / to the value in
|
9
|
-
* params and modified by the provided easing curve for the length of
|
10
|
-
* the duration. When the value has reached its desired "to" value the
|
11
|
-
* animation will be stopped.
|
12
|
-
*
|
13
|
-
* @param value The value to animate
|
14
|
-
* @param toOrParams To value or Animation parameters
|
15
|
-
* @param config Spring or timing configuration
|
16
|
-
* @returns an animation value that can be used to start/stop
|
17
|
-
* the animation.
|
18
|
-
*/
|
19
|
-
export declare const runTiming: (value: SkiaMutableValue<number>, toOrParams: number | AnimationParams, config?: TimingConfig, callback?: AnimationCallback) => SkiaAnimation;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import type { TimingConfig } from "../types";
|
2
|
-
/**
|
3
|
-
* @deprecated Use Reanimated 3 for animations:
|
4
|
-
* https://shopify.github.io/react-native-skia/docs/animations/animations
|
5
|
-
*
|
6
|
-
* Configures a looped timing value. The value will go back and forth
|
7
|
-
* between 0 and 1 and back.
|
8
|
-
* @param config Timing configuration for easing and duration
|
9
|
-
* @returns A value that can be used for further animations
|
10
|
-
*/
|
11
|
-
export declare const useLoop: (config?: TimingConfig) => import("../..").SkiaValue<number>;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import type { SkiaValue } from "../../values/types";
|
2
|
-
import type { AnimationParams, TimingConfig, AnimationCallback } from "../types";
|
3
|
-
/**
|
4
|
-
* @deprecated Use Reanimated 3 for animations:
|
5
|
-
* https://shopify.github.io/react-native-skia/docs/animations/animations
|
6
|
-
*
|
7
|
-
* Creats an animation value that will run whenever
|
8
|
-
* the animation parameters change. The animation start immediately.
|
9
|
-
* @param toOrParams
|
10
|
-
* @param config
|
11
|
-
* @returns A value that is animated
|
12
|
-
*/
|
13
|
-
export declare const useTiming: (toOrParams: number | AnimationParams, config?: TimingConfig, callback?: AnimationCallback) => SkiaValue<number>;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import type { CustomDrawingNodeProps, DrawingContext } from "../../types";
|
2
|
-
import { JsiDrawingNode } from "../DrawingNode";
|
3
|
-
import type { NodeContext } from "../Node";
|
4
|
-
export declare class CustomDrawingNode extends JsiDrawingNode<CustomDrawingNodeProps, null> {
|
5
|
-
constructor(ctx: NodeContext, props: CustomDrawingNodeProps);
|
6
|
-
deriveProps(): null;
|
7
|
-
draw(ctx: DrawingContext): void;
|
8
|
-
}
|
@@ -1,46 +0,0 @@
|
|
1
|
-
import type { Node } from "../dom/types";
|
2
|
-
import type { SkiaValue } from "../values";
|
3
|
-
import type { AnimatedProps } from "./processors";
|
4
|
-
type Unsubscribe = () => void;
|
5
|
-
type Mutator = (value: unknown) => void;
|
6
|
-
type SubscriptionState = {
|
7
|
-
nodes: Map<Node<unknown>, Mutator[]>;
|
8
|
-
unsubscribe: null | Unsubscribe;
|
9
|
-
};
|
10
|
-
export declare class DependencyManager {
|
11
|
-
registerValues: (values: Array<SkiaValue<unknown>>) => () => void;
|
12
|
-
subscriptions: Map<SkiaValue<unknown>, SubscriptionState>;
|
13
|
-
unregisterDependantValues: null | Unsubscribe;
|
14
|
-
constructor(registerValues: (values: Array<SkiaValue<unknown>>) => () => void);
|
15
|
-
/**
|
16
|
-
* Call to unsubscribe all value listeners from the given node based
|
17
|
-
* on the current list of subscriptions for the node. This function
|
18
|
-
* is typically called when the node is unmounted or when one or more
|
19
|
-
* properties have changed.
|
20
|
-
* @param node Node to unsubscribe value listeners from
|
21
|
-
*/
|
22
|
-
unsubscribeNode(node: Node<unknown>): void;
|
23
|
-
/**
|
24
|
-
* Adds listeners to the provided values so that the node is notified
|
25
|
-
* when a value changes. This is done in an optimized way so that this
|
26
|
-
* class only needs to listen to the value once and then forwards the
|
27
|
-
* change to the node and its listener. This method is typically called
|
28
|
-
* when the node is mounted and when one or more props on the node changes.
|
29
|
-
* @param node Node to subscribe to value changes for
|
30
|
-
* @param props Node's properties
|
31
|
-
*/
|
32
|
-
subscribeNode<P>(node: Node<unknown>, props: AnimatedProps<P>): void;
|
33
|
-
/**
|
34
|
-
* Called when the hosting container is mounted or updated. This ensures that we have
|
35
|
-
* a ref to the underlying SkiaView so that we can registers redraw listeners
|
36
|
-
* on values used in the current View automatically.
|
37
|
-
*/
|
38
|
-
update(): void;
|
39
|
-
/**
|
40
|
-
* Called when the hosting container is unmounted or recreated. This ensures that we remove
|
41
|
-
* all subscriptions to Skia values so that we don't have any listeners left after
|
42
|
-
* the component is removed.
|
43
|
-
*/
|
44
|
-
remove(): void;
|
45
|
-
}
|
46
|
-
export {};
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import type { CustomDrawingNodeProps } from "../../dom/types";
|
3
|
-
/**
|
4
|
-
* @deprecated If you are looking to use the Skia imperative API, you can use:
|
5
|
-
* The picture API: https://shopify.github.io/react-native-skia/docs/shapes/pictures/
|
6
|
-
* The offscreen API: https://shopify.github.io/react-native-skia/docs/animations/textures
|
7
|
-
*/
|
8
|
-
export declare const Drawing: (props: CustomDrawingNodeProps) => React.JSX.Element;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/// <reference types="react-native/types/modules/Codegen" />
|
2
|
-
import type { ViewProps } from "react-native";
|
3
|
-
export interface NativeProps extends ViewProps {
|
4
|
-
mode: string;
|
5
|
-
debug?: boolean;
|
6
|
-
}
|
7
|
-
declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
|
8
|
-
export default _default;
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import type { AnimationState, ISkiaValueApi, SkiaAnimation, SkiaClockValue, SkiaMutableValue, SkiaValue } from "./types";
|
2
|
-
declare global {
|
3
|
-
var SkiaValueApi: ISkiaValueApi;
|
4
|
-
}
|
5
|
-
export declare const ValueApi: {
|
6
|
-
/**
|
7
|
-
* @deprecated Use Reanimated 3
|
8
|
-
* for animating Skia: https://shopify.github.io/react-native-skia/docs/animations/animations
|
9
|
-
*/
|
10
|
-
createValue<T>(initialValue: T): SkiaMutableValue<T>;
|
11
|
-
/**
|
12
|
-
* @deprecated Use Reanimated 3
|
13
|
-
* for animating Skia: https://shopify.github.io/react-native-skia/docs/animations/animations
|
14
|
-
*/
|
15
|
-
createComputedValue<R>(cb: () => R, values: SkiaValue<unknown>[]): SkiaValue<R>;
|
16
|
-
/**
|
17
|
-
* @deprecated Use Reanimated 3
|
18
|
-
* for animating Skia: https://shopify.github.io/react-native-skia/docs/animations/animations
|
19
|
-
*/
|
20
|
-
createClockValue(): SkiaClockValue;
|
21
|
-
/**
|
22
|
-
* @deprecated Use Reanimated 3
|
23
|
-
* for animating Skia: https://shopify.github.io/react-native-skia/docs/animations/animations
|
24
|
-
*/
|
25
|
-
createAnimation<S extends AnimationState = AnimationState>(cb: (t: number, state: S | undefined) => S): SkiaAnimation;
|
26
|
-
};
|
@@ -1,2 +0,0 @@
|
|
1
|
-
export declare const ValueApi: import("./types").ISkiaValueApi;
|
2
|
-
export declare const createValue: <T>(initialValue: T) => import("./types").SkiaMutableValue<T>, createComputedValue: <R>(cb: () => R, values: import("./types").SkiaValue<unknown>[]) => import("./types").SkiaValue<R>;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @deprecated Use Reanimated 3
|
3
|
-
* for animating Skia: https://shopify.github.io/react-native-skia/docs/animations/animations
|
4
|
-
*
|
5
|
-
* @returns A new value that will be updated on every frame redraw with the
|
6
|
-
* number of milliseconds elapsed since the value was started.
|
7
|
-
* The clock is created in the stopped state.
|
8
|
-
*/
|
9
|
-
export declare const useClockValue: () => import("..").SkiaClockValue;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @deprecated Use Reanimated 3
|
3
|
-
* for animating Skia: https://shopify.github.io/react-native-skia/docs/animations/animations
|
4
|
-
*
|
5
|
-
* Creates a new computed value - a value that will calculate its value depending
|
6
|
-
* on other values.
|
7
|
-
* @param cb Callback to calculate new value
|
8
|
-
* @param values Dependant values
|
9
|
-
* @returns A readonly value
|
10
|
-
*/
|
11
|
-
export declare const useComputedValue: <R>(cb: () => R, values: unknown[]) => import("..").SkiaValue<R>;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import type { SkiaMutableValue } from "../types";
|
2
|
-
/**
|
3
|
-
* @deprecated Use Reanimated 3
|
4
|
-
* for animating Skia: https://shopify.github.io/react-native-skia/docs/animations/animations
|
5
|
-
*
|
6
|
-
* Creates a new value that holds some data.
|
7
|
-
* @param v Value to hold
|
8
|
-
* @returns A Value of type of v
|
9
|
-
*/
|
10
|
-
export declare const useValue: <T>(v: T) => SkiaMutableValue<T>;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import type { SkiaValue } from "../types";
|
2
|
-
/**
|
3
|
-
* @deprecated Use Reanimated 3
|
4
|
-
* for animating Skia: https://shopify.github.io/react-native-skia/docs/animations/animations
|
5
|
-
*
|
6
|
-
* Sets up an effect that will be run whenever the value changes
|
7
|
-
* @param value Value to subscribe to changes on
|
8
|
-
* @param cb Callback to run when value changes
|
9
|
-
*/
|
10
|
-
export declare const useValueEffect: <T>(value: SkiaValue<T>, cb: (v: T) => void) => void;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import type { SkiaValue } from "./types";
|
2
|
-
export type SkiaSelector<TReturn, TInput = unknown> = {
|
3
|
-
value: SkiaValue<TInput>;
|
4
|
-
selector: (v: TInput) => TReturn;
|
5
|
-
};
|
6
|
-
/**
|
7
|
-
* Wraps a Skia Value with a selector function. The selector function can access the
|
8
|
-
* inner values of the Skia Value so that we can dynamically ready array values and
|
9
|
-
* object values when doing animations in Skia.
|
10
|
-
* @param value Dependant value
|
11
|
-
* @param selector Selector function to calculate new value from the Skia Value's value
|
12
|
-
* @returns A descriptor that will be used by the reconciler to calculate the value
|
13
|
-
*/
|
14
|
-
export declare const Selector: <TInput, TReturn>(value: SkiaValue<TInput>, selector: (v: TInput) => TReturn) => SkiaSelector<TReturn, TInput>;
|
@@ -1,63 +0,0 @@
|
|
1
|
-
export interface SkiaValue<T = number> {
|
2
|
-
/**
|
3
|
-
* Gets the value hold by the Value object
|
4
|
-
*/
|
5
|
-
readonly current: T;
|
6
|
-
/**
|
7
|
-
* Adds a listener that is called when value changes.
|
8
|
-
* Returns unsubscribe method.
|
9
|
-
*/
|
10
|
-
addListener: (cb: (value: T) => void) => () => void;
|
11
|
-
/**
|
12
|
-
* Invalidates the value. Has different meaning depending on the type of the value.
|
13
|
-
*/
|
14
|
-
dispose: () => void;
|
15
|
-
/**
|
16
|
-
* Field to make typechecking easier
|
17
|
-
*/
|
18
|
-
__typename__: "RNSkValue";
|
19
|
-
}
|
20
|
-
export interface SkiaMutableValue<T = number> extends SkiaValue<T> {
|
21
|
-
/**
|
22
|
-
* Get/sets the value hold by the Value object
|
23
|
-
*/
|
24
|
-
current: T;
|
25
|
-
/**
|
26
|
-
* Get/sets the animation controlling the value
|
27
|
-
* */
|
28
|
-
animation: SkiaAnimation | undefined;
|
29
|
-
}
|
30
|
-
export interface SkiaClockValue extends SkiaValue<number> {
|
31
|
-
start: () => void;
|
32
|
-
stop: () => void;
|
33
|
-
}
|
34
|
-
export interface SkiaAnimation extends SkiaClockValue {
|
35
|
-
cancel: () => void;
|
36
|
-
}
|
37
|
-
export interface AnimationState {
|
38
|
-
current: number;
|
39
|
-
finished: boolean;
|
40
|
-
}
|
41
|
-
export interface ISkiaValueApi {
|
42
|
-
/**
|
43
|
-
* Creates a new value that holds the initial value and that
|
44
|
-
* can be changed.
|
45
|
-
*/
|
46
|
-
createValue<T>(initialValue: T): SkiaMutableValue<T>;
|
47
|
-
/**
|
48
|
-
* Creates a computed value. This is a calculated value that returns the result of
|
49
|
-
* a function that is called with the values of the dependencies.
|
50
|
-
*/
|
51
|
-
createComputedValue<R>(cb: () => R, values: Array<SkiaValue<unknown>>): SkiaValue<R>;
|
52
|
-
/**
|
53
|
-
* Creates a clock value where the value is the number of milliseconds elapsed
|
54
|
-
* since the clock was created
|
55
|
-
*/
|
56
|
-
createClockValue(): SkiaClockValue;
|
57
|
-
/**
|
58
|
-
* Creates an animation that is driven from a clock and updated every frame.
|
59
|
-
* @param cb Callback to calculate next value from time.
|
60
|
-
* @returns An animation object that can control a value.
|
61
|
-
*/
|
62
|
-
createAnimation<S extends AnimationState = AnimationState>(cb: (t: number, state: S | undefined) => S): SkiaAnimation;
|
63
|
-
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import type { AnimationState, SkiaAnimation } from "../types";
|
2
|
-
import { RNSkClockValue } from "./RNSkClockValue";
|
3
|
-
export declare class RNSkAnimation<S extends AnimationState = AnimationState> extends RNSkClockValue implements SkiaAnimation {
|
4
|
-
constructor(callback: (t: number, state: S | undefined) => S, raf: (callback: (time: number) => void) => number);
|
5
|
-
private _callback;
|
6
|
-
private _animationState;
|
7
|
-
cancel(): void;
|
8
|
-
protected update(nextValue: number): void;
|
9
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import type { SkiaClockValue } from "../types";
|
2
|
-
import { RNSkReadonlyValue } from "./RNSkReadonlyValue";
|
3
|
-
export declare class RNSkClockValue extends RNSkReadonlyValue<number> implements SkiaClockValue {
|
4
|
-
constructor(raf: (callback: (time: number) => void) => number);
|
5
|
-
private _raf;
|
6
|
-
private _start;
|
7
|
-
private _stop;
|
8
|
-
private _state;
|
9
|
-
private notifyUpdate;
|
10
|
-
protected tick(value: number): void;
|
11
|
-
start(): void;
|
12
|
-
stop(): void;
|
13
|
-
}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import type { DependencyList } from "react";
|
2
|
-
import { RNSkReadonlyValue } from "./RNSkReadonlyValue";
|
3
|
-
export declare class RNSkComputedValue<T> extends RNSkReadonlyValue<T> {
|
4
|
-
constructor(callback: () => T, dependencies: DependencyList);
|
5
|
-
private dependecyUpdated;
|
6
|
-
private _callback;
|
7
|
-
private _unsubscribers;
|
8
|
-
unsubscribe(): void;
|
9
|
-
dispose(): void;
|
10
|
-
}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import type { SkiaValue } from "../types";
|
2
|
-
export declare class RNSkReadonlyValue<T> implements SkiaValue<T> {
|
3
|
-
constructor(value: T);
|
4
|
-
private _current;
|
5
|
-
private _listeners;
|
6
|
-
private notifyListeners;
|
7
|
-
protected update(nextValue: T): void;
|
8
|
-
readonly __typename__ = "RNSkValue";
|
9
|
-
get current(): T;
|
10
|
-
addListener(cb: (value: T) => void): () => void;
|
11
|
-
dispose(): void;
|
12
|
-
}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import type { SkiaAnimation, SkiaValue } from "../types";
|
2
|
-
import { RNSkReadonlyValue } from "./RNSkReadonlyValue";
|
3
|
-
export declare class RNSkValue<T> extends RNSkReadonlyValue<T> implements SkiaValue<T> {
|
4
|
-
constructor(value: T);
|
5
|
-
set current(value: T);
|
6
|
-
get current(): T;
|
7
|
-
private _unsubscribe;
|
8
|
-
private unsubscribe;
|
9
|
-
private subscribe;
|
10
|
-
private animationDidUpdate;
|
11
|
-
private _animation;
|
12
|
-
get animation(): SkiaAnimation | undefined;
|
13
|
-
set animation(v: SkiaAnimation | undefined);
|
14
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from "./api";
|