@nativescript/canvas 2.0.0-alpha.1 → 2.0.0-alpha.10
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.js +8 -15
- package/Canvas/common.js.map +1 -1
- package/Canvas/index.android.d.ts +2 -0
- package/Canvas/index.android.js +21 -13
- package/Canvas/index.android.js.map +1 -1
- package/Canvas/index.d.ts +5 -0
- package/Canvas/index.ios.d.ts +8 -2
- package/Canvas/index.ios.js +129 -75
- 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} +134 -123
- 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} +6 -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} +29 -12
- 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} +17 -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 +131 -1722
- 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 +96 -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 +5121 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +150 -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 +88 -3202
- 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 +252 -3444
- 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 +96 -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 +5121 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +150 -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 +88 -3202
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +5121 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +150 -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 +88 -3202
- 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 +63 -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 +46 -0
- package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.cc +6156 -0
- package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.h +2867 -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 +75 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.mm +1972 -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 +517 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.mm +5958 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.h +90 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.mm +118 -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_fbo_render_mipmap.h +30 -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 +4543 -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/pods/Headers/include/APIDesign.md +72 -0
- package/pods/Headers/include/DEPS +10 -0
- package/pods/Headers/include/DIR_METADATA +11 -0
- package/pods/Headers/include/OWNERS +23 -0
- package/pods/Headers/include/cppgc/DEPS +8 -0
- package/pods/Headers/include/cppgc/OWNERS +2 -0
- package/pods/Headers/include/cppgc/README.md +133 -0
- package/pods/Headers/include/cppgc/allocation.h +310 -0
- package/pods/Headers/include/cppgc/common.h +29 -0
- package/pods/Headers/include/cppgc/cross-thread-persistent.h +465 -0
- package/pods/Headers/include/cppgc/custom-space.h +97 -0
- package/pods/Headers/include/cppgc/default-platform.h +67 -0
- package/pods/Headers/include/cppgc/ephemeron-pair.h +30 -0
- package/pods/Headers/include/cppgc/explicit-management.h +100 -0
- package/pods/Headers/include/cppgc/garbage-collected.h +106 -0
- package/pods/Headers/include/cppgc/heap-consistency.h +266 -0
- package/pods/Headers/include/cppgc/heap-state.h +82 -0
- package/pods/Headers/include/cppgc/heap-statistics.h +120 -0
- package/pods/Headers/include/cppgc/heap.h +206 -0
- package/pods/Headers/include/cppgc/internal/api-constants.h +55 -0
- package/pods/Headers/include/cppgc/internal/atomic-entry-flag.h +48 -0
- package/pods/Headers/include/cppgc/internal/caged-heap-local-data.h +79 -0
- package/pods/Headers/include/cppgc/internal/compiler-specific.h +38 -0
- package/pods/Headers/include/cppgc/internal/finalizer-trait.h +93 -0
- package/pods/Headers/include/cppgc/internal/gc-info.h +156 -0
- package/pods/Headers/include/cppgc/internal/logging.h +50 -0
- package/pods/Headers/include/cppgc/internal/name-trait.h +122 -0
- package/pods/Headers/include/cppgc/internal/persistent-node.h +216 -0
- package/pods/Headers/include/cppgc/internal/pointer-policies.h +186 -0
- package/pods/Headers/include/cppgc/internal/write-barrier.h +435 -0
- package/pods/Headers/include/cppgc/liveness-broker.h +77 -0
- package/pods/Headers/include/cppgc/macros.h +26 -0
- package/pods/Headers/include/cppgc/member.h +291 -0
- package/pods/Headers/include/cppgc/name-provider.h +65 -0
- package/pods/Headers/include/cppgc/object-size-trait.h +58 -0
- package/pods/Headers/include/cppgc/persistent.h +370 -0
- package/pods/Headers/include/cppgc/platform.h +156 -0
- package/pods/Headers/include/cppgc/prefinalizer.h +75 -0
- package/pods/Headers/include/cppgc/process-heap-statistics.h +36 -0
- package/pods/Headers/include/cppgc/sentinel-pointer.h +32 -0
- package/pods/Headers/include/cppgc/source-location.h +92 -0
- package/pods/Headers/include/cppgc/testing.h +106 -0
- package/pods/Headers/include/cppgc/trace-trait.h +116 -0
- package/pods/Headers/include/cppgc/type-traits.h +240 -0
- package/pods/Headers/include/cppgc/visitor.h +379 -0
- package/pods/Headers/include/js_protocol-1.2.json +936 -0
- package/pods/Headers/include/js_protocol-1.3.json +1112 -0
- package/pods/Headers/include/js_protocol.pdl +1709 -0
- package/pods/Headers/include/libffi/arm64/ffi.h +524 -0
- package/pods/Headers/include/libffi/arm64/ffitarget.h +92 -0
- package/pods/Headers/include/libffi/x86_64/ffi.h +524 -0
- package/pods/Headers/include/libffi/x86_64/ffitarget.h +147 -0
- package/pods/Headers/include/libffi.h +12 -0
- package/pods/Headers/include/libplatform/DEPS +9 -0
- package/pods/Headers/include/libplatform/libplatform-export.h +29 -0
- package/pods/Headers/include/libplatform/libplatform.h +106 -0
- package/pods/Headers/include/libplatform/v8-tracing.h +333 -0
- package/pods/Headers/include/v8-array-buffer.h +433 -0
- package/pods/Headers/include/v8-callbacks.h +397 -0
- package/pods/Headers/include/v8-container.h +129 -0
- package/pods/Headers/include/v8-context.h +407 -0
- package/pods/Headers/include/v8-cppgc.h +215 -0
- package/pods/Headers/include/v8-data.h +80 -0
- package/pods/Headers/include/v8-date.h +43 -0
- package/pods/Headers/include/v8-debug.h +168 -0
- package/pods/Headers/include/v8-embedder-heap.h +218 -0
- package/pods/Headers/include/v8-embedder-state-scope.h +51 -0
- package/pods/Headers/include/v8-exception.h +217 -0
- package/pods/Headers/include/v8-extension.h +62 -0
- package/pods/Headers/include/v8-external.h +37 -0
- package/pods/Headers/include/v8-fast-api-calls.h +939 -0
- package/pods/Headers/include/v8-forward.h +81 -0
- package/pods/Headers/include/v8-function-callback.h +475 -0
- package/pods/Headers/include/v8-function.h +125 -0
- package/pods/Headers/include/v8-initialization.h +315 -0
- package/pods/Headers/include/v8-inspector-protocol.h +13 -0
- package/pods/Headers/include/v8-inspector.h +376 -0
- package/pods/Headers/include/v8-internal.h +661 -0
- package/pods/Headers/include/v8-isolate.h +1709 -0
- package/pods/Headers/include/v8-json.h +47 -0
- package/pods/Headers/include/v8-local-handle.h +455 -0
- package/pods/Headers/include/v8-locker.h +149 -0
- package/pods/Headers/include/v8-maybe.h +137 -0
- package/pods/Headers/include/v8-memory-span.h +43 -0
- package/pods/Headers/include/v8-message.h +216 -0
- package/pods/Headers/include/v8-metrics.h +255 -0
- package/pods/Headers/include/v8-microtask-queue.h +152 -0
- package/pods/Headers/include/v8-microtask.h +28 -0
- package/pods/Headers/include/v8-object.h +775 -0
- package/pods/Headers/include/v8-persistent-handle.h +590 -0
- package/pods/Headers/include/v8-platform.h +1092 -0
- package/pods/Headers/include/v8-primitive-object.h +118 -0
- package/pods/Headers/include/v8-primitive.h +866 -0
- package/pods/Headers/include/v8-profiler.h +1198 -0
- package/pods/Headers/include/v8-promise.h +174 -0
- package/pods/Headers/include/v8-proxy.h +50 -0
- package/pods/Headers/include/v8-regexp.h +105 -0
- package/pods/Headers/include/v8-script.h +748 -0
- package/pods/Headers/include/v8-snapshot.h +196 -0
- package/pods/Headers/include/v8-statistics.h +217 -0
- package/pods/Headers/include/v8-template.h +1079 -0
- package/pods/Headers/include/v8-traced-handle.h +420 -0
- package/pods/Headers/include/v8-typed-array.h +282 -0
- package/pods/Headers/include/v8-unwinder-state.h +31 -0
- package/pods/Headers/include/v8-unwinder.h +132 -0
- package/pods/Headers/include/v8-util.h +658 -0
- package/pods/Headers/include/v8-value-serializer-version.h +24 -0
- package/pods/Headers/include/v8-value-serializer.h +279 -0
- package/pods/Headers/include/v8-value.h +526 -0
- package/pods/Headers/include/v8-version-string.h +38 -0
- package/pods/Headers/include/v8-version.h +20 -0
- package/pods/Headers/include/v8-wasm-trap-handler-posix.h +31 -0
- package/pods/Headers/include/v8-wasm-trap-handler-win.h +28 -0
- package/pods/Headers/include/v8-wasm.h +257 -0
- package/pods/Headers/include/v8-weak-callback-info.h +86 -0
- package/pods/Headers/include/v8.h +88 -0
- package/pods/Headers/include/v8config.h +605 -0
- package/pods/Headers/inspector/InspectorServer.h +20 -0
- package/pods/Headers/inspector/JsV8InspectorClient.h +66 -0
- package/pods/Headers/inspector/base/trace_event/common/trace_event_common.h +1123 -0
- package/pods/Headers/inspector/base64.h +9 -0
- package/pods/Headers/inspector/src/base/address-region.h +95 -0
- package/pods/Headers/inspector/src/base/atomic-utils.h +219 -0
- package/pods/Headers/inspector/src/base/atomicops.h +332 -0
- package/pods/Headers/inspector/src/base/atomicops_internals_atomicword_compat.h +89 -0
- package/pods/Headers/inspector/src/base/base-export.h +31 -0
- package/pods/Headers/inspector/src/base/bits.h +343 -0
- package/pods/Headers/inspector/src/base/build_config.h +234 -0
- package/pods/Headers/inspector/src/base/compiler-specific.h +136 -0
- package/pods/Headers/inspector/src/base/export-template.h +163 -0
- package/pods/Headers/inspector/src/base/flags.h +130 -0
- package/pods/Headers/inspector/src/base/immediate-crash.h +162 -0
- package/pods/Headers/inspector/src/base/lazy-instance.h +258 -0
- package/pods/Headers/inspector/src/base/logging.h +417 -0
- package/pods/Headers/inspector/src/base/macros.h +423 -0
- package/pods/Headers/inspector/src/base/memory.h +89 -0
- package/pods/Headers/inspector/src/base/once.h +108 -0
- package/pods/Headers/inspector/src/base/optional.h +882 -0
- package/pods/Headers/inspector/src/base/platform/mutex.h +370 -0
- package/pods/Headers/inspector/src/base/platform/platform.h +476 -0
- package/pods/Headers/inspector/src/base/platform/semaphore.h +108 -0
- package/pods/Headers/inspector/src/base/platform/v8-time.h +513 -0
- package/pods/Headers/inspector/src/base/platform/wrappers.h +73 -0
- package/pods/Headers/inspector/src/base/safe_conversions.h +389 -0
- package/pods/Headers/inspector/src/base/safe_conversions_impl.h +822 -0
- package/pods/Headers/inspector/src/base/template-utils.h +113 -0
- package/pods/Headers/inspector/src/base/v8-fallthrough.h +21 -0
- package/pods/Headers/inspector/src/common/checks.h +38 -0
- package/pods/Headers/inspector/src/common/globals.h +1842 -0
- package/pods/Headers/inspector/src/debug/debug-interface.h +667 -0
- package/pods/Headers/inspector/src/debug/interface-types.h +175 -0
- package/pods/Headers/inspector/src/init/v8.h +52 -0
- package/pods/Headers/inspector/src/inspector/custom-preview.h +24 -0
- package/pods/Headers/inspector/src/inspector/injected-script.h +251 -0
- package/pods/Headers/inspector/src/inspector/inspected-context.h +79 -0
- package/pods/Headers/inspector/src/inspector/protocol/CSS.h +2148 -0
- package/pods/Headers/inspector/src/inspector/protocol/Console.h +211 -0
- package/pods/Headers/inspector/src/inspector/protocol/DOM.h +1008 -0
- package/pods/Headers/inspector/src/inspector/protocol/Debugger.h +892 -0
- package/pods/Headers/inspector/src/inspector/protocol/Forward.h +75 -0
- package/pods/Headers/inspector/src/inspector/protocol/HeapProfiler.h +346 -0
- package/pods/Headers/inspector/src/inspector/protocol/Log.h +342 -0
- package/pods/Headers/inspector/src/inspector/protocol/Network.h +2528 -0
- package/pods/Headers/inspector/src/inspector/protocol/Overlay.h +281 -0
- package/pods/Headers/inspector/src/inspector/protocol/Page.h +1189 -0
- package/pods/Headers/inspector/src/inspector/protocol/Profiler.h +1001 -0
- package/pods/Headers/inspector/src/inspector/protocol/Protocol.h +617 -0
- package/pods/Headers/inspector/src/inspector/protocol/Runtime.h +1696 -0
- package/pods/Headers/inspector/src/inspector/protocol/Schema.h +146 -0
- package/pods/Headers/inspector/src/inspector/protocol/Security.h +793 -0
- package/pods/Headers/inspector/src/inspector/remote-object-id.h +54 -0
- package/pods/Headers/inspector/src/inspector/search-util.h +26 -0
- package/pods/Headers/inspector/src/inspector/string-16.h +180 -0
- package/pods/Headers/inspector/src/inspector/string-util.h +128 -0
- package/pods/Headers/inspector/src/inspector/v8-console-agent-impl.h +48 -0
- package/pods/Headers/inspector/src/inspector/v8-console-message.h +147 -0
- package/pods/Headers/inspector/src/inspector/v8-console.h +173 -0
- package/pods/Headers/inspector/src/inspector/v8-css-agent-impl.h +62 -0
- package/pods/Headers/inspector/src/inspector/v8-debugger-agent-impl.h +248 -0
- package/pods/Headers/inspector/src/inspector/v8-debugger-id.h +44 -0
- package/pods/Headers/inspector/src/inspector/v8-debugger-script.h +123 -0
- package/pods/Headers/inspector/src/inspector/v8-debugger.h +257 -0
- package/pods/Headers/inspector/src/inspector/v8-dom-agent-impl.h +91 -0
- package/pods/Headers/inspector/src/inspector/v8-heap-profiler-agent-impl.h +80 -0
- package/pods/Headers/inspector/src/inspector/v8-inspector-impl.h +191 -0
- package/pods/Headers/inspector/src/inspector/v8-inspector-session-impl.h +156 -0
- package/pods/Headers/inspector/src/inspector/v8-log-agent-impl.h +34 -0
- package/pods/Headers/inspector/src/inspector/v8-network-agent-impl.h +71 -0
- package/pods/Headers/inspector/src/inspector/v8-ns-debugger-agent-impl.h +24 -0
- package/pods/Headers/inspector/src/inspector/v8-overlay-agent-impl.h +70 -0
- package/pods/Headers/inspector/src/inspector/v8-page-agent-impl.h +88 -0
- package/pods/Headers/inspector/src/inspector/v8-profiler-agent-impl.h +104 -0
- package/pods/Headers/inspector/src/inspector/v8-regex.h +38 -0
- package/pods/Headers/inspector/src/inspector/v8-runtime-agent-impl.h +157 -0
- package/pods/Headers/inspector/src/inspector/v8-schema-agent-impl.h +38 -0
- package/pods/Headers/inspector/src/inspector/v8-stack-trace-impl.h +164 -0
- package/pods/Headers/inspector/src/inspector/v8-string-conversions.h +17 -0
- package/pods/Headers/inspector/src/inspector/v8-value-utils.h +23 -0
- package/pods/Headers/inspector/src/inspector/value-mirror.h +87 -0
- package/pods/Headers/inspector/src/libplatform/default-platform.h +92 -0
- package/pods/Headers/inspector/src/logging/tracing-flags.h +50 -0
- package/pods/Headers/inspector/src/numbers/conversions.h +183 -0
- package/pods/Headers/inspector/src/tracing/trace-event.h +664 -0
- package/pods/Headers/inspector/src/utils/allocation.h +367 -0
- package/pods/Headers/inspector/src/utils/vector.h +324 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/cbor.h +305 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/dispatch.h +314 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/error_support.h +62 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/export.h +6 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/find_by_first.h +58 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/frontend_channel.h +47 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/glue.h +80 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/json.h +52 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/json_platform.h +26 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/maybe.h +104 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/parser_handler.h +39 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/protocol_core.h +406 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/serializable.h +32 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/serializer_traits.h +158 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/span.h +99 -0
- package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/status.h +139 -0
- package/pods/Headers/inspector/utils.h +32 -0
- package/pods/Headers/inspector/v8-inspector-platform.h +44 -0
- package/pods/Headers/jsi/decorator.h +770 -0
- package/pods/Headers/jsi/instrumentation.h +117 -0
- package/pods/Headers/jsi/jsi-inl.h +338 -0
- package/pods/Headers/jsi/jsi.h +1571 -0
- package/pods/Headers/jsi/jsilib.h +59 -0
- package/pods/Headers/jsi/threadsafe.h +79 -0
- package/pods/Headers/runtime/ArgConverter.h +61 -0
- package/pods/Headers/runtime/ArrayAdapter.h +13 -0
- package/pods/Headers/runtime/Caches.h +98 -0
- package/pods/Headers/runtime/ClassBuilder.h +61 -0
- package/pods/Headers/runtime/Common.h +9 -0
- package/pods/Headers/runtime/ConcurrentMap.h +55 -0
- package/pods/Headers/runtime/ConcurrentQueue.h +28 -0
- package/pods/Headers/runtime/Console.h +27 -0
- package/pods/Headers/runtime/Constants.h +15 -0
- package/pods/Headers/runtime/DataWrapper.h +671 -0
- package/pods/Headers/runtime/DictionaryAdapter.h +13 -0
- package/pods/Headers/runtime/ExtVector.h +21 -0
- package/pods/Headers/runtime/FFICall.h +105 -0
- package/pods/Headers/runtime/FastEnumerationAdapter.h +13 -0
- package/pods/Headers/runtime/FunctionReference.h +18 -0
- package/pods/Headers/runtime/Helpers.h +84 -0
- package/pods/Headers/runtime/InlineFunctions.h +16 -0
- package/pods/Headers/runtime/Interop.h +202 -0
- package/pods/Headers/runtime/KnownUnknownClassPair.h +35 -0
- package/pods/Headers/runtime/Metadata.h +981 -0
- package/pods/Headers/runtime/MetadataBuilder.h +72 -0
- package/pods/Headers/runtime/MetadataInlines.h +157 -0
- package/pods/Headers/runtime/ModuleInternal.h +59 -0
- package/pods/Headers/runtime/NSDataAdapter.h +13 -0
- package/pods/Headers/runtime/NativeScriptException.h +27 -0
- package/pods/Headers/runtime/ObjectManager.h +31 -0
- package/pods/Headers/runtime/OneByteStringResource.h +21 -0
- package/pods/Headers/runtime/Pointer.h +26 -0
- package/pods/Headers/runtime/PromiseProxy.h +15 -0
- package/pods/Headers/runtime/Reference.h +38 -0
- package/pods/Headers/runtime/Runtime.h +67 -0
- package/pods/Headers/runtime/RuntimeConfig.h +17 -0
- package/pods/Headers/runtime/SetTimeout.h +34 -0
- package/pods/Headers/runtime/SimpleAllocator.h +23 -0
- package/pods/Headers/runtime/StringHasher.h +315 -0
- package/pods/Headers/runtime/SymbolIterator.h +18 -0
- package/pods/Headers/runtime/SymbolLoader.h +27 -0
- package/pods/Headers/runtime/TNSDerivedClass.h +8 -0
- package/pods/Headers/runtime/TSHelpers.h +15 -0
- package/pods/Headers/runtime/Tasks.h +19 -0
- package/pods/Headers/runtime/UnmanagedType.h +21 -0
- package/pods/Headers/runtime/WeakRef.h +15 -0
- package/pods/Headers/runtime/Worker.h +26 -0
- package/pods/Headers/runtime/robin_hood.h +2184 -0
- package/pods/Headers/v8runtime/HostProxy.h +71 -0
- package/pods/Headers/v8runtime/JSIV8ValueConverter.h +74 -0
- package/pods/Headers/v8runtime/V8PointerValue.h +44 -0
- package/pods/Headers/v8runtime/V8Runtime.h +240 -0
- package/pods/Headers/v8runtime/V8RuntimeConfig.h +26 -0
- package/pods/Headers/v8runtime/V8RuntimeFactory.h +21 -0
- package/pods/NativeScript.podspec +68 -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,897 +0,0 @@
|
|
|
1
|
-
import { CanvasRenderingContext2DBase } from './common';
|
|
2
|
-
import { CanvasGradient } from '../CanvasGradient';
|
|
3
|
-
import { Path2D } from '../Path2D';
|
|
4
|
-
import { ImageData } from '../ImageData';
|
|
5
|
-
import { TextMetrics } from '../TextMetrics';
|
|
6
|
-
import { ImageSource } from '@nativescript/core';
|
|
7
|
-
import { ImageAsset } from '../../ImageAsset';
|
|
8
|
-
import { CanvasPattern } from '../CanvasPattern';
|
|
9
|
-
import { Canvas } from '../../Canvas';
|
|
10
|
-
export class CanvasRenderingContext2D extends CanvasRenderingContext2DBase {
|
|
11
|
-
constructor(context) {
|
|
12
|
-
super();
|
|
13
|
-
this.context = context;
|
|
14
|
-
}
|
|
15
|
-
_fillRuleFromString(string) {
|
|
16
|
-
if (string === 'evenodd') {
|
|
17
|
-
return 1 /* EvenOdd */;
|
|
18
|
-
}
|
|
19
|
-
else if (string === 'nonzero') {
|
|
20
|
-
return 0 /* NonZero */;
|
|
21
|
-
}
|
|
22
|
-
return null;
|
|
23
|
-
}
|
|
24
|
-
get native() {
|
|
25
|
-
return this.context;
|
|
26
|
-
}
|
|
27
|
-
get canvas() {
|
|
28
|
-
return this._canvas;
|
|
29
|
-
}
|
|
30
|
-
get direction() {
|
|
31
|
-
this.log('direction');
|
|
32
|
-
return this.context.getDirection() === 0 /* Ltr */ ? 'ltr' : 'rtl';
|
|
33
|
-
}
|
|
34
|
-
set direction(value) {
|
|
35
|
-
this.log('direction value:', value);
|
|
36
|
-
this._ensureLayoutBeforeDraw();
|
|
37
|
-
if (this.context) {
|
|
38
|
-
this.context.setDirection(value === 'rtl' ? 1 /* Rtl */ : 0 /* Ltr */);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
get font() {
|
|
42
|
-
this.log('get font');
|
|
43
|
-
return this.context.font;
|
|
44
|
-
}
|
|
45
|
-
set font(value) {
|
|
46
|
-
this.log('set font value:', value);
|
|
47
|
-
if (this.context) {
|
|
48
|
-
this.context.font = value;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
get shadowColor() {
|
|
52
|
-
this.log('get shadowColor');
|
|
53
|
-
return this.context.shadowColor;
|
|
54
|
-
}
|
|
55
|
-
set shadowColor(color) {
|
|
56
|
-
this.log('set shadowColor', color);
|
|
57
|
-
this._ensureLayoutBeforeDraw();
|
|
58
|
-
if (this.context && typeof color === 'string') {
|
|
59
|
-
this.context.shadowColor = color;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
get globalAlpha() {
|
|
63
|
-
this.log('get globalAlpha');
|
|
64
|
-
return this.context.globalAlpha;
|
|
65
|
-
}
|
|
66
|
-
set globalAlpha(alpha) {
|
|
67
|
-
this.log('set globalAlpha', alpha);
|
|
68
|
-
this._ensureLayoutBeforeDraw();
|
|
69
|
-
if (this.context) {
|
|
70
|
-
this.context.globalAlpha = alpha;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
get imageSmoothingEnabled() {
|
|
74
|
-
this.log('get imageSmoothingEnabled');
|
|
75
|
-
return this.context.imageSmoothingEnabled;
|
|
76
|
-
}
|
|
77
|
-
set imageSmoothingEnabled(enabled) {
|
|
78
|
-
this.log('set imageSmoothingEnabled', enabled);
|
|
79
|
-
this._ensureLayoutBeforeDraw();
|
|
80
|
-
if (this.context) {
|
|
81
|
-
this.context.imageSmoothingEnabled = enabled;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
get imageSmoothingQuality() {
|
|
85
|
-
this.log('get imageSmoothingQuality');
|
|
86
|
-
switch (this.context.imageSmoothingQuality) {
|
|
87
|
-
case 2 /* High */:
|
|
88
|
-
return 'high';
|
|
89
|
-
case 1 /* Medium */:
|
|
90
|
-
return 'medium';
|
|
91
|
-
default:
|
|
92
|
-
return 'low';
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
set imageSmoothingQuality(quality) {
|
|
96
|
-
this.log('set imageSmoothingQuality', quality);
|
|
97
|
-
this._ensureLayoutBeforeDraw();
|
|
98
|
-
if (this.context) {
|
|
99
|
-
switch (quality) {
|
|
100
|
-
case 'high':
|
|
101
|
-
this.context.imageSmoothingQuality = 2 /* High */;
|
|
102
|
-
break;
|
|
103
|
-
case 'medium':
|
|
104
|
-
this.context.imageSmoothingQuality = 1 /* Medium */;
|
|
105
|
-
break;
|
|
106
|
-
case 'low':
|
|
107
|
-
this.context.imageSmoothingQuality = 0 /* Low */;
|
|
108
|
-
break;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
get lineDashOffset() {
|
|
113
|
-
this.log('get lineDashOffset');
|
|
114
|
-
return this.context.lineDashOffset;
|
|
115
|
-
}
|
|
116
|
-
set lineDashOffset(offset) {
|
|
117
|
-
this.log('set lineDashOffset', offset);
|
|
118
|
-
this._ensureLayoutBeforeDraw();
|
|
119
|
-
if (this.context) {
|
|
120
|
-
this.context.lineDashOffset = offset;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
get lineJoin() {
|
|
124
|
-
this.log('get lineJoin');
|
|
125
|
-
switch (this.context.lineJoin) {
|
|
126
|
-
case 1 /* Bevel */:
|
|
127
|
-
return 'bevel';
|
|
128
|
-
case 0 /* Round */:
|
|
129
|
-
return 'round';
|
|
130
|
-
default:
|
|
131
|
-
return 'miter';
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
set lineJoin(join) {
|
|
135
|
-
this.log('set lineJoin', join);
|
|
136
|
-
this._ensureLayoutBeforeDraw();
|
|
137
|
-
if (this.context) {
|
|
138
|
-
switch (join) {
|
|
139
|
-
case 'bevel':
|
|
140
|
-
this.context.lineJoin = 1 /* Bevel */;
|
|
141
|
-
break;
|
|
142
|
-
case 'round':
|
|
143
|
-
this.context.lineJoin = 0 /* Round */;
|
|
144
|
-
break;
|
|
145
|
-
case 'miter':
|
|
146
|
-
this.context.lineJoin = 2 /* Miter */;
|
|
147
|
-
break;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
get lineCap() {
|
|
152
|
-
this.log('get lineCap');
|
|
153
|
-
switch (this.context.lineCap) {
|
|
154
|
-
case 1 /* Round */:
|
|
155
|
-
return 'round';
|
|
156
|
-
case 2 /* Square */:
|
|
157
|
-
return 'square';
|
|
158
|
-
default:
|
|
159
|
-
return 'butt';
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
set lineCap(cap) {
|
|
163
|
-
this.log('set lineCap', cap);
|
|
164
|
-
this._ensureLayoutBeforeDraw();
|
|
165
|
-
if (this.context) {
|
|
166
|
-
switch (cap) {
|
|
167
|
-
case 'round':
|
|
168
|
-
this.context.lineCap = 1 /* Round */;
|
|
169
|
-
break;
|
|
170
|
-
case 'square':
|
|
171
|
-
this.context.lineCap = 2 /* Square */;
|
|
172
|
-
break;
|
|
173
|
-
case 'butt':
|
|
174
|
-
this.context.lineCap = 0 /* Butt */;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
get miterLimit() {
|
|
179
|
-
this.log('get miterLimit');
|
|
180
|
-
return this.context.miterLimit;
|
|
181
|
-
}
|
|
182
|
-
set miterLimit(limit) {
|
|
183
|
-
this.log('set miterLimit', limit);
|
|
184
|
-
this._ensureLayoutBeforeDraw();
|
|
185
|
-
if (this.context) {
|
|
186
|
-
this.context.miterLimit = limit;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
get shadowBlur() {
|
|
190
|
-
this.log('get shadowBlur');
|
|
191
|
-
return this.context.shadowBlur;
|
|
192
|
-
}
|
|
193
|
-
set shadowBlur(blur) {
|
|
194
|
-
this.log('set shadowBlur', blur);
|
|
195
|
-
this._ensureLayoutBeforeDraw();
|
|
196
|
-
if (this.context) {
|
|
197
|
-
this.context.shadowBlur = blur;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
get shadowOffsetX() {
|
|
201
|
-
this.log('get shadowOffsetX');
|
|
202
|
-
return this.context.shadowOffsetX;
|
|
203
|
-
}
|
|
204
|
-
set shadowOffsetX(x) {
|
|
205
|
-
this.log('set shadowOffsetX', x);
|
|
206
|
-
this._ensureLayoutBeforeDraw();
|
|
207
|
-
if (this.context) {
|
|
208
|
-
this.context.shadowOffsetX = x;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
get shadowOffsetY() {
|
|
212
|
-
this.log('get shadowOffsetY');
|
|
213
|
-
return this.context.shadowOffsetY;
|
|
214
|
-
}
|
|
215
|
-
set shadowOffsetY(y) {
|
|
216
|
-
this.log('set shadowOffsetY', y);
|
|
217
|
-
this._ensureLayoutBeforeDraw();
|
|
218
|
-
if (this.context) {
|
|
219
|
-
this.context.shadowOffsetY = y;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
get textAlign() {
|
|
223
|
-
this.log('get textAlign');
|
|
224
|
-
switch (this.context.textAlign) {
|
|
225
|
-
case 0 /* Start */:
|
|
226
|
-
return 'start';
|
|
227
|
-
case 2 /* Center */:
|
|
228
|
-
return 'center';
|
|
229
|
-
case 4 /* End */:
|
|
230
|
-
return 'end';
|
|
231
|
-
case 3 /* Right */:
|
|
232
|
-
return 'right';
|
|
233
|
-
default:
|
|
234
|
-
return 'left';
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
set textAlign(alignment) {
|
|
238
|
-
this.log('set textAlign', alignment);
|
|
239
|
-
this._ensureLayoutBeforeDraw();
|
|
240
|
-
if (this.context) {
|
|
241
|
-
switch (alignment) {
|
|
242
|
-
case 'start':
|
|
243
|
-
this.context.textAlign = 0 /* Start */;
|
|
244
|
-
break;
|
|
245
|
-
case 'center':
|
|
246
|
-
this.context.textAlign = 2 /* Center */;
|
|
247
|
-
break;
|
|
248
|
-
case 'end':
|
|
249
|
-
this.context.textAlign = 4 /* End */;
|
|
250
|
-
break;
|
|
251
|
-
case 'right':
|
|
252
|
-
this.context.textAlign = 3 /* Right */;
|
|
253
|
-
break;
|
|
254
|
-
case 'left':
|
|
255
|
-
this.context.textAlign = 1 /* Left */;
|
|
256
|
-
break;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
get globalCompositeOperation() {
|
|
261
|
-
this.log('get globalCompositeOperation');
|
|
262
|
-
switch (this.context.globalCompositeOperation) {
|
|
263
|
-
case 0 /* SourceOver */:
|
|
264
|
-
return 'source-over';
|
|
265
|
-
case 1 /* SourceIn */:
|
|
266
|
-
return 'source-in';
|
|
267
|
-
case 2 /* SourceOut */:
|
|
268
|
-
return 'source-out';
|
|
269
|
-
case 3 /* SourceAtop */:
|
|
270
|
-
return 'source-atop';
|
|
271
|
-
case 4 /* DestinationOver */:
|
|
272
|
-
return 'destination-over';
|
|
273
|
-
case 5 /* DestinationIn */:
|
|
274
|
-
return 'destination-in';
|
|
275
|
-
case 6 /* DestinationOut */:
|
|
276
|
-
return 'destination-out';
|
|
277
|
-
case 7 /* DestinationAtop */:
|
|
278
|
-
return 'destination-atop';
|
|
279
|
-
case 8 /* Lighter */:
|
|
280
|
-
return 'lighter';
|
|
281
|
-
case 9 /* Copy */:
|
|
282
|
-
return 'copy';
|
|
283
|
-
case 10 /* Xor */:
|
|
284
|
-
return 'xor';
|
|
285
|
-
case 11 /* Multiply */:
|
|
286
|
-
return 'multiply';
|
|
287
|
-
case 12 /* Screen */:
|
|
288
|
-
return 'screen';
|
|
289
|
-
case 13 /* Overlay */:
|
|
290
|
-
return 'overlay';
|
|
291
|
-
case 14 /* Darken */:
|
|
292
|
-
return 'darken';
|
|
293
|
-
case 15 /* Lighten */:
|
|
294
|
-
return 'lighten';
|
|
295
|
-
case 16 /* ColorDodge */:
|
|
296
|
-
return 'color-dodge';
|
|
297
|
-
case 17 /* ColorBurn */:
|
|
298
|
-
return 'color-burn';
|
|
299
|
-
case 18 /* HardLight */:
|
|
300
|
-
return 'hard-light';
|
|
301
|
-
case 19 /* SoftLight */:
|
|
302
|
-
return 'soft-light';
|
|
303
|
-
case 20 /* Difference */:
|
|
304
|
-
return 'difference';
|
|
305
|
-
case 21 /* Exclusion */:
|
|
306
|
-
return 'exclusion';
|
|
307
|
-
case 22 /* Hue */:
|
|
308
|
-
return 'hue';
|
|
309
|
-
case 23 /* Saturation */:
|
|
310
|
-
return 'saturation';
|
|
311
|
-
case 24 /* Color */:
|
|
312
|
-
return 'color';
|
|
313
|
-
case 25 /* Luminosity */:
|
|
314
|
-
return 'luminosity';
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
set globalCompositeOperation(composite) {
|
|
318
|
-
this.log('set globalCompositeOperation', composite);
|
|
319
|
-
this._ensureLayoutBeforeDraw();
|
|
320
|
-
if (this.context) {
|
|
321
|
-
switch (composite.toLowerCase()) {
|
|
322
|
-
case 'source-over':
|
|
323
|
-
this.context.globalCompositeOperation = 0 /* SourceOver */;
|
|
324
|
-
break;
|
|
325
|
-
case 'source-in':
|
|
326
|
-
this.context.globalCompositeOperation = 1 /* SourceIn */;
|
|
327
|
-
break;
|
|
328
|
-
case 'source-out':
|
|
329
|
-
this.context.globalCompositeOperation = 2 /* SourceOut */;
|
|
330
|
-
break;
|
|
331
|
-
case 'source-atop':
|
|
332
|
-
this.context.globalCompositeOperation = 3 /* SourceAtop */;
|
|
333
|
-
break;
|
|
334
|
-
case 'destination-over':
|
|
335
|
-
this.context.globalCompositeOperation = 4 /* DestinationOver */;
|
|
336
|
-
break;
|
|
337
|
-
case 'destination-in':
|
|
338
|
-
this.context.globalCompositeOperation = 5 /* DestinationIn */;
|
|
339
|
-
break;
|
|
340
|
-
case 'destination-out':
|
|
341
|
-
this.context.globalCompositeOperation = 6 /* DestinationOut */;
|
|
342
|
-
break;
|
|
343
|
-
case 'destination-atop':
|
|
344
|
-
this.context.globalCompositeOperation = 7 /* DestinationAtop */;
|
|
345
|
-
break;
|
|
346
|
-
case 'lighter':
|
|
347
|
-
this.context.globalCompositeOperation = 8 /* Lighter */;
|
|
348
|
-
break;
|
|
349
|
-
case 'copy':
|
|
350
|
-
this.context.globalCompositeOperation = 9 /* Copy */;
|
|
351
|
-
break;
|
|
352
|
-
case 'xor':
|
|
353
|
-
this.context.globalCompositeOperation = 10 /* Xor */;
|
|
354
|
-
break;
|
|
355
|
-
case 'multiply':
|
|
356
|
-
this.context.globalCompositeOperation = 11 /* Multiply */;
|
|
357
|
-
break;
|
|
358
|
-
case 'screen':
|
|
359
|
-
this.context.globalCompositeOperation = 12 /* Screen */;
|
|
360
|
-
break;
|
|
361
|
-
case 'overlay':
|
|
362
|
-
this.context.globalCompositeOperation = 13 /* Overlay */;
|
|
363
|
-
break;
|
|
364
|
-
case 'darken':
|
|
365
|
-
this.context.globalCompositeOperation = 14 /* Darken */;
|
|
366
|
-
break;
|
|
367
|
-
case 'lighten':
|
|
368
|
-
this.context.globalCompositeOperation = 15 /* Lighten */;
|
|
369
|
-
break;
|
|
370
|
-
case 'color-dodge':
|
|
371
|
-
this.context.globalCompositeOperation = 16 /* ColorDodge */;
|
|
372
|
-
break;
|
|
373
|
-
case 'color-burn':
|
|
374
|
-
this.context.globalCompositeOperation = 17 /* ColorBurn */;
|
|
375
|
-
break;
|
|
376
|
-
case 'hard-light':
|
|
377
|
-
this.context.globalCompositeOperation = 18 /* HardLight */;
|
|
378
|
-
break;
|
|
379
|
-
case 'soft-light':
|
|
380
|
-
this.context.globalCompositeOperation = 19 /* SoftLight */;
|
|
381
|
-
break;
|
|
382
|
-
case 'difference':
|
|
383
|
-
this.context.globalCompositeOperation = 20 /* Difference */;
|
|
384
|
-
break;
|
|
385
|
-
case 'exclusion':
|
|
386
|
-
this.context.globalCompositeOperation = 21 /* Exclusion */;
|
|
387
|
-
break;
|
|
388
|
-
case 'hue':
|
|
389
|
-
this.context.globalCompositeOperation = 22 /* Hue */;
|
|
390
|
-
break;
|
|
391
|
-
case 'saturation':
|
|
392
|
-
this.context.globalCompositeOperation = 23 /* Saturation */;
|
|
393
|
-
break;
|
|
394
|
-
case 'color':
|
|
395
|
-
this.context.globalCompositeOperation = 24 /* Color */;
|
|
396
|
-
break;
|
|
397
|
-
case 'luminosity':
|
|
398
|
-
this.context.globalCompositeOperation = 25 /* Luminosity */;
|
|
399
|
-
break;
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
get filter() {
|
|
404
|
-
this.log('get filter');
|
|
405
|
-
return this.context.filter;
|
|
406
|
-
}
|
|
407
|
-
set filter(value) {
|
|
408
|
-
this.log('set filter', value);
|
|
409
|
-
if (this.context) {
|
|
410
|
-
this.context.filter = value;
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
get fillStyle() {
|
|
414
|
-
this.log('get fillStyle');
|
|
415
|
-
switch (this.context.fillStyle.getStyleType()) {
|
|
416
|
-
case 0 /* Color */:
|
|
417
|
-
const color = this.context.fillStyle;
|
|
418
|
-
return color.color;
|
|
419
|
-
case 1 /* Gradient */:
|
|
420
|
-
return CanvasGradient.fromNative(this.context.fillStyle);
|
|
421
|
-
case 2 /* Pattern */:
|
|
422
|
-
return new CanvasPattern(this.context.fillStyle);
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
set fillStyle(color) {
|
|
426
|
-
this.log('set fillStyle', color);
|
|
427
|
-
if (color === undefined || color === null) {
|
|
428
|
-
return;
|
|
429
|
-
}
|
|
430
|
-
this._ensureLayoutBeforeDraw();
|
|
431
|
-
if (typeof color === 'string') {
|
|
432
|
-
this.context.setFillStyleWithString(color);
|
|
433
|
-
}
|
|
434
|
-
else if (color instanceof CanvasGradient) {
|
|
435
|
-
this.context.fillStyle = color.native;
|
|
436
|
-
}
|
|
437
|
-
else if (color instanceof CanvasPattern) {
|
|
438
|
-
this.context.fillStyle = color.native;
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
get strokeStyle() {
|
|
442
|
-
this.log('get strokeStyle');
|
|
443
|
-
switch (this.context.strokeStyle.getStyleType()) {
|
|
444
|
-
case 0 /* Color */:
|
|
445
|
-
const color = this.context.strokeStyle;
|
|
446
|
-
return color.color;
|
|
447
|
-
case 1 /* Gradient */:
|
|
448
|
-
return CanvasGradient.fromNative(this.context.strokeStyle);
|
|
449
|
-
case 2 /* Pattern */:
|
|
450
|
-
return new CanvasPattern(this.context.strokeStyle);
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
set strokeStyle(color) {
|
|
454
|
-
this.log('set strokeStyle', color);
|
|
455
|
-
if (color === undefined || color === null) {
|
|
456
|
-
return;
|
|
457
|
-
}
|
|
458
|
-
this._ensureLayoutBeforeDraw();
|
|
459
|
-
if (typeof color === 'string') {
|
|
460
|
-
this.context.setStrokeStyleWithString(color);
|
|
461
|
-
}
|
|
462
|
-
else if (color instanceof CanvasGradient) {
|
|
463
|
-
this.context.strokeStyle = color.native;
|
|
464
|
-
}
|
|
465
|
-
else if (color instanceof CanvasPattern) {
|
|
466
|
-
this.context.strokeStyle = color.native;
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
get lineWidth() {
|
|
470
|
-
this.log('get lineWidth');
|
|
471
|
-
return this.context.lineWidth;
|
|
472
|
-
}
|
|
473
|
-
set lineWidth(width) {
|
|
474
|
-
this.log('set lineWidth', width);
|
|
475
|
-
this._ensureLayoutBeforeDraw();
|
|
476
|
-
if (this.context) {
|
|
477
|
-
this.context.lineWidth = width;
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
addHitRegion(region) { }
|
|
481
|
-
arc(x, y, radius, startAngle, endAngle, anticlockwise = false) {
|
|
482
|
-
this.log('arc', x, y, radius, startAngle, anticlockwise);
|
|
483
|
-
this._ensureLayoutBeforeDraw();
|
|
484
|
-
this.context.arc(x, y, radius, startAngle, endAngle, anticlockwise);
|
|
485
|
-
}
|
|
486
|
-
arcTo(x1, y1, x2, y2, radius) {
|
|
487
|
-
this.log('arcTo', x1, y1, x2, y2, radius);
|
|
488
|
-
this._ensureLayoutBeforeDraw();
|
|
489
|
-
this.context.arcTo(x1, y1, x2, y2, radius);
|
|
490
|
-
}
|
|
491
|
-
beginPath() {
|
|
492
|
-
this.log('beginPath');
|
|
493
|
-
this._ensureLayoutBeforeDraw();
|
|
494
|
-
this.context.beginPath();
|
|
495
|
-
}
|
|
496
|
-
bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y) {
|
|
497
|
-
this.log('bezierCurveTo', cp1x, cp1y, cp2x, cp2y, x, y);
|
|
498
|
-
this._ensureLayoutBeforeDraw();
|
|
499
|
-
this.context.bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y);
|
|
500
|
-
}
|
|
501
|
-
clearHitRegions() { }
|
|
502
|
-
clearRect(x, y, width, height) {
|
|
503
|
-
this.log('clearRect', x, y, width, height);
|
|
504
|
-
this._ensureLayoutBeforeDraw();
|
|
505
|
-
this.context.clearRect(x, y, width, height);
|
|
506
|
-
}
|
|
507
|
-
clip(...args) {
|
|
508
|
-
this.log('clip', ...args);
|
|
509
|
-
this._ensureLayoutBeforeDraw();
|
|
510
|
-
if (typeof args[0] === 'string') {
|
|
511
|
-
// browser throws for invalid enum
|
|
512
|
-
const rule = this._fillRuleFromString(args[0]);
|
|
513
|
-
this.context.clip(rule);
|
|
514
|
-
}
|
|
515
|
-
else if (args[0] instanceof Path2D && typeof args[1] === 'string') {
|
|
516
|
-
const rule = this._fillRuleFromString(args[1]);
|
|
517
|
-
this.context.clip(args[0].native, rule);
|
|
518
|
-
}
|
|
519
|
-
else if (args[0] instanceof Path2D) {
|
|
520
|
-
this.context.clip(args[0].native);
|
|
521
|
-
}
|
|
522
|
-
else {
|
|
523
|
-
this.context.clip();
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
closePath() {
|
|
527
|
-
this.log('closePath');
|
|
528
|
-
this._ensureLayoutBeforeDraw();
|
|
529
|
-
this.context.closePath();
|
|
530
|
-
}
|
|
531
|
-
createImageData(width, height) {
|
|
532
|
-
this.log('createImageData', width, height);
|
|
533
|
-
if (width instanceof ImageData) {
|
|
534
|
-
return ImageData.fromNative(this.context.createImageData(width.native));
|
|
535
|
-
}
|
|
536
|
-
else {
|
|
537
|
-
return ImageData.fromNative(this.context.createImageData(width, height));
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
createLinearGradient(x0, y0, x1, y1) {
|
|
541
|
-
this.log('createLinearGradient', x0, y0, x1, y1);
|
|
542
|
-
this._ensureLayoutBeforeDraw();
|
|
543
|
-
return CanvasGradient.fromNative(this.context.createLinearGradient(x0, y0, x1, y1));
|
|
544
|
-
}
|
|
545
|
-
createPattern(image, repetition) {
|
|
546
|
-
this.log('createPattern', image, repetition);
|
|
547
|
-
this._ensureLayoutBeforeDraw();
|
|
548
|
-
if (repetition === undefined || typeof repetition !== 'string') {
|
|
549
|
-
const e = new Error('The string did not match the expected pattern.');
|
|
550
|
-
e.name = 'SyntaxError';
|
|
551
|
-
throw e;
|
|
552
|
-
}
|
|
553
|
-
let img;
|
|
554
|
-
if (image instanceof ImageSource) {
|
|
555
|
-
img = image.ios;
|
|
556
|
-
}
|
|
557
|
-
else if (image instanceof UIImage) {
|
|
558
|
-
img = image;
|
|
559
|
-
}
|
|
560
|
-
else if (image instanceof ImageAsset) {
|
|
561
|
-
img = image.native;
|
|
562
|
-
}
|
|
563
|
-
else if (image instanceof Canvas) {
|
|
564
|
-
img = image.ios;
|
|
565
|
-
}
|
|
566
|
-
else if (image && typeof image.tagName === 'string' && (image.tagName === 'IMG' || image.tagName === 'IMAGE')) {
|
|
567
|
-
if (image._imageSource instanceof ImageSource) {
|
|
568
|
-
img = image._imageSource.android;
|
|
569
|
-
}
|
|
570
|
-
else if (image._image instanceof UIImage) {
|
|
571
|
-
img = image._image;
|
|
572
|
-
}
|
|
573
|
-
else if (image._asset instanceof ImageAsset) {
|
|
574
|
-
img = image._asset.native;
|
|
575
|
-
}
|
|
576
|
-
else if (typeof image.src === 'string') {
|
|
577
|
-
img = ImageSource.fromFileSync(image.src).ios;
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
else if (image && typeof image.tagName === 'string' && image.tagName === 'CANVAS') {
|
|
581
|
-
if (image._canvas instanceof Canvas) {
|
|
582
|
-
img = image._canvas.ios;
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
else if (image instanceof ImageBitmap || (image === null || image === void 0 ? void 0 : image.native) instanceof TNSImageBitmap) {
|
|
586
|
-
img = image.native;
|
|
587
|
-
}
|
|
588
|
-
if (!img) {
|
|
589
|
-
return null;
|
|
590
|
-
}
|
|
591
|
-
let rep;
|
|
592
|
-
switch (repetition) {
|
|
593
|
-
case 'no-repeat':
|
|
594
|
-
rep = 3 /* NoRepeat */;
|
|
595
|
-
break;
|
|
596
|
-
case 'repeat-x':
|
|
597
|
-
rep = 1 /* RepeatX */;
|
|
598
|
-
break;
|
|
599
|
-
case 'repeat-y':
|
|
600
|
-
rep = 2 /* RepeatY */;
|
|
601
|
-
break;
|
|
602
|
-
default:
|
|
603
|
-
rep = 0 /* Repeat */;
|
|
604
|
-
break;
|
|
605
|
-
}
|
|
606
|
-
if (img instanceof TNSImageAsset) {
|
|
607
|
-
return new CanvasPattern(this.context.createPattern(img, rep));
|
|
608
|
-
}
|
|
609
|
-
else if (img instanceof TNSImageBitmap) {
|
|
610
|
-
return new CanvasPattern(this.context.createPattern(img, rep));
|
|
611
|
-
}
|
|
612
|
-
else if (img instanceof UIImage) {
|
|
613
|
-
return new CanvasPattern(this.context.createPattern(img, rep));
|
|
614
|
-
}
|
|
615
|
-
else if (img instanceof TNSCanvas) {
|
|
616
|
-
return new CanvasPattern(this.context.createPattern(img, rep));
|
|
617
|
-
}
|
|
618
|
-
return null;
|
|
619
|
-
}
|
|
620
|
-
createRadialGradient(x0, y0, r0, x1, y1, r1) {
|
|
621
|
-
this.log('createRadialGradient', x0, y0, r0, x1, y1, r1);
|
|
622
|
-
this._ensureLayoutBeforeDraw();
|
|
623
|
-
return CanvasGradient.fromNative(this.context.createRadialGradient(x0, y0, r0, x1, y1, r1));
|
|
624
|
-
}
|
|
625
|
-
drawFocusIfNeeded(...args) { }
|
|
626
|
-
drawImage(...args) {
|
|
627
|
-
this.log('drawImage', ...args);
|
|
628
|
-
this._ensureLayoutBeforeDraw();
|
|
629
|
-
if (!args) {
|
|
630
|
-
return;
|
|
631
|
-
}
|
|
632
|
-
let image = args[0];
|
|
633
|
-
let asset = null;
|
|
634
|
-
let width = 0;
|
|
635
|
-
let height = 0;
|
|
636
|
-
if (image instanceof ImageSource) {
|
|
637
|
-
image = image.ios;
|
|
638
|
-
}
|
|
639
|
-
else if (image instanceof ImageAsset || image instanceof UIImage) {
|
|
640
|
-
// NOOP
|
|
641
|
-
}
|
|
642
|
-
else if (image && typeof image.tagName === 'string' && (image.tagName === 'IMG' || image.tagName === 'IMAGE')) {
|
|
643
|
-
width = image.width;
|
|
644
|
-
height = image.height;
|
|
645
|
-
if (image._imageSource instanceof ImageSource) {
|
|
646
|
-
image = image._imageSource.ios;
|
|
647
|
-
}
|
|
648
|
-
else if (image._image instanceof UIImage) {
|
|
649
|
-
image = image._image;
|
|
650
|
-
}
|
|
651
|
-
else if (image._asset instanceof ImageAsset) {
|
|
652
|
-
image = image._asset;
|
|
653
|
-
}
|
|
654
|
-
else if (typeof image.src === 'string') {
|
|
655
|
-
image = ImageSource.fromFileSync(image.src).ios;
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
else if (image && typeof image.tagName === 'string' && image.tagName === 'CANVAS' && image._canvas instanceof Canvas) {
|
|
659
|
-
image = image._canvas;
|
|
660
|
-
}
|
|
661
|
-
else if (image instanceof ImageBitmap || (image === null || image === void 0 ? void 0 : image.native) instanceof TNSImageBitmap) {
|
|
662
|
-
image = image.native;
|
|
663
|
-
}
|
|
664
|
-
if (args.length === 3) {
|
|
665
|
-
if (image instanceof ImageAsset) {
|
|
666
|
-
this.context.drawImage(image.native, args[1], args[2]);
|
|
667
|
-
}
|
|
668
|
-
else if (image instanceof Canvas) {
|
|
669
|
-
this.context.drawImage(image.ios, args[1], args[2]);
|
|
670
|
-
}
|
|
671
|
-
else {
|
|
672
|
-
this.context.drawImage(image, args[1], args[2]);
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
else if (args.length === 5) {
|
|
676
|
-
if (image instanceof ImageAsset) {
|
|
677
|
-
this.context.drawImage(image.native, args[1], args[2], args[3], args[4]);
|
|
678
|
-
}
|
|
679
|
-
else if (image instanceof Canvas) {
|
|
680
|
-
this.context.drawImage(image.ios, args[1], args[2], args[3], args[4]);
|
|
681
|
-
}
|
|
682
|
-
else {
|
|
683
|
-
this.context.drawImage(image, args[1], args[2], args[3], args[4]);
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
else if (args.length === 9) {
|
|
687
|
-
if (image instanceof ImageAsset) {
|
|
688
|
-
this.context.drawImage(image.native, args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8]);
|
|
689
|
-
}
|
|
690
|
-
else if (image instanceof Canvas) {
|
|
691
|
-
this.context.drawImage(image.ios, args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8]);
|
|
692
|
-
}
|
|
693
|
-
else {
|
|
694
|
-
this.context.drawImage(image, args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8]);
|
|
695
|
-
}
|
|
696
|
-
}
|
|
697
|
-
}
|
|
698
|
-
ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise = false) {
|
|
699
|
-
this.log('ellipse', x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise);
|
|
700
|
-
this._ensureLayoutBeforeDraw();
|
|
701
|
-
this.context.ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise);
|
|
702
|
-
}
|
|
703
|
-
fill(...args) {
|
|
704
|
-
this.log('fill', ...args);
|
|
705
|
-
this._ensureLayoutBeforeDraw();
|
|
706
|
-
if (typeof args[0] === 'string') {
|
|
707
|
-
const rule = this._fillRuleFromString(args[0]);
|
|
708
|
-
this.context.fillWithValue(rule);
|
|
709
|
-
}
|
|
710
|
-
else if (args.length === 2 && args[0] instanceof Path2D && typeof args[1] === 'string') {
|
|
711
|
-
const rule = this._fillRuleFromString(args[1]);
|
|
712
|
-
this.context.fill(args[0].native, rule);
|
|
713
|
-
}
|
|
714
|
-
else if (args[0] instanceof Path2D) {
|
|
715
|
-
this.context.fillWithValue(args[0].native);
|
|
716
|
-
}
|
|
717
|
-
else {
|
|
718
|
-
this.context.fill();
|
|
719
|
-
}
|
|
720
|
-
}
|
|
721
|
-
fillRect(x, y, width, height) {
|
|
722
|
-
this.log('fillRect', x, y, width, height);
|
|
723
|
-
this._ensureLayoutBeforeDraw();
|
|
724
|
-
this.context.fillRect(x, y, width, height);
|
|
725
|
-
}
|
|
726
|
-
fillText(text, x, y, maxWidth) {
|
|
727
|
-
this.log('fillText', text, x, y, maxWidth);
|
|
728
|
-
this._ensureLayoutBeforeDraw();
|
|
729
|
-
if (typeof maxWidth === 'number') {
|
|
730
|
-
this.context.fillText(text + '', x, y, maxWidth);
|
|
731
|
-
}
|
|
732
|
-
else {
|
|
733
|
-
this.context.fillText(text + '', x, y);
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
getImageData(sx, sy, sw, sh) {
|
|
737
|
-
this.log('getImageData', sx, sy, sw, sh);
|
|
738
|
-
this._ensureLayoutBeforeDraw();
|
|
739
|
-
return ImageData.fromNative(this.context.getImageData(sx, sy, sw, sh));
|
|
740
|
-
}
|
|
741
|
-
getLineDash() {
|
|
742
|
-
this.log('getLineDash');
|
|
743
|
-
this._ensureLayoutBeforeDraw();
|
|
744
|
-
return this.context.getLineDash();
|
|
745
|
-
}
|
|
746
|
-
isPointInPath(...args) {
|
|
747
|
-
this.log('isPointInPath', ...args);
|
|
748
|
-
this._ensureLayoutBeforeDraw();
|
|
749
|
-
if (args.length === 2) {
|
|
750
|
-
return this.context.isPointInPath(args[0], args[1]);
|
|
751
|
-
}
|
|
752
|
-
else if (args.length === 3) {
|
|
753
|
-
return this.context.isPointInPath(args[0], args[1], args[2]);
|
|
754
|
-
}
|
|
755
|
-
else if (args.length === 4 && args[0] instanceof Path2D) {
|
|
756
|
-
return this.context.isPointInPath(args[0].native, args[1], args[2], args[3]);
|
|
757
|
-
}
|
|
758
|
-
return false;
|
|
759
|
-
}
|
|
760
|
-
isPointInStroke(...args) {
|
|
761
|
-
this.log('isPointInStroke', ...args);
|
|
762
|
-
this._ensureLayoutBeforeDraw();
|
|
763
|
-
if (args.length === 2) {
|
|
764
|
-
return this.context.isPointInStroke(args[0], args[1]);
|
|
765
|
-
}
|
|
766
|
-
else if (args.length === 3 && args[0] instanceof Path2D) {
|
|
767
|
-
return this.context.isPointInStroke(args[0].native, args[1], args[2]);
|
|
768
|
-
}
|
|
769
|
-
return false;
|
|
770
|
-
}
|
|
771
|
-
lineTo(x, y) {
|
|
772
|
-
this.log('lineTo', x, y);
|
|
773
|
-
this._ensureLayoutBeforeDraw();
|
|
774
|
-
this.context.lineTo(x, y);
|
|
775
|
-
}
|
|
776
|
-
measureText(text) {
|
|
777
|
-
this.log('measureText', text);
|
|
778
|
-
this._ensureLayoutBeforeDraw();
|
|
779
|
-
return new TextMetrics(this.context.measureText(text));
|
|
780
|
-
}
|
|
781
|
-
moveTo(x, y) {
|
|
782
|
-
this.log('moveTo', x, y);
|
|
783
|
-
this._ensureLayoutBeforeDraw();
|
|
784
|
-
this.context.moveTo(x, y);
|
|
785
|
-
}
|
|
786
|
-
putImageData(...args) {
|
|
787
|
-
this.log('putImageData', ...args);
|
|
788
|
-
this._ensureLayoutBeforeDraw();
|
|
789
|
-
if (!args) {
|
|
790
|
-
return;
|
|
791
|
-
}
|
|
792
|
-
let data = args[0];
|
|
793
|
-
if (args.length === 3) {
|
|
794
|
-
this.context.putImageData(data.native, args[1], args[2]);
|
|
795
|
-
}
|
|
796
|
-
else if (args.length === 7) {
|
|
797
|
-
this.context.putImageData(data.native, args[1], args[2], args[3], args[4], args[5], args[6]);
|
|
798
|
-
}
|
|
799
|
-
}
|
|
800
|
-
quadraticCurveTo(cpx, cpy, x, y) {
|
|
801
|
-
this.log('quadraticCurveTo', cpx, cpy, x, y);
|
|
802
|
-
this._ensureLayoutBeforeDraw();
|
|
803
|
-
this.context.quadraticCurveTo(cpx, cpy, x, y);
|
|
804
|
-
}
|
|
805
|
-
rect(x, y, width, height) {
|
|
806
|
-
this.log('rect', x, y, width, height);
|
|
807
|
-
this._ensureLayoutBeforeDraw();
|
|
808
|
-
this.context.rect(x, y, width, height);
|
|
809
|
-
}
|
|
810
|
-
removeHitRegion(id) { }
|
|
811
|
-
resetTransform() {
|
|
812
|
-
this.log('resetTransform');
|
|
813
|
-
this._ensureLayoutBeforeDraw();
|
|
814
|
-
this.context.resetTransform();
|
|
815
|
-
}
|
|
816
|
-
restore() {
|
|
817
|
-
this.log('restore');
|
|
818
|
-
this._ensureLayoutBeforeDraw();
|
|
819
|
-
this.context.restore();
|
|
820
|
-
}
|
|
821
|
-
rotate(angle) {
|
|
822
|
-
this.log('rotate', angle);
|
|
823
|
-
this._ensureLayoutBeforeDraw();
|
|
824
|
-
this.context.rotate(angle);
|
|
825
|
-
}
|
|
826
|
-
save() {
|
|
827
|
-
this.log('save');
|
|
828
|
-
this._ensureLayoutBeforeDraw();
|
|
829
|
-
this.context.save();
|
|
830
|
-
}
|
|
831
|
-
scale(x, y) {
|
|
832
|
-
this.log('scale', x, y);
|
|
833
|
-
this._ensureLayoutBeforeDraw();
|
|
834
|
-
if (typeof x === 'number' && typeof y === 'number') {
|
|
835
|
-
this.context.scale(x, y);
|
|
836
|
-
}
|
|
837
|
-
}
|
|
838
|
-
scrollPathIntoView(path) { }
|
|
839
|
-
setLineDash(segments) {
|
|
840
|
-
this.log('setLineDash', segments);
|
|
841
|
-
this._ensureLayoutBeforeDraw();
|
|
842
|
-
this.context.setLineDash(segments);
|
|
843
|
-
}
|
|
844
|
-
setTransform(a, b, c, d, e, f) {
|
|
845
|
-
this.log('setTransform', a, b, c, d, e, f);
|
|
846
|
-
this._ensureLayoutBeforeDraw();
|
|
847
|
-
this.context.setTransform(a, b, c, d, e, f);
|
|
848
|
-
}
|
|
849
|
-
stroke(path) {
|
|
850
|
-
this.log('stroke', path);
|
|
851
|
-
this._ensureLayoutBeforeDraw();
|
|
852
|
-
if (path) {
|
|
853
|
-
this.context.stroke(path.native);
|
|
854
|
-
}
|
|
855
|
-
else {
|
|
856
|
-
this.context.stroke();
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
strokeRect(x, y, width, height) {
|
|
860
|
-
this.log('strokeRect', x, y, width, height);
|
|
861
|
-
this._ensureLayoutBeforeDraw();
|
|
862
|
-
this.context.strokeRect(x, y, width, height);
|
|
863
|
-
}
|
|
864
|
-
strokeText(text, x, y, maxWidth) {
|
|
865
|
-
this.log('strokeText', text, x, y, maxWidth);
|
|
866
|
-
this._ensureLayoutBeforeDraw();
|
|
867
|
-
if (typeof maxWidth === 'number') {
|
|
868
|
-
this.context.strokeText(text + '', x, y, maxWidth);
|
|
869
|
-
}
|
|
870
|
-
else {
|
|
871
|
-
this.context.strokeText(text + '', x, y);
|
|
872
|
-
}
|
|
873
|
-
}
|
|
874
|
-
transform(a, b, c, d, e, f) {
|
|
875
|
-
this.log('transform', a, b, c, d, e, f);
|
|
876
|
-
this._ensureLayoutBeforeDraw();
|
|
877
|
-
this.context.transform(a, b, c, d, e, f);
|
|
878
|
-
}
|
|
879
|
-
translate(x, y) {
|
|
880
|
-
this.log('translate', x, y);
|
|
881
|
-
this._ensureLayoutBeforeDraw();
|
|
882
|
-
this.context.translate(x, y);
|
|
883
|
-
}
|
|
884
|
-
log(message, ...args) {
|
|
885
|
-
if (!CanvasRenderingContext2D.isDebug) {
|
|
886
|
-
return;
|
|
887
|
-
}
|
|
888
|
-
console.log(message, args);
|
|
889
|
-
}
|
|
890
|
-
_ensureLayoutBeforeDraw() {
|
|
891
|
-
if (this.canvas) {
|
|
892
|
-
this.canvas._layoutNative();
|
|
893
|
-
}
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
CanvasRenderingContext2D.isDebug = false;
|
|
897
|
-
//# sourceMappingURL=index.ios.js.map
|