@nativescript/canvas 2.0.0-alpha.9 → 2.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +11 -5
- package/Canvas2D/CanvasRenderingContext2D/index.js +183 -245
- package/Canvas2D/CanvasRenderingContext2D/index.js.map +1 -1
- package/Canvas2D/DOMMatrix/index.js +5 -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/Dom.js +7 -2
- package/Dom/Dom.js.map +1 -1
- package/Dom/Group.d.ts +7 -7
- package/Dom/Group.js +47 -21
- package/Dom/Group.js.map +1 -1
- package/Dom/Image.js +2 -3
- package/Dom/Image.js.map +1 -1
- package/Dom/Paint.d.ts +1 -0
- package/Dom/Paint.js +10 -5
- package/Dom/Paint.js.map +1 -1
- package/Dom/Text.js +3 -4
- package/Dom/Text.js.map +1 -1
- package/Dom/shapes/Circle.js +2 -3
- package/Dom/shapes/Circle.js.map +1 -1
- package/Dom/shapes/Path.js +1 -0
- package/Dom/shapes/Path.js.map +1 -1
- package/Dom/shapes/Points.js +1 -2
- package/Dom/shapes/Points.js.map +1 -1
- package/Dom/shapes/Rect.js +2 -2
- package/Dom/shapes/Rect.js.map +1 -1
- package/Dom/shapes/RoundedRect.js +8 -9
- package/Dom/shapes/RoundedRect.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 +132 -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 +5847 -2633
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +43 -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 +43 -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 +264 -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 +5847 -2633
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +43 -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 +43 -25
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +5847 -2633
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +43 -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 +43 -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 +33 -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 +2837 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h +1334 -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 -4543
- 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
|
@@ -4,26 +4,186 @@
|
|
|
4
4
|
|
|
5
5
|
#pragma once
|
|
6
6
|
|
|
7
|
-
#include "rust/cxx.h"
|
|
8
|
-
#include "canvas-cxx/src/lib.rs.h"
|
|
9
|
-
#import "NativeScript/JSIRuntime.h"
|
|
10
7
|
#include <vector>
|
|
8
|
+
#include "Helpers.h"
|
|
9
|
+
#include "ObjectWrapperImpl.h"
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
using namespace org::nativescript::canvas;
|
|
14
|
-
|
|
15
|
-
class JSI_EXPORT MatrixImpl : public jsi::HostObject {
|
|
11
|
+
class MatrixImpl: public ObjectWrapperImpl {
|
|
16
12
|
public:
|
|
17
|
-
MatrixImpl(
|
|
13
|
+
MatrixImpl(Matrix* matrix);
|
|
14
|
+
~MatrixImpl(){
|
|
15
|
+
canvas_native_matrix_destroy(this->GetMatrix());
|
|
16
|
+
this->matrix_ = nullptr;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
Matrix* GetMatrix();
|
|
20
|
+
|
|
21
|
+
static void Init(v8::Local<v8::Object> canvasModule, v8::Isolate *isolate);
|
|
22
|
+
|
|
23
|
+
static MatrixImpl *GetPointer(v8::Local<v8::Object> object);
|
|
24
|
+
|
|
25
|
+
static v8::Local<v8::FunctionTemplate> GetCtor(v8::Isolate *isolate);
|
|
26
|
+
|
|
27
|
+
static void Ctor(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
28
|
+
|
|
29
|
+
static void GetA(v8::Local<v8::String> property,
|
|
30
|
+
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
31
|
+
|
|
32
|
+
static void SetA(v8::Local<v8::String> property,
|
|
33
|
+
v8::Local<v8::Value> value,
|
|
34
|
+
const v8::PropertyCallbackInfo<void> &info);
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
static void GetB(v8::Local<v8::String> property,
|
|
38
|
+
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
39
|
+
|
|
40
|
+
static void SetB(v8::Local<v8::String> property,
|
|
41
|
+
v8::Local<v8::Value> value,
|
|
42
|
+
const v8::PropertyCallbackInfo<void> &info);
|
|
43
|
+
|
|
44
|
+
static void GetC(v8::Local<v8::String> property,
|
|
45
|
+
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
46
|
+
|
|
47
|
+
static void SetC(v8::Local<v8::String> property,
|
|
48
|
+
v8::Local<v8::Value> value,
|
|
49
|
+
const v8::PropertyCallbackInfo<void> &info);
|
|
50
|
+
|
|
51
|
+
static void GetD(v8::Local<v8::String> property,
|
|
52
|
+
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
53
|
+
|
|
54
|
+
static void SetD(v8::Local<v8::String> property,
|
|
55
|
+
v8::Local<v8::Value> value,
|
|
56
|
+
const v8::PropertyCallbackInfo<void> &info);
|
|
57
|
+
|
|
58
|
+
static void GetE(v8::Local<v8::String> property,
|
|
59
|
+
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
60
|
+
|
|
61
|
+
static void SetE(v8::Local<v8::String> property,
|
|
62
|
+
v8::Local<v8::Value> value,
|
|
63
|
+
const v8::PropertyCallbackInfo<void> &info);
|
|
64
|
+
|
|
65
|
+
static void GetF(v8::Local<v8::String> property,
|
|
66
|
+
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
67
|
+
|
|
68
|
+
static void SetF(v8::Local<v8::String> property,
|
|
69
|
+
v8::Local<v8::Value> value,
|
|
70
|
+
const v8::PropertyCallbackInfo<void> &info);
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
static void GetM11(v8::Local<v8::String> property,
|
|
74
|
+
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
75
|
+
|
|
76
|
+
static void SetM11(v8::Local<v8::String> property,
|
|
77
|
+
v8::Local<v8::Value> value,
|
|
78
|
+
const v8::PropertyCallbackInfo<void> &info);
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
static void GetM12(v8::Local<v8::String> property,
|
|
82
|
+
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
83
|
+
|
|
84
|
+
static void SetM12(v8::Local<v8::String> property,
|
|
85
|
+
v8::Local<v8::Value> value,
|
|
86
|
+
const v8::PropertyCallbackInfo<void> &info);
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
static void GetM13(v8::Local<v8::String> property,
|
|
90
|
+
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
91
|
+
|
|
92
|
+
static void SetM13(v8::Local<v8::String> property,
|
|
93
|
+
v8::Local<v8::Value> value,
|
|
94
|
+
const v8::PropertyCallbackInfo<void> &info);
|
|
95
|
+
|
|
96
|
+
static void GetM14(v8::Local<v8::String> property,
|
|
97
|
+
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
98
|
+
|
|
99
|
+
static void SetM14(v8::Local<v8::String> property,
|
|
100
|
+
v8::Local<v8::Value> value,
|
|
101
|
+
const v8::PropertyCallbackInfo<void> &info);
|
|
102
|
+
|
|
103
|
+
static void GetM21(v8::Local<v8::String> property,
|
|
104
|
+
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
105
|
+
|
|
106
|
+
static void SetM21(v8::Local<v8::String> property,
|
|
107
|
+
v8::Local<v8::Value> value,
|
|
108
|
+
const v8::PropertyCallbackInfo<void> &info);
|
|
109
|
+
|
|
110
|
+
static void GetM22(v8::Local<v8::String> property,
|
|
111
|
+
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
112
|
+
|
|
113
|
+
static void SetM22(v8::Local<v8::String> property,
|
|
114
|
+
v8::Local<v8::Value> value,
|
|
115
|
+
const v8::PropertyCallbackInfo<void> &info);
|
|
116
|
+
|
|
117
|
+
static void GetM23(v8::Local<v8::String> property,
|
|
118
|
+
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
119
|
+
|
|
120
|
+
static void SetM23(v8::Local<v8::String> property,
|
|
121
|
+
v8::Local<v8::Value> value,
|
|
122
|
+
const v8::PropertyCallbackInfo<void> &info);
|
|
123
|
+
|
|
124
|
+
static void GetM24(v8::Local<v8::String> property,
|
|
125
|
+
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
126
|
+
|
|
127
|
+
static void SetM24(v8::Local<v8::String> property,
|
|
128
|
+
v8::Local<v8::Value> value,
|
|
129
|
+
const v8::PropertyCallbackInfo<void> &info);
|
|
130
|
+
|
|
131
|
+
static void GetM31(v8::Local<v8::String> property,
|
|
132
|
+
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
133
|
+
|
|
134
|
+
static void SetM31(v8::Local<v8::String> property,
|
|
135
|
+
v8::Local<v8::Value> value,
|
|
136
|
+
const v8::PropertyCallbackInfo<void> &info);
|
|
137
|
+
|
|
138
|
+
static void GetM32(v8::Local<v8::String> property,
|
|
139
|
+
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
140
|
+
|
|
141
|
+
static void SetM32(v8::Local<v8::String> property,
|
|
142
|
+
v8::Local<v8::Value> value,
|
|
143
|
+
const v8::PropertyCallbackInfo<void> &info);
|
|
144
|
+
|
|
145
|
+
static void GetM33(v8::Local<v8::String> property,
|
|
146
|
+
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
147
|
+
|
|
148
|
+
static void SetM33(v8::Local<v8::String> property,
|
|
149
|
+
v8::Local<v8::Value> value,
|
|
150
|
+
const v8::PropertyCallbackInfo<void> &info);
|
|
151
|
+
|
|
152
|
+
static void GetM34(v8::Local<v8::String> property,
|
|
153
|
+
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
154
|
+
|
|
155
|
+
static void SetM34(v8::Local<v8::String> property,
|
|
156
|
+
v8::Local<v8::Value> value,
|
|
157
|
+
const v8::PropertyCallbackInfo<void> &info);
|
|
158
|
+
|
|
159
|
+
static void GetM41(v8::Local<v8::String> property,
|
|
160
|
+
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
161
|
+
|
|
162
|
+
static void SetM41(v8::Local<v8::String> property,
|
|
163
|
+
v8::Local<v8::Value> value,
|
|
164
|
+
const v8::PropertyCallbackInfo<void> &info);
|
|
165
|
+
|
|
166
|
+
static void GetM42(v8::Local<v8::String> property,
|
|
167
|
+
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
168
|
+
|
|
169
|
+
static void SetM42(v8::Local<v8::String> property,
|
|
170
|
+
v8::Local<v8::Value> value,
|
|
171
|
+
const v8::PropertyCallbackInfo<void> &info);
|
|
18
172
|
|
|
19
|
-
|
|
173
|
+
static void GetM43(v8::Local<v8::String> property,
|
|
174
|
+
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
20
175
|
|
|
21
|
-
void
|
|
176
|
+
static void SetM43(v8::Local<v8::String> property,
|
|
177
|
+
v8::Local<v8::Value> value,
|
|
178
|
+
const v8::PropertyCallbackInfo<void> &info);
|
|
22
179
|
|
|
23
|
-
|
|
180
|
+
static void GetM44(v8::Local<v8::String> property,
|
|
181
|
+
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
24
182
|
|
|
25
|
-
|
|
183
|
+
static void SetM44(v8::Local<v8::String> property,
|
|
184
|
+
v8::Local<v8::Value> value,
|
|
185
|
+
const v8::PropertyCallbackInfo<void> &info);
|
|
26
186
|
|
|
27
187
|
private:
|
|
28
|
-
|
|
188
|
+
Matrix* matrix_;
|
|
29
189
|
};
|
|
@@ -0,0 +1,499 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Created by Osei Fortune on 28/03/2022.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
#include "Path2D.h"
|
|
6
|
+
#include "Caches.h"
|
|
7
|
+
#include "Helpers.h"
|
|
8
|
+
#include "OneByteStringResource.h"
|
|
9
|
+
|
|
10
|
+
Path2D::Path2D(Path *path)
|
|
11
|
+
: path_(path) {}
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
void Path2D::Init(v8::Local<v8::Object> canvasModule, v8::Isolate *isolate) {
|
|
15
|
+
v8::Locker locker(isolate);
|
|
16
|
+
v8::Isolate::Scope isolate_scope(isolate);
|
|
17
|
+
v8::HandleScope handle_scope(isolate);
|
|
18
|
+
|
|
19
|
+
auto ctor = GetCtor(isolate);
|
|
20
|
+
auto context = isolate->GetCurrentContext();
|
|
21
|
+
auto func = ctor->GetFunction(context).ToLocalChecked();
|
|
22
|
+
|
|
23
|
+
canvasModule->Set(context, ConvertToV8String(isolate, "Path2D"), func);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
Path2D *Path2D::GetPointer(const v8::Local<v8::Object> &object) {
|
|
27
|
+
auto ptr = object->GetAlignedPointerFromInternalField(0);
|
|
28
|
+
if (ptr == nullptr) {
|
|
29
|
+
return nullptr;
|
|
30
|
+
}
|
|
31
|
+
return static_cast<Path2D *>(ptr);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
v8::CFunction Path2D::fast_arc_(v8::CFunction::Make(Path2D::FastArc));
|
|
35
|
+
|
|
36
|
+
v8::CFunction Path2D::fast_add_path_(v8::CFunction::Make(Path2D::FastAddPath));
|
|
37
|
+
|
|
38
|
+
v8::CFunction Path2D::fast_arc_to_(v8::CFunction::Make(Path2D::FastArcTo));
|
|
39
|
+
|
|
40
|
+
v8::CFunction Path2D::fast_bezier_curve_to_(v8::CFunction::Make(Path2D::FastBezierCurveTo));
|
|
41
|
+
|
|
42
|
+
v8::CFunction Path2D::fast_close_path_(v8::CFunction::Make(Path2D::FastClosePath));
|
|
43
|
+
|
|
44
|
+
v8::CFunction Path2D::fast_ellipse_(v8::CFunction::Make(Path2D::FastEllipse));
|
|
45
|
+
|
|
46
|
+
v8::CFunction Path2D::fast_line_to_(v8::CFunction::Make(Path2D::FastLineTo));
|
|
47
|
+
|
|
48
|
+
v8::CFunction Path2D::fast_move_to_(v8::CFunction::Make(Path2D::FastMoveTo));
|
|
49
|
+
|
|
50
|
+
v8::CFunction Path2D::fast_quadratic_curve_to_(v8::CFunction::Make(Path2D::FastQuadraticCurveTo));
|
|
51
|
+
|
|
52
|
+
v8::CFunction Path2D::fast_rect_(v8::CFunction::Make(Path2D::FastRect));
|
|
53
|
+
|
|
54
|
+
//v8::CFunction Path2D::fast_round_rect_(v8::CFunction::Make(Path2D::FastRoundRect));
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
v8::CFunction Path2D::fast_round_rect_(
|
|
58
|
+
v8::CFunction::Make(Path2D::FastRoundRect));
|
|
59
|
+
|
|
60
|
+
v8::CFunction Path2D::fast_round_rect_array_(
|
|
61
|
+
v8::CFunction::Make(Path2D::FastRoundRectArray));
|
|
62
|
+
|
|
63
|
+
const v8::CFunction fast_round_rect_overloads_[] = {
|
|
64
|
+
Path2D::fast_round_rect_,
|
|
65
|
+
Path2D::fast_round_rect_array_
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
//v8::CFunction Path2D::fast_to_svg_(v8::CFunction::Make(Path2D::FastToSVG));
|
|
71
|
+
|
|
72
|
+
void Path2D::Ctor(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
73
|
+
auto count = args.Length();
|
|
74
|
+
auto value = args[0];
|
|
75
|
+
auto isolate = args.GetIsolate();
|
|
76
|
+
|
|
77
|
+
auto ret = args.This();
|
|
78
|
+
|
|
79
|
+
SetNativeType( ret, NativeType::Path2D);
|
|
80
|
+
|
|
81
|
+
if (count > 0) {
|
|
82
|
+
if (value->IsString()) {
|
|
83
|
+
auto d = ConvertFromV8String(isolate, value);
|
|
84
|
+
auto path = canvas_native_path_create_with_string(d.c_str());
|
|
85
|
+
auto object = new Path2D(path);
|
|
86
|
+
|
|
87
|
+
ret->SetAlignedPointerInInternalField(0, object);
|
|
88
|
+
|
|
89
|
+
object->BindFinalizer(isolate, ret);
|
|
90
|
+
|
|
91
|
+
args.GetReturnValue().Set(ret);
|
|
92
|
+
|
|
93
|
+
return;
|
|
94
|
+
|
|
95
|
+
} else if (value->IsObject()) {
|
|
96
|
+
auto path_to_copy = GetPointer(value.As<v8::Object>());
|
|
97
|
+
if (path_to_copy != nullptr) {
|
|
98
|
+
auto path = canvas_native_path_create_with_path(
|
|
99
|
+
path_to_copy->GetPath());
|
|
100
|
+
auto object = new Path2D(path);
|
|
101
|
+
|
|
102
|
+
ret->SetAlignedPointerInInternalField(0, object);
|
|
103
|
+
|
|
104
|
+
object->BindFinalizer(isolate, ret);
|
|
105
|
+
|
|
106
|
+
args.GetReturnValue().Set(ret);
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
} else {
|
|
111
|
+
auto path = new Path2D(canvas_native_path_create());
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
ret->SetAlignedPointerInInternalField(0, path);
|
|
115
|
+
|
|
116
|
+
path->BindFinalizer(isolate, ret);
|
|
117
|
+
|
|
118
|
+
args.GetReturnValue().Set(ret);
|
|
119
|
+
return;
|
|
120
|
+
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
args.GetReturnValue().SetUndefined();
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
void Path2D::AddPath(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
127
|
+
Path2D *ptr = GetPointer(args.This());
|
|
128
|
+
if (ptr == nullptr) {
|
|
129
|
+
args.GetReturnValue().SetUndefined();
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
auto value = args[0];
|
|
134
|
+
if (value->IsObject()) {
|
|
135
|
+
auto object = GetPointer(value.As<v8::Object>());
|
|
136
|
+
if (object != nullptr) {
|
|
137
|
+
AddPathImpl(ptr->GetPath(),
|
|
138
|
+
object->GetPath());
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
void Path2D::Arc(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
144
|
+
Path2D *ptr = GetPointer(args.This());
|
|
145
|
+
if (ptr == nullptr) {
|
|
146
|
+
args.GetReturnValue().SetUndefined();
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
auto isolate = args.GetIsolate();
|
|
151
|
+
auto context = isolate->GetCurrentContext();
|
|
152
|
+
auto anti_clockwise = false;
|
|
153
|
+
if (args.Length() == 6) {
|
|
154
|
+
anti_clockwise = args[5]->BooleanValue(isolate);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
canvas_native_path_arc(
|
|
158
|
+
ptr->GetPath(),
|
|
159
|
+
static_cast<float>(args[0]->NumberValue(context).ToChecked()),
|
|
160
|
+
static_cast<float>(args[1]->NumberValue(context).ToChecked()),
|
|
161
|
+
static_cast<float>(args[2]->NumberValue(context).ToChecked()),
|
|
162
|
+
static_cast<float>(args[3]->NumberValue(context).ToChecked()),
|
|
163
|
+
static_cast<float>(args[4]->NumberValue(context).ToChecked()),
|
|
164
|
+
anti_clockwise
|
|
165
|
+
);
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
args.GetReturnValue().SetUndefined();
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
void Path2D::ArcTo(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
172
|
+
Path2D *ptr = GetPointer(args.This());
|
|
173
|
+
if (ptr == nullptr) {
|
|
174
|
+
args.GetReturnValue().SetUndefined();
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
auto isolate = args.GetIsolate();
|
|
179
|
+
auto context = isolate->GetCurrentContext();
|
|
180
|
+
|
|
181
|
+
ArcToImpl(
|
|
182
|
+
ptr->GetPath(),
|
|
183
|
+
args[0]->NumberValue(context).ToChecked(),
|
|
184
|
+
args[1]->NumberValue(context).ToChecked(),
|
|
185
|
+
args[2]->NumberValue(context).ToChecked(),
|
|
186
|
+
args[3]->NumberValue(context).ToChecked(),
|
|
187
|
+
args[4]->NumberValue(context).ToChecked()
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
void Path2D::BezierCurveTo(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
192
|
+
Path2D *ptr = GetPointer(args.This());
|
|
193
|
+
if (ptr == nullptr) {
|
|
194
|
+
args.GetReturnValue().SetUndefined();
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
auto isolate = args.GetIsolate();
|
|
199
|
+
auto context = isolate->GetCurrentContext();
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
BezierCurveToImpl(
|
|
203
|
+
ptr->GetPath(),
|
|
204
|
+
static_cast<float>(args[0]->NumberValue(context).ToChecked()),
|
|
205
|
+
static_cast<float>(args[1]->NumberValue(context).ToChecked()),
|
|
206
|
+
static_cast<float>(args[2]->NumberValue(context).ToChecked()),
|
|
207
|
+
static_cast<float>(args[3]->NumberValue(context).ToChecked()),
|
|
208
|
+
static_cast<float>(args[4]->NumberValue(context).ToChecked()),
|
|
209
|
+
static_cast<float>(args[5]->NumberValue(context).ToChecked())
|
|
210
|
+
);
|
|
211
|
+
|
|
212
|
+
args.GetReturnValue().SetUndefined();
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
void Path2D::ClosePath(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
216
|
+
Path2D *ptr = GetPointer(args.This());
|
|
217
|
+
if (ptr == nullptr) {
|
|
218
|
+
args.GetReturnValue().SetUndefined();
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
canvas_native_path_close_path(ptr->GetPath());
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
void Path2D::Ellipse(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
226
|
+
Path2D *ptr = GetPointer(args.This());
|
|
227
|
+
if (ptr == nullptr) {
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
auto isolate = args.GetIsolate();
|
|
232
|
+
auto context = isolate->GetCurrentContext();
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
auto anti_clockwise = false;
|
|
236
|
+
if (args.Length() > 7) {
|
|
237
|
+
anti_clockwise = args[7]->BooleanValue(isolate);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
canvas_native_path_ellipse(
|
|
241
|
+
ptr->GetPath(),
|
|
242
|
+
static_cast<float>(args[0]->NumberValue(context).ToChecked()),
|
|
243
|
+
static_cast<float>(args[1]->NumberValue(context).ToChecked()),
|
|
244
|
+
static_cast<float>(args[2]->NumberValue(context).ToChecked()),
|
|
245
|
+
static_cast<float>(args[3]->NumberValue(context).ToChecked()),
|
|
246
|
+
static_cast<float>(args[4]->NumberValue(context).ToChecked()),
|
|
247
|
+
static_cast<float>(args[5]->NumberValue(context).ToChecked()),
|
|
248
|
+
static_cast<float>(args[6]->NumberValue(context).ToChecked()),
|
|
249
|
+
anti_clockwise
|
|
250
|
+
);
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
args.GetReturnValue().SetUndefined();
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
void Path2D::LineTo(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
257
|
+
Path2D *ptr = GetPointer(args.This());
|
|
258
|
+
if (ptr == nullptr) {
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
auto isolate = args.GetIsolate();
|
|
263
|
+
auto context = isolate->GetCurrentContext();
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
canvas_native_path_line_to(ptr->GetPath(),
|
|
267
|
+
static_cast<float>(args[0]->NumberValue(context).ToChecked()),
|
|
268
|
+
static_cast<float>(args[1]->NumberValue(context).ToChecked()));
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
args.GetReturnValue().SetUndefined();
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
void Path2D::MoveTo(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
275
|
+
Path2D *ptr = GetPointer(args.This());
|
|
276
|
+
if (ptr == nullptr) {
|
|
277
|
+
return;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
auto isolate = args.GetIsolate();
|
|
281
|
+
auto context = isolate->GetCurrentContext();
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
canvas_native_path_move_to(ptr->GetPath(),
|
|
285
|
+
static_cast<float>(args[0]->NumberValue(context).ToChecked()),
|
|
286
|
+
static_cast<float>(args[1]->NumberValue(context).ToChecked()));
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
args.GetReturnValue().SetUndefined();
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
void Path2D::QuadraticCurveTo(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
293
|
+
Path2D *ptr = GetPointer(args.This());
|
|
294
|
+
if (ptr == nullptr) {
|
|
295
|
+
return;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
auto isolate = args.GetIsolate();
|
|
299
|
+
auto context = isolate->GetCurrentContext();
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
canvas_native_path_quadratic_curve_to(
|
|
303
|
+
ptr->GetPath(),
|
|
304
|
+
static_cast<float>(args[0]->NumberValue(context).ToChecked()),
|
|
305
|
+
static_cast<float>(args[1]->NumberValue(context).ToChecked()),
|
|
306
|
+
static_cast<float>(args[2]->NumberValue(context).ToChecked()),
|
|
307
|
+
static_cast<float>(args[3]->NumberValue(context).ToChecked())
|
|
308
|
+
);
|
|
309
|
+
|
|
310
|
+
args.GetReturnValue().SetUndefined();
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
void Path2D::Rect(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
314
|
+
Path2D *ptr = GetPointer(args.This());
|
|
315
|
+
if (ptr == nullptr) {
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
auto isolate = args.GetIsolate();
|
|
320
|
+
auto context = isolate->GetCurrentContext();
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
canvas_native_path_rect(
|
|
324
|
+
ptr->GetPath(),
|
|
325
|
+
static_cast<float>(args[0]->NumberValue(context).ToChecked()),
|
|
326
|
+
static_cast<float>(args[1]->NumberValue(context).ToChecked()),
|
|
327
|
+
static_cast<float>(args[2]->NumberValue(context).ToChecked()),
|
|
328
|
+
static_cast<float>(args[3]->NumberValue(context).ToChecked())
|
|
329
|
+
);
|
|
330
|
+
|
|
331
|
+
args.GetReturnValue().SetUndefined();
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
void Path2D::RoundRect(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
335
|
+
Path2D *ptr = GetPointer(args.This());
|
|
336
|
+
if (ptr == nullptr) {
|
|
337
|
+
return;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
auto isolate = args.GetIsolate();
|
|
341
|
+
auto context = isolate->GetCurrentContext();
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
if (args.Length() == 5) {
|
|
345
|
+
auto x = static_cast<float>(args[0]->NumberValue(context).ToChecked());
|
|
346
|
+
auto y = static_cast<float>(args[1]->NumberValue(context).ToChecked());
|
|
347
|
+
auto width = static_cast<float>(args[2]->NumberValue(context).ToChecked());
|
|
348
|
+
auto height = static_cast<float>(args[3]->NumberValue(context).ToChecked());
|
|
349
|
+
auto objectOrNumber = args[4];
|
|
350
|
+
if (objectOrNumber->IsObject()) {
|
|
351
|
+
auto radii = objectOrNumber.As<v8::Object>();
|
|
352
|
+
if (radii->IsArray()) {
|
|
353
|
+
auto array = radii.As<v8::Array>();
|
|
354
|
+
auto size = array->Length();
|
|
355
|
+
|
|
356
|
+
if (size > 1) {
|
|
357
|
+
std::vector<float> store;
|
|
358
|
+
store.reserve(size);
|
|
359
|
+
for (int i = 0;
|
|
360
|
+
i < size; i++) {
|
|
361
|
+
store[i] = (float) array->Get(context, i).ToLocalChecked()->NumberValue(
|
|
362
|
+
context).ToChecked();
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
canvas_native_path_round_rect(
|
|
366
|
+
ptr->GetPath(),
|
|
367
|
+
x, y,
|
|
368
|
+
width,
|
|
369
|
+
height, store.data(),
|
|
370
|
+
store.size());
|
|
371
|
+
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
} else {
|
|
375
|
+
auto radii = (float) objectOrNumber->NumberValue(context).ToChecked();
|
|
376
|
+
canvas_native_path_round_rect_tl_tr_br_bl(
|
|
377
|
+
ptr->GetPath(), x, y,
|
|
378
|
+
width,
|
|
379
|
+
height, radii, radii,
|
|
380
|
+
radii, radii);
|
|
381
|
+
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
args.GetReturnValue().SetUndefined();
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
void Path2D::__toSVG(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
389
|
+
Path2D *ptr = GetPointer(args.This());
|
|
390
|
+
if (ptr == nullptr) {
|
|
391
|
+
args.GetReturnValue().SetEmptyString();
|
|
392
|
+
return;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
auto isolate = args.GetIsolate();
|
|
396
|
+
|
|
397
|
+
auto d = canvas_native_path_to_string(
|
|
398
|
+
ptr->GetPath());
|
|
399
|
+
|
|
400
|
+
// args.GetReturnValue().Set(ConvertToV8String(isolate, d.c_str()));
|
|
401
|
+
|
|
402
|
+
auto value = new OneByteStringResource((char *) d);
|
|
403
|
+
auto ret = v8::String::NewExternalOneByte(isolate, value);
|
|
404
|
+
args.GetReturnValue().Set(ret.ToLocalChecked());
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
Path *Path2D::GetPath() {
|
|
408
|
+
return this->path_;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
v8::Local<v8::FunctionTemplate> Path2D::GetCtor(v8::Isolate *isolate) {
|
|
413
|
+
auto cache = Caches::Get(isolate);
|
|
414
|
+
auto ctor = cache->Path2DTmpl.get();
|
|
415
|
+
if (ctor != nullptr) {
|
|
416
|
+
return ctor->Get(isolate);
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
v8::Local<v8::FunctionTemplate> ctorTmpl = v8::FunctionTemplate::New(isolate, Ctor);
|
|
420
|
+
ctorTmpl->InstanceTemplate()->SetInternalFieldCount(2);
|
|
421
|
+
ctorTmpl->SetClassName(ConvertToV8String(isolate, "Path2D"));
|
|
422
|
+
|
|
423
|
+
auto tmpl = ctorTmpl->InstanceTemplate();
|
|
424
|
+
|
|
425
|
+
tmpl->SetInternalFieldCount(2);
|
|
426
|
+
|
|
427
|
+
tmpl->Set(
|
|
428
|
+
ConvertToV8String(isolate, "arcTo"),
|
|
429
|
+
v8::FunctionTemplate::New(isolate, &ArcTo));
|
|
430
|
+
|
|
431
|
+
SetFastMethod(isolate, tmpl, "addPath", AddPath, &fast_add_path_, v8::Local<v8::Value>());
|
|
432
|
+
SetFastMethod(isolate, tmpl, "arc", Arc, &fast_arc_, v8::Local<v8::Value>());
|
|
433
|
+
SetFastMethod(isolate, tmpl, "arcTo", ArcTo, &fast_arc_to_, v8::Local<v8::Value>());
|
|
434
|
+
SetFastMethod(isolate, tmpl, "bezierCurveTo", BezierCurveTo, &fast_bezier_curve_to_,
|
|
435
|
+
v8::Local<v8::Value>());
|
|
436
|
+
SetFastMethod(isolate, tmpl, "closePath", ClosePath, &fast_close_path_, v8::Local<v8::Value>());
|
|
437
|
+
SetFastMethod(isolate, tmpl, "ellipse", Ellipse, &fast_ellipse_, v8::Local<v8::Value>());
|
|
438
|
+
SetFastMethod(isolate, tmpl, "lineTo", LineTo, &fast_line_to_, v8::Local<v8::Value>());
|
|
439
|
+
SetFastMethod(isolate, tmpl, "moveTo", MoveTo, &fast_move_to_, v8::Local<v8::Value>());
|
|
440
|
+
SetFastMethod(isolate, tmpl, "quadraticCurveTo", QuadraticCurveTo, &fast_quadratic_curve_to_,
|
|
441
|
+
v8::Local<v8::Value>());
|
|
442
|
+
SetFastMethod(isolate, tmpl, "rect", Rect, &fast_rect_, v8::Local<v8::Value>());
|
|
443
|
+
SetFastMethodWithOverLoads(isolate, tmpl, "roundRect", RoundRect,
|
|
444
|
+
fast_round_rect_overloads_, v8::Local<v8::Value>());
|
|
445
|
+
|
|
446
|
+
// tmpl->Set(
|
|
447
|
+
// ConvertToV8String(isolate, "addPath"),
|
|
448
|
+
// v8::FunctionTemplate::New(isolate, &AddPath));
|
|
449
|
+
|
|
450
|
+
// tmpl->Set(
|
|
451
|
+
// ConvertToV8String(isolate, "arc"),
|
|
452
|
+
// v8::FunctionTemplate::New(isolate, &Arc));
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
// tmpl->Set(
|
|
456
|
+
// ConvertToV8String(isolate, "bezierCurveTo"),
|
|
457
|
+
// v8::FunctionTemplate::New(isolate, &BezierCurveTo));
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
// tmpl->Set(
|
|
461
|
+
// ConvertToV8String(isolate, "closePath"),
|
|
462
|
+
// v8::FunctionTemplate::New(isolate, &ClosePath));
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
// tmpl->Set(
|
|
466
|
+
// ConvertToV8String(isolate, "ellipse"),
|
|
467
|
+
// v8::FunctionTemplate::New(isolate, &Ellipse));
|
|
468
|
+
|
|
469
|
+
// tmpl->Set(
|
|
470
|
+
// ConvertToV8String(isolate, "lineTo"),
|
|
471
|
+
// v8::FunctionTemplate::New(isolate, &LineTo));
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
// tmpl->Set(
|
|
475
|
+
// ConvertToV8String(isolate, "moveTo"),
|
|
476
|
+
// v8::FunctionTemplate::New(isolate, &MoveTo));
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
// tmpl->Set(
|
|
480
|
+
// ConvertToV8String(isolate, "quadraticCurveTo"),
|
|
481
|
+
// v8::FunctionTemplate::New(isolate, &QuadraticCurveTo));
|
|
482
|
+
|
|
483
|
+
// tmpl->Set(
|
|
484
|
+
// ConvertToV8String(isolate, "rect"),
|
|
485
|
+
// v8::FunctionTemplate::New(isolate, &Rect));
|
|
486
|
+
|
|
487
|
+
// tmpl->Set(
|
|
488
|
+
// ConvertToV8String(isolate, "roundRect"),
|
|
489
|
+
// v8::FunctionTemplate::New(isolate, &RoundRect));
|
|
490
|
+
|
|
491
|
+
tmpl->Set(
|
|
492
|
+
ConvertToV8String(isolate, "__toSVG"),
|
|
493
|
+
v8::FunctionTemplate::New(isolate, &__toSVG));
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
cache->Path2DTmpl =
|
|
497
|
+
std::make_unique<v8::Persistent<v8::FunctionTemplate>>(isolate, ctorTmpl);
|
|
498
|
+
return ctorTmpl;
|
|
499
|
+
}
|