@nativescript/canvas 2.0.0-alpha.5 → 2.0.0-alpha.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Canvas/common.d.ts +213 -25
- package/Canvas/common.js +702 -452
- package/Canvas/common.js.map +1 -1
- package/Canvas/index.android.d.ts +12 -1
- package/Canvas/index.android.js +162 -49
- package/Canvas/index.android.js.map +1 -1
- package/Canvas/index.d.ts +13 -0
- package/Canvas/index.ios.d.ts +9 -4
- package/Canvas/index.ios.js +166 -103
- package/Canvas/index.ios.js.map +1 -1
- package/Canvas2D/CanvasGradient/index.d.ts +1 -3
- package/Canvas2D/CanvasGradient/index.js +1 -10
- package/Canvas2D/CanvasGradient/index.js.map +1 -1
- package/Canvas2D/CanvasPattern/index.d.ts +1 -3
- package/Canvas2D/CanvasPattern/index.js +1 -10
- package/Canvas2D/CanvasPattern/index.js.map +1 -1
- package/Canvas2D/CanvasRenderingContext2D/index.d.ts +7 -3
- package/Canvas2D/CanvasRenderingContext2D/index.js +132 -233
- package/Canvas2D/CanvasRenderingContext2D/index.js.map +1 -1
- package/Canvas2D/DOMMatrix/index.js +3 -3
- package/Canvas2D/DOMMatrix/index.js.map +1 -1
- package/Canvas2D/ImageData/index.js +6 -6
- package/Canvas2D/ImageData/index.js.map +1 -1
- package/Canvas2D/Path2D/index.d.ts +0 -2
- package/Canvas2D/Path2D/index.js +32 -42
- package/Canvas2D/Path2D/index.js.map +1 -1
- package/Dom/Paint.js +2 -3
- package/Dom/Paint.js.map +1 -1
- package/Dom/shapes/Circle.js +1 -2
- package/Dom/shapes/Circle.js.map +1 -1
- package/Dom/shapes/Points.js +1 -2
- package/Dom/shapes/Points.js.map +1 -1
- package/ImageAsset/index.d.ts +2 -2
- package/ImageAsset/index.js +33 -37
- package/ImageAsset/index.js.map +1 -1
- package/ImageBitmap/index.d.ts +0 -2
- package/ImageBitmap/index.js +47 -33
- package/ImageBitmap/index.js.map +1 -1
- package/LICENSE +201 -0
- package/SVG/SVG.js +1 -1
- package/SVG/SVG.js.map +1 -1
- package/TextDecoder/index.d.ts +0 -2
- package/TextDecoder/index.js +3 -12
- package/TextDecoder/index.js.map +1 -1
- package/TextEncoder/index.d.ts +0 -2
- package/TextEncoder/index.js +4 -13
- package/TextEncoder/index.js.map +1 -1
- package/WebGL/WebGLExtensions/index.d.ts +4 -12
- package/WebGL/WebGLExtensions/index.js +27 -77
- package/WebGL/WebGLExtensions/index.js.map +1 -1
- package/WebGL/WebGLProgram.d.ts +0 -1
- package/WebGL/WebGLProgram.js +0 -3
- package/WebGL/WebGLProgram.js.map +1 -1
- package/WebGL/WebGLRenderingContext/common.d.ts +1 -3
- package/WebGL/WebGLRenderingContext/common.js +3 -13
- package/WebGL/WebGLRenderingContext/common.js.map +1 -1
- package/WebGL/WebGLRenderingContext/index.d.ts +19 -17
- package/WebGL/WebGLRenderingContext/index.js +354 -728
- package/WebGL/WebGLRenderingContext/index.js.map +1 -1
- package/WebGL2/WebGL2RenderingContext/common.d.ts +2 -2
- package/WebGL2/WebGL2RenderingContext/common.js +2 -2
- package/WebGL2/WebGL2RenderingContext/common.js.map +1 -1
- package/WebGL2/WebGL2RenderingContext/index.d.ts +1 -1
- package/WebGL2/WebGL2RenderingContext/index.js +116 -285
- package/WebGL2/WebGL2RenderingContext/index.js.map +1 -1
- package/angular/esm2020/index.mjs +4 -4
- package/angular/fesm2015/nativescript-canvas-angular.mjs +4 -4
- package/angular/fesm2020/nativescript-canvas-angular.mjs +4 -4
- package/angular/package.json +2 -2
- package/index.js.map +1 -1
- package/package.json +3 -2
- package/platforms/android/canvas-release.aar +0 -0
- package/platforms/android/include.gradle +15 -0
- package/platforms/ios/CanvasNative.xcframework/Info.plist +5 -5
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h +135 -68
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative.h +10 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_ios.h +144 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +2774 -70
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Info.plist +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.abi.json +5851 -2555
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +44 -24
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftinterface +44 -24
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative-Swift.h +270 -136
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative.h +10 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_ios.h +144 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +2774 -70
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Info.plist +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.abi.json +5851 -2555
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +44 -24
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface +44 -24
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +5851 -2555
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +44 -24
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +44 -24
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +42 -31
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
- package/platforms/ios/Podfile +5 -2
- package/platforms/ios/build.xcconfig +3 -3
- package/platforms/ios/src/CanvasModule.h +0 -2
- package/platforms/ios/src/CanvasModule.mm +4 -4
- package/platforms/ios/src/NSOperationQueueWrapper.h +11 -0
- package/platforms/ios/src/NSOperationQueueWrapper.mm +74 -0
- package/platforms/ios/src/cpp/Caches.cpp +35 -0
- package/platforms/ios/src/cpp/Caches.h +190 -0
- package/platforms/ios/src/cpp/CanvasJSIModule.cpp +1593 -0
- package/platforms/ios/src/cpp/CanvasJSIModule.h +16 -34
- package/platforms/ios/src/cpp/Common.h +30 -0
- package/platforms/ios/src/cpp/ConcurrentMap.h +54 -0
- package/platforms/ios/src/cpp/Helpers.h +336 -38
- package/platforms/ios/src/cpp/ImageAssetImpl.cpp +802 -0
- package/platforms/ios/src/cpp/ImageAssetImpl.h +46 -12
- package/platforms/ios/src/cpp/ImageBitmapImpl.cpp +189 -0
- package/platforms/ios/src/cpp/ImageBitmapImpl.h +42 -16
- package/platforms/ios/src/cpp/JSICallback.h +83 -5
- package/platforms/ios/src/cpp/JSIReadFileCallback.h +86 -6
- package/platforms/ios/src/cpp/JSIRuntime.cpp +21 -0
- package/platforms/ios/src/cpp/JSIRuntime.h +7 -0
- package/platforms/ios/src/cpp/ObjectWrapperImpl.h +31 -0
- package/platforms/ios/src/cpp/OneByteStringResource.cpp +55 -0
- package/platforms/ios/src/cpp/OneByteStringResource.h +36 -0
- package/platforms/ios/src/cpp/PerIsolateData.cpp +49 -0
- package/platforms/ios/src/cpp/PerIsolateData.h +54 -0
- package/platforms/ios/src/cpp/RafImpl.cpp +8 -0
- package/platforms/ios/src/cpp/RafImpl.h +11 -8
- package/platforms/ios/src/cpp/TextDecoderImpl.cpp +193 -0
- package/platforms/ios/src/cpp/TextDecoderImpl.h +23 -13
- package/platforms/ios/src/cpp/TextEncoderImpl.cpp +139 -0
- package/platforms/ios/src/cpp/TextEncoderImpl.h +21 -12
- package/platforms/ios/src/cpp/URLImpl.cpp +464 -0
- package/platforms/ios/src/cpp/URLImpl.h +121 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasGradient.cpp +71 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasGradient.h +29 -13
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.cpp +89 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.h +49 -12
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.cpp +2841 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h +1331 -21
- package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.cpp +207 -0
- package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.h +27 -13
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.cpp +807 -0
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.h +173 -13
- package/platforms/ios/src/cpp/canvas2d/Path2D.cpp +499 -0
- package/platforms/ios/src/cpp/canvas2d/Path2D.h +422 -12
- package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.cpp +253 -0
- package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.h +51 -12
- package/platforms/ios/src/cpp/gl.h +57 -7
- package/platforms/ios/src/cpp/gl3stub.c +425 -0
- package/platforms/ios/src/cpp/gl3stub.h +665 -0
- package/platforms/ios/src/cpp/gles3jni.h +37 -0
- package/platforms/ios/src/cpp/include/robin_hood.h +2544 -0
- package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.cpp +91 -0
- package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.h +33 -13
- package/platforms/ios/src/cpp/webgl/WebGLBuffer.h +42 -7
- package/platforms/ios/src/cpp/webgl/WebGLFramebuffer.h +47 -11
- package/platforms/ios/src/cpp/webgl/WebGLProgram.h +41 -6
- package/platforms/ios/src/cpp/webgl/WebGLRenderbuffer.h +41 -7
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.cpp +6845 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.h +3217 -388
- package/platforms/ios/src/cpp/webgl/{WebGLRenderingContextBase.mm → WebGLRenderingContextBase.cpp} +18 -17
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.h +16 -36
- package/platforms/ios/src/cpp/webgl/WebGLShader.h +41 -7
- package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.cpp +50 -0
- package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.h +67 -12
- package/platforms/ios/src/cpp/webgl/WebGLTexture.h +41 -7
- package/platforms/ios/src/cpp/webgl/WebGLUniformLocation.h +45 -9
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.cpp +126 -0
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.h +26 -12
- package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.cpp +35 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.h +26 -6
- package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.cpp +41 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.h +26 -6
- package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.cpp +306 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.h +47 -13
- package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.h +49 -6
- package/platforms/ios/src/cpp/webgl/extensions/EXT_shader_texture_lodImpl.h +37 -15
- package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.h +47 -6
- package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.h +49 -6
- package/platforms/ios/src/cpp/webgl/extensions/OES_fbo_render_mipmap.h +41 -16
- package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.h +44 -6
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_floatImpl.h +39 -16
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_float_linearImpl.h +37 -16
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.h +42 -6
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_float_linearImpl.h +40 -16
- package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.cpp +102 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.h +69 -14
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.h +51 -8
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.h +49 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.h +49 -8
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.h +76 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.h +57 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.h +53 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.h +59 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.h +46 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.cpp +35 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.h +131 -14
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.cpp +32 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.h +61 -13
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.cpp +4533 -0
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.h +1427 -342
- package/platforms/ios/src/cpp/webgl2/WebGLQuery.h +41 -4
- package/platforms/ios/src/cpp/webgl2/WebGLSampler.h +42 -3
- package/platforms/ios/src/cpp/webgl2/WebGLSyncImpl.h +45 -11
- package/platforms/ios/src/cpp/webgl2/WebGLTransformFeedback.h +43 -4
- package/platforms/ios/src/cpp/webgl2/WebGLVertexArrayObject.h +44 -4
- package/platforms/ios/src/module.modulemap +1 -0
- package/{pods → src-native/ios}/NativeScript.podspec +12 -25
- package/typings/objc!CanvasNative.d.ts +2038 -0
- package/typings/objc!CanvasNative.js +1 -0
- package/typings/objc!CanvasNative.js.map +1 -0
- package/utils.d.ts +3 -1
- package/utils.js +7 -20
- package/utils.js.map +1 -1
- package/angular/nativescript-canvas-angular.d.ts +0 -5
- package/platforms/ios/src/cpp/CanvasJSIModule.mm +0 -1105
- package/platforms/ios/src/cpp/ImageAssetImpl.mm +0 -417
- package/platforms/ios/src/cpp/ImageBitmapImpl.mm +0 -126
- package/platforms/ios/src/cpp/RafImpl.mm +0 -10
- package/platforms/ios/src/cpp/TextDecoderImpl.mm +0 -97
- package/platforms/ios/src/cpp/TextEncoderImpl.mm +0 -60
- package/platforms/ios/src/cpp/VecMutableBuffer.h +0 -46
- package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.cc +0 -6132
- package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.h +0 -2859
- package/platforms/ios/src/cpp/canvas2d/CanvasGradient.mm +0 -42
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.mm +0 -49
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.mm +0 -1975
- package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.mm +0 -68
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.mm +0 -149
- package/platforms/ios/src/cpp/canvas2d/Path2D.mm +0 -335
- package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.mm +0 -68
- package/platforms/ios/src/cpp/rust/cxx.cc +0 -793
- package/platforms/ios/src/cpp/rust/cxx.h +0 -1111
- package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.mm +0 -39
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.mm +0 -5958
- package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.mm +0 -40
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.mm +0 -108
- package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.mm +0 -28
- package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.mm +0 -42
- package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.mm +0 -295
- package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.mm +0 -40
- package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.mm +0 -37
- package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.mm +0 -28
- package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.mm +0 -31
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.mm +0 -28
- package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.mm +0 -127
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.mm +0 -45
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.mm +0 -45
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.mm +0 -31
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.mm +0 -70
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.mm +0 -47
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.mm +0 -46
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.mm +0 -49
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.mm +0 -30
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.mm +0 -177
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.mm +0 -64
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.mm +0 -4556
- package/pods/Headers/jsi/decorator.h +0 -770
- package/pods/Headers/jsi/instrumentation.h +0 -117
- package/pods/Headers/jsi/jsi-inl.h +0 -338
- package/pods/Headers/jsi/jsi.h +0 -1571
- package/pods/Headers/jsi/jsilib.h +0 -59
- package/pods/Headers/jsi/threadsafe.h +0 -79
- package/pods/Headers/v8runtime/HostProxy.h +0 -71
- package/pods/Headers/v8runtime/JSIV8ValueConverter.h +0 -74
- package/pods/Headers/v8runtime/V8PointerValue.h +0 -44
- package/pods/Headers/v8runtime/V8Runtime.h +0 -240
- package/pods/Headers/v8runtime/V8RuntimeConfig.h +0 -26
- package/pods/Headers/v8runtime/V8RuntimeFactory.h +0 -21
- /package/platforms/ios/src/cpp/{OnRafCallback.mm → OnRafCallback.cpp} +0 -0
- /package/{pods → src-native/ios}/Headers/include/APIDesign.md +0 -0
- /package/{pods → src-native/ios}/Headers/include/DEPS +0 -0
- /package/{pods → src-native/ios}/Headers/include/DIR_METADATA +0 -0
- /package/{pods → src-native/ios}/Headers/include/OWNERS +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/DEPS +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/OWNERS +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/README.md +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/allocation.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/common.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/cross-thread-persistent.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/custom-space.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/default-platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/ephemeron-pair.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/explicit-management.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/garbage-collected.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/heap-consistency.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/heap-state.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/heap-statistics.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/heap.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/api-constants.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/atomic-entry-flag.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/caged-heap-local-data.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/compiler-specific.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/finalizer-trait.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/gc-info.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/logging.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/name-trait.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/persistent-node.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/pointer-policies.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/write-barrier.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/liveness-broker.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/macros.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/member.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/name-provider.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/object-size-trait.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/persistent.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/prefinalizer.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/process-heap-statistics.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/sentinel-pointer.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/source-location.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/testing.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/trace-trait.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/type-traits.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/visitor.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/js_protocol-1.2.json +0 -0
- /package/{pods → src-native/ios}/Headers/include/js_protocol-1.3.json +0 -0
- /package/{pods → src-native/ios}/Headers/include/js_protocol.pdl +0 -0
- /package/{pods → src-native/ios}/Headers/include/libffi/arm64/ffi.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libffi/arm64/ffitarget.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libffi/x86_64/ffi.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libffi/x86_64/ffitarget.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libffi.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libplatform/DEPS +0 -0
- /package/{pods → src-native/ios}/Headers/include/libplatform/libplatform-export.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libplatform/libplatform.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libplatform/v8-tracing.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-array-buffer.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-callbacks.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-container.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-context.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-cppgc.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-data.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-date.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-debug.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-embedder-heap.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-embedder-state-scope.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-exception.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-extension.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-external.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-fast-api-calls.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-forward.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-function-callback.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-function.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-initialization.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-inspector-protocol.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-inspector.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-internal.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-isolate.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-json.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-local-handle.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-locker.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-maybe.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-memory-span.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-message.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-metrics.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-microtask-queue.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-microtask.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-object.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-persistent-handle.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-primitive-object.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-primitive.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-profiler.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-promise.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-proxy.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-regexp.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-script.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-snapshot.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-statistics.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-template.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-traced-handle.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-typed-array.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-unwinder-state.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-unwinder.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-util.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-value-serializer-version.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-value-serializer.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-value.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-version-string.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-version.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-wasm-trap-handler-posix.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-wasm-trap-handler-win.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-wasm.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-weak-callback-info.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8config.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/InspectorServer.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/JsV8InspectorClient.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/base/trace_event/common/trace_event_common.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/base64.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/address-region.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/atomic-utils.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/atomicops.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/atomicops_internals_atomicword_compat.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/base-export.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/bits.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/build_config.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/compiler-specific.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/export-template.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/flags.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/immediate-crash.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/lazy-instance.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/logging.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/macros.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/memory.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/once.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/optional.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/mutex.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/semaphore.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/v8-time.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/wrappers.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/safe_conversions.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/safe_conversions_impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/template-utils.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/v8-fallthrough.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/common/checks.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/common/globals.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/debug/debug-interface.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/debug/interface-types.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/init/v8.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/custom-preview.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/injected-script.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/inspected-context.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/CSS.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Console.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/DOM.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Debugger.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Forward.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/HeapProfiler.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Log.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Network.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Overlay.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Page.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Profiler.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Protocol.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Runtime.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Schema.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Security.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/remote-object-id.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/search-util.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/string-16.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/string-util.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-console-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-console-message.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-console.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-css-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger-id.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger-script.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-dom-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-heap-profiler-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-inspector-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-inspector-session-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-log-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-network-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-ns-debugger-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-overlay-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-page-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-profiler-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-regex.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-runtime-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-schema-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-stack-trace-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-string-conversions.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-value-utils.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/value-mirror.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/libplatform/default-platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/logging/tracing-flags.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/numbers/conversions.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/tracing/trace-event.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/utils/allocation.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/utils/vector.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/cbor.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/dispatch.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/error_support.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/export.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/find_by_first.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/frontend_channel.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/glue.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/json.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/json_platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/maybe.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/parser_handler.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/protocol_core.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/serializable.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/serializer_traits.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/span.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/status.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/utils.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/v8-inspector-platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ArgConverter.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ArrayAdapter.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Caches.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ClassBuilder.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Common.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ConcurrentMap.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ConcurrentQueue.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Console.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Constants.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/DataWrapper.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/DictionaryAdapter.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ExtVector.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/FFICall.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/FastEnumerationAdapter.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/FunctionReference.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Helpers.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/InlineFunctions.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Interop.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/KnownUnknownClassPair.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Metadata.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/MetadataBuilder.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/MetadataInlines.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ModuleInternal.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/NSDataAdapter.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/NativeScriptException.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ObjectManager.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/OneByteStringResource.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Pointer.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/PromiseProxy.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Reference.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Runtime.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/RuntimeConfig.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/SetTimeout.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/SimpleAllocator.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/StringHasher.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/SymbolIterator.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/SymbolLoader.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/TNSDerivedClass.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/TSHelpers.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Tasks.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/UnmanagedType.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/WeakRef.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Worker.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/robin_hood.h +0 -0
|
@@ -8,10 +8,19 @@ import { CanvasPattern } from '../CanvasPattern';
|
|
|
8
8
|
import { Canvas } from '../../Canvas';
|
|
9
9
|
import { Helpers } from '../../helpers';
|
|
10
10
|
let ctor;
|
|
11
|
+
function ruleToEnum(rule) {
|
|
12
|
+
switch (rule) {
|
|
13
|
+
case 'nonzero':
|
|
14
|
+
return 0;
|
|
15
|
+
case 'evenodd':
|
|
16
|
+
return 1;
|
|
17
|
+
default:
|
|
18
|
+
return -1; // will be ignored
|
|
19
|
+
}
|
|
20
|
+
}
|
|
11
21
|
export class CanvasRenderingContext2D {
|
|
12
22
|
constructor(context, contextOptions) {
|
|
13
23
|
this._type = 'none';
|
|
14
|
-
this._methodCache = new Map();
|
|
15
24
|
/*const width = context.getDrawingBufferWidth(); // can use getMeasuredWidth / getMeasuredHeight
|
|
16
25
|
const height = context.getDrawingBufferHeight();
|
|
17
26
|
|
|
@@ -38,121 +47,102 @@ export class CanvasRenderingContext2D {
|
|
|
38
47
|
return this.context.shadowColor;
|
|
39
48
|
}
|
|
40
49
|
set shadowColor(color) {
|
|
41
|
-
|
|
42
|
-
this._ensureLayoutBeforeDraw();
|
|
43
|
-
this.context.shadowColor = color;
|
|
44
|
-
}
|
|
50
|
+
this.context.shadowColor = color;
|
|
45
51
|
}
|
|
46
52
|
get font() {
|
|
47
53
|
return this.context.font;
|
|
48
54
|
}
|
|
49
55
|
set font(value) {
|
|
50
|
-
|
|
51
|
-
this._ensureLayoutBeforeDraw();
|
|
52
|
-
this.context.font = value;
|
|
53
|
-
}
|
|
56
|
+
this.context.font = value;
|
|
54
57
|
}
|
|
55
58
|
get direction() {
|
|
56
59
|
return this.context.direction;
|
|
57
60
|
}
|
|
58
61
|
set direction(value) {
|
|
59
|
-
|
|
60
|
-
this._ensureLayoutBeforeDraw();
|
|
61
|
-
this.context.direction = value;
|
|
62
|
-
}
|
|
62
|
+
this.context.direction = value;
|
|
63
63
|
}
|
|
64
64
|
get globalAlpha() {
|
|
65
65
|
return this.context.globalAlpha;
|
|
66
66
|
}
|
|
67
67
|
set globalAlpha(alpha) {
|
|
68
|
-
|
|
69
|
-
this._ensureLayoutBeforeDraw();
|
|
70
|
-
this.context.globalAlpha = alpha;
|
|
71
|
-
}
|
|
68
|
+
this.context.globalAlpha = alpha;
|
|
72
69
|
}
|
|
73
70
|
get imageSmoothingEnabled() {
|
|
74
71
|
return this.context.imageSmoothingEnabled;
|
|
75
72
|
}
|
|
76
73
|
set imageSmoothingEnabled(enabled) {
|
|
77
|
-
|
|
78
|
-
this._ensureLayoutBeforeDraw();
|
|
79
|
-
this.context.imageSmoothingEnabled = enabled;
|
|
80
|
-
}
|
|
74
|
+
this.context.imageSmoothingEnabled = enabled;
|
|
81
75
|
}
|
|
82
76
|
get imageSmoothingQuality() {
|
|
83
77
|
return this.context.imageSmoothingQuality;
|
|
84
78
|
}
|
|
85
79
|
set imageSmoothingQuality(quality) {
|
|
86
|
-
this._ensureLayoutBeforeDraw();
|
|
87
80
|
this.context.imageSmoothingQuality = quality;
|
|
88
81
|
}
|
|
89
82
|
get lineDashOffset() {
|
|
90
83
|
return this.context.lineDashOffset;
|
|
91
84
|
}
|
|
92
85
|
set lineDashOffset(offset) {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
86
|
+
this.context.lineDashOffset = offset;
|
|
87
|
+
}
|
|
88
|
+
get letterSpacing() {
|
|
89
|
+
return this.context.letterSpacing;
|
|
90
|
+
}
|
|
91
|
+
set letterSpacing(spacing) {
|
|
92
|
+
this.context.letterSpacing = spacing;
|
|
97
93
|
}
|
|
98
94
|
get lineJoin() {
|
|
99
95
|
return this.context.lineJoin;
|
|
100
96
|
}
|
|
101
97
|
set lineJoin(join) {
|
|
102
|
-
this._ensureLayoutBeforeDraw();
|
|
103
98
|
this.context.lineJoin = join;
|
|
104
99
|
}
|
|
105
100
|
get lineCap() {
|
|
106
101
|
return this.context.lineCap;
|
|
107
102
|
}
|
|
108
103
|
set lineCap(cap) {
|
|
109
|
-
this._ensureLayoutBeforeDraw();
|
|
110
104
|
this.context.lineCap = cap;
|
|
111
105
|
}
|
|
112
106
|
get miterLimit() {
|
|
113
107
|
return this.context.miterLimit;
|
|
114
108
|
}
|
|
115
109
|
set miterLimit(limit) {
|
|
116
|
-
this._ensureLayoutBeforeDraw();
|
|
117
110
|
this.context.miterLimit = limit;
|
|
118
111
|
}
|
|
119
112
|
get shadowBlur() {
|
|
120
113
|
return this.context.shadowBlur;
|
|
121
114
|
}
|
|
122
115
|
set shadowBlur(blur) {
|
|
123
|
-
this._ensureLayoutBeforeDraw();
|
|
124
116
|
this.context.shadowBlur = blur;
|
|
125
117
|
}
|
|
126
118
|
get shadowOffsetX() {
|
|
127
119
|
return this.context.shadowOffsetX;
|
|
128
120
|
}
|
|
129
121
|
set shadowOffsetX(x) {
|
|
130
|
-
|
|
131
|
-
this._ensureLayoutBeforeDraw();
|
|
132
|
-
this.context.shadowOffsetX = x;
|
|
133
|
-
}
|
|
122
|
+
this.context.shadowOffsetX = x;
|
|
134
123
|
}
|
|
135
124
|
get shadowOffsetY() {
|
|
136
125
|
return this.context.shadowOffsetY;
|
|
137
126
|
}
|
|
138
127
|
set shadowOffsetY(y) {
|
|
139
|
-
|
|
140
|
-
this._ensureLayoutBeforeDraw();
|
|
141
|
-
this.context.shadowOffsetY = y;
|
|
142
|
-
}
|
|
128
|
+
this.context.shadowOffsetY = y;
|
|
143
129
|
}
|
|
144
130
|
get textAlign() {
|
|
145
131
|
return this.context.textAlign;
|
|
146
132
|
}
|
|
147
133
|
set textAlign(alignment) {
|
|
148
|
-
this.
|
|
149
|
-
|
|
134
|
+
this.context.textAlign = alignment;
|
|
135
|
+
}
|
|
136
|
+
get textBaseline() {
|
|
137
|
+
return this.context.textBaseline;
|
|
138
|
+
}
|
|
139
|
+
set textBaseline(baseline) {
|
|
140
|
+
this.context.textBaseline = baseline;
|
|
150
141
|
}
|
|
151
142
|
get globalCompositeOperation() {
|
|
152
143
|
return this.context.globalCompositeOperation;
|
|
153
144
|
}
|
|
154
145
|
set globalCompositeOperation(composite) {
|
|
155
|
-
this._ensureLayoutBeforeDraw();
|
|
156
146
|
this.context.globalCompositeOperation = composite;
|
|
157
147
|
}
|
|
158
148
|
get fillStyle() {
|
|
@@ -162,7 +152,6 @@ export class CanvasRenderingContext2D {
|
|
|
162
152
|
if (color === undefined || color === null) {
|
|
163
153
|
return;
|
|
164
154
|
}
|
|
165
|
-
this._ensureLayoutBeforeDraw();
|
|
166
155
|
if (color instanceof CanvasGradient || color instanceof CanvasPattern) {
|
|
167
156
|
this.context.fillStyle = color.native;
|
|
168
157
|
}
|
|
@@ -174,7 +163,6 @@ export class CanvasRenderingContext2D {
|
|
|
174
163
|
return this.context.filter;
|
|
175
164
|
}
|
|
176
165
|
set filter(value) {
|
|
177
|
-
this._ensureLayoutBeforeDraw();
|
|
178
166
|
this.context.filter = value;
|
|
179
167
|
}
|
|
180
168
|
get strokeStyle() {
|
|
@@ -184,7 +172,6 @@ export class CanvasRenderingContext2D {
|
|
|
184
172
|
if (color === undefined || color === null) {
|
|
185
173
|
return;
|
|
186
174
|
}
|
|
187
|
-
this._ensureLayoutBeforeDraw();
|
|
188
175
|
if (color instanceof CanvasGradient || color instanceof CanvasPattern) {
|
|
189
176
|
this.context.strokeStyle = color.native;
|
|
190
177
|
}
|
|
@@ -196,69 +183,50 @@ export class CanvasRenderingContext2D {
|
|
|
196
183
|
return this.context.lineWidth;
|
|
197
184
|
}
|
|
198
185
|
set lineWidth(width) {
|
|
199
|
-
this._ensureLayoutBeforeDraw();
|
|
200
186
|
this.context.lineWidth = width;
|
|
201
187
|
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
return ret;
|
|
208
|
-
}
|
|
209
|
-
return cached;
|
|
188
|
+
get wordSpacing() {
|
|
189
|
+
return this.context.wordSpacing;
|
|
190
|
+
}
|
|
191
|
+
set wordSpacing(spacing) {
|
|
192
|
+
this.context.wordSpacing = spacing;
|
|
210
193
|
}
|
|
211
194
|
__toDataURL(type = 'image/jpg', quality = 92) {
|
|
212
|
-
|
|
213
|
-
return __toDataURL(type, quality);
|
|
195
|
+
return this.context.__toDataURL(type, quality);
|
|
214
196
|
}
|
|
215
197
|
addHitRegion(region) { }
|
|
216
198
|
arc(x, y, radius, startAngle, endAngle, anticlockwise = false) {
|
|
217
|
-
this.
|
|
218
|
-
const arc = this._getMethod('arc');
|
|
219
|
-
arc(x, y, radius, startAngle, endAngle, anticlockwise);
|
|
199
|
+
this.context.arc(x, y, radius, startAngle, endAngle, anticlockwise ?? false);
|
|
220
200
|
}
|
|
221
201
|
arcTo(x1, y1, x2, y2, radius) {
|
|
222
|
-
this.
|
|
223
|
-
const arcTo = this._getMethod('arcTo');
|
|
224
|
-
arcTo(x1, y1, x2, y2, radius);
|
|
202
|
+
this.context.arcTo(x1, y1, x2, y2, radius);
|
|
225
203
|
}
|
|
226
204
|
beginPath() {
|
|
227
|
-
this.
|
|
228
|
-
const beginPath = this._getMethod('beginPath');
|
|
229
|
-
beginPath();
|
|
205
|
+
this.context.beginPath();
|
|
230
206
|
}
|
|
231
207
|
bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y) {
|
|
232
|
-
this.
|
|
233
|
-
const bezierCurveTo = this._getMethod('bezierCurveTo');
|
|
234
|
-
bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y);
|
|
208
|
+
this.context.bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y);
|
|
235
209
|
}
|
|
236
210
|
clearHitRegions() { }
|
|
237
211
|
clearRect(x, y, width, height) {
|
|
238
|
-
this.
|
|
239
|
-
const clearRect = this._getMethod('clearRect');
|
|
240
|
-
clearRect(x, y, width, height);
|
|
212
|
+
this.context.clearRect(x, y, width, height);
|
|
241
213
|
}
|
|
242
214
|
clip(...args) {
|
|
243
|
-
this._ensureLayoutBeforeDraw();
|
|
244
|
-
const clip = this._getMethod('clip');
|
|
245
215
|
if (typeof args[0] === 'string') {
|
|
246
|
-
clip(args[0]);
|
|
216
|
+
this.context.clip(ruleToEnum(args[0]));
|
|
247
217
|
}
|
|
248
218
|
else if (args[0] instanceof Path2D && typeof args[1] === 'string') {
|
|
249
|
-
clip(args[0].native, args[1]);
|
|
219
|
+
this.context.clip(args[0].native, ruleToEnum(args[1]));
|
|
250
220
|
}
|
|
251
221
|
else if (args[0] instanceof Path2D) {
|
|
252
|
-
clip(args[0].native);
|
|
222
|
+
this.context.clip(args[0].native);
|
|
253
223
|
}
|
|
254
224
|
else {
|
|
255
|
-
clip();
|
|
225
|
+
this.context.clip();
|
|
256
226
|
}
|
|
257
227
|
}
|
|
258
228
|
closePath() {
|
|
259
|
-
this.
|
|
260
|
-
const closePath = this._getMethod('closePath');
|
|
261
|
-
closePath();
|
|
229
|
+
this.context.closePath();
|
|
262
230
|
}
|
|
263
231
|
createImageData(width, height) {
|
|
264
232
|
if (width instanceof ImageData) {
|
|
@@ -269,48 +237,45 @@ export class CanvasRenderingContext2D {
|
|
|
269
237
|
}
|
|
270
238
|
}
|
|
271
239
|
createLinearGradient(x0, y0, x1, y1) {
|
|
272
|
-
this.
|
|
273
|
-
const createLinearGradient = this._getMethod('createLinearGradient');
|
|
274
|
-
return CanvasGradient.fromNative(createLinearGradient(x0, y0, x1, y1));
|
|
240
|
+
return CanvasGradient.fromNative(this.context.createLinearGradient(x0, y0, x1, y1));
|
|
275
241
|
}
|
|
276
242
|
createPattern(image, repetition) {
|
|
277
|
-
var _a;
|
|
278
|
-
this._ensureLayoutBeforeDraw();
|
|
279
243
|
if (repetition === undefined || typeof repetition !== 'string') {
|
|
280
244
|
const e = new Error('The string did not match the expected pattern.');
|
|
281
245
|
e.name = 'SyntaxError';
|
|
282
246
|
throw e;
|
|
283
247
|
}
|
|
284
|
-
const createPattern = this._getMethod('createPattern');
|
|
248
|
+
//const createPattern = this._getMethod('createPattern');
|
|
249
|
+
//const createPattern = this.context.createPattern;
|
|
285
250
|
let img;
|
|
286
|
-
if (
|
|
251
|
+
if (image?._type === '2d' || image?._type?.indexOf('webgl') > -1) {
|
|
287
252
|
img = image.native;
|
|
288
253
|
}
|
|
289
254
|
else if (image instanceof ImageSource) {
|
|
290
|
-
const ptr = this._getMethod('__getPointer');
|
|
291
|
-
const createPattern = this._getMethod('__createPatternWithNative');
|
|
255
|
+
//const ptr = this.context.__getPointer; //this._getMethod('__getPointer');
|
|
256
|
+
//const createPattern = this.context.__createPatternWithNative; //this._getMethod('__createPatternWithNative');
|
|
292
257
|
if (global.isAndroid) {
|
|
293
258
|
img = image.android;
|
|
294
|
-
const pattern = org.nativescript.canvas.NSCCanvasRenderingContext2D.createPattern(long(
|
|
295
|
-
return new CanvasPattern(
|
|
259
|
+
const pattern = org.nativescript.canvas.NSCCanvasRenderingContext2D.createPattern(long(this.context.__getPointer()), img, repetition);
|
|
260
|
+
return new CanvasPattern(this.context.__createPatternWithNative(pattern));
|
|
296
261
|
}
|
|
297
262
|
if (global.isIOS) {
|
|
298
263
|
img = image.ios;
|
|
299
|
-
const pattern = NSCCanvasRenderingContext2D.createPattern(
|
|
300
|
-
return new CanvasPattern(
|
|
264
|
+
const pattern = NSCCanvasRenderingContext2D.createPattern(this.context.__getPointer(), img, repetition);
|
|
265
|
+
return new CanvasPattern(this.context.__createPatternWithNative(pattern));
|
|
301
266
|
}
|
|
302
267
|
return null;
|
|
303
268
|
}
|
|
304
269
|
else if (global.isAndroid && image instanceof android.graphics.Bitmap) {
|
|
305
|
-
const ptr = this._getMethod('__getPointer');
|
|
306
|
-
const createPattern = this._getMethod('__createPatternWithNative');
|
|
270
|
+
//const ptr = this.context.__getPointer; //this._getMethod('__getPointer');
|
|
271
|
+
const createPattern = this.context.__createPatternWithNative; //this._getMethod('__createPatternWithNative');
|
|
307
272
|
if (global.isAndroid) {
|
|
308
|
-
const pattern = org.nativescript.canvas.NSCCanvasRenderingContext2D.createPattern(long(
|
|
309
|
-
return new CanvasPattern(
|
|
273
|
+
const pattern = org.nativescript.canvas.NSCCanvasRenderingContext2D.createPattern(long(this.context.__getPointer()), image, repetition);
|
|
274
|
+
return new CanvasPattern(this.context.__createPatternWithNative(pattern));
|
|
310
275
|
}
|
|
311
276
|
if (global.isIOS) {
|
|
312
|
-
const pattern = NSCCanvasRenderingContext2D.createPattern(
|
|
313
|
-
return new CanvasPattern(
|
|
277
|
+
const pattern = NSCCanvasRenderingContext2D.createPattern(this.context.__getPointer(), image, repetition);
|
|
278
|
+
return new CanvasPattern(this.context.__createPatternWithNative(pattern));
|
|
314
279
|
}
|
|
315
280
|
return null;
|
|
316
281
|
}
|
|
@@ -329,17 +294,17 @@ export class CanvasRenderingContext2D {
|
|
|
329
294
|
img = image._asset.native;
|
|
330
295
|
}
|
|
331
296
|
else if (typeof image.src === 'string') {
|
|
332
|
-
const ptr = this._getMethod('__getPointer');
|
|
333
|
-
const createPattern = this._getMethod('__createPatternWithNative');
|
|
297
|
+
//const ptr = this.context.__getPointer; //this._getMethod('__getPointer');
|
|
298
|
+
//const createPattern = this.context.__createPatternWithNative; //this._getMethod('__createPatternWithNative');
|
|
334
299
|
if (global.isAndroid) {
|
|
335
300
|
img = ImageSource.fromFileSync(image.src).android;
|
|
336
|
-
const pattern = org.nativescript.canvas.NSCCanvasRenderingContext2D.createPattern(long(
|
|
337
|
-
return new CanvasPattern(
|
|
301
|
+
const pattern = org.nativescript.canvas.NSCCanvasRenderingContext2D.createPattern(long(this.context.__getPointer()), img, repetition);
|
|
302
|
+
return new CanvasPattern(this.context.__createPatternWithNative(pattern));
|
|
338
303
|
}
|
|
339
304
|
if (global.isiOS) {
|
|
340
305
|
img = ImageSource.fromFileSync(image.src).android;
|
|
341
|
-
const pattern = NSCCanvasRenderingContext2D.createPattern(
|
|
342
|
-
return new CanvasPattern(
|
|
306
|
+
const pattern = NSCCanvasRenderingContext2D.createPattern(this.context.__getPointer(), img, repetition);
|
|
307
|
+
return new CanvasPattern(this.context.__createPatternWithNative(pattern));
|
|
343
308
|
}
|
|
344
309
|
return null;
|
|
345
310
|
}
|
|
@@ -353,67 +318,60 @@ export class CanvasRenderingContext2D {
|
|
|
353
318
|
if (!img) {
|
|
354
319
|
return null;
|
|
355
320
|
}
|
|
356
|
-
return new CanvasPattern(createPattern(img, repetition));
|
|
321
|
+
return new CanvasPattern(this.context.createPattern(img, repetition));
|
|
357
322
|
}
|
|
358
323
|
createRadialGradient(x0, y0, r0, x1, y1, r1) {
|
|
359
|
-
this.
|
|
360
|
-
|
|
361
|
-
|
|
324
|
+
return CanvasGradient.fromNative(this.context.createRadialGradient(x0, y0, r0, x1, y1, r1));
|
|
325
|
+
}
|
|
326
|
+
createConicGradient(startAngle, x, y) {
|
|
327
|
+
return CanvasGradient.fromNative(this.context.createConicGradient(startAngle, x, y));
|
|
362
328
|
}
|
|
363
329
|
drawPaint(color) {
|
|
364
|
-
this.
|
|
365
|
-
const drawPaint = this._getMethod('drawPaint');
|
|
366
|
-
drawPaint(color);
|
|
330
|
+
this.context.drawPaint(color);
|
|
367
331
|
}
|
|
368
332
|
drawPoint(x, y) {
|
|
369
|
-
this.
|
|
370
|
-
const drawPoint = this._getMethod('drawPoint');
|
|
371
|
-
drawPoint(x, y);
|
|
333
|
+
this.context.drawPoint(x, y);
|
|
372
334
|
}
|
|
373
335
|
drawPoints(mode, points) {
|
|
374
|
-
this.
|
|
375
|
-
const drawPoints = this._getMethod('drawPoints');
|
|
376
|
-
drawPoints(mode, points);
|
|
336
|
+
this.context.drawPoints(mode, points);
|
|
377
337
|
}
|
|
378
338
|
drawFocusIfNeeded(...args) { }
|
|
379
339
|
drawImage(...args) {
|
|
380
|
-
|
|
381
|
-
this._ensureLayoutBeforeDraw();
|
|
382
|
-
const drawImage = this._getMethod('drawImage');
|
|
340
|
+
//const drawImage = this.context.drawImage; //this._getMethod('drawImage');
|
|
383
341
|
const drawNativeImage = (args, image) => {
|
|
384
|
-
const ptr = this._getMethod('__getPointer');
|
|
385
|
-
const makeDirty = this._getMethod('__makeDirty');
|
|
342
|
+
//const ptr = this.context.__getPointer; //this._getMethod('__getPointer');
|
|
343
|
+
//const makeDirty = this.context.__makeDirty; //this._getMethod('__makeDirty');
|
|
386
344
|
let dirty = false;
|
|
387
345
|
if (args.length === 3) {
|
|
388
346
|
if (global.isAndroid) {
|
|
389
|
-
dirty = org.nativescript.canvas.NSCCanvasRenderingContext2D.drawImage(long(
|
|
347
|
+
dirty = org.nativescript.canvas.NSCCanvasRenderingContext2D.drawImage(long(this.context.__getPointer()), image, args[1], args[2]);
|
|
390
348
|
}
|
|
391
349
|
if (global.isIOS) {
|
|
392
|
-
dirty = NSCCanvasRenderingContext2D.drawImage(
|
|
350
|
+
dirty = NSCCanvasRenderingContext2D.drawImage(this.context.__getPointer(), image, args[1], args[2]);
|
|
393
351
|
}
|
|
394
352
|
}
|
|
395
353
|
else if (args.length === 5) {
|
|
396
354
|
if (global.isAndroid) {
|
|
397
|
-
dirty = org.nativescript.canvas.NSCCanvasRenderingContext2D.drawImage(long(
|
|
355
|
+
dirty = org.nativescript.canvas.NSCCanvasRenderingContext2D.drawImage(long(this.context.__getPointer()), image, args[1], args[2], args[3], args[4]);
|
|
398
356
|
}
|
|
399
357
|
if (global.isIOS) {
|
|
400
|
-
dirty = NSCCanvasRenderingContext2D.drawImage(
|
|
358
|
+
dirty = NSCCanvasRenderingContext2D.drawImage(this.context.__getPointer(), image, args[1], args[2], args[3], args[4]);
|
|
401
359
|
}
|
|
402
360
|
}
|
|
403
361
|
else if (args.length === 9) {
|
|
404
362
|
if (global.Android) {
|
|
405
|
-
dirty = org.nativescript.canvas.NSCCanvasRenderingContext2D.drawImage(long(
|
|
363
|
+
dirty = org.nativescript.canvas.NSCCanvasRenderingContext2D.drawImage(long(this.context.__getPointer()), image, args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8]);
|
|
406
364
|
}
|
|
407
365
|
if (global.isIOS) {
|
|
408
|
-
dirty = NSCCanvasRenderingContext2D.drawImage(
|
|
366
|
+
dirty = NSCCanvasRenderingContext2D.drawImage(this.context.__getPointer(), image, args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8]);
|
|
409
367
|
}
|
|
410
368
|
}
|
|
411
369
|
if (dirty) {
|
|
412
|
-
|
|
370
|
+
this.context.__makeDirty();
|
|
413
371
|
}
|
|
414
372
|
};
|
|
415
373
|
let image = args[0];
|
|
416
|
-
if (
|
|
374
|
+
if (image?._type === '2d' || image?._type?.indexOf('webgl') > -1) {
|
|
417
375
|
image = image.native;
|
|
418
376
|
}
|
|
419
377
|
else if (image instanceof ImageAsset) {
|
|
@@ -472,218 +430,159 @@ export class CanvasRenderingContext2D {
|
|
|
472
430
|
}
|
|
473
431
|
}
|
|
474
432
|
else if (image && typeof image.tagName === 'string' && image.tagName === 'CANVAS' && image._canvas instanceof Canvas) {
|
|
475
|
-
image = image._canvas.
|
|
433
|
+
image = image._canvas.native;
|
|
476
434
|
}
|
|
477
435
|
else if (image instanceof ImageBitmap) {
|
|
478
436
|
image = image.native;
|
|
479
437
|
}
|
|
480
438
|
if (args.length === 3) {
|
|
481
|
-
drawImage(image, args[1], args[2]);
|
|
439
|
+
this.context.drawImage(image, args[1], args[2]);
|
|
482
440
|
}
|
|
483
441
|
else if (args.length === 5) {
|
|
484
|
-
drawImage(image, args[1], args[2], args[3], args[4]);
|
|
442
|
+
this.context.drawImage(image, args[1], args[2], args[3], args[4]);
|
|
485
443
|
}
|
|
486
444
|
else if (args.length === 9) {
|
|
487
|
-
drawImage(image, args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8]);
|
|
445
|
+
this.context.drawImage(image, args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8]);
|
|
488
446
|
}
|
|
489
447
|
}
|
|
490
448
|
ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise = false) {
|
|
491
|
-
this.
|
|
492
|
-
const ellipse = this._getMethod('ellipse');
|
|
493
|
-
ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise);
|
|
449
|
+
this.context.ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise ?? false);
|
|
494
450
|
}
|
|
495
451
|
fill(...args) {
|
|
496
|
-
this._ensureLayoutBeforeDraw();
|
|
497
|
-
const fill = this._getMethod('fill');
|
|
498
452
|
if (typeof args[0] === 'string') {
|
|
499
|
-
fill(args[0]);
|
|
453
|
+
this.context.fill(ruleToEnum(args[0]));
|
|
500
454
|
}
|
|
501
455
|
else if (args[0] instanceof Path2D && typeof args[1] === 'string') {
|
|
502
|
-
fill(args[0].native, args[1]);
|
|
456
|
+
this.context.fill(args[0].native, ruleToEnum(args[1]));
|
|
503
457
|
}
|
|
504
458
|
else if (args[0] instanceof Path2D) {
|
|
505
|
-
fill(args[0].native);
|
|
459
|
+
this.context.fill(args[0].native);
|
|
506
460
|
}
|
|
507
461
|
else {
|
|
508
|
-
fill();
|
|
462
|
+
this.context.fill();
|
|
509
463
|
}
|
|
510
464
|
}
|
|
511
465
|
fillRect(x, y, width, height) {
|
|
512
|
-
this.
|
|
513
|
-
const fillRect = this._getMethod('fillRect');
|
|
514
|
-
fillRect(x, y, width, height);
|
|
466
|
+
this.context.fillRect(x, y, width, height);
|
|
515
467
|
}
|
|
516
468
|
fillText(text, x, y, maxWidth) {
|
|
517
|
-
this._ensureLayoutBeforeDraw();
|
|
518
|
-
const fillText = this._getMethod('fillText');
|
|
519
469
|
if (typeof maxWidth === 'number') {
|
|
520
|
-
fillText(text + '', x, y, maxWidth);
|
|
470
|
+
this.context.fillText(text + '', x, y, maxWidth);
|
|
521
471
|
}
|
|
522
472
|
else {
|
|
523
|
-
fillText(text + '', x, y);
|
|
473
|
+
this.context.fillText(text + '', x, y);
|
|
524
474
|
}
|
|
525
475
|
}
|
|
526
476
|
getImageData(sx, sy, sw, sh) {
|
|
527
|
-
this.
|
|
528
|
-
const getImageData = this._getMethod('getImageData');
|
|
529
|
-
return ImageData.fromNative(getImageData(sx, sy, sw, sh));
|
|
477
|
+
return ImageData.fromNative(this.context.getImageData(sx, sy, sw, sh));
|
|
530
478
|
}
|
|
531
479
|
getLineDash() {
|
|
532
|
-
this.
|
|
533
|
-
const getLineDash = this._getMethod('getLineDash');
|
|
534
|
-
return getLineDash();
|
|
480
|
+
return this.context.getLineDash();
|
|
535
481
|
}
|
|
536
482
|
isPointInPath(...args) {
|
|
537
|
-
this._ensureLayoutBeforeDraw();
|
|
538
|
-
const isPointInPath = this._getMethod('isPointInPath');
|
|
539
483
|
if (args.length === 2) {
|
|
540
|
-
return isPointInPath(args[0], args[1]);
|
|
484
|
+
return this.context.isPointInPath(args[0], args[1]);
|
|
541
485
|
}
|
|
542
486
|
else if (args.length === 3) {
|
|
543
|
-
return isPointInPath(args[0], args[1], args[2]);
|
|
487
|
+
return this.context.isPointInPath(args[0], args[1], ruleToEnum(args[2]));
|
|
544
488
|
}
|
|
545
489
|
else if (args.length === 4 && args[0] instanceof Path2D) {
|
|
546
|
-
return isPointInPath(args[0].native, args[1], args[2], args[3]);
|
|
490
|
+
return this.context.isPointInPath(args[0].native, args[1], args[2], ruleToEnum(args[3]));
|
|
547
491
|
}
|
|
548
492
|
return false;
|
|
549
493
|
}
|
|
550
494
|
isPointInStroke(...args) {
|
|
551
|
-
this._ensureLayoutBeforeDraw();
|
|
552
|
-
const isPointInStroke = this._getMethod('isPointInStroke');
|
|
553
495
|
if (args.length === 2) {
|
|
554
|
-
return isPointInStroke(args[0], args[1]);
|
|
496
|
+
return this.context.isPointInStroke(args[0], args[1]);
|
|
555
497
|
}
|
|
556
498
|
else if (args.length === 3 && args[0] instanceof Path2D) {
|
|
557
|
-
return isPointInStroke(args[0].native, args[1], args[2]);
|
|
499
|
+
return this.context.isPointInStroke(args[0].native, args[1], args[2]);
|
|
558
500
|
}
|
|
559
501
|
return false;
|
|
560
502
|
}
|
|
561
503
|
lineTo(x, y) {
|
|
562
|
-
this.
|
|
563
|
-
const lineTo = this._getMethod('lineTo');
|
|
564
|
-
lineTo(x, y);
|
|
504
|
+
this.context.lineTo(x, y);
|
|
565
505
|
}
|
|
566
506
|
measureText(text) {
|
|
567
|
-
this.
|
|
568
|
-
const measureText = this._getMethod('measureText');
|
|
569
|
-
return new TextMetrics(measureText(text));
|
|
507
|
+
return new TextMetrics(this.context.measureText(text));
|
|
570
508
|
}
|
|
571
509
|
moveTo(x, y) {
|
|
572
|
-
this.
|
|
573
|
-
const moveTo = this._getMethod('moveTo');
|
|
574
|
-
moveTo(x, y);
|
|
510
|
+
this.context.moveTo(x, y);
|
|
575
511
|
}
|
|
576
512
|
putImageData(...args) {
|
|
577
|
-
this._ensureLayoutBeforeDraw();
|
|
578
513
|
if (!args) {
|
|
579
514
|
return;
|
|
580
515
|
}
|
|
581
|
-
const
|
|
582
|
-
let data = args[0];
|
|
516
|
+
const data = args[0];
|
|
583
517
|
if (args.length === 3) {
|
|
584
|
-
putImageData(data.native, args[1], args[2]);
|
|
518
|
+
this.context.putImageData(data.native, args[1], args[2]);
|
|
585
519
|
}
|
|
586
520
|
else if (args.length === 7) {
|
|
587
|
-
putImageData(data.native, args[1], args[2], args[3], args[4], args[5], args[6]);
|
|
521
|
+
this.context.putImageData(data.native, args[1], args[2], args[3], args[4], args[5], args[6]);
|
|
588
522
|
}
|
|
589
523
|
}
|
|
590
524
|
quadraticCurveTo(cpx, cpy, x, y) {
|
|
591
|
-
this.
|
|
592
|
-
const quadraticCurveTo = this._getMethod('quadraticCurveTo');
|
|
593
|
-
quadraticCurveTo(cpx, cpy, x, y);
|
|
525
|
+
this.context.quadraticCurveTo(cpx, cpy, x, y);
|
|
594
526
|
}
|
|
595
527
|
rect(x, y, width, height) {
|
|
596
|
-
this.
|
|
597
|
-
const rect = this._getMethod('rect');
|
|
598
|
-
rect(x, y, width, height);
|
|
528
|
+
this.context.rect(x, y, width, height);
|
|
599
529
|
}
|
|
600
530
|
roundRect(x, y, width, height, radii) {
|
|
601
|
-
this.
|
|
602
|
-
const roundRect = this._getMethod('roundRect');
|
|
603
|
-
roundRect(x, y, width, height, radii);
|
|
531
|
+
this.context.roundRect(x, y, width, height, radii);
|
|
604
532
|
}
|
|
605
533
|
removeHitRegion(id) { }
|
|
606
534
|
resetTransform() {
|
|
607
|
-
this.
|
|
608
|
-
const resetTransform = this._getMethod('resetTransform');
|
|
609
|
-
resetTransform();
|
|
535
|
+
this.context.resetTransform();
|
|
610
536
|
}
|
|
611
537
|
restore() {
|
|
612
|
-
this.
|
|
613
|
-
const restore = this._getMethod('restore');
|
|
614
|
-
restore();
|
|
538
|
+
this.context.restore();
|
|
615
539
|
}
|
|
616
540
|
rotate(angle) {
|
|
617
|
-
this.
|
|
618
|
-
const rotate = this._getMethod('rotate');
|
|
619
|
-
rotate(angle);
|
|
541
|
+
this.context.rotate(angle);
|
|
620
542
|
}
|
|
621
543
|
save() {
|
|
622
|
-
this.
|
|
623
|
-
const save = this._getMethod('save');
|
|
624
|
-
save();
|
|
544
|
+
this.context.save();
|
|
625
545
|
}
|
|
626
546
|
scale(x, y) {
|
|
627
|
-
this.
|
|
628
|
-
const scale = this._getMethod('scale');
|
|
629
|
-
scale(x, y);
|
|
547
|
+
this.context.scale(x, y);
|
|
630
548
|
}
|
|
631
549
|
scrollPathIntoView(path) { }
|
|
632
550
|
setLineDash(segments) {
|
|
633
|
-
this.
|
|
634
|
-
const setLineDash = this._getMethod('setLineDash');
|
|
635
|
-
setLineDash(segments);
|
|
551
|
+
this.context.setLineDash(segments);
|
|
636
552
|
}
|
|
637
553
|
setTransform(a, b, c, d, e, f) {
|
|
638
|
-
this.
|
|
639
|
-
const setTransform = this._getMethod('setTransform');
|
|
640
|
-
setTransform(a, b, c, d, e, f);
|
|
554
|
+
this.context.setTransform(a, b, c, d, e, f);
|
|
641
555
|
}
|
|
642
556
|
stroke(path) {
|
|
643
|
-
this._ensureLayoutBeforeDraw();
|
|
644
|
-
const stroke = this._getMethod('stroke');
|
|
645
557
|
if (path) {
|
|
646
|
-
stroke(path.native);
|
|
558
|
+
this.context.stroke(path.native);
|
|
647
559
|
}
|
|
648
560
|
else {
|
|
649
|
-
stroke();
|
|
561
|
+
this.context.stroke();
|
|
650
562
|
}
|
|
651
563
|
}
|
|
652
564
|
strokeRect(x, y, width, height) {
|
|
653
|
-
this.
|
|
654
|
-
const strokeRect = this._getMethod('strokeRect');
|
|
655
|
-
strokeRect(x, y, width, height);
|
|
565
|
+
this.context.strokeRect(x, y, width, height);
|
|
656
566
|
}
|
|
657
567
|
strokeText(text, x, y, maxWidth) {
|
|
658
|
-
this._ensureLayoutBeforeDraw();
|
|
659
|
-
const strokeText = this._getMethod('strokeText');
|
|
660
568
|
if (typeof maxWidth === 'number') {
|
|
661
|
-
strokeText(text + '', x, y, maxWidth);
|
|
569
|
+
this.context.strokeText(text + '', x, y, maxWidth);
|
|
662
570
|
}
|
|
663
571
|
else {
|
|
664
|
-
strokeText(text + '', x, y);
|
|
572
|
+
this.context.strokeText(text + '', x, y);
|
|
665
573
|
}
|
|
666
574
|
}
|
|
667
575
|
transform(a, b, c, d, e, f) {
|
|
668
|
-
this.
|
|
669
|
-
const transform = this._getMethod('transform');
|
|
670
|
-
transform(a, b, c, d, e, f);
|
|
576
|
+
this.context.transform(a, b, c, d, e, f);
|
|
671
577
|
}
|
|
672
578
|
translate(x, y) {
|
|
673
|
-
this.
|
|
674
|
-
const translate = this._getMethod('translate');
|
|
675
|
-
translate(x, y);
|
|
676
|
-
}
|
|
677
|
-
_ensureLayoutBeforeDraw() {
|
|
678
|
-
if (this.canvas !== undefined) {
|
|
679
|
-
this.canvas._layoutNative();
|
|
680
|
-
}
|
|
579
|
+
this.context.translate(x, y);
|
|
681
580
|
}
|
|
682
581
|
}
|
|
683
|
-
CanvasRenderingContext2D.isDebug =
|
|
582
|
+
CanvasRenderingContext2D.isDebug = true;
|
|
684
583
|
(() => {
|
|
685
584
|
Helpers.initialize();
|
|
686
585
|
//ctor = global.CanvasJSIModule.create2DContext;
|
|
687
|
-
ctor = global.
|
|
586
|
+
ctor = global.CanvasModule.create2DContextWithPointer;
|
|
688
587
|
})();
|
|
689
588
|
//# sourceMappingURL=index.js.map
|