@nativescript/canvas 2.0.0-alpha.8 → 2.0.0-beta.0
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 +705 -452
- package/Canvas/common.js.map +1 -1
- package/Canvas/index.android.d.ts +10 -1
- package/Canvas/index.android.js +155 -52
- package/Canvas/index.android.js.map +1 -1
- package/Canvas/index.d.ts +8 -0
- package/Canvas/index.ios.d.ts +7 -4
- package/Canvas/index.ios.js +159 -106
- 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 +9 -5
- package/Canvas2D/CanvasRenderingContext2D/index.js +174 -245
- 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/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 +2808 -68
- 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 +5677 -2409
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +44 -25
- 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 -25
- 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 +2808 -68
- 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 +5677 -2409
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +44 -25
- 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 -25
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +5677 -2409
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +44 -25
- 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 -25
- 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 +2809 -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 +136 -0
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.h +88 -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 +110 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.h +149 -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 +38 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.h +157 -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 +4564 -0
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.h +1790 -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 -6156
- package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.h +0 -2867
- 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 -1972
- 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
|
@@ -0,0 +1,807 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Created by Osei Fortune on 03/04/2022.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
#include <array>
|
|
6
|
+
#include "MatrixImpl.h"
|
|
7
|
+
#include "Caches.h"
|
|
8
|
+
|
|
9
|
+
MatrixImpl::MatrixImpl(Matrix *matrix) : matrix_(matrix) {}
|
|
10
|
+
|
|
11
|
+
void MatrixImpl::Init(v8::Local<v8::Object> canvasModule, v8::Isolate *isolate) {
|
|
12
|
+
v8::Locker locker(isolate);
|
|
13
|
+
v8::Isolate::Scope isolate_scope(isolate);
|
|
14
|
+
v8::HandleScope handle_scope(isolate);
|
|
15
|
+
|
|
16
|
+
auto ctor = GetCtor(isolate);
|
|
17
|
+
auto context = isolate->GetCurrentContext();
|
|
18
|
+
auto func = ctor->GetFunction(context).ToLocalChecked();
|
|
19
|
+
|
|
20
|
+
canvasModule->Set(context, ConvertToV8String(isolate, "DOMMatrix"), func);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
MatrixImpl *MatrixImpl::GetPointer(v8::Local<v8::Object> object) {
|
|
24
|
+
auto ptr = object->GetAlignedPointerFromInternalField(0);
|
|
25
|
+
if (ptr == nullptr) {
|
|
26
|
+
return nullptr;
|
|
27
|
+
}
|
|
28
|
+
return static_cast<MatrixImpl *>(ptr);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
v8::Local<v8::FunctionTemplate> MatrixImpl::GetCtor(v8::Isolate *isolate) {
|
|
32
|
+
auto cache = Caches::Get(isolate);
|
|
33
|
+
auto ctor = cache->MatrixTmpl.get();
|
|
34
|
+
if (ctor != nullptr) {
|
|
35
|
+
return ctor->Get(isolate);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
v8::Local<v8::FunctionTemplate> ctorTmpl = v8::FunctionTemplate::New(isolate, Ctor);
|
|
39
|
+
ctorTmpl->InstanceTemplate()->SetInternalFieldCount(2);
|
|
40
|
+
ctorTmpl->SetClassName(ConvertToV8String(isolate, "DOMMatrix"));
|
|
41
|
+
|
|
42
|
+
auto tmpl = ctorTmpl->InstanceTemplate();
|
|
43
|
+
tmpl->SetInternalFieldCount(2);
|
|
44
|
+
|
|
45
|
+
tmpl->SetAccessor(
|
|
46
|
+
ConvertToV8String(isolate, "a"),
|
|
47
|
+
GetA,
|
|
48
|
+
SetA
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
tmpl->SetAccessor(
|
|
52
|
+
ConvertToV8String(isolate, "b"),
|
|
53
|
+
GetB,
|
|
54
|
+
SetB
|
|
55
|
+
);
|
|
56
|
+
|
|
57
|
+
tmpl->SetAccessor(
|
|
58
|
+
ConvertToV8String(isolate, "c"),
|
|
59
|
+
GetC,
|
|
60
|
+
SetC
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
tmpl->SetAccessor(
|
|
64
|
+
ConvertToV8String(isolate, "d"),
|
|
65
|
+
GetD,
|
|
66
|
+
SetD
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
tmpl->SetAccessor(
|
|
70
|
+
ConvertToV8String(isolate, "e"),
|
|
71
|
+
GetE,
|
|
72
|
+
SetE
|
|
73
|
+
);
|
|
74
|
+
|
|
75
|
+
tmpl->SetAccessor(
|
|
76
|
+
ConvertToV8String(isolate, "f"),
|
|
77
|
+
GetF,
|
|
78
|
+
SetF
|
|
79
|
+
);
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
tmpl->SetAccessor(
|
|
83
|
+
ConvertToV8String(isolate, "m11"),
|
|
84
|
+
GetM11,
|
|
85
|
+
SetM11
|
|
86
|
+
);
|
|
87
|
+
|
|
88
|
+
tmpl->SetAccessor(
|
|
89
|
+
ConvertToV8String(isolate, "m12"),
|
|
90
|
+
GetM12,
|
|
91
|
+
SetM12
|
|
92
|
+
);
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
tmpl->SetAccessor(
|
|
96
|
+
ConvertToV8String(isolate, "m13"),
|
|
97
|
+
GetM13,
|
|
98
|
+
SetM13
|
|
99
|
+
);
|
|
100
|
+
|
|
101
|
+
tmpl->SetAccessor(
|
|
102
|
+
ConvertToV8String(isolate, "m14"),
|
|
103
|
+
GetM14,
|
|
104
|
+
SetM14
|
|
105
|
+
);
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
tmpl->SetAccessor(
|
|
109
|
+
ConvertToV8String(isolate, "m21"),
|
|
110
|
+
GetM21,
|
|
111
|
+
SetM21
|
|
112
|
+
);
|
|
113
|
+
|
|
114
|
+
tmpl->SetAccessor(
|
|
115
|
+
ConvertToV8String(isolate, "m22"),
|
|
116
|
+
GetM22,
|
|
117
|
+
SetM22
|
|
118
|
+
);
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
tmpl->SetAccessor(
|
|
122
|
+
ConvertToV8String(isolate, "m23"),
|
|
123
|
+
GetM23,
|
|
124
|
+
SetM23
|
|
125
|
+
);
|
|
126
|
+
|
|
127
|
+
tmpl->SetAccessor(
|
|
128
|
+
ConvertToV8String(isolate, "m24"),
|
|
129
|
+
GetM24,
|
|
130
|
+
SetM24
|
|
131
|
+
);
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
tmpl->SetAccessor(
|
|
135
|
+
ConvertToV8String(isolate, "m31"),
|
|
136
|
+
GetM31,
|
|
137
|
+
SetM31
|
|
138
|
+
);
|
|
139
|
+
|
|
140
|
+
tmpl->SetAccessor(
|
|
141
|
+
ConvertToV8String(isolate, "m32"),
|
|
142
|
+
GetM32,
|
|
143
|
+
SetM32
|
|
144
|
+
);
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
tmpl->SetAccessor(
|
|
148
|
+
ConvertToV8String(isolate, "m33"),
|
|
149
|
+
GetM33,
|
|
150
|
+
SetM33
|
|
151
|
+
);
|
|
152
|
+
|
|
153
|
+
tmpl->SetAccessor(
|
|
154
|
+
ConvertToV8String(isolate, "m34"),
|
|
155
|
+
GetM34,
|
|
156
|
+
SetM34
|
|
157
|
+
);
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
tmpl->SetAccessor(
|
|
161
|
+
ConvertToV8String(isolate, "m41"),
|
|
162
|
+
GetM41,
|
|
163
|
+
SetM41
|
|
164
|
+
);
|
|
165
|
+
|
|
166
|
+
tmpl->SetAccessor(
|
|
167
|
+
ConvertToV8String(isolate, "m42"),
|
|
168
|
+
GetM42,
|
|
169
|
+
SetM42
|
|
170
|
+
);
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
tmpl->SetAccessor(
|
|
174
|
+
ConvertToV8String(isolate, "m43"),
|
|
175
|
+
GetM43,
|
|
176
|
+
SetM43
|
|
177
|
+
);
|
|
178
|
+
|
|
179
|
+
tmpl->SetAccessor(
|
|
180
|
+
ConvertToV8String(isolate, "m44"),
|
|
181
|
+
GetM44,
|
|
182
|
+
SetM44
|
|
183
|
+
);
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
cache->MatrixTmpl =
|
|
187
|
+
std::make_unique<v8::Persistent<v8::FunctionTemplate>>(isolate, ctorTmpl);
|
|
188
|
+
return ctorTmpl;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
void MatrixImpl::Ctor(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
192
|
+
auto count = args.Length();
|
|
193
|
+
auto isolate = args.GetIsolate();
|
|
194
|
+
|
|
195
|
+
auto ret = args.This();
|
|
196
|
+
|
|
197
|
+
if (count > 0) {
|
|
198
|
+
auto context = isolate->GetCurrentContext();
|
|
199
|
+
auto value = args[0];
|
|
200
|
+
if (value->IsArray()) {
|
|
201
|
+
auto array = value.As<v8::Array>();
|
|
202
|
+
auto size = array->Length();
|
|
203
|
+
|
|
204
|
+
if (size == 6) {
|
|
205
|
+
auto matrix = canvas_native_matrix_create();
|
|
206
|
+
std::array<float, 6> buf{};
|
|
207
|
+
for (int i = 0; i < size; i++) {
|
|
208
|
+
auto item = array->Get(context, i).ToLocalChecked()->NumberValue(
|
|
209
|
+
context).ToChecked();
|
|
210
|
+
buf[i] = (float) item;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
canvas_native_matrix_update(matrix, buf.data(), buf.size());
|
|
214
|
+
|
|
215
|
+
auto object = new MatrixImpl(matrix);
|
|
216
|
+
|
|
217
|
+
ret->SetAlignedPointerInInternalField(0, object);
|
|
218
|
+
|
|
219
|
+
SetNativeType( ret, NativeType::Matrix);
|
|
220
|
+
|
|
221
|
+
object->BindFinalizer(isolate, ret);
|
|
222
|
+
|
|
223
|
+
args.GetReturnValue().Set(ret);
|
|
224
|
+
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
if (size == 16) {
|
|
229
|
+
auto matrix = canvas_native_matrix_create();
|
|
230
|
+
std::array<float, 16> buf{};
|
|
231
|
+
|
|
232
|
+
for (int i = 0; i < size; i++) {
|
|
233
|
+
auto item = array->Get(context, i).ToLocalChecked()->NumberValue(
|
|
234
|
+
context).ToChecked();
|
|
235
|
+
buf[i] = (float) item;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
canvas_native_matrix_update_3d(matrix, buf.data(), buf.size());
|
|
239
|
+
|
|
240
|
+
auto object = new MatrixImpl(matrix);
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
ret->SetAlignedPointerInInternalField(0, object);
|
|
244
|
+
|
|
245
|
+
SetNativeType( ret, NativeType::Matrix);
|
|
246
|
+
|
|
247
|
+
object->BindFinalizer(isolate, ret);
|
|
248
|
+
|
|
249
|
+
args.GetReturnValue().Set(ret);
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
}
|
|
254
|
+
} else {
|
|
255
|
+
auto matrix = canvas_native_matrix_create();
|
|
256
|
+
auto object = new MatrixImpl(matrix);
|
|
257
|
+
|
|
258
|
+
ret->SetAlignedPointerInInternalField(0, object);
|
|
259
|
+
|
|
260
|
+
SetNativeType( ret, NativeType::Matrix);
|
|
261
|
+
|
|
262
|
+
object->BindFinalizer(isolate, ret);
|
|
263
|
+
|
|
264
|
+
args.GetReturnValue().Set(ret);
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
args.GetReturnValue().SetUndefined();
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
void MatrixImpl::GetA(v8::Local<v8::String> property,
|
|
272
|
+
const v8::PropertyCallbackInfo<v8::Value> &info) {
|
|
273
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
274
|
+
if (ptr == nullptr) {
|
|
275
|
+
info.GetReturnValue().SetUndefined();
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
info.GetReturnValue().Set((double) canvas_native_matrix_get_a(ptr->GetMatrix()));
|
|
280
|
+
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
void MatrixImpl::SetA(v8::Local<v8::String> property,
|
|
284
|
+
v8::Local<v8::Value> value,
|
|
285
|
+
const v8::PropertyCallbackInfo<void> &info) {
|
|
286
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
287
|
+
if (ptr == nullptr) {
|
|
288
|
+
return;
|
|
289
|
+
}
|
|
290
|
+
auto isolate = info.GetIsolate();
|
|
291
|
+
auto context = isolate->GetCurrentContext();
|
|
292
|
+
canvas_native_matrix_set_a(ptr->GetMatrix(), (float) value->NumberValue(context).ToChecked());
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
void MatrixImpl::GetB(v8::Local<v8::String> property,
|
|
297
|
+
const v8::PropertyCallbackInfo<v8::Value> &info) {
|
|
298
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
299
|
+
if (ptr == nullptr) {
|
|
300
|
+
info.GetReturnValue().SetUndefined();
|
|
301
|
+
return;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
info.GetReturnValue().Set((double) canvas_native_matrix_get_b(ptr->GetMatrix()));
|
|
305
|
+
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
void MatrixImpl::SetB(v8::Local<v8::String> property,
|
|
309
|
+
v8::Local<v8::Value> value,
|
|
310
|
+
const v8::PropertyCallbackInfo<void> &info) {
|
|
311
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
312
|
+
if (ptr == nullptr) {
|
|
313
|
+
return;
|
|
314
|
+
}
|
|
315
|
+
auto isolate = info.GetIsolate();
|
|
316
|
+
auto context = isolate->GetCurrentContext();
|
|
317
|
+
canvas_native_matrix_set_b(ptr->GetMatrix(), (float) value->NumberValue(context).ToChecked());
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
void MatrixImpl::GetC(v8::Local<v8::String> property,
|
|
322
|
+
const v8::PropertyCallbackInfo<v8::Value> &info) {
|
|
323
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
324
|
+
if (ptr == nullptr) {
|
|
325
|
+
info.GetReturnValue().SetUndefined();
|
|
326
|
+
return;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
info.GetReturnValue().Set((double) canvas_native_matrix_get_c(ptr->GetMatrix()));
|
|
330
|
+
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
void MatrixImpl::SetC(v8::Local<v8::String> property,
|
|
334
|
+
v8::Local<v8::Value> value,
|
|
335
|
+
const v8::PropertyCallbackInfo<void> &info) {
|
|
336
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
337
|
+
if (ptr == nullptr) {
|
|
338
|
+
return;
|
|
339
|
+
}
|
|
340
|
+
auto isolate = info.GetIsolate();
|
|
341
|
+
auto context = isolate->GetCurrentContext();
|
|
342
|
+
canvas_native_matrix_set_c(ptr->GetMatrix(), (float) value->NumberValue(context).ToChecked());
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
void MatrixImpl::GetD(v8::Local<v8::String> property,
|
|
347
|
+
const v8::PropertyCallbackInfo<v8::Value> &info) {
|
|
348
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
349
|
+
if (ptr == nullptr) {
|
|
350
|
+
info.GetReturnValue().SetUndefined();
|
|
351
|
+
return;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
info.GetReturnValue().Set((double) canvas_native_matrix_get_d(ptr->GetMatrix()));
|
|
355
|
+
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
void MatrixImpl::SetD(v8::Local<v8::String> property,
|
|
359
|
+
v8::Local<v8::Value> value,
|
|
360
|
+
const v8::PropertyCallbackInfo<void> &info) {
|
|
361
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
362
|
+
if (ptr == nullptr) {
|
|
363
|
+
return;
|
|
364
|
+
}
|
|
365
|
+
auto isolate = info.GetIsolate();
|
|
366
|
+
auto context = isolate->GetCurrentContext();
|
|
367
|
+
canvas_native_matrix_set_d(ptr->GetMatrix(), (float) value->NumberValue(context).ToChecked());
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
void MatrixImpl::GetE(v8::Local<v8::String> property,
|
|
372
|
+
const v8::PropertyCallbackInfo<v8::Value> &info) {
|
|
373
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
374
|
+
if (ptr == nullptr) {
|
|
375
|
+
info.GetReturnValue().SetUndefined();
|
|
376
|
+
return;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
info.GetReturnValue().Set((double) canvas_native_matrix_get_e(ptr->GetMatrix()));
|
|
380
|
+
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
void MatrixImpl::SetE(v8::Local<v8::String> property,
|
|
384
|
+
v8::Local<v8::Value> value,
|
|
385
|
+
const v8::PropertyCallbackInfo<void> &info) {
|
|
386
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
387
|
+
if (ptr == nullptr) {
|
|
388
|
+
return;
|
|
389
|
+
}
|
|
390
|
+
auto isolate = info.GetIsolate();
|
|
391
|
+
auto context = isolate->GetCurrentContext();
|
|
392
|
+
canvas_native_matrix_set_e(ptr->GetMatrix(), (float) value->NumberValue(context).ToChecked());
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
void MatrixImpl::GetF(v8::Local<v8::String> property,
|
|
397
|
+
const v8::PropertyCallbackInfo<v8::Value> &info) {
|
|
398
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
399
|
+
if (ptr == nullptr) {
|
|
400
|
+
info.GetReturnValue().SetUndefined();
|
|
401
|
+
return;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
info.GetReturnValue().Set((double) canvas_native_matrix_get_f(ptr->GetMatrix()));
|
|
405
|
+
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
void MatrixImpl::SetF(v8::Local<v8::String> property,
|
|
409
|
+
v8::Local<v8::Value> value,
|
|
410
|
+
const v8::PropertyCallbackInfo<void> &info) {
|
|
411
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
412
|
+
if (ptr == nullptr) {
|
|
413
|
+
return;
|
|
414
|
+
}
|
|
415
|
+
auto isolate = info.GetIsolate();
|
|
416
|
+
auto context = isolate->GetCurrentContext();
|
|
417
|
+
canvas_native_matrix_set_f(ptr->GetMatrix(), (float) value->NumberValue(context).ToChecked());
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
void MatrixImpl::GetM11(v8::Local<v8::String> property,
|
|
421
|
+
const v8::PropertyCallbackInfo<v8::Value> &info) {
|
|
422
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
423
|
+
if (ptr == nullptr) {
|
|
424
|
+
info.GetReturnValue().SetUndefined();
|
|
425
|
+
return;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
info.GetReturnValue().Set((double) canvas_native_matrix_get_m11(ptr->GetMatrix()));
|
|
429
|
+
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
void MatrixImpl::SetM11(v8::Local<v8::String> property,
|
|
433
|
+
v8::Local<v8::Value> value,
|
|
434
|
+
const v8::PropertyCallbackInfo<void> &info) {
|
|
435
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
436
|
+
if (ptr == nullptr) {
|
|
437
|
+
return;
|
|
438
|
+
}
|
|
439
|
+
auto isolate = info.GetIsolate();
|
|
440
|
+
auto context = isolate->GetCurrentContext();
|
|
441
|
+
canvas_native_matrix_set_m11(ptr->GetMatrix(), (float) value->NumberValue(context).ToChecked());
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
void MatrixImpl::GetM12(v8::Local<v8::String> property,
|
|
445
|
+
const v8::PropertyCallbackInfo<v8::Value> &info) {
|
|
446
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
447
|
+
if (ptr == nullptr) {
|
|
448
|
+
info.GetReturnValue().SetUndefined();
|
|
449
|
+
return;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
info.GetReturnValue().Set((double) canvas_native_matrix_get_m12(ptr->GetMatrix()));
|
|
453
|
+
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
void MatrixImpl::SetM12(v8::Local<v8::String> property,
|
|
457
|
+
v8::Local<v8::Value> value,
|
|
458
|
+
const v8::PropertyCallbackInfo<void> &info) {
|
|
459
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
460
|
+
if (ptr == nullptr) {
|
|
461
|
+
return;
|
|
462
|
+
}
|
|
463
|
+
auto isolate = info.GetIsolate();
|
|
464
|
+
auto context = isolate->GetCurrentContext();
|
|
465
|
+
canvas_native_matrix_set_m12(ptr->GetMatrix(), (float) value->NumberValue(context).ToChecked());
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
void MatrixImpl::GetM13(v8::Local<v8::String> property,
|
|
469
|
+
const v8::PropertyCallbackInfo<v8::Value> &info) {
|
|
470
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
471
|
+
if (ptr == nullptr) {
|
|
472
|
+
info.GetReturnValue().SetUndefined();
|
|
473
|
+
return;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
info.GetReturnValue().Set((double) canvas_native_matrix_get_m13(ptr->GetMatrix()));
|
|
477
|
+
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
void MatrixImpl::SetM13(v8::Local<v8::String> property,
|
|
481
|
+
v8::Local<v8::Value> value,
|
|
482
|
+
const v8::PropertyCallbackInfo<void> &info) {
|
|
483
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
484
|
+
if (ptr == nullptr) {
|
|
485
|
+
return;
|
|
486
|
+
}
|
|
487
|
+
auto isolate = info.GetIsolate();
|
|
488
|
+
auto context = isolate->GetCurrentContext();
|
|
489
|
+
canvas_native_matrix_set_m13(ptr->GetMatrix(), (float) value->NumberValue(context).ToChecked());
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
void MatrixImpl::GetM14(v8::Local<v8::String> property,
|
|
493
|
+
const v8::PropertyCallbackInfo<v8::Value> &info) {
|
|
494
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
495
|
+
if (ptr == nullptr) {
|
|
496
|
+
info.GetReturnValue().SetUndefined();
|
|
497
|
+
return;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
info.GetReturnValue().Set((double) canvas_native_matrix_get_m14(ptr->GetMatrix()));
|
|
501
|
+
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
void MatrixImpl::SetM14(v8::Local<v8::String> property,
|
|
505
|
+
v8::Local<v8::Value> value,
|
|
506
|
+
const v8::PropertyCallbackInfo<void> &info) {
|
|
507
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
508
|
+
if (ptr == nullptr) {
|
|
509
|
+
return;
|
|
510
|
+
}
|
|
511
|
+
auto isolate = info.GetIsolate();
|
|
512
|
+
auto context = isolate->GetCurrentContext();
|
|
513
|
+
canvas_native_matrix_set_m14(ptr->GetMatrix(), (float) value->NumberValue(context).ToChecked());
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
void MatrixImpl::GetM21(v8::Local<v8::String> property,
|
|
517
|
+
const v8::PropertyCallbackInfo<v8::Value> &info) {
|
|
518
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
519
|
+
if (ptr == nullptr) {
|
|
520
|
+
info.GetReturnValue().SetUndefined();
|
|
521
|
+
return;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
info.GetReturnValue().Set((double) canvas_native_matrix_get_m21(ptr->GetMatrix()));
|
|
525
|
+
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
void MatrixImpl::SetM21(v8::Local<v8::String> property,
|
|
529
|
+
v8::Local<v8::Value> value,
|
|
530
|
+
const v8::PropertyCallbackInfo<void> &info) {
|
|
531
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
532
|
+
if (ptr == nullptr) {
|
|
533
|
+
return;
|
|
534
|
+
}
|
|
535
|
+
auto isolate = info.GetIsolate();
|
|
536
|
+
auto context = isolate->GetCurrentContext();
|
|
537
|
+
canvas_native_matrix_set_m21(ptr->GetMatrix(), (float) value->NumberValue(context).ToChecked());
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
void MatrixImpl::GetM22(v8::Local<v8::String> property,
|
|
541
|
+
const v8::PropertyCallbackInfo<v8::Value> &info) {
|
|
542
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
543
|
+
if (ptr == nullptr) {
|
|
544
|
+
info.GetReturnValue().SetUndefined();
|
|
545
|
+
return;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
info.GetReturnValue().Set((double) canvas_native_matrix_get_m22(ptr->GetMatrix()));
|
|
549
|
+
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
void MatrixImpl::SetM22(v8::Local<v8::String> property,
|
|
553
|
+
v8::Local<v8::Value> value,
|
|
554
|
+
const v8::PropertyCallbackInfo<void> &info) {
|
|
555
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
556
|
+
if (ptr == nullptr) {
|
|
557
|
+
return;
|
|
558
|
+
}
|
|
559
|
+
auto isolate = info.GetIsolate();
|
|
560
|
+
auto context = isolate->GetCurrentContext();
|
|
561
|
+
canvas_native_matrix_set_m22(ptr->GetMatrix(), (float) value->NumberValue(context).ToChecked());
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
void MatrixImpl::GetM23(v8::Local<v8::String> property,
|
|
565
|
+
const v8::PropertyCallbackInfo<v8::Value> &info) {
|
|
566
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
567
|
+
if (ptr == nullptr) {
|
|
568
|
+
info.GetReturnValue().SetUndefined();
|
|
569
|
+
return;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
info.GetReturnValue().Set((double) canvas_native_matrix_get_m23(ptr->GetMatrix()));
|
|
573
|
+
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
void MatrixImpl::SetM23(v8::Local<v8::String> property,
|
|
577
|
+
v8::Local<v8::Value> value,
|
|
578
|
+
const v8::PropertyCallbackInfo<void> &info) {
|
|
579
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
580
|
+
if (ptr == nullptr) {
|
|
581
|
+
return;
|
|
582
|
+
}
|
|
583
|
+
auto isolate = info.GetIsolate();
|
|
584
|
+
auto context = isolate->GetCurrentContext();
|
|
585
|
+
canvas_native_matrix_set_m23(ptr->GetMatrix(), (float) value->NumberValue(context).ToChecked());
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
void MatrixImpl::GetM24(v8::Local<v8::String> property,
|
|
589
|
+
const v8::PropertyCallbackInfo<v8::Value> &info) {
|
|
590
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
591
|
+
if (ptr == nullptr) {
|
|
592
|
+
info.GetReturnValue().SetUndefined();
|
|
593
|
+
return;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
info.GetReturnValue().Set((double) canvas_native_matrix_get_m24(ptr->GetMatrix()));
|
|
597
|
+
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
void MatrixImpl::SetM24(v8::Local<v8::String> property,
|
|
601
|
+
v8::Local<v8::Value> value,
|
|
602
|
+
const v8::PropertyCallbackInfo<void> &info) {
|
|
603
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
604
|
+
if (ptr == nullptr) {
|
|
605
|
+
return;
|
|
606
|
+
}
|
|
607
|
+
auto isolate = info.GetIsolate();
|
|
608
|
+
auto context = isolate->GetCurrentContext();
|
|
609
|
+
canvas_native_matrix_set_m24(ptr->GetMatrix(), (float) value->NumberValue(context).ToChecked());
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
void MatrixImpl::GetM31(v8::Local<v8::String> property,
|
|
614
|
+
const v8::PropertyCallbackInfo<v8::Value> &info) {
|
|
615
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
616
|
+
if (ptr == nullptr) {
|
|
617
|
+
info.GetReturnValue().SetUndefined();
|
|
618
|
+
return;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
info.GetReturnValue().Set((double) canvas_native_matrix_get_m31(ptr->GetMatrix()));
|
|
622
|
+
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
void MatrixImpl::SetM31(v8::Local<v8::String> property,
|
|
626
|
+
v8::Local<v8::Value> value,
|
|
627
|
+
const v8::PropertyCallbackInfo<void> &info) {
|
|
628
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
629
|
+
if (ptr == nullptr) {
|
|
630
|
+
return;
|
|
631
|
+
}
|
|
632
|
+
auto isolate = info.GetIsolate();
|
|
633
|
+
auto context = isolate->GetCurrentContext();
|
|
634
|
+
canvas_native_matrix_set_m31(ptr->GetMatrix(), (float) value->NumberValue(context).ToChecked());
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
void MatrixImpl::GetM32(v8::Local<v8::String> property,
|
|
638
|
+
const v8::PropertyCallbackInfo<v8::Value> &info) {
|
|
639
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
640
|
+
if (ptr == nullptr) {
|
|
641
|
+
info.GetReturnValue().SetUndefined();
|
|
642
|
+
return;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
info.GetReturnValue().Set((double) canvas_native_matrix_get_m32(ptr->GetMatrix()));
|
|
646
|
+
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
void MatrixImpl::SetM32(v8::Local<v8::String> property,
|
|
650
|
+
v8::Local<v8::Value> value,
|
|
651
|
+
const v8::PropertyCallbackInfo<void> &info) {
|
|
652
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
653
|
+
if (ptr == nullptr) {
|
|
654
|
+
return;
|
|
655
|
+
}
|
|
656
|
+
auto isolate = info.GetIsolate();
|
|
657
|
+
auto context = isolate->GetCurrentContext();
|
|
658
|
+
canvas_native_matrix_set_m32(ptr->GetMatrix(), (float) value->NumberValue(context).ToChecked());
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
void MatrixImpl::GetM33(v8::Local<v8::String> property,
|
|
662
|
+
const v8::PropertyCallbackInfo<v8::Value> &info) {
|
|
663
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
664
|
+
if (ptr == nullptr) {
|
|
665
|
+
info.GetReturnValue().SetUndefined();
|
|
666
|
+
return;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
info.GetReturnValue().Set((double) canvas_native_matrix_get_m33(ptr->GetMatrix()));
|
|
670
|
+
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
void MatrixImpl::SetM33(v8::Local<v8::String> property,
|
|
674
|
+
v8::Local<v8::Value> value,
|
|
675
|
+
const v8::PropertyCallbackInfo<void> &info) {
|
|
676
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
677
|
+
if (ptr == nullptr) {
|
|
678
|
+
return;
|
|
679
|
+
}
|
|
680
|
+
auto isolate = info.GetIsolate();
|
|
681
|
+
auto context = isolate->GetCurrentContext();
|
|
682
|
+
canvas_native_matrix_set_m33(ptr->GetMatrix(), (float) value->NumberValue(context).ToChecked());
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
void MatrixImpl::GetM34(v8::Local<v8::String> property,
|
|
686
|
+
const v8::PropertyCallbackInfo<v8::Value> &info) {
|
|
687
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
688
|
+
if (ptr == nullptr) {
|
|
689
|
+
info.GetReturnValue().SetUndefined();
|
|
690
|
+
return;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
info.GetReturnValue().Set((double) canvas_native_matrix_get_m34(ptr->GetMatrix()));
|
|
694
|
+
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
void MatrixImpl::SetM34(v8::Local<v8::String> property,
|
|
698
|
+
v8::Local<v8::Value> value,
|
|
699
|
+
const v8::PropertyCallbackInfo<void> &info) {
|
|
700
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
701
|
+
if (ptr == nullptr) {
|
|
702
|
+
return;
|
|
703
|
+
}
|
|
704
|
+
auto isolate = info.GetIsolate();
|
|
705
|
+
auto context = isolate->GetCurrentContext();
|
|
706
|
+
canvas_native_matrix_set_m34(ptr->GetMatrix(), (float) value->NumberValue(context).ToChecked());
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
void MatrixImpl::GetM41(v8::Local<v8::String> property,
|
|
710
|
+
const v8::PropertyCallbackInfo<v8::Value> &info) {
|
|
711
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
712
|
+
if (ptr == nullptr) {
|
|
713
|
+
info.GetReturnValue().SetUndefined();
|
|
714
|
+
return;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
info.GetReturnValue().Set((double) canvas_native_matrix_get_m41(ptr->GetMatrix()));
|
|
718
|
+
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
void MatrixImpl::SetM41(v8::Local<v8::String> property,
|
|
722
|
+
v8::Local<v8::Value> value,
|
|
723
|
+
const v8::PropertyCallbackInfo<void> &info) {
|
|
724
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
725
|
+
if (ptr == nullptr) {
|
|
726
|
+
return;
|
|
727
|
+
}
|
|
728
|
+
auto isolate = info.GetIsolate();
|
|
729
|
+
auto context = isolate->GetCurrentContext();
|
|
730
|
+
canvas_native_matrix_set_m41(ptr->GetMatrix(), (float) value->NumberValue(context).ToChecked());
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
void MatrixImpl::GetM42(v8::Local<v8::String> property,
|
|
734
|
+
const v8::PropertyCallbackInfo<v8::Value> &info) {
|
|
735
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
736
|
+
if (ptr == nullptr) {
|
|
737
|
+
info.GetReturnValue().SetUndefined();
|
|
738
|
+
return;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
info.GetReturnValue().Set((double) canvas_native_matrix_get_m42(ptr->GetMatrix()));
|
|
742
|
+
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
void MatrixImpl::SetM42(v8::Local<v8::String> property,
|
|
746
|
+
v8::Local<v8::Value> value,
|
|
747
|
+
const v8::PropertyCallbackInfo<void> &info) {
|
|
748
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
749
|
+
if (ptr == nullptr) {
|
|
750
|
+
return;
|
|
751
|
+
}
|
|
752
|
+
auto isolate = info.GetIsolate();
|
|
753
|
+
auto context = isolate->GetCurrentContext();
|
|
754
|
+
canvas_native_matrix_set_m42(ptr->GetMatrix(), (float) value->NumberValue(context).ToChecked());
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
void MatrixImpl::GetM43(v8::Local<v8::String> property,
|
|
758
|
+
const v8::PropertyCallbackInfo<v8::Value> &info) {
|
|
759
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
760
|
+
if (ptr == nullptr) {
|
|
761
|
+
info.GetReturnValue().SetUndefined();
|
|
762
|
+
return;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
info.GetReturnValue().Set((double) canvas_native_matrix_get_m43(ptr->GetMatrix()));
|
|
766
|
+
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
void MatrixImpl::SetM43(v8::Local<v8::String> property,
|
|
770
|
+
v8::Local<v8::Value> value,
|
|
771
|
+
const v8::PropertyCallbackInfo<void> &info) {
|
|
772
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
773
|
+
if (ptr == nullptr) {
|
|
774
|
+
return;
|
|
775
|
+
}
|
|
776
|
+
auto isolate = info.GetIsolate();
|
|
777
|
+
auto context = isolate->GetCurrentContext();
|
|
778
|
+
canvas_native_matrix_set_m43(ptr->GetMatrix(), (float) value->NumberValue(context).ToChecked());
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
void MatrixImpl::GetM44(v8::Local<v8::String> property,
|
|
782
|
+
const v8::PropertyCallbackInfo<v8::Value> &info) {
|
|
783
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
784
|
+
if (ptr == nullptr) {
|
|
785
|
+
info.GetReturnValue().SetUndefined();
|
|
786
|
+
return;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
info.GetReturnValue().Set((double) canvas_native_matrix_get_m44(ptr->GetMatrix()));
|
|
790
|
+
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
void MatrixImpl::SetM44(v8::Local<v8::String> property,
|
|
794
|
+
v8::Local<v8::Value> value,
|
|
795
|
+
const v8::PropertyCallbackInfo<void> &info) {
|
|
796
|
+
MatrixImpl *ptr = GetPointer(info.This());
|
|
797
|
+
if (ptr == nullptr) {
|
|
798
|
+
return;
|
|
799
|
+
}
|
|
800
|
+
auto isolate = info.GetIsolate();
|
|
801
|
+
auto context = isolate->GetCurrentContext();
|
|
802
|
+
canvas_native_matrix_set_m44(ptr->GetMatrix(), (float) value->NumberValue(context).ToChecked());
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
Matrix *MatrixImpl::GetMatrix() {
|
|
806
|
+
return this->matrix_;
|
|
807
|
+
}
|