@nativescript/canvas 2.0.0-alpha.5 → 2.0.0-alpha.50
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/Canvas/common.d.ts +213 -25
- package/Canvas/common.js +702 -452
- package/Canvas/common.js.map +1 -1
- package/Canvas/index.android.d.ts +12 -1
- package/Canvas/index.android.js +162 -49
- package/Canvas/index.android.js.map +1 -1
- package/Canvas/index.d.ts +13 -0
- package/Canvas/index.ios.d.ts +9 -4
- package/Canvas/index.ios.js +166 -103
- package/Canvas/index.ios.js.map +1 -1
- package/Canvas2D/CanvasGradient/index.d.ts +1 -3
- package/Canvas2D/CanvasGradient/index.js +1 -10
- package/Canvas2D/CanvasGradient/index.js.map +1 -1
- package/Canvas2D/CanvasPattern/index.d.ts +1 -3
- package/Canvas2D/CanvasPattern/index.js +1 -10
- package/Canvas2D/CanvasPattern/index.js.map +1 -1
- package/Canvas2D/CanvasRenderingContext2D/index.d.ts +7 -3
- package/Canvas2D/CanvasRenderingContext2D/index.js +132 -233
- package/Canvas2D/CanvasRenderingContext2D/index.js.map +1 -1
- package/Canvas2D/DOMMatrix/index.js +3 -3
- package/Canvas2D/DOMMatrix/index.js.map +1 -1
- package/Canvas2D/ImageData/index.js +6 -6
- package/Canvas2D/ImageData/index.js.map +1 -1
- package/Canvas2D/Path2D/index.d.ts +0 -2
- package/Canvas2D/Path2D/index.js +32 -42
- package/Canvas2D/Path2D/index.js.map +1 -1
- package/Dom/Paint.js +2 -3
- package/Dom/Paint.js.map +1 -1
- package/Dom/shapes/Circle.js +1 -2
- package/Dom/shapes/Circle.js.map +1 -1
- package/Dom/shapes/Points.js +1 -2
- package/Dom/shapes/Points.js.map +1 -1
- package/ImageAsset/index.d.ts +2 -2
- package/ImageAsset/index.js +33 -37
- package/ImageAsset/index.js.map +1 -1
- package/ImageBitmap/index.d.ts +0 -2
- package/ImageBitmap/index.js +47 -33
- package/ImageBitmap/index.js.map +1 -1
- package/LICENSE +201 -0
- package/SVG/SVG.js +1 -1
- package/SVG/SVG.js.map +1 -1
- package/TextDecoder/index.d.ts +0 -2
- package/TextDecoder/index.js +3 -12
- package/TextDecoder/index.js.map +1 -1
- package/TextEncoder/index.d.ts +0 -2
- package/TextEncoder/index.js +4 -13
- package/TextEncoder/index.js.map +1 -1
- package/WebGL/WebGLExtensions/index.d.ts +4 -12
- package/WebGL/WebGLExtensions/index.js +27 -77
- package/WebGL/WebGLExtensions/index.js.map +1 -1
- package/WebGL/WebGLProgram.d.ts +0 -1
- package/WebGL/WebGLProgram.js +0 -3
- package/WebGL/WebGLProgram.js.map +1 -1
- package/WebGL/WebGLRenderingContext/common.d.ts +1 -3
- package/WebGL/WebGLRenderingContext/common.js +3 -13
- package/WebGL/WebGLRenderingContext/common.js.map +1 -1
- package/WebGL/WebGLRenderingContext/index.d.ts +19 -17
- package/WebGL/WebGLRenderingContext/index.js +354 -728
- package/WebGL/WebGLRenderingContext/index.js.map +1 -1
- package/WebGL2/WebGL2RenderingContext/common.d.ts +2 -2
- package/WebGL2/WebGL2RenderingContext/common.js +2 -2
- package/WebGL2/WebGL2RenderingContext/common.js.map +1 -1
- package/WebGL2/WebGL2RenderingContext/index.d.ts +1 -1
- package/WebGL2/WebGL2RenderingContext/index.js +116 -285
- package/WebGL2/WebGL2RenderingContext/index.js.map +1 -1
- package/angular/esm2020/index.mjs +4 -4
- package/angular/fesm2015/nativescript-canvas-angular.mjs +4 -4
- package/angular/fesm2020/nativescript-canvas-angular.mjs +4 -4
- package/angular/package.json +2 -2
- package/index.js.map +1 -1
- package/package.json +3 -2
- package/platforms/android/canvas-release.aar +0 -0
- package/platforms/android/include.gradle +15 -0
- package/platforms/ios/CanvasNative.xcframework/Info.plist +5 -5
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h +135 -68
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative.h +10 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_ios.h +144 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +2774 -70
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Info.plist +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.abi.json +5851 -2555
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +44 -24
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftinterface +44 -24
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative-Swift.h +270 -136
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative.h +10 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_ios.h +144 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +2774 -70
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Info.plist +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.abi.json +5851 -2555
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +44 -24
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface +44 -24
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +5851 -2555
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +44 -24
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +44 -24
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +42 -31
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
- package/platforms/ios/Podfile +5 -2
- package/platforms/ios/build.xcconfig +3 -3
- package/platforms/ios/src/CanvasModule.h +0 -2
- package/platforms/ios/src/CanvasModule.mm +4 -4
- package/platforms/ios/src/NSOperationQueueWrapper.h +11 -0
- package/platforms/ios/src/NSOperationQueueWrapper.mm +74 -0
- package/platforms/ios/src/cpp/Caches.cpp +35 -0
- package/platforms/ios/src/cpp/Caches.h +190 -0
- package/platforms/ios/src/cpp/CanvasJSIModule.cpp +1593 -0
- package/platforms/ios/src/cpp/CanvasJSIModule.h +16 -34
- package/platforms/ios/src/cpp/Common.h +30 -0
- package/platforms/ios/src/cpp/ConcurrentMap.h +54 -0
- package/platforms/ios/src/cpp/Helpers.h +336 -38
- package/platforms/ios/src/cpp/ImageAssetImpl.cpp +802 -0
- package/platforms/ios/src/cpp/ImageAssetImpl.h +46 -12
- package/platforms/ios/src/cpp/ImageBitmapImpl.cpp +189 -0
- package/platforms/ios/src/cpp/ImageBitmapImpl.h +42 -16
- package/platforms/ios/src/cpp/JSICallback.h +83 -5
- package/platforms/ios/src/cpp/JSIReadFileCallback.h +86 -6
- package/platforms/ios/src/cpp/JSIRuntime.cpp +21 -0
- package/platforms/ios/src/cpp/JSIRuntime.h +7 -0
- package/platforms/ios/src/cpp/ObjectWrapperImpl.h +31 -0
- package/platforms/ios/src/cpp/OneByteStringResource.cpp +55 -0
- package/platforms/ios/src/cpp/OneByteStringResource.h +36 -0
- package/platforms/ios/src/cpp/PerIsolateData.cpp +49 -0
- package/platforms/ios/src/cpp/PerIsolateData.h +54 -0
- package/platforms/ios/src/cpp/RafImpl.cpp +8 -0
- package/platforms/ios/src/cpp/RafImpl.h +11 -8
- package/platforms/ios/src/cpp/TextDecoderImpl.cpp +193 -0
- package/platforms/ios/src/cpp/TextDecoderImpl.h +23 -13
- package/platforms/ios/src/cpp/TextEncoderImpl.cpp +139 -0
- package/platforms/ios/src/cpp/TextEncoderImpl.h +21 -12
- package/platforms/ios/src/cpp/URLImpl.cpp +464 -0
- package/platforms/ios/src/cpp/URLImpl.h +121 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasGradient.cpp +71 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasGradient.h +29 -13
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.cpp +89 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.h +49 -12
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.cpp +2841 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h +1331 -21
- package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.cpp +207 -0
- package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.h +27 -13
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.cpp +807 -0
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.h +173 -13
- package/platforms/ios/src/cpp/canvas2d/Path2D.cpp +499 -0
- package/platforms/ios/src/cpp/canvas2d/Path2D.h +422 -12
- package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.cpp +253 -0
- package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.h +51 -12
- package/platforms/ios/src/cpp/gl.h +57 -7
- package/platforms/ios/src/cpp/gl3stub.c +425 -0
- package/platforms/ios/src/cpp/gl3stub.h +665 -0
- package/platforms/ios/src/cpp/gles3jni.h +37 -0
- package/platforms/ios/src/cpp/include/robin_hood.h +2544 -0
- package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.cpp +91 -0
- package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.h +33 -13
- package/platforms/ios/src/cpp/webgl/WebGLBuffer.h +42 -7
- package/platforms/ios/src/cpp/webgl/WebGLFramebuffer.h +47 -11
- package/platforms/ios/src/cpp/webgl/WebGLProgram.h +41 -6
- package/platforms/ios/src/cpp/webgl/WebGLRenderbuffer.h +41 -7
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.cpp +6845 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.h +3217 -388
- package/platforms/ios/src/cpp/webgl/{WebGLRenderingContextBase.mm → WebGLRenderingContextBase.cpp} +18 -17
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.h +16 -36
- package/platforms/ios/src/cpp/webgl/WebGLShader.h +41 -7
- package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.cpp +50 -0
- package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.h +67 -12
- package/platforms/ios/src/cpp/webgl/WebGLTexture.h +41 -7
- package/platforms/ios/src/cpp/webgl/WebGLUniformLocation.h +45 -9
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.cpp +126 -0
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.h +26 -12
- package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.cpp +35 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.h +26 -6
- package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.cpp +41 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.h +26 -6
- package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.cpp +306 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.h +47 -13
- package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.h +49 -6
- package/platforms/ios/src/cpp/webgl/extensions/EXT_shader_texture_lodImpl.h +37 -15
- package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.h +47 -6
- package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.h +49 -6
- package/platforms/ios/src/cpp/webgl/extensions/OES_fbo_render_mipmap.h +41 -16
- package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.h +44 -6
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_floatImpl.h +39 -16
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_float_linearImpl.h +37 -16
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.h +42 -6
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_float_linearImpl.h +40 -16
- package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.cpp +102 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.h +69 -14
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.h +51 -8
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.h +49 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.h +49 -8
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.h +76 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.h +57 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.h +53 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.h +59 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.h +46 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.cpp +35 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.h +131 -14
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.cpp +32 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.h +61 -13
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.cpp +4533 -0
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.h +1427 -342
- package/platforms/ios/src/cpp/webgl2/WebGLQuery.h +41 -4
- package/platforms/ios/src/cpp/webgl2/WebGLSampler.h +42 -3
- package/platforms/ios/src/cpp/webgl2/WebGLSyncImpl.h +45 -11
- package/platforms/ios/src/cpp/webgl2/WebGLTransformFeedback.h +43 -4
- package/platforms/ios/src/cpp/webgl2/WebGLVertexArrayObject.h +44 -4
- package/platforms/ios/src/module.modulemap +1 -0
- package/{pods → src-native/ios}/NativeScript.podspec +12 -25
- package/typings/objc!CanvasNative.d.ts +2038 -0
- package/typings/objc!CanvasNative.js +1 -0
- package/typings/objc!CanvasNative.js.map +1 -0
- package/utils.d.ts +3 -1
- package/utils.js +7 -20
- package/utils.js.map +1 -1
- package/angular/nativescript-canvas-angular.d.ts +0 -5
- package/platforms/ios/src/cpp/CanvasJSIModule.mm +0 -1105
- package/platforms/ios/src/cpp/ImageAssetImpl.mm +0 -417
- package/platforms/ios/src/cpp/ImageBitmapImpl.mm +0 -126
- package/platforms/ios/src/cpp/RafImpl.mm +0 -10
- package/platforms/ios/src/cpp/TextDecoderImpl.mm +0 -97
- package/platforms/ios/src/cpp/TextEncoderImpl.mm +0 -60
- package/platforms/ios/src/cpp/VecMutableBuffer.h +0 -46
- package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.cc +0 -6132
- package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.h +0 -2859
- package/platforms/ios/src/cpp/canvas2d/CanvasGradient.mm +0 -42
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.mm +0 -49
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.mm +0 -1975
- package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.mm +0 -68
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.mm +0 -149
- package/platforms/ios/src/cpp/canvas2d/Path2D.mm +0 -335
- package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.mm +0 -68
- package/platforms/ios/src/cpp/rust/cxx.cc +0 -793
- package/platforms/ios/src/cpp/rust/cxx.h +0 -1111
- package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.mm +0 -39
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.mm +0 -5958
- package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.mm +0 -40
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.mm +0 -108
- package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.mm +0 -28
- package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.mm +0 -42
- package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.mm +0 -295
- package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.mm +0 -40
- package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.mm +0 -37
- package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.mm +0 -28
- package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.mm +0 -31
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.mm +0 -28
- package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.mm +0 -127
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.mm +0 -45
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.mm +0 -45
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.mm +0 -31
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.mm +0 -70
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.mm +0 -47
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.mm +0 -46
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.mm +0 -49
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.mm +0 -30
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.mm +0 -177
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.mm +0 -64
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.mm +0 -4556
- package/pods/Headers/jsi/decorator.h +0 -770
- package/pods/Headers/jsi/instrumentation.h +0 -117
- package/pods/Headers/jsi/jsi-inl.h +0 -338
- package/pods/Headers/jsi/jsi.h +0 -1571
- package/pods/Headers/jsi/jsilib.h +0 -59
- package/pods/Headers/jsi/threadsafe.h +0 -79
- package/pods/Headers/v8runtime/HostProxy.h +0 -71
- package/pods/Headers/v8runtime/JSIV8ValueConverter.h +0 -74
- package/pods/Headers/v8runtime/V8PointerValue.h +0 -44
- package/pods/Headers/v8runtime/V8Runtime.h +0 -240
- package/pods/Headers/v8runtime/V8RuntimeConfig.h +0 -26
- package/pods/Headers/v8runtime/V8RuntimeFactory.h +0 -21
- /package/platforms/ios/src/cpp/{OnRafCallback.mm → OnRafCallback.cpp} +0 -0
- /package/{pods → src-native/ios}/Headers/include/APIDesign.md +0 -0
- /package/{pods → src-native/ios}/Headers/include/DEPS +0 -0
- /package/{pods → src-native/ios}/Headers/include/DIR_METADATA +0 -0
- /package/{pods → src-native/ios}/Headers/include/OWNERS +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/DEPS +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/OWNERS +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/README.md +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/allocation.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/common.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/cross-thread-persistent.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/custom-space.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/default-platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/ephemeron-pair.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/explicit-management.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/garbage-collected.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/heap-consistency.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/heap-state.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/heap-statistics.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/heap.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/api-constants.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/atomic-entry-flag.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/caged-heap-local-data.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/compiler-specific.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/finalizer-trait.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/gc-info.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/logging.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/name-trait.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/persistent-node.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/pointer-policies.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/write-barrier.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/liveness-broker.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/macros.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/member.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/name-provider.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/object-size-trait.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/persistent.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/prefinalizer.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/process-heap-statistics.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/sentinel-pointer.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/source-location.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/testing.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/trace-trait.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/type-traits.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/visitor.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/js_protocol-1.2.json +0 -0
- /package/{pods → src-native/ios}/Headers/include/js_protocol-1.3.json +0 -0
- /package/{pods → src-native/ios}/Headers/include/js_protocol.pdl +0 -0
- /package/{pods → src-native/ios}/Headers/include/libffi/arm64/ffi.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libffi/arm64/ffitarget.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libffi/x86_64/ffi.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libffi/x86_64/ffitarget.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libffi.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libplatform/DEPS +0 -0
- /package/{pods → src-native/ios}/Headers/include/libplatform/libplatform-export.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libplatform/libplatform.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libplatform/v8-tracing.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-array-buffer.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-callbacks.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-container.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-context.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-cppgc.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-data.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-date.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-debug.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-embedder-heap.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-embedder-state-scope.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-exception.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-extension.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-external.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-fast-api-calls.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-forward.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-function-callback.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-function.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-initialization.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-inspector-protocol.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-inspector.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-internal.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-isolate.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-json.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-local-handle.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-locker.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-maybe.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-memory-span.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-message.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-metrics.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-microtask-queue.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-microtask.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-object.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-persistent-handle.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-primitive-object.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-primitive.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-profiler.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-promise.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-proxy.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-regexp.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-script.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-snapshot.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-statistics.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-template.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-traced-handle.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-typed-array.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-unwinder-state.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-unwinder.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-util.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-value-serializer-version.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-value-serializer.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-value.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-version-string.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-version.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-wasm-trap-handler-posix.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-wasm-trap-handler-win.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-wasm.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-weak-callback-info.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8config.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/InspectorServer.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/JsV8InspectorClient.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/base/trace_event/common/trace_event_common.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/base64.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/address-region.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/atomic-utils.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/atomicops.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/atomicops_internals_atomicword_compat.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/base-export.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/bits.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/build_config.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/compiler-specific.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/export-template.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/flags.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/immediate-crash.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/lazy-instance.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/logging.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/macros.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/memory.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/once.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/optional.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/mutex.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/semaphore.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/v8-time.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/wrappers.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/safe_conversions.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/safe_conversions_impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/template-utils.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/v8-fallthrough.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/common/checks.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/common/globals.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/debug/debug-interface.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/debug/interface-types.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/init/v8.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/custom-preview.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/injected-script.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/inspected-context.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/CSS.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Console.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/DOM.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Debugger.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Forward.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/HeapProfiler.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Log.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Network.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Overlay.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Page.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Profiler.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Protocol.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Runtime.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Schema.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Security.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/remote-object-id.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/search-util.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/string-16.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/string-util.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-console-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-console-message.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-console.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-css-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger-id.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger-script.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-dom-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-heap-profiler-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-inspector-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-inspector-session-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-log-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-network-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-ns-debugger-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-overlay-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-page-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-profiler-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-regex.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-runtime-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-schema-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-stack-trace-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-string-conversions.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-value-utils.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/value-mirror.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/libplatform/default-platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/logging/tracing-flags.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/numbers/conversions.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/tracing/trace-event.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/utils/allocation.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/utils/vector.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/cbor.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/dispatch.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/error_support.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/export.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/find_by_first.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/frontend_channel.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/glue.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/json.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/json_platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/maybe.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/parser_handler.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/protocol_core.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/serializable.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/serializer_traits.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/span.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/status.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/utils.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/v8-inspector-platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ArgConverter.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ArrayAdapter.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Caches.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ClassBuilder.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Common.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ConcurrentMap.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ConcurrentQueue.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Console.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Constants.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/DataWrapper.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/DictionaryAdapter.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ExtVector.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/FFICall.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/FastEnumerationAdapter.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/FunctionReference.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Helpers.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/InlineFunctions.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Interop.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/KnownUnknownClassPair.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Metadata.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/MetadataBuilder.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/MetadataInlines.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ModuleInternal.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/NSDataAdapter.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/NativeScriptException.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ObjectManager.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/OneByteStringResource.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Pointer.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/PromiseProxy.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Reference.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Runtime.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/RuntimeConfig.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/SetTimeout.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/SimpleAllocator.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/StringHasher.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/SymbolIterator.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/SymbolLoader.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/TNSDerivedClass.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/TSHelpers.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Tasks.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/UnmanagedType.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/WeakRef.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Worker.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/robin_hood.h +0 -0
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Created by Osei Fortune on 27/03/2022.
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
#include "ImageDataImpl.h"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
struct ImageDataBuffer : jsi::MutableBuffer {
|
|
9
|
-
public:
|
|
10
|
-
explicit ImageDataBuffer(rust::Box<ImageData> imageData) : imageData_(std::move(imageData)) {
|
|
11
|
-
auto slice = canvas_native_image_data_get_data(*this->imageData_);
|
|
12
|
-
this->buf_ = slice.data();
|
|
13
|
-
this->size_ = slice.size();
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
size_t size() const override {
|
|
17
|
-
return this->size_;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
uint8_t *data() override {
|
|
21
|
-
return this->buf_;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
~ImageDataBuffer() override {
|
|
25
|
-
this->buf_ = nullptr;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
private:
|
|
29
|
-
uint8_t *buf_;
|
|
30
|
-
size_t size_;
|
|
31
|
-
rust::Box<ImageData> imageData_;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
ImageDataImpl::ImageDataImpl(rust::Box<ImageData> imageData) : imageData_(std::move(imageData)) {}
|
|
35
|
-
|
|
36
|
-
std::vector<jsi::PropNameID> ImageDataImpl::getPropertyNames(jsi::Runtime &rt) {
|
|
37
|
-
std::vector<jsi::PropNameID> ret;
|
|
38
|
-
ret.reserve(3);
|
|
39
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("width")));
|
|
40
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("height")));
|
|
41
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("data")));
|
|
42
|
-
return ret;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
jsi::Value ImageDataImpl::get(jsi::Runtime &runtime, const jsi::PropNameID &name) {
|
|
46
|
-
auto methodName = name.utf8(runtime);
|
|
47
|
-
if (methodName == "width") {
|
|
48
|
-
return {canvas_native_image_data_get_width(this->GetImageData())};
|
|
49
|
-
} else if (methodName == "height") {
|
|
50
|
-
return {canvas_native_image_data_get_height(this->GetImageData())};
|
|
51
|
-
} else if (methodName == "data") {
|
|
52
|
-
auto buf = std::make_shared<ImageDataBuffer>(
|
|
53
|
-
canvas_native_image_data_get_shared_instance(this->GetImageData()));
|
|
54
|
-
|
|
55
|
-
auto ab = jsi::ArrayBuffer(runtime, buf);
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
auto Uint8ClampedArray = runtime.global()
|
|
59
|
-
.getProperty(runtime,
|
|
60
|
-
"Uint8ClampedArray")
|
|
61
|
-
.asObject(runtime)
|
|
62
|
-
.asFunction(runtime);
|
|
63
|
-
|
|
64
|
-
return Uint8ClampedArray.callAsConstructor(
|
|
65
|
-
runtime, ab);
|
|
66
|
-
}
|
|
67
|
-
return jsi::Value::undefined();
|
|
68
|
-
}
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Created by Osei Fortune on 03/04/2022.
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
#include "MatrixImpl.h"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
MatrixImpl::MatrixImpl(rust::Box<Matrix> matrix) : matrix_(std::move(matrix)) {}
|
|
9
|
-
|
|
10
|
-
std::vector<jsi::PropNameID> MatrixImpl::getPropertyNames(jsi::Runtime &rt) {
|
|
11
|
-
std::vector<jsi::PropNameID> ret;
|
|
12
|
-
ret.reserve(22);
|
|
13
|
-
|
|
14
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("a")));
|
|
15
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("b")));
|
|
16
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("c")));
|
|
17
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("d")));
|
|
18
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("e")));
|
|
19
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("f")));
|
|
20
|
-
|
|
21
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("m11")));
|
|
22
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("m12")));
|
|
23
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("m13")));
|
|
24
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("m14")));
|
|
25
|
-
|
|
26
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("m21")));
|
|
27
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("m22")));
|
|
28
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("m23")));
|
|
29
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("m24")));
|
|
30
|
-
|
|
31
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("m31")));
|
|
32
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("m32")));
|
|
33
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("m33")));
|
|
34
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("m34")));
|
|
35
|
-
|
|
36
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("m41")));
|
|
37
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("m42")));
|
|
38
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("m43")));
|
|
39
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("m44")));
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
return ret;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
jsi::Value MatrixImpl::get(jsi::Runtime &runtime, const jsi::PropNameID &name) {
|
|
46
|
-
auto methodName = name.utf8(runtime);
|
|
47
|
-
if (methodName == "a") {
|
|
48
|
-
return {(double) canvas_native_matrix_get_a(this->GetMatrix())};
|
|
49
|
-
} else if (methodName == "b") {
|
|
50
|
-
return {(double) canvas_native_matrix_get_b(this->GetMatrix())};
|
|
51
|
-
} else if (methodName == "c") {
|
|
52
|
-
return {(double) canvas_native_matrix_get_c(this->GetMatrix())};
|
|
53
|
-
} else if (methodName == "d") {
|
|
54
|
-
return {(double) canvas_native_matrix_get_d(this->GetMatrix())};
|
|
55
|
-
} else if (methodName == "e") {
|
|
56
|
-
return {(double) canvas_native_matrix_get_e(this->GetMatrix())};
|
|
57
|
-
} else if (methodName == "f") {
|
|
58
|
-
return {(double) canvas_native_matrix_get_f(this->GetMatrix())};
|
|
59
|
-
} else if (methodName == "m11") {
|
|
60
|
-
return {(double) canvas_native_matrix_get_m11(this->GetMatrix())};
|
|
61
|
-
} else if (methodName == "m12") {
|
|
62
|
-
return {(double) canvas_native_matrix_get_m12(this->GetMatrix())};
|
|
63
|
-
} else if (methodName == "m13") {
|
|
64
|
-
return {(double) canvas_native_matrix_get_m13(this->GetMatrix())};
|
|
65
|
-
} else if (methodName == "m14") {
|
|
66
|
-
return {(double) canvas_native_matrix_get_m14(this->GetMatrix())};
|
|
67
|
-
} else if (methodName == "m21") {
|
|
68
|
-
return {(double) canvas_native_matrix_get_m21(this->GetMatrix())};
|
|
69
|
-
} else if (methodName == "m22") {
|
|
70
|
-
return {(double) canvas_native_matrix_get_m22(this->GetMatrix())};
|
|
71
|
-
} else if (methodName == "m23") {
|
|
72
|
-
return {(double) canvas_native_matrix_get_m23(this->GetMatrix())};
|
|
73
|
-
} else if (methodName == "m24") {
|
|
74
|
-
return {(double) canvas_native_matrix_get_m24(this->GetMatrix())};
|
|
75
|
-
} else if (methodName == "m31") {
|
|
76
|
-
return {(double) canvas_native_matrix_get_m31(this->GetMatrix())};
|
|
77
|
-
} else if (methodName == "m32") {
|
|
78
|
-
return {(double) canvas_native_matrix_get_m32(this->GetMatrix())};
|
|
79
|
-
} else if (methodName == "m33") {
|
|
80
|
-
return {(double) canvas_native_matrix_get_m33(this->GetMatrix())};
|
|
81
|
-
} else if (methodName == "m34") {
|
|
82
|
-
return {(double) canvas_native_matrix_get_m34(this->GetMatrix())};
|
|
83
|
-
} else if (methodName == "m41") {
|
|
84
|
-
return {(double) canvas_native_matrix_get_m41(this->GetMatrix())};
|
|
85
|
-
} else if (methodName == "m42") {
|
|
86
|
-
return {(double) canvas_native_matrix_get_m42(this->GetMatrix())};
|
|
87
|
-
} else if (methodName == "m43") {
|
|
88
|
-
return {(double) canvas_native_matrix_get_m43(this->GetMatrix())};
|
|
89
|
-
} else if (methodName == "m44") {
|
|
90
|
-
return {(double) canvas_native_matrix_get_m44(this->GetMatrix())};
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
return jsi::Value::undefined();
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
void MatrixImpl::set(jsi::Runtime &runtime, const jsi::PropNameID &name, const jsi::Value &value) {
|
|
97
|
-
auto methodName = name.utf8(runtime);
|
|
98
|
-
if (!value.isNumber()) { return; }
|
|
99
|
-
auto val = (float) value.asNumber();
|
|
100
|
-
if (methodName == "a") {
|
|
101
|
-
canvas_native_matrix_set_a(this->GetMatrix(), val);
|
|
102
|
-
} else if (methodName == "b") {
|
|
103
|
-
canvas_native_matrix_set_b(this->GetMatrix(), val);
|
|
104
|
-
} else if (methodName == "c") {
|
|
105
|
-
canvas_native_matrix_set_c(this->GetMatrix(), val);
|
|
106
|
-
} else if (methodName == "d") {
|
|
107
|
-
canvas_native_matrix_set_d(this->GetMatrix(), val);
|
|
108
|
-
} else if (methodName == "e") {
|
|
109
|
-
canvas_native_matrix_set_e(this->GetMatrix(), val);
|
|
110
|
-
} else if (methodName == "f") {
|
|
111
|
-
canvas_native_matrix_set_f(this->GetMatrix(), val);
|
|
112
|
-
} else if (methodName == "m11") {
|
|
113
|
-
canvas_native_matrix_set_m11(this->GetMatrix(), val);
|
|
114
|
-
} else if (methodName == "m12") {
|
|
115
|
-
canvas_native_matrix_set_m12(this->GetMatrix(), val);
|
|
116
|
-
} else if (methodName == "m13") {
|
|
117
|
-
canvas_native_matrix_set_m13(this->GetMatrix(), val);
|
|
118
|
-
} else if (methodName == "m14") {
|
|
119
|
-
canvas_native_matrix_set_m14(this->GetMatrix(), val);
|
|
120
|
-
} else if (methodName == "m21") {
|
|
121
|
-
canvas_native_matrix_set_m21(this->GetMatrix(), val);
|
|
122
|
-
} else if (methodName == "m22") {
|
|
123
|
-
canvas_native_matrix_set_m22(this->GetMatrix(), val);
|
|
124
|
-
} else if (methodName == "m23") {
|
|
125
|
-
canvas_native_matrix_set_m23(this->GetMatrix(), val);
|
|
126
|
-
} else if (methodName == "m24") {
|
|
127
|
-
canvas_native_matrix_set_m24(this->GetMatrix(), val);
|
|
128
|
-
} else if (methodName == "m31") {
|
|
129
|
-
canvas_native_matrix_set_m31(this->GetMatrix(), val);
|
|
130
|
-
} else if (methodName == "m32") {
|
|
131
|
-
canvas_native_matrix_set_m32(this->GetMatrix(), val);
|
|
132
|
-
} else if (methodName == "m33") {
|
|
133
|
-
canvas_native_matrix_set_m33(this->GetMatrix(), val);
|
|
134
|
-
} else if (methodName == "m34") {
|
|
135
|
-
canvas_native_matrix_set_m34(this->GetMatrix(), val);
|
|
136
|
-
} else if (methodName == "m41") {
|
|
137
|
-
canvas_native_matrix_set_m41(this->GetMatrix(), val);
|
|
138
|
-
} else if (methodName == "m42") {
|
|
139
|
-
canvas_native_matrix_set_m42(this->GetMatrix(), val);
|
|
140
|
-
} else if (methodName == "m43") {
|
|
141
|
-
canvas_native_matrix_set_m43(this->GetMatrix(), val);
|
|
142
|
-
} else if (methodName == "m44") {
|
|
143
|
-
canvas_native_matrix_set_m44(this->GetMatrix(), val);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
Matrix &MatrixImpl::GetMatrix() {
|
|
148
|
-
return *this->matrix_;
|
|
149
|
-
}
|
|
@@ -1,335 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Created by Osei Fortune on 28/03/2022.
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
#include "Path2D.h"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Path2D::Path2D(rust::Box<Path> path)
|
|
9
|
-
: path_(std::move(path)) {}
|
|
10
|
-
|
|
11
|
-
std::vector<jsi::PropNameID> Path2D::getPropertyNames(jsi::Runtime &rt) {
|
|
12
|
-
std::vector<jsi::PropNameID> ret;
|
|
13
|
-
ret.reserve(11);
|
|
14
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("addPath")));
|
|
15
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("arc")));
|
|
16
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("arcTo")));
|
|
17
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("bezierCurveTo")));
|
|
18
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("closePath")));
|
|
19
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("ellipse")));
|
|
20
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("lineTo")));
|
|
21
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("moveTo")));
|
|
22
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("quadraticCurveTo")));
|
|
23
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("rect")));
|
|
24
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("roundRect")));
|
|
25
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("__toSVG")));
|
|
26
|
-
return ret;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
jsi::Value Path2D::get(jsi::Runtime &runtime, const jsi::PropNameID &name) {
|
|
30
|
-
auto methodName = name.utf8(runtime);
|
|
31
|
-
if (methodName == "addPath") {
|
|
32
|
-
return jsi::Function::createFromHostFunction(runtime,
|
|
33
|
-
jsi::PropNameID::forAscii(runtime, methodName),
|
|
34
|
-
1,
|
|
35
|
-
[this](jsi::Runtime &runtime,
|
|
36
|
-
const jsi::Value &thisValue,
|
|
37
|
-
const jsi::Value *arguments,
|
|
38
|
-
size_t count) -> jsi::Value {
|
|
39
|
-
auto object = getHostObject<Path2D>(
|
|
40
|
-
runtime, arguments[0]);
|
|
41
|
-
if (object != nullptr) {
|
|
42
|
-
canvas_native_path_add_path(
|
|
43
|
-
this->GetPath(),
|
|
44
|
-
object->GetPath());
|
|
45
|
-
}
|
|
46
|
-
return jsi::Value::undefined();
|
|
47
|
-
}
|
|
48
|
-
);
|
|
49
|
-
} else if (methodName == "arc") {
|
|
50
|
-
return jsi::Function::createFromHostFunction(runtime,
|
|
51
|
-
jsi::PropNameID::forAscii(runtime, methodName),
|
|
52
|
-
6,
|
|
53
|
-
[this](jsi::Runtime &runtime,
|
|
54
|
-
const jsi::Value &thisValue,
|
|
55
|
-
const jsi::Value *arguments,
|
|
56
|
-
size_t count) -> jsi::Value {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
auto anti_clockwise = false;
|
|
60
|
-
if (count == 6) {
|
|
61
|
-
anti_clockwise = arguments[5].asBool();
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
canvas_native_path_arc(
|
|
65
|
-
this->GetPath(),
|
|
66
|
-
static_cast<float>(arguments[0].asNumber()),
|
|
67
|
-
static_cast<float>(arguments[1].asNumber()),
|
|
68
|
-
static_cast<float>(arguments[2].asNumber()),
|
|
69
|
-
static_cast<float>(arguments[3].asNumber()),
|
|
70
|
-
static_cast<float>(arguments[4].asNumber()),
|
|
71
|
-
anti_clockwise
|
|
72
|
-
);
|
|
73
|
-
|
|
74
|
-
return jsi::Value::undefined();
|
|
75
|
-
}
|
|
76
|
-
);
|
|
77
|
-
|
|
78
|
-
} else if (methodName == "arcTo") {
|
|
79
|
-
return jsi::Function::createFromHostFunction(runtime,
|
|
80
|
-
jsi::PropNameID::forAscii(runtime, methodName),
|
|
81
|
-
5,
|
|
82
|
-
[this](jsi::Runtime &runtime,
|
|
83
|
-
const jsi::Value &thisValue,
|
|
84
|
-
const jsi::Value *arguments,
|
|
85
|
-
size_t count) -> jsi::Value {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
canvas_native_path_arc_to(
|
|
89
|
-
this->GetPath(),
|
|
90
|
-
static_cast<float>(arguments[0].asNumber()),
|
|
91
|
-
static_cast<float>(arguments[1].asNumber()),
|
|
92
|
-
static_cast<float>(arguments[2].asNumber()),
|
|
93
|
-
static_cast<float>(arguments[3].asNumber()),
|
|
94
|
-
static_cast<float>(arguments[4].asNumber())
|
|
95
|
-
);
|
|
96
|
-
|
|
97
|
-
return jsi::Value::undefined();
|
|
98
|
-
}
|
|
99
|
-
);
|
|
100
|
-
|
|
101
|
-
} else if (methodName == "bezierCurveTo") {
|
|
102
|
-
return jsi::Function::createFromHostFunction(runtime,
|
|
103
|
-
jsi::PropNameID::forAscii(runtime, methodName),
|
|
104
|
-
6,
|
|
105
|
-
[this](jsi::Runtime &runtime,
|
|
106
|
-
const jsi::Value &thisValue,
|
|
107
|
-
const jsi::Value *arguments,
|
|
108
|
-
size_t count) -> jsi::Value {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
canvas_native_path_bezier_curve_to(
|
|
112
|
-
this->GetPath(),
|
|
113
|
-
static_cast<float>(arguments[0].asNumber()),
|
|
114
|
-
static_cast<float>(arguments[1].asNumber()),
|
|
115
|
-
static_cast<float>(arguments[2].asNumber()),
|
|
116
|
-
static_cast<float>(arguments[3].asNumber()),
|
|
117
|
-
static_cast<float>(arguments[4].asNumber()),
|
|
118
|
-
static_cast<float>(arguments[5].asNumber())
|
|
119
|
-
);
|
|
120
|
-
|
|
121
|
-
return jsi::Value::undefined();
|
|
122
|
-
}
|
|
123
|
-
);
|
|
124
|
-
|
|
125
|
-
} else if (methodName == "closePath") {
|
|
126
|
-
return jsi::Function::createFromHostFunction(runtime,
|
|
127
|
-
jsi::PropNameID::forAscii(runtime, methodName),
|
|
128
|
-
0,
|
|
129
|
-
[this](jsi::Runtime &runtime,
|
|
130
|
-
const jsi::Value &thisValue,
|
|
131
|
-
const jsi::Value *arguments,
|
|
132
|
-
size_t count) -> jsi::Value {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
canvas_native_path_close_path(
|
|
136
|
-
this->GetPath());
|
|
137
|
-
|
|
138
|
-
return jsi::Value::undefined();
|
|
139
|
-
}
|
|
140
|
-
);
|
|
141
|
-
|
|
142
|
-
} else if (methodName == "ellipse") {
|
|
143
|
-
return jsi::Function::createFromHostFunction(runtime,
|
|
144
|
-
jsi::PropNameID::forAscii(runtime, methodName),
|
|
145
|
-
7,
|
|
146
|
-
[this](jsi::Runtime &runtime,
|
|
147
|
-
const jsi::Value &thisValue,
|
|
148
|
-
const jsi::Value *arguments,
|
|
149
|
-
size_t count) -> jsi::Value {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
auto anti_clockwise = false;
|
|
153
|
-
if (count > 7) {
|
|
154
|
-
anti_clockwise = arguments[7].asBool();
|
|
155
|
-
}
|
|
156
|
-
canvas_native_path_ellipse(
|
|
157
|
-
this->GetPath(),
|
|
158
|
-
static_cast<float>(arguments[0].asNumber()),
|
|
159
|
-
static_cast<float>(arguments[1].asNumber()),
|
|
160
|
-
static_cast<float>(arguments[2].asNumber()),
|
|
161
|
-
static_cast<float>(arguments[3].asNumber()),
|
|
162
|
-
static_cast<float>(arguments[4].asNumber()),
|
|
163
|
-
static_cast<float>(arguments[5].asNumber()),
|
|
164
|
-
static_cast<float>(arguments[6].asNumber()),
|
|
165
|
-
anti_clockwise
|
|
166
|
-
);
|
|
167
|
-
|
|
168
|
-
return jsi::Value::undefined();
|
|
169
|
-
}
|
|
170
|
-
);
|
|
171
|
-
|
|
172
|
-
} else if (methodName == "lineTo") {
|
|
173
|
-
return jsi::Function::createFromHostFunction(runtime,
|
|
174
|
-
jsi::PropNameID::forAscii(runtime, methodName),
|
|
175
|
-
2,
|
|
176
|
-
[this](jsi::Runtime &runtime,
|
|
177
|
-
const jsi::Value &thisValue,
|
|
178
|
-
const jsi::Value *arguments,
|
|
179
|
-
size_t count) -> jsi::Value {
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
canvas_native_path_line_to(this->GetPath(),
|
|
183
|
-
static_cast<float>(arguments[0].asNumber()),
|
|
184
|
-
static_cast<float>(arguments[1].asNumber()));
|
|
185
|
-
|
|
186
|
-
return jsi::Value::undefined();
|
|
187
|
-
}
|
|
188
|
-
);
|
|
189
|
-
|
|
190
|
-
} else if (methodName == "moveTo") {
|
|
191
|
-
return jsi::Function::createFromHostFunction(runtime,
|
|
192
|
-
jsi::PropNameID::forAscii(runtime, methodName),
|
|
193
|
-
2,
|
|
194
|
-
[this](jsi::Runtime &runtime,
|
|
195
|
-
const jsi::Value &thisValue,
|
|
196
|
-
const jsi::Value *arguments,
|
|
197
|
-
size_t count) -> jsi::Value {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
canvas_native_path_move_to(this->GetPath(),
|
|
201
|
-
static_cast<float>(arguments[0].asNumber()),
|
|
202
|
-
static_cast<float>(arguments[1].asNumber()));
|
|
203
|
-
|
|
204
|
-
return jsi::Value::undefined();
|
|
205
|
-
}
|
|
206
|
-
);
|
|
207
|
-
|
|
208
|
-
} else if (methodName == "quadraticCurveTo") {
|
|
209
|
-
return jsi::Function::createFromHostFunction(runtime,
|
|
210
|
-
jsi::PropNameID::forAscii(runtime, methodName),
|
|
211
|
-
4,
|
|
212
|
-
[this](jsi::Runtime &runtime,
|
|
213
|
-
const jsi::Value &thisValue,
|
|
214
|
-
const jsi::Value *arguments,
|
|
215
|
-
size_t count) -> jsi::Value {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
canvas_native_path_quadratic_curve_to(
|
|
219
|
-
this->GetPath(),
|
|
220
|
-
static_cast<float>(arguments[0].asNumber()),
|
|
221
|
-
static_cast<float>(arguments[1].asNumber()),
|
|
222
|
-
static_cast<float>(arguments[2].asNumber()),
|
|
223
|
-
static_cast<float>(arguments[3].asNumber())
|
|
224
|
-
);
|
|
225
|
-
|
|
226
|
-
return jsi::Value::undefined();
|
|
227
|
-
}
|
|
228
|
-
);
|
|
229
|
-
|
|
230
|
-
} else if (methodName == "rect") {
|
|
231
|
-
return jsi::Function::createFromHostFunction(runtime,
|
|
232
|
-
jsi::PropNameID::forAscii(runtime, methodName),
|
|
233
|
-
4,
|
|
234
|
-
[this](jsi::Runtime &runtime,
|
|
235
|
-
const jsi::Value &thisValue,
|
|
236
|
-
const jsi::Value *arguments,
|
|
237
|
-
size_t count) -> jsi::Value {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
canvas_native_path_rect(
|
|
241
|
-
this->GetPath(),
|
|
242
|
-
static_cast<float>(arguments[0].asNumber()),
|
|
243
|
-
static_cast<float>(arguments[1].asNumber()),
|
|
244
|
-
static_cast<float>(arguments[2].asNumber()),
|
|
245
|
-
static_cast<float>(arguments[3].asNumber())
|
|
246
|
-
);
|
|
247
|
-
|
|
248
|
-
return jsi::Value::undefined();
|
|
249
|
-
}
|
|
250
|
-
);
|
|
251
|
-
|
|
252
|
-
} else if (methodName == "roundRect") {
|
|
253
|
-
return jsi::Function::createFromHostFunction(runtime,
|
|
254
|
-
jsi::PropNameID::forAscii(runtime, methodName),
|
|
255
|
-
4,
|
|
256
|
-
[this](jsi::Runtime &runtime,
|
|
257
|
-
const jsi::Value &thisValue,
|
|
258
|
-
const jsi::Value *arguments,
|
|
259
|
-
size_t count) -> jsi::Value {
|
|
260
|
-
|
|
261
|
-
if (count == 5) {
|
|
262
|
-
auto x = static_cast<float>(arguments[0].asNumber());
|
|
263
|
-
auto y = static_cast<float>(arguments[1].asNumber());
|
|
264
|
-
auto width = static_cast<float>(arguments[2].asNumber());
|
|
265
|
-
auto height = static_cast<float>(arguments[3].asNumber());
|
|
266
|
-
if (arguments[4].isObject()) {
|
|
267
|
-
auto radii = arguments[4].asObject(
|
|
268
|
-
runtime);
|
|
269
|
-
if (radii.isArray(runtime)) {
|
|
270
|
-
auto array = radii.getArray(
|
|
271
|
-
runtime);
|
|
272
|
-
auto size = array.size(
|
|
273
|
-
runtime);
|
|
274
|
-
if (size > 1) {
|
|
275
|
-
rust::Vec<float> store;
|
|
276
|
-
store.reserve(size);
|
|
277
|
-
for (int i = 0;
|
|
278
|
-
i < size; i++) {
|
|
279
|
-
store[i] = (float) array.getValueAtIndex(
|
|
280
|
-
runtime,
|
|
281
|
-
i).asNumber();
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
rust::Slice<const float> buf(
|
|
285
|
-
store.data(),
|
|
286
|
-
store.size());
|
|
287
|
-
canvas_native_path_round_rect(
|
|
288
|
-
this->GetPath(),
|
|
289
|
-
x, y,
|
|
290
|
-
width,
|
|
291
|
-
height, buf);
|
|
292
|
-
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
} else {
|
|
296
|
-
auto radii = (float) arguments[4].asNumber();
|
|
297
|
-
canvas_native_path_round_rect_tl_tr_br_bl(
|
|
298
|
-
this->GetPath(), x, y,
|
|
299
|
-
width,
|
|
300
|
-
height, radii, radii,
|
|
301
|
-
radii, radii);
|
|
302
|
-
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
return jsi::Value::undefined();
|
|
307
|
-
|
|
308
|
-
}
|
|
309
|
-
);
|
|
310
|
-
} else if (methodName == "__toSVG") {
|
|
311
|
-
return jsi::Function::createFromHostFunction(runtime,
|
|
312
|
-
jsi::PropNameID::forAscii(runtime, methodName),
|
|
313
|
-
0,
|
|
314
|
-
[this](jsi::Runtime &runtime,
|
|
315
|
-
const jsi::Value &thisValue,
|
|
316
|
-
const jsi::Value *arguments,
|
|
317
|
-
size_t count) -> jsi::Value {
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
auto d = canvas_native_path_to_string(
|
|
321
|
-
this->GetPath());
|
|
322
|
-
return jsi::String::createFromAscii(
|
|
323
|
-
runtime, d.data(), d.size());
|
|
324
|
-
}
|
|
325
|
-
);
|
|
326
|
-
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
return jsi::Value::undefined();
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
Path &Path2D::GetPath() {
|
|
333
|
-
return *this->path_;
|
|
334
|
-
}
|
|
335
|
-
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Created by Osei Fortune on 18/04/2022.
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
#include "TextMetricsImpl.h"
|
|
6
|
-
#include "canvas-cxx/src/lib.rs.h"
|
|
7
|
-
|
|
8
|
-
TextMetricsImpl::TextMetricsImpl(rust::Box<TextMetrics> metrics) : metrics_(std::move(metrics)) {}
|
|
9
|
-
|
|
10
|
-
std::vector<jsi::PropNameID> TextMetricsImpl::getPropertyNames(jsi::Runtime &rt) {
|
|
11
|
-
std::vector<jsi::PropNameID> ret;
|
|
12
|
-
ret.reserve(12);
|
|
13
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("width")));
|
|
14
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("actualBoundingBoxLeft")));
|
|
15
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("actualBoundingBoxRight")));
|
|
16
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("actualBoundingBoxAscent")));
|
|
17
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("actualBoundingBoxDescent")));
|
|
18
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("fontBoundingBoxAscent")));
|
|
19
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("fontBoundingBoxDescent")));
|
|
20
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("emHeightAscent")));
|
|
21
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("emHeightDescent")));
|
|
22
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("hangingBaseline")));
|
|
23
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("alphabeticBaseline")));
|
|
24
|
-
ret.push_back(jsi::PropNameID::forUtf8(rt, std::string("ideographicBaseline")));
|
|
25
|
-
return ret;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
jsi::Value TextMetricsImpl::get(jsi::Runtime &runtime, const jsi::PropNameID &name) {
|
|
29
|
-
auto methodName = name.utf8(runtime);
|
|
30
|
-
if (methodName == "width") {
|
|
31
|
-
return {(double) canvas_native_text_metrics_get_width(this->GetTextMetrics())};
|
|
32
|
-
} else if (methodName == "actualBoundingBoxLeft") {
|
|
33
|
-
return {(double) canvas_native_text_metrics_get_actual_bounding_box_left(
|
|
34
|
-
this->GetTextMetrics())};
|
|
35
|
-
} else if (methodName == "actualBoundingBoxRight") {
|
|
36
|
-
return {(double) canvas_native_text_metrics_get_actual_bounding_box_right(
|
|
37
|
-
this->GetTextMetrics())};
|
|
38
|
-
} else if (methodName == "actualBoundingBoxAscent") {
|
|
39
|
-
return {(double) canvas_native_text_metrics_get_actual_bounding_box_ascent(
|
|
40
|
-
this->GetTextMetrics())};
|
|
41
|
-
} else if (methodName == "actualBoundingBoxDescent") {
|
|
42
|
-
return {(double) canvas_native_text_metrics_get_actual_bounding_box_descent(
|
|
43
|
-
this->GetTextMetrics())};
|
|
44
|
-
} else if (methodName == "fontBoundingBoxAscent") {
|
|
45
|
-
return {(double) canvas_native_text_metrics_get_font_bounding_box_ascent(
|
|
46
|
-
this->GetTextMetrics())};
|
|
47
|
-
} else if (methodName == "fontBoundingBoxDescent") {
|
|
48
|
-
return {(double) canvas_native_text_metrics_get_font_bounding_box_descent(
|
|
49
|
-
this->GetTextMetrics())};
|
|
50
|
-
} else if (methodName == "emHeightAscent") {
|
|
51
|
-
return {(double) canvas_native_text_metrics_get_em_height_ascent(this->GetTextMetrics())};
|
|
52
|
-
} else if (methodName == "emHeightDescent") {
|
|
53
|
-
return {(double) canvas_native_text_metrics_get_em_height_descent(this->GetTextMetrics())};
|
|
54
|
-
} else if (methodName == "alphabeticBaseline") {
|
|
55
|
-
return {(double) canvas_native_text_metrics_get_alphabetic_baseline(
|
|
56
|
-
this->GetTextMetrics())};
|
|
57
|
-
} else if (methodName == "ideographicBaseline") {
|
|
58
|
-
return {(double) canvas_native_text_metrics_get_ideographic_baseline(
|
|
59
|
-
this->GetTextMetrics())};
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
return jsi::Value::undefined();
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
TextMetrics &TextMetricsImpl::GetTextMetrics() {
|
|
67
|
-
return *this->metrics_;
|
|
68
|
-
}
|