@nativescript/canvas 2.0.0-alpha.2 → 2.0.0-alpha.3
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/index.android.js +3 -3
- package/Canvas/index.android.js.map +1 -1
- package/Canvas/index.ios.d.ts +3 -2
- package/Canvas/index.ios.js +74 -52
- package/Canvas/index.ios.js.map +1 -1
- package/Canvas2D/CanvasGradient/index.d.ts +9 -2
- package/Canvas2D/CanvasGradient/index.js +23 -2
- package/Canvas2D/CanvasGradient/index.js.map +1 -1
- package/Canvas2D/CanvasPattern/index.d.ts +9 -2
- package/Canvas2D/CanvasPattern/index.js +20 -2
- package/Canvas2D/CanvasPattern/index.js.map +1 -1
- package/Canvas2D/CanvasRenderingContext2D/index.d.ts +120 -132
- package/Canvas2D/CanvasRenderingContext2D/{index.android.js → index.js} +125 -133
- package/Canvas2D/CanvasRenderingContext2D/index.js.map +1 -0
- package/Canvas2D/DOMMatrix/index.d.ts +74 -2
- package/Canvas2D/DOMMatrix/index.js +180 -2
- package/Canvas2D/DOMMatrix/index.js.map +1 -1
- package/Canvas2D/ImageData/index.d.ts +15 -2
- package/Canvas2D/ImageData/index.js +66 -2
- package/Canvas2D/ImageData/index.js.map +1 -1
- package/Canvas2D/Path2D/index.d.ts +21 -2
- package/Canvas2D/Path2D/index.js +87 -2
- package/Canvas2D/Path2D/index.js.map +1 -1
- package/Canvas2D/TextMetrics/index.d.ts +17 -2
- package/Canvas2D/TextMetrics/index.js +44 -2
- package/Canvas2D/TextMetrics/index.js.map +1 -1
- package/Dom/Dom.d.ts +10 -0
- package/Dom/Dom.js +36 -0
- package/Dom/Dom.js.map +1 -0
- package/Dom/Fill.d.ts +4 -0
- package/Dom/Fill.js +8 -0
- package/Dom/Fill.js.map +1 -0
- package/Dom/Group.d.ts +21 -0
- package/Dom/Group.js +179 -0
- package/Dom/Group.js.map +1 -0
- package/Dom/Image.d.ts +12 -0
- package/Dom/Image.js +33 -0
- package/Dom/Image.js.map +1 -0
- package/Dom/Paint.d.ts +15 -0
- package/Dom/Paint.js +58 -0
- package/Dom/Paint.js.map +1 -0
- package/Dom/Shadow.d.ts +10 -0
- package/Dom/Shadow.js +26 -0
- package/Dom/Shadow.js.map +1 -0
- package/Dom/Text.d.ts +9 -0
- package/Dom/Text.js +50 -0
- package/Dom/Text.js.map +1 -0
- package/Dom/index.d.ts +8 -0
- package/Dom/index.js +9 -0
- package/Dom/index.js.map +1 -0
- package/Dom/shapes/Circle.d.ts +21 -0
- package/Dom/shapes/Circle.js +99 -0
- package/Dom/shapes/Circle.js.map +1 -0
- package/Dom/shapes/Line.d.ts +9 -0
- package/Dom/shapes/Line.js +37 -0
- package/Dom/shapes/Line.js.map +1 -0
- package/Dom/shapes/Path.d.ts +8 -0
- package/Dom/shapes/Path.js +31 -0
- package/Dom/shapes/Path.js.map +1 -0
- package/Dom/shapes/Points.d.ts +15 -0
- package/Dom/shapes/Points.js +21 -0
- package/Dom/shapes/Points.js.map +1 -0
- package/Dom/shapes/Rect.d.ts +15 -0
- package/Dom/shapes/Rect.js +63 -0
- package/Dom/shapes/Rect.js.map +1 -0
- package/Dom/shapes/RoundedRect.d.ts +12 -0
- package/Dom/shapes/RoundedRect.js +96 -0
- package/Dom/shapes/RoundedRect.js.map +1 -0
- package/Dom/shapes/index.d.ts +6 -0
- package/Dom/shapes/index.js +7 -0
- package/Dom/shapes/index.js.map +1 -0
- package/ImageAsset/index.d.ts +28 -2
- package/ImageAsset/index.js +158 -2
- package/ImageAsset/index.js.map +1 -1
- package/ImageBitmap/{index.android.d.ts → index.d.ts} +3 -2
- package/ImageBitmap/{index.android.js → index.js} +7 -4
- package/ImageBitmap/index.js.map +1 -0
- package/TextDecoder/index.d.ts +9 -2
- package/TextDecoder/index.js +53 -2
- package/TextDecoder/index.js.map +1 -1
- package/TextEncoder/index.d.ts +9 -2
- package/TextEncoder/index.js +51 -2
- package/TextEncoder/index.js.map +1 -1
- package/WebGL/WebGLExtensions/index.d.ts +159 -242
- package/WebGL/WebGLExtensions/{index.android.js → index.js} +1 -1
- package/WebGL/WebGLExtensions/index.js.map +1 -0
- package/WebGL/WebGLRenderingContext/index.d.ts +153 -293
- package/WebGL/WebGLRenderingContext/{index.android.js → index.js} +25 -8
- package/WebGL/WebGLRenderingContext/index.js.map +1 -0
- package/WebGL2/WebGL2RenderingContext/common.d.ts +1 -0
- package/WebGL2/WebGL2RenderingContext/common.js +3 -0
- package/WebGL2/WebGL2RenderingContext/common.js.map +1 -1
- package/WebGL2/WebGL2RenderingContext/index.d.ts +101 -455
- package/WebGL2/WebGL2RenderingContext/{index.android.js → index.js} +16 -6
- package/WebGL2/WebGL2RenderingContext/index.js.map +1 -0
- package/helpers.js +3 -0
- package/helpers.js.map +1 -1
- package/package.json +1 -1
- package/platforms/android/canvas-release.aar +0 -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 +93 -1718
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative.h +1 -3
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +92 -0
- 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 +4435 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +136 -0
- 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 +75 -3203
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/module.modulemap +2 -2
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/{TNSCanvas.nib → NSCCanvas.nib} +0 -0
- 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 +176 -3436
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative.h +1 -3
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +92 -0
- 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 +4435 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +136 -0
- 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 +75 -3203
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +4435 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +136 -0
- 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 +75 -3203
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/module.modulemap +2 -2
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/{TNSCanvas.nib → NSCCanvas.nib} +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +49 -93
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
- package/platforms/ios/Podfile +2 -1
- package/platforms/ios/build.xcconfig +5 -0
- package/platforms/ios/src/CanvasModule.h +10 -0
- package/platforms/ios/src/CanvasModule.mm +14 -0
- package/platforms/ios/src/cpp/CanvasJSIModule.h +60 -0
- package/platforms/ios/src/cpp/CanvasJSIModule.mm +1105 -0
- package/platforms/ios/src/cpp/Helpers.h +61 -0
- package/platforms/ios/src/cpp/ImageAssetImpl.h +30 -0
- package/platforms/ios/src/cpp/ImageAssetImpl.mm +417 -0
- package/platforms/ios/src/cpp/ImageBitmapImpl.h +41 -0
- package/platforms/ios/src/cpp/ImageBitmapImpl.mm +126 -0
- package/platforms/ios/src/cpp/JSICallback.h +15 -0
- package/platforms/ios/src/cpp/JSIReadFileCallback.h +16 -0
- package/platforms/ios/src/cpp/OnRafCallback.h +24 -0
- package/platforms/ios/src/cpp/OnRafCallback.mm +25 -0
- package/platforms/ios/src/cpp/RafImpl.h +27 -0
- package/platforms/ios/src/cpp/RafImpl.mm +10 -0
- package/platforms/ios/src/cpp/TextDecoderImpl.h +28 -0
- package/platforms/ios/src/cpp/TextDecoderImpl.mm +97 -0
- package/platforms/ios/src/cpp/TextEncoderImpl.h +28 -0
- package/platforms/ios/src/cpp/TextEncoderImpl.mm +60 -0
- package/platforms/ios/src/cpp/VecMutableBuffer.h +51 -0
- package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.cc +6119 -0
- package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.h +2854 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasGradient.h +28 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasGradient.mm +42 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.h +29 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.mm +49 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h +70 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.mm +1954 -0
- package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.h +29 -0
- package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.mm +68 -0
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.h +29 -0
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.mm +149 -0
- package/platforms/ios/src/cpp/canvas2d/Path2D.h +27 -0
- package/platforms/ios/src/cpp/canvas2d/Path2D.mm +335 -0
- package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.h +29 -0
- package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.mm +68 -0
- package/platforms/ios/src/cpp/gl.h +29 -0
- package/platforms/ios/src/cpp/rust/cxx.cc +793 -0
- package/platforms/ios/src/cpp/rust/cxx.h +1111 -0
- package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.h +28 -0
- package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.mm +39 -0
- package/platforms/ios/src/cpp/webgl/WebGLBuffer.h +24 -0
- package/platforms/ios/src/cpp/webgl/WebGLFramebuffer.h +24 -0
- package/platforms/ios/src/cpp/webgl/WebGLProgram.h +24 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderbuffer.h +24 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.h +516 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.mm +5879 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.h +63 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.mm +97 -0
- package/platforms/ios/src/cpp/webgl/WebGLShader.h +24 -0
- package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.h +28 -0
- package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.mm +40 -0
- package/platforms/ios/src/cpp/webgl/WebGLTexture.h +23 -0
- package/platforms/ios/src/cpp/webgl/WebGLUniformLocation.h +28 -0
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.h +28 -0
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.mm +108 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.h +16 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.mm +28 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.h +17 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.mm +42 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.h +28 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.mm +295 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.mm +40 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_shader_texture_lodImpl.h +29 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.mm +37 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.mm +28 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.mm +31 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_floatImpl.h +30 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_float_linearImpl.h +31 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.mm +28 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_float_linearImpl.h +30 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.h +32 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.mm +127 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.h +20 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.mm +45 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.mm +45 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.mm +31 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.mm +70 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.mm +47 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.h +18 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.mm +46 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.h +19 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.mm +49 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.h +19 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.mm +30 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.h +31 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.mm +177 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.h +31 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.mm +64 -0
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.h +431 -0
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.mm +4554 -0
- package/platforms/ios/src/cpp/webgl2/WebGLQuery.h +21 -0
- package/platforms/ios/src/cpp/webgl2/WebGLSampler.h +21 -0
- package/platforms/ios/src/cpp/webgl2/WebGLSyncImpl.h +24 -0
- package/platforms/ios/src/cpp/webgl2/WebGLTransformFeedback.h +21 -0
- package/platforms/ios/src/cpp/webgl2/WebGLVertexArrayObject.h +21 -0
- package/platforms/ios/src/module.modulemap +4 -0
- package/Canvas2D/CanvasGradient/CanvasGradient.android.d.ts +0 -10
- package/Canvas2D/CanvasGradient/CanvasGradient.android.js +0 -26
- package/Canvas2D/CanvasGradient/CanvasGradient.android.js.map +0 -1
- package/Canvas2D/CanvasGradient/CanvasGradient.d.ts +0 -12
- package/Canvas2D/CanvasGradient/CanvasGradient.ios.d.ts +0 -8
- package/Canvas2D/CanvasGradient/CanvasGradient.ios.js +0 -19
- package/Canvas2D/CanvasGradient/CanvasGradient.ios.js.map +0 -1
- package/Canvas2D/CanvasGradient/common.d.ts +0 -3
- package/Canvas2D/CanvasGradient/common.js +0 -3
- package/Canvas2D/CanvasGradient/common.js.map +0 -1
- package/Canvas2D/CanvasPattern/CanvasPattern.android.d.ts +0 -8
- package/Canvas2D/CanvasPattern/CanvasPattern.android.js +0 -20
- package/Canvas2D/CanvasPattern/CanvasPattern.android.js.map +0 -1
- package/Canvas2D/CanvasPattern/CanvasPattern.d.ts +0 -8
- package/Canvas2D/CanvasPattern/CanvasPattern.ios.d.ts +0 -6
- package/Canvas2D/CanvasPattern/CanvasPattern.ios.js +0 -10
- package/Canvas2D/CanvasPattern/CanvasPattern.ios.js.map +0 -1
- package/Canvas2D/CanvasPattern/common.d.ts +0 -7
- package/Canvas2D/CanvasPattern/common.js +0 -9
- package/Canvas2D/CanvasPattern/common.js.map +0 -1
- package/Canvas2D/CanvasRenderingContext2D/common.d.ts +0 -87
- package/Canvas2D/CanvasRenderingContext2D/common.js +0 -12
- package/Canvas2D/CanvasRenderingContext2D/common.js.map +0 -1
- package/Canvas2D/CanvasRenderingContext2D/index.android.d.ts +0 -112
- package/Canvas2D/CanvasRenderingContext2D/index.android.js.map +0 -1
- package/Canvas2D/CanvasRenderingContext2D/index.ios.d.ts +0 -110
- package/Canvas2D/CanvasRenderingContext2D/index.ios.js +0 -897
- package/Canvas2D/CanvasRenderingContext2D/index.ios.js.map +0 -1
- package/Canvas2D/DOMMatrix/DOMMatrix.android.d.ts +0 -72
- package/Canvas2D/DOMMatrix/DOMMatrix.android.js +0 -177
- package/Canvas2D/DOMMatrix/DOMMatrix.android.js.map +0 -1
- package/Canvas2D/DOMMatrix/DOMMatrix.d.ts +0 -30
- package/Canvas2D/DOMMatrix/DOMMatrix.ios.d.ts +0 -48
- package/Canvas2D/DOMMatrix/DOMMatrix.ios.js +0 -142
- package/Canvas2D/DOMMatrix/DOMMatrix.ios.js.map +0 -1
- package/Canvas2D/DOMMatrix/common.d.ts +0 -27
- package/Canvas2D/DOMMatrix/common.js +0 -9
- package/Canvas2D/DOMMatrix/common.js.map +0 -1
- package/Canvas2D/ImageData/ImageData.android.d.ts +0 -9
- package/Canvas2D/ImageData/ImageData.android.js +0 -65
- package/Canvas2D/ImageData/ImageData.android.js.map +0 -1
- package/Canvas2D/ImageData/ImageData.d.ts +0 -11
- package/Canvas2D/ImageData/ImageData.ios.d.ts +0 -10
- package/Canvas2D/ImageData/ImageData.ios.js +0 -45
- package/Canvas2D/ImageData/ImageData.ios.js.map +0 -1
- package/Canvas2D/ImageData/common.d.ts +0 -9
- package/Canvas2D/ImageData/common.js +0 -13
- package/Canvas2D/ImageData/common.js.map +0 -1
- package/Canvas2D/Path2D/Path2D.android.d.ts +0 -18
- package/Canvas2D/Path2D/Path2D.android.js +0 -83
- package/Canvas2D/Path2D/Path2D.android.js.map +0 -1
- package/Canvas2D/Path2D/Path2D.d.ts +0 -26
- package/Canvas2D/Path2D/Path2D.ios.d.ts +0 -15
- package/Canvas2D/Path2D/Path2D.ios.js +0 -55
- package/Canvas2D/Path2D/Path2D.ios.js.map +0 -1
- package/Canvas2D/Path2D/common.d.ts +0 -17
- package/Canvas2D/Path2D/common.js +0 -12
- package/Canvas2D/Path2D/common.js.map +0 -1
- package/Canvas2D/TextMetrics/TextMetrics.android.d.ts +0 -16
- package/Canvas2D/TextMetrics/TextMetrics.android.js +0 -43
- package/Canvas2D/TextMetrics/TextMetrics.android.js.map +0 -1
- package/Canvas2D/TextMetrics/TextMetrics.d.ts +0 -7
- package/Canvas2D/TextMetrics/TextMetrics.ios.d.ts +0 -16
- package/Canvas2D/TextMetrics/TextMetrics.ios.js +0 -43
- package/Canvas2D/TextMetrics/TextMetrics.ios.js.map +0 -1
- package/Canvas2D/TextMetrics/common.d.ts +0 -18
- package/Canvas2D/TextMetrics/common.js +0 -13
- package/Canvas2D/TextMetrics/common.js.map +0 -1
- package/ImageAsset/ImageAsset.android.d.ts +0 -20
- package/ImageAsset/ImageAsset.android.js +0 -149
- package/ImageAsset/ImageAsset.android.js.map +0 -1
- package/ImageAsset/ImageAsset.d.ts +0 -31
- package/ImageAsset/ImageAsset.ios.d.ts +0 -22
- package/ImageAsset/ImageAsset.ios.js +0 -114
- package/ImageAsset/ImageAsset.ios.js.map +0 -1
- package/ImageAsset/common.d.ts +0 -13
- package/ImageAsset/common.js +0 -21
- package/ImageAsset/common.js.map +0 -1
- package/ImageBitmap/common.d.ts +0 -8
- package/ImageBitmap/common.js +0 -9
- package/ImageBitmap/common.js.map +0 -1
- package/ImageBitmap/index.android.js.map +0 -1
- package/ImageBitmap/index.ios.d.ts +0 -12
- package/ImageBitmap/index.ios.js +0 -283
- package/ImageBitmap/index.ios.js.map +0 -1
- package/TextDecoder/TextDecoder.android.d.ts +0 -8
- package/TextDecoder/TextDecoder.android.js +0 -52
- package/TextDecoder/TextDecoder.android.js.map +0 -1
- package/TextDecoder/TextDecoder.d.ts +0 -10
- package/TextDecoder/TextDecoder.ios.d.ts +0 -6
- package/TextDecoder/TextDecoder.ios.js +0 -37
- package/TextDecoder/TextDecoder.ios.js.map +0 -1
- package/TextDecoder/common.d.ts +0 -8
- package/TextDecoder/common.js +0 -13
- package/TextDecoder/common.js.map +0 -1
- package/TextEncoder/TextEncoder.android.d.ts +0 -8
- package/TextEncoder/TextEncoder.android.js +0 -50
- package/TextEncoder/TextEncoder.android.js.map +0 -1
- package/TextEncoder/TextEncoder.d.ts +0 -10
- package/TextEncoder/TextEncoder.ios.d.ts +0 -6
- package/TextEncoder/TextEncoder.ios.js +0 -14
- package/TextEncoder/TextEncoder.ios.js.map +0 -1
- package/TextEncoder/common.d.ts +0 -7
- package/TextEncoder/common.js +0 -9
- package/TextEncoder/common.js.map +0 -1
- package/WebGL/WebGLExtensions/index.android.d.ts +0 -209
- package/WebGL/WebGLExtensions/index.android.js.map +0 -1
- package/WebGL/WebGLExtensions/index.ios.d.ts +0 -192
- package/WebGL/WebGLExtensions/index.ios.js +0 -250
- package/WebGL/WebGLExtensions/index.ios.js.map +0 -1
- package/WebGL/WebGLRenderingContext/index.android.d.ts +0 -165
- package/WebGL/WebGLRenderingContext/index.android.js.map +0 -1
- package/WebGL/WebGLRenderingContext/index.ios.d.ts +0 -163
- package/WebGL/WebGLRenderingContext/index.ios.js +0 -1168
- package/WebGL/WebGLRenderingContext/index.ios.js.map +0 -1
- package/WebGL2/WebGL2RenderingContext/index.android.d.ts +0 -103
- package/WebGL2/WebGL2RenderingContext/index.android.js.map +0 -1
- package/WebGL2/WebGL2RenderingContext/index.ios.d.ts +0 -102
- package/WebGL2/WebGL2RenderingContext/index.ios.js +0 -618
- package/WebGL2/WebGL2RenderingContext/index.ios.js.map +0 -1
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/Utils.h +0 -26
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64.swiftinterface +0 -3264
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/Utils.h +0 -26
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64.swiftinterface +0 -3264
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64.swiftinterface +0 -3264
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { CanvasRenderingContext2DBase } from './common';
|
|
2
1
|
import { CanvasGradient } from '../CanvasGradient';
|
|
3
2
|
import { Path2D } from '../Path2D';
|
|
4
3
|
import { ImageData } from '../ImageData';
|
|
@@ -9,9 +8,9 @@ import { CanvasPattern } from '../CanvasPattern';
|
|
|
9
8
|
import { Canvas } from '../../Canvas';
|
|
10
9
|
import { Helpers } from '../../helpers';
|
|
11
10
|
let ctor;
|
|
12
|
-
export class CanvasRenderingContext2D
|
|
11
|
+
export class CanvasRenderingContext2D {
|
|
13
12
|
constructor(context, contextOptions) {
|
|
14
|
-
|
|
13
|
+
this._type = 'none';
|
|
15
14
|
this._methodCache = new Map();
|
|
16
15
|
/*const width = context.getDrawingBufferWidth(); // can use getMeasuredWidth / getMeasuredHeight
|
|
17
16
|
const height = context.getDrawingBufferHeight();
|
|
@@ -26,6 +25,9 @@ export class CanvasRenderingContext2D extends CanvasRenderingContext2DBase {
|
|
|
26
25
|
const ctxPtr = BigInt(context.toString());
|
|
27
26
|
this.context = ctor(ctxPtr);
|
|
28
27
|
}
|
|
28
|
+
get type() {
|
|
29
|
+
return this._type;
|
|
30
|
+
}
|
|
29
31
|
get native() {
|
|
30
32
|
return this.context;
|
|
31
33
|
}
|
|
@@ -33,165 +35,118 @@ export class CanvasRenderingContext2D extends CanvasRenderingContext2DBase {
|
|
|
33
35
|
return this._canvas;
|
|
34
36
|
}
|
|
35
37
|
get shadowColor() {
|
|
36
|
-
this.log('shadowColor');
|
|
37
38
|
return this.context.shadowColor;
|
|
38
39
|
}
|
|
39
40
|
set shadowColor(color) {
|
|
40
|
-
this.log('shadowColor value:', color);
|
|
41
|
-
this._ensureLayoutBeforeDraw();
|
|
42
41
|
if (this.context) {
|
|
43
42
|
this.context.shadowColor = color;
|
|
44
43
|
}
|
|
45
44
|
}
|
|
46
45
|
get font() {
|
|
47
|
-
this.log('get font');
|
|
48
46
|
return this.context.font;
|
|
49
47
|
}
|
|
50
48
|
set font(value) {
|
|
51
|
-
this.log('set font value:', value);
|
|
52
49
|
if (this.context) {
|
|
53
50
|
this.context.font = value;
|
|
54
51
|
}
|
|
55
52
|
}
|
|
56
53
|
get direction() {
|
|
57
|
-
this.log('direction');
|
|
58
54
|
return this.context.direction;
|
|
59
55
|
}
|
|
60
56
|
set direction(value) {
|
|
61
|
-
this.log('direction value:', value);
|
|
62
|
-
this._ensureLayoutBeforeDraw();
|
|
63
57
|
if (this.context) {
|
|
64
58
|
this.context.direction = value;
|
|
65
59
|
}
|
|
66
60
|
}
|
|
67
61
|
get globalAlpha() {
|
|
68
|
-
this.log('globalAlpha');
|
|
69
62
|
return this.context.globalAlpha;
|
|
70
63
|
}
|
|
71
64
|
set globalAlpha(alpha) {
|
|
72
|
-
this.log('globalAlpha value:', alpha);
|
|
73
|
-
this._ensureLayoutBeforeDraw();
|
|
74
65
|
if (this.context) {
|
|
75
66
|
this.context.globalAlpha = alpha;
|
|
76
67
|
}
|
|
77
68
|
}
|
|
78
69
|
get imageSmoothingEnabled() {
|
|
79
|
-
this.log('imageSmoothingEnabled');
|
|
80
70
|
return this.context.imageSmoothingEnabled;
|
|
81
71
|
}
|
|
82
72
|
set imageSmoothingEnabled(enabled) {
|
|
83
|
-
this.log('imageSmoothingEnabled value:', enabled);
|
|
84
|
-
this._ensureLayoutBeforeDraw();
|
|
85
73
|
if (this.context) {
|
|
86
74
|
this.context.imageSmoothingEnabled = enabled;
|
|
87
75
|
}
|
|
88
76
|
}
|
|
89
77
|
get imageSmoothingQuality() {
|
|
90
|
-
this.log('imageSmoothingQuality');
|
|
91
78
|
return this.context.imageSmoothingQuality;
|
|
92
79
|
}
|
|
93
80
|
set imageSmoothingQuality(quality) {
|
|
94
|
-
this.log('imageSmoothingQuality value:', quality);
|
|
95
|
-
this._ensureLayoutBeforeDraw();
|
|
96
81
|
this.context.imageSmoothingQuality = quality;
|
|
97
82
|
}
|
|
98
83
|
get lineDashOffset() {
|
|
99
|
-
this.log('lineDashOffset');
|
|
100
84
|
return this.context.lineDashOffset;
|
|
101
85
|
}
|
|
102
86
|
set lineDashOffset(offset) {
|
|
103
|
-
this.log('lineDashOffset value:', offset);
|
|
104
|
-
this._ensureLayoutBeforeDraw();
|
|
105
87
|
if (this.context) {
|
|
106
88
|
this.context.lineDashOffset = offset;
|
|
107
89
|
}
|
|
108
90
|
}
|
|
109
91
|
get lineJoin() {
|
|
110
|
-
this.log('lineJoin');
|
|
111
92
|
return this.context.lineJoin;
|
|
112
93
|
}
|
|
113
94
|
set lineJoin(join) {
|
|
114
|
-
this.log('lineJoin value:', join);
|
|
115
|
-
this._ensureLayoutBeforeDraw();
|
|
116
95
|
this.context.lineJoin = join;
|
|
117
96
|
}
|
|
118
97
|
get lineCap() {
|
|
119
|
-
this.log('lineCap');
|
|
120
98
|
return this.context.lineCap;
|
|
121
99
|
}
|
|
122
100
|
set lineCap(cap) {
|
|
123
|
-
this.log('lineCap value:', cap);
|
|
124
|
-
this._ensureLayoutBeforeDraw();
|
|
125
101
|
this.context.lineCap = cap;
|
|
126
102
|
}
|
|
127
103
|
get miterLimit() {
|
|
128
|
-
this.log('miterLimit value:');
|
|
129
104
|
return this.context.miterLimit;
|
|
130
105
|
}
|
|
131
106
|
set miterLimit(limit) {
|
|
132
|
-
this.log('miterLimit value:', limit);
|
|
133
|
-
this._ensureLayoutBeforeDraw();
|
|
134
107
|
this.context.miterLimit = limit;
|
|
135
108
|
}
|
|
136
109
|
get shadowBlur() {
|
|
137
|
-
this.log('shadowBlur');
|
|
138
110
|
return this.context.shadowBlur;
|
|
139
111
|
}
|
|
140
112
|
set shadowBlur(blur) {
|
|
141
|
-
this.log('shadowBlur value:', blur);
|
|
142
|
-
this._ensureLayoutBeforeDraw();
|
|
143
113
|
this.context.shadowBlur = blur;
|
|
144
114
|
}
|
|
145
115
|
get shadowOffsetX() {
|
|
146
|
-
this.log('shadowOffsetX');
|
|
147
116
|
return this.context.shadowOffsetX;
|
|
148
117
|
}
|
|
149
118
|
set shadowOffsetX(x) {
|
|
150
|
-
this.log('shadowOffsetX value:', x);
|
|
151
|
-
this._ensureLayoutBeforeDraw();
|
|
152
119
|
if (this.context) {
|
|
153
120
|
this.context.shadowOffsetX = x;
|
|
154
121
|
}
|
|
155
122
|
}
|
|
156
123
|
get shadowOffsetY() {
|
|
157
|
-
this.log('shadowOffsetY');
|
|
158
124
|
return this.context.shadowOffsetY;
|
|
159
125
|
}
|
|
160
126
|
set shadowOffsetY(y) {
|
|
161
|
-
this.log('shadowOffsetY value:', y);
|
|
162
|
-
this._ensureLayoutBeforeDraw();
|
|
163
127
|
if (this.context) {
|
|
164
128
|
this.context.shadowOffsetY = y;
|
|
165
129
|
}
|
|
166
130
|
}
|
|
167
131
|
get textAlign() {
|
|
168
|
-
this.log('textAlign');
|
|
169
132
|
return this.context.textAlign;
|
|
170
133
|
}
|
|
171
134
|
set textAlign(alignment) {
|
|
172
|
-
this.log('textAlign value:', alignment);
|
|
173
|
-
this._ensureLayoutBeforeDraw();
|
|
174
135
|
this.context.setTextAlign = alignment;
|
|
175
136
|
}
|
|
176
137
|
get globalCompositeOperation() {
|
|
177
|
-
this.log('globalCompositeOperation');
|
|
178
138
|
return this.context.globalCompositeOperation;
|
|
179
139
|
}
|
|
180
140
|
set globalCompositeOperation(composite) {
|
|
181
|
-
this.log('globalCompositeOperation value:', composite);
|
|
182
|
-
this._ensureLayoutBeforeDraw();
|
|
183
141
|
this.context.globalCompositeOperation = composite;
|
|
184
142
|
}
|
|
185
143
|
get fillStyle() {
|
|
186
|
-
this.log('fillStyle');
|
|
187
144
|
return this.context.fillStyle;
|
|
188
145
|
}
|
|
189
146
|
set fillStyle(color) {
|
|
190
|
-
this.log('fillStyle:', color);
|
|
191
147
|
if (color === undefined || color === null) {
|
|
192
148
|
return;
|
|
193
149
|
}
|
|
194
|
-
this._ensureLayoutBeforeDraw();
|
|
195
150
|
if (color instanceof CanvasGradient || color instanceof CanvasPattern) {
|
|
196
151
|
this.context.fillStyle = color.native;
|
|
197
152
|
}
|
|
@@ -200,23 +155,18 @@ export class CanvasRenderingContext2D extends CanvasRenderingContext2DBase {
|
|
|
200
155
|
}
|
|
201
156
|
}
|
|
202
157
|
get filter() {
|
|
203
|
-
this.log('get filter');
|
|
204
158
|
return this.context.filter;
|
|
205
159
|
}
|
|
206
160
|
set filter(value) {
|
|
207
|
-
this.log('set filter', value);
|
|
208
161
|
this.context.filter = value;
|
|
209
162
|
}
|
|
210
163
|
get strokeStyle() {
|
|
211
|
-
this.log('strokeStyle');
|
|
212
164
|
return this.context.strokeStyle;
|
|
213
165
|
}
|
|
214
166
|
set strokeStyle(color) {
|
|
215
|
-
this.log('strokeStyle:', color);
|
|
216
167
|
if (color === undefined || color === null) {
|
|
217
168
|
return;
|
|
218
169
|
}
|
|
219
|
-
this._ensureLayoutBeforeDraw();
|
|
220
170
|
if (color instanceof CanvasGradient || color instanceof CanvasPattern) {
|
|
221
171
|
this.context.strokeStyle = color.native;
|
|
222
172
|
}
|
|
@@ -225,12 +175,9 @@ export class CanvasRenderingContext2D extends CanvasRenderingContext2DBase {
|
|
|
225
175
|
}
|
|
226
176
|
}
|
|
227
177
|
get lineWidth() {
|
|
228
|
-
this.log('lineWidth');
|
|
229
178
|
return this.context.lineWidth;
|
|
230
179
|
}
|
|
231
180
|
set lineWidth(width) {
|
|
232
|
-
this.log('lineWidth value:', width);
|
|
233
|
-
this._ensureLayoutBeforeDraw();
|
|
234
181
|
this.context.lineWidth = width;
|
|
235
182
|
}
|
|
236
183
|
_getMethod(name) {
|
|
@@ -242,44 +189,38 @@ export class CanvasRenderingContext2D extends CanvasRenderingContext2DBase {
|
|
|
242
189
|
}
|
|
243
190
|
return cached;
|
|
244
191
|
}
|
|
245
|
-
__toDataURL() {
|
|
192
|
+
__toDataURL(type = 'image/png', quality = 92) {
|
|
246
193
|
const __toDataURL = this._getMethod('__toDataURL');
|
|
247
|
-
return __toDataURL(
|
|
194
|
+
return __toDataURL(type, quality);
|
|
248
195
|
}
|
|
249
196
|
addHitRegion(region) { }
|
|
250
197
|
arc(x, y, radius, startAngle, endAngle, anticlockwise = false) {
|
|
251
|
-
this.log('arc value:', x, y, radius, startAngle, endAngle, anticlockwise);
|
|
252
198
|
this._ensureLayoutBeforeDraw();
|
|
253
199
|
const arc = this._getMethod('arc');
|
|
254
200
|
arc(x, y, radius, startAngle, endAngle, anticlockwise);
|
|
255
201
|
}
|
|
256
202
|
arcTo(x1, y1, x2, y2, radius) {
|
|
257
|
-
this.log('arcTo value:', x1, y1, x2, y2, radius);
|
|
258
203
|
this._ensureLayoutBeforeDraw();
|
|
259
204
|
const arcTo = this._getMethod('arcTo');
|
|
260
205
|
arcTo(x1, y1, x2, y2, radius);
|
|
261
206
|
}
|
|
262
207
|
beginPath() {
|
|
263
|
-
this.log('beginPath');
|
|
264
208
|
this._ensureLayoutBeforeDraw();
|
|
265
209
|
const beginPath = this._getMethod('beginPath');
|
|
266
210
|
beginPath();
|
|
267
211
|
}
|
|
268
212
|
bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y) {
|
|
269
|
-
this.log('bezierCurveTo value:', cp1x, cp1y, cp2x, cp2y, x, y);
|
|
270
213
|
this._ensureLayoutBeforeDraw();
|
|
271
214
|
const bezierCurveTo = this._getMethod('bezierCurveTo');
|
|
272
215
|
bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y);
|
|
273
216
|
}
|
|
274
217
|
clearHitRegions() { }
|
|
275
218
|
clearRect(x, y, width, height) {
|
|
276
|
-
this.log('clearRect value:', x, y, width, height);
|
|
277
219
|
this._ensureLayoutBeforeDraw();
|
|
278
220
|
const clearRect = this._getMethod('clearRect');
|
|
279
221
|
clearRect(x, y, width, height);
|
|
280
222
|
}
|
|
281
223
|
clip(...args) {
|
|
282
|
-
this.log('clip value:', ...args);
|
|
283
224
|
this._ensureLayoutBeforeDraw();
|
|
284
225
|
const clip = this._getMethod('clip');
|
|
285
226
|
if (typeof args[0] === 'string') {
|
|
@@ -296,13 +237,11 @@ export class CanvasRenderingContext2D extends CanvasRenderingContext2DBase {
|
|
|
296
237
|
}
|
|
297
238
|
}
|
|
298
239
|
closePath() {
|
|
299
|
-
this.log('closePath');
|
|
300
240
|
this._ensureLayoutBeforeDraw();
|
|
301
241
|
const closePath = this._getMethod('closePath');
|
|
302
242
|
closePath();
|
|
303
243
|
}
|
|
304
244
|
createImageData(width, height) {
|
|
305
|
-
this.log('createImageData value:', arguments);
|
|
306
245
|
if (width instanceof ImageData) {
|
|
307
246
|
return new ImageData(width.width, width.height);
|
|
308
247
|
}
|
|
@@ -311,14 +250,12 @@ export class CanvasRenderingContext2D extends CanvasRenderingContext2DBase {
|
|
|
311
250
|
}
|
|
312
251
|
}
|
|
313
252
|
createLinearGradient(x0, y0, x1, y1) {
|
|
314
|
-
this.log('createLinearGradient value:', x0, y0, x1, y1);
|
|
315
253
|
this._ensureLayoutBeforeDraw();
|
|
316
254
|
const createLinearGradient = this._getMethod('createLinearGradient');
|
|
317
255
|
return CanvasGradient.fromNative(createLinearGradient(x0, y0, x1, y1));
|
|
318
256
|
}
|
|
319
257
|
createPattern(image, repetition) {
|
|
320
258
|
var _a;
|
|
321
|
-
this.log('createPattern value:', image, repetition);
|
|
322
259
|
this._ensureLayoutBeforeDraw();
|
|
323
260
|
if (repetition === undefined || typeof repetition !== 'string') {
|
|
324
261
|
const e = new Error('The string did not match the expected pattern.');
|
|
@@ -331,17 +268,32 @@ export class CanvasRenderingContext2D extends CanvasRenderingContext2DBase {
|
|
|
331
268
|
img = image.native;
|
|
332
269
|
}
|
|
333
270
|
else if (image instanceof ImageSource) {
|
|
334
|
-
img = image.android;
|
|
335
271
|
const ptr = this._getMethod('__getPointer');
|
|
336
272
|
const createPattern = this._getMethod('__createPatternWithNative');
|
|
337
|
-
|
|
338
|
-
|
|
273
|
+
if (global.isAndroid) {
|
|
274
|
+
img = image.android;
|
|
275
|
+
const pattern = org.nativescript.canvas.NSCCanvasRenderingContext2D.createPattern(long(ptr), img, repetition);
|
|
276
|
+
return new CanvasPattern(createPattern(pattern));
|
|
277
|
+
}
|
|
278
|
+
if (global.isIOS) {
|
|
279
|
+
img = image.ios;
|
|
280
|
+
const pattern = NSCCanvasRenderingContext2D.createPattern(long(ptr), img, repetition);
|
|
281
|
+
return new CanvasPattern(createPattern(pattern));
|
|
282
|
+
}
|
|
283
|
+
return null;
|
|
339
284
|
}
|
|
340
|
-
else if (image instanceof android.graphics.Bitmap) {
|
|
285
|
+
else if (global.isAndroid && image instanceof android.graphics.Bitmap) {
|
|
341
286
|
const ptr = this._getMethod('__getPointer');
|
|
342
287
|
const createPattern = this._getMethod('__createPatternWithNative');
|
|
343
|
-
|
|
344
|
-
|
|
288
|
+
if (global.isAndroid) {
|
|
289
|
+
const pattern = org.nativescript.canvas.NSCCanvasRenderingContext2D.createPattern(long(ptr), image, repetition);
|
|
290
|
+
return new CanvasPattern(createPattern(pattern));
|
|
291
|
+
}
|
|
292
|
+
if (global.isIOS) {
|
|
293
|
+
const pattern = NSCCanvasRenderingContext2D.createPattern(long(ptr), image, repetition);
|
|
294
|
+
return new CanvasPattern(createPattern(pattern));
|
|
295
|
+
}
|
|
296
|
+
return null;
|
|
345
297
|
}
|
|
346
298
|
else if (image instanceof ImageAsset) {
|
|
347
299
|
img = image.native;
|
|
@@ -350,18 +302,27 @@ export class CanvasRenderingContext2D extends CanvasRenderingContext2DBase {
|
|
|
350
302
|
img = image.native;
|
|
351
303
|
}
|
|
352
304
|
else if (image && typeof image.tagName === 'string' && (image.tagName === 'IMG' || image.tagName === 'IMAGE')) {
|
|
353
|
-
if (image._image instanceof android.graphics.Bitmap) {
|
|
305
|
+
if (global.isAndroid && image._image instanceof android.graphics.Bitmap) {
|
|
306
|
+
//todo ios
|
|
354
307
|
img = image._image;
|
|
355
308
|
}
|
|
356
309
|
else if (image._asset instanceof ImageAsset) {
|
|
357
310
|
img = image._asset.native;
|
|
358
311
|
}
|
|
359
312
|
else if (typeof image.src === 'string') {
|
|
360
|
-
img = ImageSource.fromFileSync(image.src).android;
|
|
361
313
|
const ptr = this._getMethod('__getPointer');
|
|
362
314
|
const createPattern = this._getMethod('__createPatternWithNative');
|
|
363
|
-
|
|
364
|
-
|
|
315
|
+
if (global.isAndroid) {
|
|
316
|
+
img = ImageSource.fromFileSync(image.src).android;
|
|
317
|
+
const pattern = org.nativescript.canvas.NSCCanvasRenderingContext2D.createPattern(long(ptr), img, repetition);
|
|
318
|
+
return new CanvasPattern(createPattern(pattern));
|
|
319
|
+
}
|
|
320
|
+
if (global.isiOS) {
|
|
321
|
+
img = ImageSource.fromFileSync(image.src).android;
|
|
322
|
+
const pattern = NSCCanvasRenderingContext2D.createPattern(long(ptr), img, repetition);
|
|
323
|
+
return new CanvasPattern(createPattern(pattern));
|
|
324
|
+
}
|
|
325
|
+
return null;
|
|
365
326
|
}
|
|
366
327
|
}
|
|
367
328
|
else if (image && typeof image.tagName === 'string' && image.tagName === 'CANVAS' && image._canvas instanceof Canvas) {
|
|
@@ -376,61 +337,119 @@ export class CanvasRenderingContext2D extends CanvasRenderingContext2DBase {
|
|
|
376
337
|
return new CanvasPattern(createPattern(img, repetition));
|
|
377
338
|
}
|
|
378
339
|
createRadialGradient(x0, y0, r0, x1, y1, r1) {
|
|
379
|
-
this.log('createRadialGradient value:', x0, y0, r0, x1, y1, r1);
|
|
380
340
|
this._ensureLayoutBeforeDraw();
|
|
381
341
|
const createRadialGradient = this._getMethod('createRadialGradient');
|
|
382
342
|
return CanvasGradient.fromNative(createRadialGradient(x0, y0, r0, x1, y1, r1));
|
|
383
343
|
}
|
|
344
|
+
drawPaint(color) {
|
|
345
|
+
this._ensureLayoutBeforeDraw();
|
|
346
|
+
const drawPaint = this._getMethod('drawPaint');
|
|
347
|
+
drawPaint(color);
|
|
348
|
+
}
|
|
349
|
+
drawPoint(x, y) {
|
|
350
|
+
this._ensureLayoutBeforeDraw();
|
|
351
|
+
const drawPoint = this._getMethod('drawPoint');
|
|
352
|
+
drawPoint(x, y);
|
|
353
|
+
}
|
|
354
|
+
drawPoints(mode, points) {
|
|
355
|
+
this._ensureLayoutBeforeDraw();
|
|
356
|
+
const drawPoints = this._getMethod('drawPoints');
|
|
357
|
+
drawPoints(mode, points);
|
|
358
|
+
}
|
|
384
359
|
drawFocusIfNeeded(...args) { }
|
|
385
360
|
drawImage(...args) {
|
|
386
361
|
var _a;
|
|
387
|
-
this.log('drawImage value:', ...args);
|
|
388
362
|
this._ensureLayoutBeforeDraw();
|
|
389
363
|
const drawImage = this._getMethod('drawImage');
|
|
390
|
-
|
|
391
|
-
if ((image === null || image === void 0 ? void 0 : image._type) === '2d' || ((_a = image === null || image === void 0 ? void 0 : image._type) === null || _a === void 0 ? void 0 : _a.indexOf('webgl')) > -1) {
|
|
392
|
-
image = image.native;
|
|
393
|
-
}
|
|
394
|
-
else if (image instanceof ImageAsset) {
|
|
395
|
-
image = image.native;
|
|
396
|
-
}
|
|
397
|
-
else if (image instanceof ImageSource) {
|
|
398
|
-
image = image.android;
|
|
364
|
+
const drawNativeImage = (args, image) => {
|
|
399
365
|
const ptr = this._getMethod('__getPointer');
|
|
400
366
|
const makeDirty = this._getMethod('__makeDirty');
|
|
401
367
|
let dirty = false;
|
|
402
368
|
if (args.length === 3) {
|
|
403
|
-
|
|
369
|
+
if (global.isAndroid) {
|
|
370
|
+
dirty = org.nativescript.canvas.NSCCanvasRenderingContext2D.drawImage(long(ptr), image, args[1], args[2]);
|
|
371
|
+
}
|
|
372
|
+
if (global.isIOS) {
|
|
373
|
+
dirty = NSCCanvasRenderingContext2D.drawImage(long(ptr), image, args[1], args[2]);
|
|
374
|
+
}
|
|
404
375
|
}
|
|
405
376
|
else if (args.length === 5) {
|
|
406
|
-
|
|
377
|
+
if (global.isAndroid) {
|
|
378
|
+
dirty = org.nativescript.canvas.NSCCanvasRenderingContext2D.drawImage(long(ptr), image, args[1], args[2], args[3], args[4]);
|
|
379
|
+
}
|
|
380
|
+
if (global.isIOS) {
|
|
381
|
+
dirty = NSCCanvasRenderingContext2D.drawImage(long(ptr), image, args[1], args[2], args[3], args[4]);
|
|
382
|
+
}
|
|
407
383
|
}
|
|
408
384
|
else if (args.length === 9) {
|
|
409
|
-
|
|
385
|
+
if (global.Android) {
|
|
386
|
+
dirty = org.nativescript.canvas.NSCCanvasRenderingContext2D.drawImage(long(ptr), image, args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8]);
|
|
387
|
+
}
|
|
388
|
+
if (global.isIOS) {
|
|
389
|
+
dirty = NSCCanvasRenderingContext2D.drawImage(long(ptr), image, args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8]);
|
|
390
|
+
}
|
|
410
391
|
}
|
|
411
392
|
if (dirty) {
|
|
412
393
|
makeDirty();
|
|
413
394
|
}
|
|
395
|
+
};
|
|
396
|
+
let image = args[0];
|
|
397
|
+
if ((image === null || image === void 0 ? void 0 : image._type) === '2d' || ((_a = image === null || image === void 0 ? void 0 : image._type) === null || _a === void 0 ? void 0 : _a.indexOf('webgl')) > -1) {
|
|
398
|
+
image = image.native;
|
|
399
|
+
}
|
|
400
|
+
else if (image instanceof ImageAsset) {
|
|
401
|
+
image = image.native;
|
|
402
|
+
}
|
|
403
|
+
else if (image instanceof ImageSource) {
|
|
404
|
+
if (global.isAndroid) {
|
|
405
|
+
drawNativeImage(args, image.android);
|
|
406
|
+
}
|
|
407
|
+
if (global.isIOS) {
|
|
408
|
+
drawNativeImage(args, image.ios);
|
|
409
|
+
}
|
|
410
|
+
return;
|
|
411
|
+
}
|
|
412
|
+
else if (global.isAndroid && image instanceof android.graphics.Bitmap) {
|
|
413
|
+
drawNativeImage(args, image);
|
|
414
414
|
return;
|
|
415
415
|
}
|
|
416
|
-
else if (image instanceof
|
|
417
|
-
|
|
416
|
+
else if (global.isIOS && image instanceof UIImage) {
|
|
417
|
+
drawNativeImage(args, image);
|
|
418
|
+
return;
|
|
418
419
|
}
|
|
419
420
|
else if (image instanceof Canvas) {
|
|
420
421
|
image = image.native;
|
|
421
422
|
}
|
|
422
423
|
else if (image && typeof image.tagName === 'string' && (image.tagName === 'IMG' || image.tagName === 'IMAGE')) {
|
|
423
424
|
if (image._imageSource instanceof ImageSource) {
|
|
424
|
-
|
|
425
|
+
if (global.isAndroid) {
|
|
426
|
+
drawNativeImage(args, image._imageSource.android);
|
|
427
|
+
}
|
|
428
|
+
if (global.isIOS) {
|
|
429
|
+
drawNativeImage(args, image._imageSource.ios);
|
|
430
|
+
}
|
|
431
|
+
return;
|
|
425
432
|
}
|
|
426
|
-
else if (image._image instanceof android.graphics.Bitmap) {
|
|
427
|
-
|
|
433
|
+
else if (global.isAndroid && image._image instanceof android.graphics.Bitmap) {
|
|
434
|
+
drawNativeImage(args, image._image);
|
|
435
|
+
return;
|
|
436
|
+
}
|
|
437
|
+
else if (global.isIOS && image._image instanceof UIImage) {
|
|
438
|
+
drawNativeImage(args, image._image);
|
|
439
|
+
return;
|
|
428
440
|
}
|
|
429
441
|
else if (image._asset instanceof ImageAsset) {
|
|
430
442
|
image = image._asset.native;
|
|
431
443
|
}
|
|
432
444
|
else if (typeof image.src === 'string') {
|
|
433
445
|
image = ImageSource.fromFileSync(image.src).android;
|
|
446
|
+
if (global.isAndroid) {
|
|
447
|
+
drawNativeImage(args, image.android);
|
|
448
|
+
}
|
|
449
|
+
if (global.isIOS) {
|
|
450
|
+
drawNativeImage(args, image.ios);
|
|
451
|
+
}
|
|
452
|
+
return;
|
|
434
453
|
}
|
|
435
454
|
}
|
|
436
455
|
else if (image && typeof image.tagName === 'string' && image.tagName === 'CANVAS' && image._canvas instanceof Canvas) {
|
|
@@ -450,13 +469,11 @@ export class CanvasRenderingContext2D extends CanvasRenderingContext2DBase {
|
|
|
450
469
|
}
|
|
451
470
|
}
|
|
452
471
|
ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise = false) {
|
|
453
|
-
this.log('ellipse value:', x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise);
|
|
454
472
|
this._ensureLayoutBeforeDraw();
|
|
455
473
|
const ellipse = this._getMethod('ellipse');
|
|
456
474
|
ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise);
|
|
457
475
|
}
|
|
458
476
|
fill(...args) {
|
|
459
|
-
this.log('fill value:', ...args);
|
|
460
477
|
this._ensureLayoutBeforeDraw();
|
|
461
478
|
const fill = this._getMethod('fill');
|
|
462
479
|
if (typeof args[0] === 'string') {
|
|
@@ -473,13 +490,11 @@ export class CanvasRenderingContext2D extends CanvasRenderingContext2DBase {
|
|
|
473
490
|
}
|
|
474
491
|
}
|
|
475
492
|
fillRect(x, y, width, height) {
|
|
476
|
-
this.log('fillRect value:', x, y, width, height);
|
|
477
493
|
this._ensureLayoutBeforeDraw();
|
|
478
494
|
const fillRect = this._getMethod('fillRect');
|
|
479
495
|
fillRect(x, y, width, height);
|
|
480
496
|
}
|
|
481
497
|
fillText(text, x, y, maxWidth) {
|
|
482
|
-
this.log('fillText value:', text, x, y, maxWidth);
|
|
483
498
|
this._ensureLayoutBeforeDraw();
|
|
484
499
|
const fillText = this._getMethod('fillText');
|
|
485
500
|
if (typeof maxWidth === 'number') {
|
|
@@ -490,19 +505,16 @@ export class CanvasRenderingContext2D extends CanvasRenderingContext2DBase {
|
|
|
490
505
|
}
|
|
491
506
|
}
|
|
492
507
|
getImageData(sx, sy, sw, sh) {
|
|
493
|
-
this.log('getImageData value:', sx, sy, sw, sh);
|
|
494
508
|
this._ensureLayoutBeforeDraw();
|
|
495
509
|
const getImageData = this._getMethod('getImageData');
|
|
496
510
|
return ImageData.fromNative(getImageData(sx, sy, sw, sh));
|
|
497
511
|
}
|
|
498
512
|
getLineDash() {
|
|
499
|
-
this.log('getLineDash');
|
|
500
513
|
this._ensureLayoutBeforeDraw();
|
|
501
514
|
const getLineDash = this._getMethod('getLineDash');
|
|
502
515
|
return getLineDash();
|
|
503
516
|
}
|
|
504
517
|
isPointInPath(...args) {
|
|
505
|
-
this.log('isPointInPath value:', ...args);
|
|
506
518
|
this._ensureLayoutBeforeDraw();
|
|
507
519
|
const isPointInPath = this._getMethod('isPointInPath');
|
|
508
520
|
if (args.length === 2) {
|
|
@@ -517,7 +529,6 @@ export class CanvasRenderingContext2D extends CanvasRenderingContext2DBase {
|
|
|
517
529
|
return false;
|
|
518
530
|
}
|
|
519
531
|
isPointInStroke(...args) {
|
|
520
|
-
this.log('isPointInStroke value:', ...args);
|
|
521
532
|
this._ensureLayoutBeforeDraw();
|
|
522
533
|
const isPointInStroke = this._getMethod('isPointInStroke');
|
|
523
534
|
if (args.length === 2) {
|
|
@@ -529,25 +540,21 @@ export class CanvasRenderingContext2D extends CanvasRenderingContext2DBase {
|
|
|
529
540
|
return false;
|
|
530
541
|
}
|
|
531
542
|
lineTo(x, y) {
|
|
532
|
-
this.log('lineTo value:', x, y);
|
|
533
543
|
this._ensureLayoutBeforeDraw();
|
|
534
544
|
const lineTo = this._getMethod('lineTo');
|
|
535
545
|
lineTo(x, y);
|
|
536
546
|
}
|
|
537
547
|
measureText(text) {
|
|
538
|
-
this.log('measureText value:', text);
|
|
539
548
|
this._ensureLayoutBeforeDraw();
|
|
540
549
|
const measureText = this._getMethod('measureText');
|
|
541
550
|
return new TextMetrics(measureText(text));
|
|
542
551
|
}
|
|
543
552
|
moveTo(x, y) {
|
|
544
|
-
this.log('moveTo value:', x, y);
|
|
545
553
|
this._ensureLayoutBeforeDraw();
|
|
546
554
|
const moveTo = this._getMethod('moveTo');
|
|
547
555
|
moveTo(x, y);
|
|
548
556
|
}
|
|
549
557
|
putImageData(...args) {
|
|
550
|
-
this.log('putImageData value:', ...args);
|
|
551
558
|
this._ensureLayoutBeforeDraw();
|
|
552
559
|
if (!args) {
|
|
553
560
|
return;
|
|
@@ -562,63 +569,58 @@ export class CanvasRenderingContext2D extends CanvasRenderingContext2DBase {
|
|
|
562
569
|
}
|
|
563
570
|
}
|
|
564
571
|
quadraticCurveTo(cpx, cpy, x, y) {
|
|
565
|
-
this.log('quadraticCurveTo value:', cpx, cpy, x, y);
|
|
566
572
|
this._ensureLayoutBeforeDraw();
|
|
567
573
|
const quadraticCurveTo = this._getMethod('quadraticCurveTo');
|
|
568
574
|
quadraticCurveTo(cpx, cpy, x, y);
|
|
569
575
|
}
|
|
570
576
|
rect(x, y, width, height) {
|
|
571
|
-
this.log('rect value:', x, y, width, height);
|
|
572
577
|
this._ensureLayoutBeforeDraw();
|
|
573
578
|
const rect = this._getMethod('rect');
|
|
574
579
|
rect(x, y, width, height);
|
|
575
580
|
}
|
|
581
|
+
roundRect(x, y, width, height, radii) {
|
|
582
|
+
this._ensureLayoutBeforeDraw();
|
|
583
|
+
const roundRect = this._getMethod('roundRect');
|
|
584
|
+
roundRect(x, y, width, height, radii);
|
|
585
|
+
}
|
|
576
586
|
removeHitRegion(id) { }
|
|
577
587
|
resetTransform() {
|
|
578
|
-
this.log('resetTransform value:');
|
|
579
588
|
this._ensureLayoutBeforeDraw();
|
|
580
589
|
const resetTransform = this._getMethod('resetTransform');
|
|
581
590
|
resetTransform();
|
|
582
591
|
}
|
|
583
592
|
restore() {
|
|
584
|
-
this.log('restore');
|
|
585
593
|
this._ensureLayoutBeforeDraw();
|
|
586
594
|
const restore = this._getMethod('restore');
|
|
587
595
|
restore();
|
|
588
596
|
}
|
|
589
597
|
rotate(angle) {
|
|
590
|
-
this.log('rotate value:', angle);
|
|
591
598
|
this._ensureLayoutBeforeDraw();
|
|
592
599
|
const rotate = this._getMethod('rotate');
|
|
593
600
|
rotate(angle);
|
|
594
601
|
}
|
|
595
602
|
save() {
|
|
596
|
-
this.log('save');
|
|
597
603
|
this._ensureLayoutBeforeDraw();
|
|
598
604
|
const save = this._getMethod('save');
|
|
599
605
|
save();
|
|
600
606
|
}
|
|
601
607
|
scale(x, y) {
|
|
602
|
-
this.log('scale value:', x, y);
|
|
603
608
|
this._ensureLayoutBeforeDraw();
|
|
604
609
|
const scale = this._getMethod('scale');
|
|
605
610
|
scale(x, y);
|
|
606
611
|
}
|
|
607
612
|
scrollPathIntoView(path) { }
|
|
608
613
|
setLineDash(segments) {
|
|
609
|
-
this.log('setLineDash value:', segments);
|
|
610
614
|
this._ensureLayoutBeforeDraw();
|
|
611
615
|
const setLineDash = this._getMethod('setLineDash');
|
|
612
616
|
setLineDash(segments);
|
|
613
617
|
}
|
|
614
618
|
setTransform(a, b, c, d, e, f) {
|
|
615
|
-
this.log('setTransform value:', a, b, c, d, e, f);
|
|
616
619
|
this._ensureLayoutBeforeDraw();
|
|
617
620
|
const setTransform = this._getMethod('setTransform');
|
|
618
621
|
setTransform(a, b, c, d, e, f);
|
|
619
622
|
}
|
|
620
623
|
stroke(path) {
|
|
621
|
-
this.log('stroke value:', path);
|
|
622
624
|
this._ensureLayoutBeforeDraw();
|
|
623
625
|
const stroke = this._getMethod('stroke');
|
|
624
626
|
if (path) {
|
|
@@ -629,13 +631,11 @@ export class CanvasRenderingContext2D extends CanvasRenderingContext2DBase {
|
|
|
629
631
|
}
|
|
630
632
|
}
|
|
631
633
|
strokeRect(x, y, width, height) {
|
|
632
|
-
this.log('strokeRect value:', x, y, width, height);
|
|
633
634
|
this._ensureLayoutBeforeDraw();
|
|
634
635
|
const strokeRect = this._getMethod('strokeRect');
|
|
635
636
|
strokeRect(x, y, width, height);
|
|
636
637
|
}
|
|
637
638
|
strokeText(text, x, y, maxWidth) {
|
|
638
|
-
this.log('strokeText value:', text, x, y, maxWidth);
|
|
639
639
|
this._ensureLayoutBeforeDraw();
|
|
640
640
|
const strokeText = this._getMethod('strokeText');
|
|
641
641
|
if (typeof maxWidth === 'number') {
|
|
@@ -646,28 +646,20 @@ export class CanvasRenderingContext2D extends CanvasRenderingContext2DBase {
|
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
648
|
transform(a, b, c, d, e, f) {
|
|
649
|
-
this.log('transform value:', a, b, c, d, e, f);
|
|
650
649
|
this._ensureLayoutBeforeDraw();
|
|
651
650
|
const transform = this._getMethod('transform');
|
|
652
651
|
transform(a, b, c, d, e, f);
|
|
653
652
|
}
|
|
654
653
|
translate(x, y) {
|
|
655
|
-
this.log('translate value:', x, y);
|
|
656
654
|
this._ensureLayoutBeforeDraw();
|
|
657
655
|
const translate = this._getMethod('translate');
|
|
658
656
|
translate(x, y);
|
|
659
657
|
}
|
|
660
658
|
_ensureLayoutBeforeDraw() {
|
|
661
|
-
if (this.canvas) {
|
|
659
|
+
if (this.canvas !== undefined) {
|
|
662
660
|
this.canvas._layoutNative();
|
|
663
661
|
}
|
|
664
662
|
}
|
|
665
|
-
log(message, ...args) {
|
|
666
|
-
if (!CanvasRenderingContext2D.isDebug) {
|
|
667
|
-
return;
|
|
668
|
-
}
|
|
669
|
-
console.log(message, args);
|
|
670
|
-
}
|
|
671
663
|
}
|
|
672
664
|
CanvasRenderingContext2D.isDebug = false;
|
|
673
665
|
(() => {
|
|
@@ -675,4 +667,4 @@ CanvasRenderingContext2D.isDebug = false;
|
|
|
675
667
|
//ctor = global.CanvasJSIModule.create2DContext;
|
|
676
668
|
ctor = global.CanvasJSIModule.create2DContextWithPointer;
|
|
677
669
|
})();
|
|
678
|
-
//# sourceMappingURL=index.
|
|
670
|
+
//# sourceMappingURL=index.js.map
|