@nativescript/canvas 2.0.0-beta.9 → 2.0.0-webgpu.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Canvas/common.d.ts +24 -17
- package/Canvas/common.js +133 -66
- package/Canvas/common.js.map +1 -1
- package/Canvas/index.android.d.ts +5 -7
- package/Canvas/index.android.js +62 -133
- package/Canvas/index.android.js.map +1 -1
- package/Canvas/index.d.ts +4 -1
- package/Canvas/index.ios.d.ts +4 -5
- package/Canvas/index.ios.js +73 -82
- package/Canvas/index.ios.js.map +1 -1
- package/Canvas2D/CanvasRenderingContext2D/index.d.ts +1 -1
- package/Canvas2D/CanvasRenderingContext2D/index.js +8 -11
- package/Canvas2D/CanvasRenderingContext2D/index.js.map +1 -1
- package/Canvas2D/DOMMatrix/index.d.ts +14 -0
- package/Canvas2D/DOMMatrix/index.js +62 -0
- package/Canvas2D/DOMMatrix/index.js.map +1 -1
- package/Canvas2D/ImageData/index.js +4 -6
- package/Canvas2D/ImageData/index.js.map +1 -1
- package/ImageAsset/index.d.ts +1 -0
- package/ImageAsset/index.js +49 -0
- package/ImageAsset/index.js.map +1 -1
- package/WebGL/WebGLRenderingContext/index.d.ts +1 -0
- package/WebGL/WebGLRenderingContext/index.js +86 -32
- package/WebGL/WebGLRenderingContext/index.js.map +1 -1
- package/WebGL2/WebGL2RenderingContext/index.d.ts +1 -0
- package/WebGL2/WebGL2RenderingContext/index.js +2 -3
- package/WebGL2/WebGL2RenderingContext/index.js.map +1 -1
- package/WebGPU/Constants.d.ts +36 -0
- package/WebGPU/Constants.js +42 -0
- package/WebGPU/Constants.js.map +1 -0
- package/WebGPU/Errors.d.ts +18 -0
- package/WebGPU/Errors.js +21 -0
- package/WebGPU/Errors.js.map +1 -0
- package/WebGPU/GPU.d.ts +13 -0
- package/WebGPU/GPU.js +35 -0
- package/WebGPU/GPU.js.map +1 -0
- package/WebGPU/GPUAdapter.d.ts +23 -0
- package/WebGPU/GPUAdapter.js +62 -0
- package/WebGPU/GPUAdapter.js.map +1 -0
- package/WebGPU/GPUAdapterInfo.d.ts +9 -0
- package/WebGPU/GPUAdapterInfo.js +24 -0
- package/WebGPU/GPUAdapterInfo.js.map +1 -0
- package/WebGPU/GPUBindGroup.d.ts +5 -0
- package/WebGPU/GPUBindGroup.js +12 -0
- package/WebGPU/GPUBindGroup.js.map +1 -0
- package/WebGPU/GPUBindGroupLayout.d.ts +5 -0
- package/WebGPU/GPUBindGroupLayout.js +12 -0
- package/WebGPU/GPUBindGroupLayout.js.map +1 -0
- package/WebGPU/GPUBuffer.d.ts +15 -0
- package/WebGPU/GPUBuffer.js +54 -0
- package/WebGPU/GPUBuffer.js.map +1 -0
- package/WebGPU/GPUCanvasContext.d.ts +35 -0
- package/WebGPU/GPUCanvasContext.js +76 -0
- package/WebGPU/GPUCanvasContext.js.map +1 -0
- package/WebGPU/GPUCommandBuffer.d.ts +5 -0
- package/WebGPU/GPUCommandBuffer.js +12 -0
- package/WebGPU/GPUCommandBuffer.js.map +1 -0
- package/WebGPU/GPUCommandEncoder.d.ts +41 -0
- package/WebGPU/GPUCommandEncoder.js +110 -0
- package/WebGPU/GPUCommandEncoder.js.map +1 -0
- package/WebGPU/GPUComputePassEncoder.d.ts +16 -0
- package/WebGPU/GPUComputePassEncoder.js +50 -0
- package/WebGPU/GPUComputePassEncoder.js.map +1 -0
- package/WebGPU/GPUComputePipeline.d.ts +7 -0
- package/WebGPU/GPUComputePipeline.js +16 -0
- package/WebGPU/GPUComputePipeline.js.map +1 -0
- package/WebGPU/GPUDevice.d.ts +173 -0
- package/WebGPU/GPUDevice.js +356 -0
- package/WebGPU/GPUDevice.js.map +1 -0
- package/WebGPU/GPUDeviceLostInfo.d.ts +1 -0
- package/WebGPU/GPUDeviceLostInfo.js +10 -0
- package/WebGPU/GPUDeviceLostInfo.js.map +1 -0
- package/WebGPU/GPUExternalTexture.d.ts +5 -0
- package/WebGPU/GPUExternalTexture.js +12 -0
- package/WebGPU/GPUExternalTexture.js.map +1 -0
- package/WebGPU/GPUPipelineLayout.d.ts +5 -0
- package/WebGPU/GPUPipelineLayout.js +12 -0
- package/WebGPU/GPUPipelineLayout.js.map +1 -0
- package/WebGPU/GPUQuerySet.d.ts +5 -0
- package/WebGPU/GPUQuerySet.js +12 -0
- package/WebGPU/GPUQuerySet.js.map +1 -0
- package/WebGPU/GPUQueue.d.ts +14 -0
- package/WebGPU/GPUQueue.js +77 -0
- package/WebGPU/GPUQueue.js.map +1 -0
- package/WebGPU/GPURenderBundle.d.ts +5 -0
- package/WebGPU/GPURenderBundle.js +12 -0
- package/WebGPU/GPURenderBundle.js.map +1 -0
- package/WebGPU/GPURenderBundleEncoder.d.ts +20 -0
- package/WebGPU/GPURenderBundleEncoder.js +61 -0
- package/WebGPU/GPURenderBundleEncoder.js.map +1 -0
- package/WebGPU/GPURenderPassEncoder.d.ts +29 -0
- package/WebGPU/GPURenderPassEncoder.js +94 -0
- package/WebGPU/GPURenderPassEncoder.js.map +1 -0
- package/WebGPU/GPURenderPipeline.d.ts +7 -0
- package/WebGPU/GPURenderPipeline.js +16 -0
- package/WebGPU/GPURenderPipeline.js.map +1 -0
- package/WebGPU/GPUSampler.d.ts +5 -0
- package/WebGPU/GPUSampler.js +12 -0
- package/WebGPU/GPUSampler.js.map +1 -0
- package/WebGPU/GPUShaderModule.d.ts +6 -0
- package/WebGPU/GPUShaderModule.js +15 -0
- package/WebGPU/GPUShaderModule.js.map +1 -0
- package/WebGPU/GPUTexture.d.ts +17 -0
- package/WebGPU/GPUTexture.js +44 -0
- package/WebGPU/GPUTexture.js.map +1 -0
- package/WebGPU/GPUTextureView.d.ts +5 -0
- package/WebGPU/GPUTextureView.js +12 -0
- package/WebGPU/GPUTextureView.js.map +1 -0
- package/WebGPU/Interfaces.d.ts +155 -0
- package/WebGPU/Interfaces.js +2 -0
- package/WebGPU/Interfaces.js.map +1 -0
- package/WebGPU/Types.d.ts +39 -0
- package/WebGPU/Types.js +2 -0
- package/WebGPU/Types.js.map +1 -0
- package/WebGPU/Utils.d.ts +1 -0
- package/WebGPU/Utils.js +75 -0
- package/WebGPU/Utils.js.map +1 -0
- package/WebGPU/index.d.ts +28 -0
- package/WebGPU/index.js +29 -0
- package/WebGPU/index.js.map +1 -0
- package/common.d.ts +0 -3
- package/common.js +1 -5
- package/common.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +22 -1
- package/index.js.map +1 -1
- package/package.json +1 -4
- package/platforms/android/canvas-release.aar +0 -0
- package/platforms/ios/CanvasNative.xcframework/Info.plist +5 -5
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h +23 -23
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_ios.h +41 -8
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +2318 -103
- 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 +1563 -3729
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +27 -34
- 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 +27 -34
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/Relocations/aarch64/CanvasNative.yml +602 -663
- 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 +46 -46
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_ios.h +41 -8
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +2318 -103
- 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 +1563 -3729
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +27 -34
- 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 +27 -34
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +1563 -3729
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +27 -34
- 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 +27 -34
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +31 -31
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/Relocations/aarch64/CanvasNative.yml +604 -662
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/Relocations/x86_64/CanvasNative.yml +638 -641
- package/platforms/ios/build.xcconfig +3 -1
- package/platforms/ios/src/cpp/Caches.h +69 -1
- package/platforms/ios/src/cpp/CanvasJSIModule.cpp +320 -395
- package/platforms/ios/src/cpp/CanvasJSIModule.h +7 -1
- package/platforms/ios/src/cpp/Helpers.h +43 -8
- package/platforms/ios/src/cpp/ImageAssetImpl.cpp +35 -37
- package/platforms/ios/src/cpp/ImageAssetImpl.h +14 -10
- package/platforms/ios/src/cpp/ImageBitmapImpl.cpp +2 -2
- package/platforms/ios/src/cpp/ImageBitmapImpl.h +1 -1
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.cpp +0 -10
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.cpp +41 -4
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.cpp +409 -3
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.h +27 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.cpp +131 -149
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.cpp +1766 -1659
- package/platforms/ios/src/cpp/webgpu/GPUAdapterImpl.cpp +302 -0
- package/platforms/ios/src/cpp/webgpu/GPUAdapterImpl.h +63 -0
- package/platforms/ios/src/cpp/webgpu/GPUAdapterInfoImpl.cpp +174 -0
- package/platforms/ios/src/cpp/webgpu/GPUAdapterInfoImpl.h +58 -0
- package/platforms/ios/src/cpp/webgpu/GPUBindGroupImpl.cpp +53 -0
- package/platforms/ios/src/cpp/webgpu/GPUBindGroupImpl.h +45 -0
- package/platforms/ios/src/cpp/webgpu/GPUBindGroupLayoutImpl.cpp +53 -0
- package/platforms/ios/src/cpp/webgpu/GPUBindGroupLayoutImpl.h +45 -0
- package/platforms/ios/src/cpp/webgpu/GPUBufferImpl.cpp +229 -0
- package/platforms/ios/src/cpp/webgpu/GPUBufferImpl.h +59 -0
- package/platforms/ios/src/cpp/webgpu/GPUCanvasContextImpl.cpp +317 -0
- package/platforms/ios/src/cpp/webgpu/GPUCanvasContextImpl.h +55 -0
- package/platforms/ios/src/cpp/webgpu/GPUCommandBufferImpl.cpp +54 -0
- package/platforms/ios/src/cpp/webgpu/GPUCommandBufferImpl.h +45 -0
- package/platforms/ios/src/cpp/webgpu/GPUCommandEncoderImpl.cpp +1222 -0
- package/platforms/ios/src/cpp/webgpu/GPUCommandEncoderImpl.h +69 -0
- package/platforms/ios/src/cpp/webgpu/GPUComputePassEncoderImpl.cpp +260 -0
- package/platforms/ios/src/cpp/webgpu/GPUComputePassEncoderImpl.h +62 -0
- package/platforms/ios/src/cpp/webgpu/GPUComputePipelineImpl.cpp +84 -0
- package/platforms/ios/src/cpp/webgpu/GPUComputePipelineImpl.h +49 -0
- package/platforms/ios/src/cpp/webgpu/GPUDeviceImpl.cpp +2750 -0
- package/platforms/ios/src/cpp/webgpu/GPUDeviceImpl.h +95 -0
- package/platforms/ios/src/cpp/webgpu/GPUImpl.cpp +186 -0
- package/platforms/ios/src/cpp/webgpu/GPUImpl.h +55 -0
- package/platforms/ios/src/cpp/webgpu/GPUPipelineLayoutImpl.cpp +54 -0
- package/platforms/ios/src/cpp/webgpu/GPUPipelineLayoutImpl.h +46 -0
- package/platforms/ios/src/cpp/webgpu/GPUQuerySetImpl.cpp +137 -0
- package/platforms/ios/src/cpp/webgpu/GPUQuerySetImpl.h +55 -0
- package/platforms/ios/src/cpp/webgpu/GPUQueueImpl.cpp +521 -0
- package/platforms/ios/src/cpp/webgpu/GPUQueueImpl.h +56 -0
- package/platforms/ios/src/cpp/webgpu/GPURenderBundleEncoderImpl.cpp +469 -0
- package/platforms/ios/src/cpp/webgpu/GPURenderBundleEncoderImpl.h +71 -0
- package/platforms/ios/src/cpp/webgpu/GPURenderBundleImpl.cpp +53 -0
- package/platforms/ios/src/cpp/webgpu/GPURenderBundleImpl.h +45 -0
- package/platforms/ios/src/cpp/webgpu/GPURenderPassEncoderImpl.cpp +623 -0
- package/platforms/ios/src/cpp/webgpu/GPURenderPassEncoderImpl.h +85 -0
- package/platforms/ios/src/cpp/webgpu/GPURenderPipelineImpl.cpp +84 -0
- package/platforms/ios/src/cpp/webgpu/GPURenderPipelineImpl.h +49 -0
- package/platforms/ios/src/cpp/webgpu/GPUSamplerImpl.cpp +53 -0
- package/platforms/ios/src/cpp/webgpu/GPUSamplerImpl.h +45 -0
- package/platforms/ios/src/cpp/webgpu/GPUShaderModuleImpl.cpp +56 -0
- package/platforms/ios/src/cpp/webgpu/GPUShaderModuleImpl.h +45 -0
- package/platforms/ios/src/cpp/webgpu/GPUSupportedLimitsImpl.cpp +1304 -0
- package/platforms/ios/src/cpp/webgpu/GPUSupportedLimitsImpl.h +288 -0
- package/platforms/ios/src/cpp/webgpu/GPUTextureImpl.cpp +360 -0
- package/platforms/ios/src/cpp/webgpu/GPUTextureImpl.h +75 -0
- package/platforms/ios/src/cpp/webgpu/GPUTextureViewImpl.cpp +53 -0
- package/platforms/ios/src/cpp/webgpu/GPUTextureViewImpl.h +45 -0
- package/platforms/ios/src/cpp/webgpu/GPUUtils.h +245 -0
- package/SVG/Circle.d.ts +0 -11
- package/SVG/Circle.js +0 -21
- package/SVG/Circle.js.map +0 -1
- package/SVG/ClipPath.d.ts +0 -4
- package/SVG/ClipPath.js +0 -9
- package/SVG/ClipPath.js.map +0 -1
- package/SVG/Defs.d.ts +0 -4
- package/SVG/Defs.js +0 -9
- package/SVG/Defs.js.map +0 -1
- package/SVG/Ellipse.d.ts +0 -13
- package/SVG/Ellipse.js +0 -26
- package/SVG/Ellipse.js.map +0 -1
- package/SVG/G.d.ts +0 -7
- package/SVG/G.js +0 -9
- package/SVG/G.js.map +0 -1
- package/SVG/Image.d.ts +0 -11
- package/SVG/Image.js +0 -40
- package/SVG/Image.js.map +0 -1
- package/SVG/Line.d.ts +0 -13
- package/SVG/Line.js +0 -26
- package/SVG/Line.js.map +0 -1
- package/SVG/LinearGradient.d.ts +0 -10
- package/SVG/LinearGradient.js +0 -13
- package/SVG/LinearGradient.js.map +0 -1
- package/SVG/Path.d.ts +0 -7
- package/SVG/Path.js +0 -14
- package/SVG/Path.js.map +0 -1
- package/SVG/Pattern.d.ts +0 -4
- package/SVG/Pattern.js +0 -9
- package/SVG/Pattern.js.map +0 -1
- package/SVG/Polygon.d.ts +0 -7
- package/SVG/Polygon.js +0 -14
- package/SVG/Polygon.js.map +0 -1
- package/SVG/Polyline.d.ts +0 -7
- package/SVG/Polyline.js +0 -14
- package/SVG/Polyline.js.map +0 -1
- package/SVG/Rect.d.ts +0 -8
- package/SVG/Rect.js +0 -13
- package/SVG/Rect.js.map +0 -1
- package/SVG/SVG.d.ts +0 -32
- package/SVG/SVG.js +0 -204
- package/SVG/SVG.js.map +0 -1
- package/SVG/SVGItem.d.ts +0 -5
- package/SVG/SVGItem.js +0 -8
- package/SVG/SVGItem.js.map +0 -1
- package/SVG/Stop.d.ts +0 -5
- package/SVG/Stop.js +0 -9
- package/SVG/Stop.js.map +0 -1
- package/SVG/Symbol.d.ts +0 -4
- package/SVG/Symbol.js +0 -9
- package/SVG/Symbol.js.map +0 -1
- package/SVG/Text.d.ts +0 -14
- package/SVG/Text.js +0 -26
- package/SVG/Text.js.map +0 -1
- package/SVG/Use.d.ts +0 -4
- package/SVG/Use.js +0 -9
- package/SVG/Use.js.map +0 -1
- package/SVG/index.d.ts +0 -18
- package/SVG/index.js +0 -19
- package/SVG/index.js.map +0 -1
- package/platforms/ios/src/cpp/PerIsolateData.cpp +0 -49
- package/platforms/ios/src/cpp/PerIsolateData.h +0 -54
- package/platforms/ios/src/cpp/URLImpl.cpp +0 -464
- package/platforms/ios/src/cpp/URLImpl.h +0 -121
package/SVG/LinearGradient.d.ts
DELETED
package/SVG/LinearGradient.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { SVGItem } from "./SVGItem";
|
|
2
|
-
import { DOMParser } from 'xmldom';
|
|
3
|
-
export class LinearGradient extends SVGItem {
|
|
4
|
-
constructor() {
|
|
5
|
-
super();
|
|
6
|
-
this.x1 = '0%';
|
|
7
|
-
this.y1 = '0%';
|
|
8
|
-
this.x2 = '100%';
|
|
9
|
-
this.y2 = '0%';
|
|
10
|
-
this._dom = new DOMParser().parseFromString('<linear-gradient></linear-gradient>');
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=LinearGradient.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinearGradient.js","sourceRoot":"","sources":["../../../../packages/canvas/SVG/LinearGradient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAIlC,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,MAAM,OAAO,cAAe,SAAQ,OAAO;IAS1C;QACC,KAAK,EAAE,CAAC;QART,OAAE,GAAQ,IAAI,CAAC;QACf,OAAE,GAAQ,IAAI,CAAC;QACf,OAAE,GAAQ,MAAM,CAAC;QACjB,OAAE,GAAQ,IAAI,CAAC;QAMd,IAAI,CAAC,IAAI,GAAG,IAAI,SAAS,EAAE,CAAC,eAAe,CAAC,qCAAqC,CAAC,CAAC;IACpF,CAAC;CACD"}
|
package/SVG/Path.d.ts
DELETED
package/SVG/Path.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Property } from "@nativescript/core";
|
|
2
|
-
import { SVGItem } from "./SVGItem";
|
|
3
|
-
export const dProperty = new Property({
|
|
4
|
-
name: 'd'
|
|
5
|
-
});
|
|
6
|
-
import { DOMParser } from 'xmldom';
|
|
7
|
-
export class Path extends SVGItem {
|
|
8
|
-
constructor() {
|
|
9
|
-
super();
|
|
10
|
-
this._dom = new DOMParser().parseFromString('<path></path>');
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
dProperty.register(Path);
|
|
14
|
-
//# sourceMappingURL=Path.js.map
|
package/SVG/Path.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Path.js","sourceRoot":"","sources":["../../../../packages/canvas/SVG/Path.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,QAAQ,CAAe;IACnD,IAAI,EAAE,GAAG;CACT,CAAC,CAAC;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,MAAM,OAAO,IAAK,SAAQ,OAAO;IAGhC;QACC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,IAAI,SAAS,EAAE,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC;IAC9D,CAAC;CACD;AAED,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC"}
|
package/SVG/Pattern.d.ts
DELETED
package/SVG/Pattern.js
DELETED
package/SVG/Pattern.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Pattern.js","sourceRoot":"","sources":["../../../../packages/canvas/SVG/Pattern.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAIlC,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,MAAM,OAAO,OAAQ,SAAQ,OAAO;IACnC;QACC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,IAAI,SAAS,EAAE,CAAC,eAAe,CAAC,qBAAqB,CAAC,CAAC;IACpE,CAAC;CACD"}
|
package/SVG/Polygon.d.ts
DELETED
package/SVG/Polygon.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Property } from "@nativescript/core";
|
|
2
|
-
import { SVGItem } from "./SVGItem";
|
|
3
|
-
export const pointsProperty = new Property({
|
|
4
|
-
name: 'points'
|
|
5
|
-
});
|
|
6
|
-
import { DOMParser } from 'xmldom';
|
|
7
|
-
export class Polygon extends SVGItem {
|
|
8
|
-
constructor() {
|
|
9
|
-
super();
|
|
10
|
-
this._dom = new DOMParser().parseFromString('<polygon></polygon>');
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
pointsProperty.register(Polygon);
|
|
14
|
-
//# sourceMappingURL=Polygon.js.map
|
package/SVG/Polygon.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Polygon.js","sourceRoot":"","sources":["../../../../packages/canvas/SVG/Polygon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,oBAAoB,CAAC;AAE5C,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAElC,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,QAAQ,CAAe;IACxD,IAAI,EAAE,QAAQ;CACd,CAAC,CAAC;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,MAAM,OAAO,OAAQ,SAAQ,OAAO;IAGnC;QACC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,IAAI,SAAS,EAAE,CAAC,eAAe,CAAC,qBAAqB,CAAC,CAAC;IACpE,CAAC;CACD;AAED,cAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC"}
|
package/SVG/Polyline.d.ts
DELETED
package/SVG/Polyline.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Property } from "@nativescript/core/ui/core/view";
|
|
2
|
-
import { SVGItem } from "./SVGItem";
|
|
3
|
-
export const pointsProperty = new Property({
|
|
4
|
-
name: 'points'
|
|
5
|
-
});
|
|
6
|
-
import { DOMParser } from 'xmldom';
|
|
7
|
-
export class Polyline extends SVGItem {
|
|
8
|
-
constructor() {
|
|
9
|
-
super();
|
|
10
|
-
this._dom = new DOMParser().parseFromString('<polyline></polyline>');
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
pointsProperty.register(Polyline);
|
|
14
|
-
//# sourceMappingURL=Polyline.js.map
|
package/SVG/Polyline.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Polyline.js","sourceRoot":"","sources":["../../../../packages/canvas/SVG/Polyline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,iCAAiC,CAAC;AAEzD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAElC,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,QAAQ,CAAgB;IACzD,IAAI,EAAE,QAAQ;CACd,CAAC,CAAC;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,MAAM,OAAO,QAAS,SAAQ,OAAO;IAGpC;QACC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,IAAI,SAAS,EAAE,CAAC,eAAe,CAAC,uBAAuB,CAAC,CAAC;IACtE,CAAC;CACD;AAED,cAAc,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC"}
|
package/SVG/Rect.d.ts
DELETED
package/SVG/Rect.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { SVGItem } from "./SVGItem";
|
|
2
|
-
import { DOMParser } from 'xmldom';
|
|
3
|
-
export class Rect extends SVGItem {
|
|
4
|
-
constructor() {
|
|
5
|
-
super();
|
|
6
|
-
this.x = 0;
|
|
7
|
-
this.y = 0;
|
|
8
|
-
this.rx = 0;
|
|
9
|
-
this.ry = 0;
|
|
10
|
-
this._dom = new DOMParser().parseFromString('<rect></rect>');
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=Rect.js.map
|
package/SVG/Rect.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Rect.js","sourceRoot":"","sources":["../../../../packages/canvas/SVG/Rect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,MAAM,OAAO,IAAK,SAAQ,OAAO;IAMhC;QACC,KAAK,EAAE,CAAC;QANT,MAAC,GAAQ,CAAC,CAAC;QACX,MAAC,GAAQ,CAAC,CAAC;QACX,OAAE,GAAQ,CAAC,CAAC;QACZ,OAAE,GAAQ,CAAC,CAAC;QAIX,IAAI,CAAC,IAAI,GAAG,IAAI,SAAS,EAAE,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC;IAC9D,CAAC;CACD"}
|
package/SVG/SVG.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { View, Style, CssProperty, Property } from '@nativescript/core';
|
|
2
|
-
export declare const strokeProperty: CssProperty<Style, any>;
|
|
3
|
-
export declare const strokeWidthProperty: CssProperty<Style, number>;
|
|
4
|
-
export declare const fillProperty: CssProperty<Style, any>;
|
|
5
|
-
export declare const fillRuleProperty: CssProperty<Style, any>;
|
|
6
|
-
export declare const fillOpacityProperty: CssProperty<Style, any>;
|
|
7
|
-
export declare const stopColorProperty: CssProperty<Style, any>;
|
|
8
|
-
export declare const strokeLinecapProperty: CssProperty<Style, any>;
|
|
9
|
-
export declare const strokeLinejoinProperty: CssProperty<Style, any>;
|
|
10
|
-
export declare const strokeMiterlimitProperty: CssProperty<Style, any>;
|
|
11
|
-
export declare const srcProperty: any;
|
|
12
|
-
export declare const syncProperty: Property<Svg, boolean>;
|
|
13
|
-
import { SVGItem } from './SVGItem';
|
|
14
|
-
export declare class Svg extends View {
|
|
15
|
-
static readyEvent: string;
|
|
16
|
-
_dom: any;
|
|
17
|
-
_serializer: any;
|
|
18
|
-
_svg: any;
|
|
19
|
-
src: string;
|
|
20
|
-
__children: any[];
|
|
21
|
-
__attachedToDom: boolean;
|
|
22
|
-
constructor();
|
|
23
|
-
onLayout(left: number, top: number, right: number, bottom: number): void;
|
|
24
|
-
onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void;
|
|
25
|
-
__redraw(): void;
|
|
26
|
-
onLoaded(): void;
|
|
27
|
-
onUnloaded(): void;
|
|
28
|
-
createNativeView(): Object;
|
|
29
|
-
initNativeView(): void;
|
|
30
|
-
addChild(view: SVGItem): void;
|
|
31
|
-
removeChild(view: SVGItem): void;
|
|
32
|
-
}
|
package/SVG/SVG.js
DELETED
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { Http, View, Style, CssProperty, Property, path, knownFolders, CSSType, Application, Utils, booleanConverter } from '@nativescript/core';
|
|
11
|
-
export const strokeProperty = new CssProperty({
|
|
12
|
-
name: 'stroke',
|
|
13
|
-
cssName: 'stroke',
|
|
14
|
-
defaultValue: undefined,
|
|
15
|
-
});
|
|
16
|
-
export const strokeWidthProperty = new CssProperty({
|
|
17
|
-
name: 'strokeWidth',
|
|
18
|
-
cssName: 'stroke-width',
|
|
19
|
-
defaultValue: 1,
|
|
20
|
-
});
|
|
21
|
-
export const fillProperty = new CssProperty({
|
|
22
|
-
name: 'fill',
|
|
23
|
-
cssName: 'fill',
|
|
24
|
-
defaultValue: undefined,
|
|
25
|
-
});
|
|
26
|
-
export const fillRuleProperty = new CssProperty({
|
|
27
|
-
name: 'fillRule',
|
|
28
|
-
cssName: 'fill-rule',
|
|
29
|
-
defaultValue: undefined,
|
|
30
|
-
});
|
|
31
|
-
export const fillOpacityProperty = new CssProperty({
|
|
32
|
-
name: 'fillOpacity',
|
|
33
|
-
cssName: 'fill-opacity',
|
|
34
|
-
defaultValue: undefined,
|
|
35
|
-
});
|
|
36
|
-
export const stopColorProperty = new CssProperty({
|
|
37
|
-
name: 'stopColor',
|
|
38
|
-
cssName: 'stop-color',
|
|
39
|
-
defaultValue: undefined,
|
|
40
|
-
});
|
|
41
|
-
export const strokeLinecapProperty = new CssProperty({
|
|
42
|
-
name: 'strokeLinecap',
|
|
43
|
-
cssName: 'stroke-linecap',
|
|
44
|
-
});
|
|
45
|
-
export const strokeLinejoinProperty = new CssProperty({
|
|
46
|
-
name: 'strokeLinejoin',
|
|
47
|
-
cssName: 'stroke-linejoin',
|
|
48
|
-
});
|
|
49
|
-
export const strokeMiterlimitProperty = new CssProperty({
|
|
50
|
-
name: 'strokeMiterlimit',
|
|
51
|
-
cssName: 'stroke-miterlimit',
|
|
52
|
-
});
|
|
53
|
-
export const srcProperty = new Property({
|
|
54
|
-
name: 'src',
|
|
55
|
-
});
|
|
56
|
-
export const syncProperty = new Property({
|
|
57
|
-
name: 'sync',
|
|
58
|
-
defaultValue: false,
|
|
59
|
-
valueConverter: booleanConverter,
|
|
60
|
-
});
|
|
61
|
-
import { DOMParser, XMLSerializer } from 'xmldom';
|
|
62
|
-
const initialSVG = '<svg width="auto" height="auto" xmlns="http://www.w3.org/2000/svg"></svg>';
|
|
63
|
-
let Svg = class Svg extends View {
|
|
64
|
-
constructor() {
|
|
65
|
-
super();
|
|
66
|
-
this.__children = [];
|
|
67
|
-
this.__attachedToDom = false;
|
|
68
|
-
if (global.isAndroid) {
|
|
69
|
-
const activity = Application.android.foregroundActivity || Application.android.startActivity;
|
|
70
|
-
this._svg = new org.nativescript.canvas.NSCSVG(activity);
|
|
71
|
-
}
|
|
72
|
-
else if (global.isIOS) {
|
|
73
|
-
this._svg = TNSSVG.alloc().initWithFrame(CGRectZero);
|
|
74
|
-
this._svg.backgroundColor = UIColor.clearColor;
|
|
75
|
-
}
|
|
76
|
-
this._dom = new DOMParser().parseFromString(initialSVG);
|
|
77
|
-
this._serializer = new XMLSerializer();
|
|
78
|
-
}
|
|
79
|
-
[srcProperty.setNative](value) {
|
|
80
|
-
if (typeof value === 'string') {
|
|
81
|
-
if (value.indexOf('<svg') > -1) {
|
|
82
|
-
if (global.isAndroid) {
|
|
83
|
-
this._svg.setSrc(value);
|
|
84
|
-
}
|
|
85
|
-
else if (global.isIOS) {
|
|
86
|
-
this._svg.src = value;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
if (value.startsWith('~')) {
|
|
91
|
-
if (global.isAndroid) {
|
|
92
|
-
this._svg.setSrcPath(path.join(knownFolders.currentApp().path, value.replace('~', '')));
|
|
93
|
-
}
|
|
94
|
-
else if (global.isIOS) {
|
|
95
|
-
this._svg.srcPath = path.join(knownFolders.currentApp().path, value.replace('~', ''));
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
else if (value.startsWith('/')) {
|
|
99
|
-
if (global.isAndroid) {
|
|
100
|
-
this._svg.setSrcPath(value);
|
|
101
|
-
}
|
|
102
|
-
else if (global.isIOS) {
|
|
103
|
-
this._svg.srcPath = value;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
else if (value.startsWith('http')) {
|
|
107
|
-
Http.getString(value)
|
|
108
|
-
.then((res) => {
|
|
109
|
-
if (global.isAndroid) {
|
|
110
|
-
this._svg.setSrc(res);
|
|
111
|
-
}
|
|
112
|
-
else if (global.isIOS) {
|
|
113
|
-
this._svg.src = res;
|
|
114
|
-
}
|
|
115
|
-
})
|
|
116
|
-
.catch((e) => {
|
|
117
|
-
console.log(e);
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
[syncProperty.setNative](value) {
|
|
124
|
-
if (global.isAndroid) {
|
|
125
|
-
this._svg.setSync(value);
|
|
126
|
-
}
|
|
127
|
-
else if (global.isIOS) {
|
|
128
|
-
this._svg.sync = value;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
onLayout(left, top, right, bottom) {
|
|
132
|
-
super.onLayout(left, top, right, bottom);
|
|
133
|
-
this.__redraw();
|
|
134
|
-
}
|
|
135
|
-
onMeasure(widthMeasureSpec, heightMeasureSpec) {
|
|
136
|
-
const nativeView = this.nativeView;
|
|
137
|
-
if (nativeView) {
|
|
138
|
-
const width = Utils.layout.getMeasureSpecSize(widthMeasureSpec);
|
|
139
|
-
const height = Utils.layout.getMeasureSpecSize(heightMeasureSpec);
|
|
140
|
-
this.setMeasuredDimension(width, height);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
__redraw() {
|
|
144
|
-
if (this.__attachedToDom) {
|
|
145
|
-
const domCopy = this._dom.valueOf();
|
|
146
|
-
const serialized = this._serializer.serializeToString(domCopy);
|
|
147
|
-
const width = domCopy.documentElement.getAttribute('width');
|
|
148
|
-
const height = domCopy.documentElement.getAttribute('height');
|
|
149
|
-
if (width === 'auto') {
|
|
150
|
-
domCopy.documentElement.setAttribute('width', `${this.getMeasuredWidth()}px`);
|
|
151
|
-
}
|
|
152
|
-
if (height === 'auto') {
|
|
153
|
-
domCopy.documentElement.setAttribute('height', `${this.getMeasuredHeight()}px`);
|
|
154
|
-
}
|
|
155
|
-
if (serialized !== initialSVG) {
|
|
156
|
-
this.src = serialized;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
onLoaded() {
|
|
161
|
-
super.onLoaded();
|
|
162
|
-
this.__attachedToDom = true;
|
|
163
|
-
}
|
|
164
|
-
onUnloaded() {
|
|
165
|
-
this.__attachedToDom = false;
|
|
166
|
-
super.onUnloaded();
|
|
167
|
-
}
|
|
168
|
-
createNativeView() {
|
|
169
|
-
return this._svg;
|
|
170
|
-
}
|
|
171
|
-
initNativeView() {
|
|
172
|
-
super.initNativeView();
|
|
173
|
-
}
|
|
174
|
-
addChild(view) {
|
|
175
|
-
this._addView(view);
|
|
176
|
-
view.__attached = true;
|
|
177
|
-
this.__children.push(view);
|
|
178
|
-
}
|
|
179
|
-
removeChild(view) {
|
|
180
|
-
if (view.__attached) {
|
|
181
|
-
this._removeView(view);
|
|
182
|
-
view.__attached = false;
|
|
183
|
-
this.__children = this.__children.filter((item) => item !== view);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
};
|
|
187
|
-
Svg.readyEvent = 'ready';
|
|
188
|
-
Svg = __decorate([
|
|
189
|
-
CSSType('Svg'),
|
|
190
|
-
__metadata("design:paramtypes", [])
|
|
191
|
-
], Svg);
|
|
192
|
-
export { Svg };
|
|
193
|
-
syncProperty.register(Svg);
|
|
194
|
-
srcProperty.register(Svg);
|
|
195
|
-
stopColorProperty.register(Style);
|
|
196
|
-
strokeWidthProperty.register(Style);
|
|
197
|
-
strokeProperty.register(Style);
|
|
198
|
-
fillProperty.register(Style);
|
|
199
|
-
fillOpacityProperty.register(Style);
|
|
200
|
-
fillRuleProperty.register(Style);
|
|
201
|
-
strokeLinecapProperty.register(Style);
|
|
202
|
-
strokeLinejoinProperty.register(Style);
|
|
203
|
-
strokeMiterlimitProperty.register(Style);
|
|
204
|
-
//# sourceMappingURL=SVG.js.map
|
package/SVG/SVG.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SVG.js","sourceRoot":"","sources":["../../../../packages/canvas/SVG/SVG.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAA8B,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE7K,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,WAAW,CAAa;IACzD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,QAAQ;IACjB,YAAY,EAAE,SAAS;CACvB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,WAAW,CAAgB;IACjE,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,cAAc;IACvB,YAAY,EAAE,CAAC;CACf,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,WAAW,CAAa;IACvD,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,MAAM;IACf,YAAY,EAAE,SAAS;CACvB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,WAAW,CAAa;IAC3D,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,WAAW;IACpB,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AC,KAAK,CAAC,CAAC;AAC/B,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC7B,mBAAmB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACpC,gBAAgB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACjC,qBAAqB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACtC,sBAAsB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACvC,wBAAwB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC"}
|
package/SVG/SVGItem.d.ts
DELETED
package/SVG/SVGItem.js
DELETED
package/SVG/SVGItem.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SVGItem.js","sourceRoot":"","sources":["../../../../packages/canvas/SVG/SVGItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,IAAI,EAAS,MAAM,oBAAoB,CAAC;AAI/D,MAAM,OAAO,OAAQ,SAAQ,IAAI;IAAjC;;QAEI,eAAU,GAAY,KAAK,CAAC;IAChC,CAAC;CAAA"}
|
package/SVG/Stop.d.ts
DELETED
package/SVG/Stop.js
DELETED
package/SVG/Stop.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Stop.js","sourceRoot":"","sources":["../../../../packages/canvas/SVG/Stop.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,MAAM,OAAO,IAAK,SAAQ,OAAO;IAE7B;QACF,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,IAAI,SAAS,EAAE,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC;IAC9D,CAAC;CACD"}
|
package/SVG/Symbol.d.ts
DELETED
package/SVG/Symbol.js
DELETED
package/SVG/Symbol.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Symbol.js","sourceRoot":"","sources":["../../../../packages/canvas/SVG/Symbol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAElC,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,MAAM,OAAO,MAAO,SAAQ,OAAO;IAC/B;QACF,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,IAAI,SAAS,EAAE,CAAC,eAAe,CAAC,mBAAmB,CAAC,CAAC;IAClE,CAAC;CACD"}
|
package/SVG/Text.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Property } from "@nativescript/core";
|
|
2
|
-
import { SVGItem } from "./SVGItem";
|
|
3
|
-
export declare const xProperty: Property<Text, any>;
|
|
4
|
-
export declare const yProperty: Property<Text, any>;
|
|
5
|
-
export declare const dxProperty: Property<Text, any>;
|
|
6
|
-
export declare const dyProperty: Property<Text, any>;
|
|
7
|
-
export declare class Text extends SVGItem {
|
|
8
|
-
x: any;
|
|
9
|
-
y: any;
|
|
10
|
-
dx: any;
|
|
11
|
-
dy: any;
|
|
12
|
-
text: string;
|
|
13
|
-
constructor();
|
|
14
|
-
}
|
package/SVG/Text.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Property } from "@nativescript/core";
|
|
2
|
-
import { SVGItem } from "./SVGItem";
|
|
3
|
-
export const xProperty = new Property({
|
|
4
|
-
name: 'x'
|
|
5
|
-
});
|
|
6
|
-
export const yProperty = new Property({
|
|
7
|
-
name: 'y'
|
|
8
|
-
});
|
|
9
|
-
export const dxProperty = new Property({
|
|
10
|
-
name: 'dx'
|
|
11
|
-
});
|
|
12
|
-
export const dyProperty = new Property({
|
|
13
|
-
name: 'dy'
|
|
14
|
-
});
|
|
15
|
-
import { DOMParser } from 'xmldom';
|
|
16
|
-
export class Text extends SVGItem {
|
|
17
|
-
constructor() {
|
|
18
|
-
super();
|
|
19
|
-
this._dom = new DOMParser().parseFromString('<text></text>');
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
xProperty.register(Text);
|
|
23
|
-
yProperty.register(Text);
|
|
24
|
-
dxProperty.register(Text);
|
|
25
|
-
dyProperty.register(Text);
|
|
26
|
-
//# sourceMappingURL=Text.js.map
|
package/SVG/Text.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../../packages/canvas/SVG/Text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,QAAQ,EAAC,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,QAAQ,CAAY;IAC7C,IAAI,EAAE,GAAG;CACZ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,QAAQ,CAAY;IAC7C,IAAI,EAAE,GAAG;CACZ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,QAAQ,CAAY;IAC9C,IAAI,EAAE,IAAI;CACb,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,QAAQ,CAAY;IAC9C,IAAI,EAAE,IAAI;CACb,CAAC,CAAC;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,MAAM,OAAO,IAAK,SAAQ,OAAO;IAO7B;QACF,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,IAAI,SAAS,EAAE,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC;IAC9D,CAAC;CACD;AAGD,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACzB,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACzB,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC1B,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC"}
|
package/SVG/Use.d.ts
DELETED
package/SVG/Use.js
DELETED
package/SVG/Use.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Use.js","sourceRoot":"","sources":["../../../../packages/canvas/SVG/Use.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAIlC,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,MAAM,OAAO,GAAI,SAAQ,OAAO;IAC5B;QACF,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,IAAI,SAAS,EAAE,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;IAC5D,CAAC;CACD"}
|
package/SVG/index.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export * from './SVG';
|
|
2
|
-
export { Circle } from './Circle';
|
|
3
|
-
export { G } from './G';
|
|
4
|
-
export { Path } from './Path';
|
|
5
|
-
export { Text } from './Text';
|
|
6
|
-
export { Ellipse } from './Ellipse';
|
|
7
|
-
export { Line } from './Line';
|
|
8
|
-
export { Polygon } from './Polygon';
|
|
9
|
-
export { Polyline } from './Polyline';
|
|
10
|
-
export { Rect } from './Rect';
|
|
11
|
-
export { Defs } from './Defs';
|
|
12
|
-
export { Use } from './Use';
|
|
13
|
-
export { Symbol } from './Symbol';
|
|
14
|
-
export { ClipPath } from './ClipPath';
|
|
15
|
-
export { Pattern } from './Pattern';
|
|
16
|
-
export { LinearGradient } from './LinearGradient';
|
|
17
|
-
export { Image } from './Image';
|
|
18
|
-
export { Stop } from './Stop';
|
package/SVG/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export * from './SVG';
|
|
2
|
-
export { Circle } from './Circle';
|
|
3
|
-
export { G } from './G';
|
|
4
|
-
export { Path } from './Path';
|
|
5
|
-
export { Text } from './Text';
|
|
6
|
-
export { Ellipse } from './Ellipse';
|
|
7
|
-
export { Line } from './Line';
|
|
8
|
-
export { Polygon } from './Polygon';
|
|
9
|
-
export { Polyline } from './Polyline';
|
|
10
|
-
export { Rect } from './Rect';
|
|
11
|
-
export { Defs } from './Defs';
|
|
12
|
-
export { Use } from './Use';
|
|
13
|
-
export { Symbol } from './Symbol';
|
|
14
|
-
export { ClipPath } from './ClipPath';
|
|
15
|
-
export { Pattern } from './Pattern';
|
|
16
|
-
export { LinearGradient } from './LinearGradient';
|
|
17
|
-
export { Image } from './Image';
|
|
18
|
-
export { Stop } from './Stop';
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
package/SVG/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/canvas/SVG/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAChC,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAChC,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAC"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// PerIsolateData.cpp
|
|
3
|
-
//
|
|
4
|
-
// Created by Osei Fortune on 10/01/2024.
|
|
5
|
-
// Copyright © 2024 NativeScript. All rights reserved.
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
#include "PerIsolateData.h"
|
|
9
|
-
|
|
10
|
-
PerIsolateData::PerIsolateData(v8::Isolate *isolate) {
|
|
11
|
-
auto type = v8::String::NewFromUtf8(isolate, "__type").ToLocalChecked();
|
|
12
|
-
INSTANCE_TYPE_PERSISTENT = new v8::Persistent<v8::String>(isolate, type);
|
|
13
|
-
|
|
14
|
-
auto version = v8::String::NewFromUtf8(isolate, "version").ToLocalChecked();
|
|
15
|
-
VERSION_PERSISTENT = new v8::Persistent<v8::String>(isolate, version);
|
|
16
|
-
|
|
17
|
-
auto alpha = v8::String::NewFromUtf8(isolate, "alpha").ToLocalChecked();
|
|
18
|
-
ALPHA_PERSISTENT = new v8::Persistent<v8::String>(isolate, alpha);
|
|
19
|
-
|
|
20
|
-
auto antialias = v8::String::NewFromUtf8(isolate, "antialias").ToLocalChecked();
|
|
21
|
-
ANTIALIAS_PERSISTENT = new v8::Persistent<v8::String>(isolate, antialias);
|
|
22
|
-
|
|
23
|
-
auto failIfMajorPerformanceCaveat = v8::String::NewFromUtf8(isolate,
|
|
24
|
-
"failIfMajorPerformanceCaveat").ToLocalChecked();
|
|
25
|
-
FAIL_IF_MAJOR_PERFORMANCE_CAVEAT_PERSISTENT = new v8::Persistent<v8::String>(isolate,
|
|
26
|
-
failIfMajorPerformanceCaveat);
|
|
27
|
-
|
|
28
|
-
auto powerPreference = v8::String::NewFromUtf8(isolate, "powerPreference").ToLocalChecked();
|
|
29
|
-
POWER_PREFERENCE_PERSISTENT = new v8::Persistent<v8::String>(isolate, powerPreference);
|
|
30
|
-
|
|
31
|
-
auto premultipliedAlpha = v8::String::NewFromUtf8(isolate,
|
|
32
|
-
"premultipliedAlpha").ToLocalChecked();
|
|
33
|
-
PREMULTIPLIED_ALPHA_PERSISTENT = new v8::Persistent<v8::String>(isolate, premultipliedAlpha);
|
|
34
|
-
|
|
35
|
-
auto preserveDrawingBuffer = v8::String::NewFromUtf8(isolate,
|
|
36
|
-
"preserveDrawingBuffer").ToLocalChecked();
|
|
37
|
-
PRESERVE_DRAWING_BUFFER_PERSISTENT = new v8::Persistent<v8::String>(isolate,
|
|
38
|
-
preserveDrawingBuffer);
|
|
39
|
-
|
|
40
|
-
auto stencil = v8::String::NewFromUtf8(isolate, "stencil").ToLocalChecked();
|
|
41
|
-
STENCIL_PERSISTENT = new v8::Persistent<v8::String>(isolate, stencil);
|
|
42
|
-
|
|
43
|
-
auto desynchronized = v8::String::NewFromUtf8(isolate, "desynchronized").ToLocalChecked();
|
|
44
|
-
DESYNCHRONIZED_PERSISTENT = new v8::Persistent<v8::String>(isolate, desynchronized);
|
|
45
|
-
|
|
46
|
-
auto xrCompatible = v8::String::NewFromUtf8(isolate, "xrCompatible").ToLocalChecked();
|
|
47
|
-
XR_COMPATIBLE_PERSISTENT = new v8::Persistent<v8::String>(isolate, xrCompatible);
|
|
48
|
-
|
|
49
|
-
}
|