@nativescript/canvas 2.0.0-beta.8 → 2.0.0-webgpu.0
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 +23 -15
- package/Canvas/common.js +125 -56
- package/Canvas/common.js.map +1 -1
- package/Canvas/index.android.d.ts +5 -7
- package/Canvas/index.android.js +61 -133
- package/Canvas/index.android.js.map +1 -1
- package/Canvas/index.d.ts +4 -1
- package/Canvas/index.ios.d.ts +6 -6
- package/Canvas/index.ios.js +75 -85
- 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 +104 -14
- 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 +33 -0
- package/WebGPU/GPUCanvasContext.js +67 -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 +105 -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 +381 -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 +16 -0
- package/WebGPU/GPUTexture.js +41 -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/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/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 +47 -8
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +2280 -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 +1564 -3814
- 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 -664
- 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 +47 -8
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +2280 -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 +1564 -3814
- 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 +1564 -3814
- 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 -663
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/Relocations/x86_64/CanvasNative.yml +638 -642
- 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 +1087 -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 +2741 -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 +653 -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 +178 -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
|
@@ -183,6 +183,71 @@ v8::Local<v8::FunctionTemplate> MatrixImpl::GetCtor(v8::Isolate *isolate) {
|
|
|
183
183
|
);
|
|
184
184
|
|
|
185
185
|
|
|
186
|
+
tmpl->Set(
|
|
187
|
+
ConvertToV8String(isolate, "translate"),
|
|
188
|
+
v8::FunctionTemplate::New(isolate, Translate)
|
|
189
|
+
);
|
|
190
|
+
|
|
191
|
+
tmpl->Set(
|
|
192
|
+
ConvertToV8String(isolate, "translateSelf"),
|
|
193
|
+
v8::FunctionTemplate::New(isolate, TranslateSelf)
|
|
194
|
+
);
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
tmpl->Set(
|
|
198
|
+
ConvertToV8String(isolate, "multiplySelf"),
|
|
199
|
+
v8::FunctionTemplate::New(isolate, MultiplySelf)
|
|
200
|
+
);
|
|
201
|
+
|
|
202
|
+
tmpl->Set(
|
|
203
|
+
ConvertToV8String(isolate, "premultiplySelf"),
|
|
204
|
+
v8::FunctionTemplate::New(isolate, PremultiplySelf)
|
|
205
|
+
);
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
tmpl->Set(
|
|
209
|
+
ConvertToV8String(isolate, "scaleNonUniform"),
|
|
210
|
+
v8::FunctionTemplate::New(isolate, ScaleNonUniform)
|
|
211
|
+
);
|
|
212
|
+
|
|
213
|
+
tmpl->Set(
|
|
214
|
+
ConvertToV8String(isolate, "scaleNonUniformSelf"),
|
|
215
|
+
v8::FunctionTemplate::New(isolate, ScaleNonUniformSelf)
|
|
216
|
+
);
|
|
217
|
+
|
|
218
|
+
tmpl->Set(
|
|
219
|
+
ConvertToV8String(isolate, "rotate"),
|
|
220
|
+
v8::FunctionTemplate::New(isolate, Rotate)
|
|
221
|
+
);
|
|
222
|
+
|
|
223
|
+
tmpl->Set(
|
|
224
|
+
ConvertToV8String(isolate, "rotateSelf"),
|
|
225
|
+
v8::FunctionTemplate::New(isolate, RotateSelf)
|
|
226
|
+
);
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
tmpl->Set(
|
|
230
|
+
ConvertToV8String(isolate, "skewX"),
|
|
231
|
+
v8::FunctionTemplate::New(isolate, SkewX)
|
|
232
|
+
);
|
|
233
|
+
|
|
234
|
+
tmpl->Set(
|
|
235
|
+
ConvertToV8String(isolate, "skewXSelf"),
|
|
236
|
+
v8::FunctionTemplate::New(isolate, SkewXSelf)
|
|
237
|
+
);
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
tmpl->Set(
|
|
241
|
+
ConvertToV8String(isolate, "skewY"),
|
|
242
|
+
v8::FunctionTemplate::New(isolate, SkewY)
|
|
243
|
+
);
|
|
244
|
+
|
|
245
|
+
tmpl->Set(
|
|
246
|
+
ConvertToV8String(isolate, "skewYSelf"),
|
|
247
|
+
v8::FunctionTemplate::New(isolate, SkewYSelf)
|
|
248
|
+
);
|
|
249
|
+
|
|
250
|
+
|
|
186
251
|
cache->MatrixTmpl =
|
|
187
252
|
std::make_unique<v8::Persistent<v8::FunctionTemplate>>(isolate, ctorTmpl);
|
|
188
253
|
return ctorTmpl;
|
|
@@ -216,7 +281,7 @@ void MatrixImpl::Ctor(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
|
216
281
|
|
|
217
282
|
ret->SetAlignedPointerInInternalField(0, object);
|
|
218
283
|
|
|
219
|
-
SetNativeType(
|
|
284
|
+
SetNativeType(ret, NativeType::Matrix);
|
|
220
285
|
|
|
221
286
|
object->BindFinalizer(isolate, ret);
|
|
222
287
|
|
|
@@ -242,7 +307,7 @@ void MatrixImpl::Ctor(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
|
242
307
|
|
|
243
308
|
ret->SetAlignedPointerInInternalField(0, object);
|
|
244
309
|
|
|
245
|
-
SetNativeType(
|
|
310
|
+
SetNativeType(ret, NativeType::Matrix);
|
|
246
311
|
|
|
247
312
|
object->BindFinalizer(isolate, ret);
|
|
248
313
|
|
|
@@ -257,7 +322,7 @@ void MatrixImpl::Ctor(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
|
257
322
|
|
|
258
323
|
ret->SetAlignedPointerInInternalField(0, object);
|
|
259
324
|
|
|
260
|
-
SetNativeType(
|
|
325
|
+
SetNativeType(ret, NativeType::Matrix);
|
|
261
326
|
|
|
262
327
|
object->BindFinalizer(isolate, ret);
|
|
263
328
|
|
|
@@ -802,6 +867,347 @@ void MatrixImpl::SetM44(v8::Local<v8::String> property,
|
|
|
802
867
|
canvas_native_matrix_set_m44(ptr->GetMatrix(), (float) value->NumberValue(context).ToChecked());
|
|
803
868
|
}
|
|
804
869
|
|
|
870
|
+
|
|
871
|
+
void MatrixImpl::Translate(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
872
|
+
auto count = args.Length();
|
|
873
|
+
auto isolate = args.GetIsolate();
|
|
874
|
+
|
|
875
|
+
|
|
876
|
+
if (count >= 3) {
|
|
877
|
+
auto context = isolate->GetCurrentContext();
|
|
878
|
+
auto x = args[0];
|
|
879
|
+
auto y = args[1];
|
|
880
|
+
auto value = args[2];
|
|
881
|
+
auto type = GetNativeType(value);
|
|
882
|
+
if (type == NativeType::Matrix) {
|
|
883
|
+
auto ptr = MatrixImpl::GetPointer(value.As<v8::Object>());
|
|
884
|
+
auto matrix = canvas_native_matrix_translate(
|
|
885
|
+
(float) x->NumberValue(context).ToChecked(),
|
|
886
|
+
(float) y->NumberValue(context).ToChecked(),
|
|
887
|
+
ptr->GetMatrix());
|
|
888
|
+
if (matrix == nullptr) {
|
|
889
|
+
args.GetReturnValue().SetUndefined();
|
|
890
|
+
return;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
|
|
894
|
+
auto ret = MatrixImpl::GetCtor(isolate)->GetFunction(
|
|
895
|
+
context).ToLocalChecked()->NewInstance(context).ToLocalChecked();
|
|
896
|
+
auto object = new MatrixImpl(matrix);
|
|
897
|
+
|
|
898
|
+
ret->SetAlignedPointerInInternalField(0, object);
|
|
899
|
+
|
|
900
|
+
SetNativeType(ret, NativeType::Matrix);
|
|
901
|
+
|
|
902
|
+
object->BindFinalizer(isolate, ret);
|
|
903
|
+
|
|
904
|
+
args.GetReturnValue().Set(ret);
|
|
905
|
+
return;
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
args.GetReturnValue().SetUndefined();
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
void MatrixImpl::TranslateSelf(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
913
|
+
auto count = args.Length();
|
|
914
|
+
auto isolate = args.GetIsolate();
|
|
915
|
+
|
|
916
|
+
MatrixImpl *ptr = GetPointer(args.This());
|
|
917
|
+
|
|
918
|
+
if (count >= 2) {
|
|
919
|
+
auto context = isolate->GetCurrentContext();
|
|
920
|
+
auto x = args[0];
|
|
921
|
+
auto y = args[1];
|
|
922
|
+
|
|
923
|
+
canvas_native_matrix_translate_self(ptr->GetMatrix(),
|
|
924
|
+
(float) x->NumberValue(context).ToChecked(),
|
|
925
|
+
(float) y->NumberValue(context).ToChecked());
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
void MatrixImpl::MultiplySelf(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
930
|
+
auto count = args.Length();
|
|
931
|
+
auto isolate = args.GetIsolate();
|
|
932
|
+
|
|
933
|
+
MatrixImpl *ptr = GetPointer(args.This());
|
|
934
|
+
|
|
935
|
+
if (count >= 1) {
|
|
936
|
+
auto context = isolate->GetCurrentContext();
|
|
937
|
+
auto value = args[0];
|
|
938
|
+
auto type = GetNativeType(value);
|
|
939
|
+
if (type == NativeType::Matrix) {
|
|
940
|
+
auto matrix = GetPointer(value.As<v8::Object>());
|
|
941
|
+
canvas_native_matrix_multiply_self(ptr->GetMatrix(), matrix->GetMatrix());
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
void MatrixImpl::PremultiplySelf(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
947
|
+
auto count = args.Length();
|
|
948
|
+
auto isolate = args.GetIsolate();
|
|
949
|
+
|
|
950
|
+
MatrixImpl *ptr = GetPointer(args.This());
|
|
951
|
+
|
|
952
|
+
if (count >= 1) {
|
|
953
|
+
auto context = isolate->GetCurrentContext();
|
|
954
|
+
auto value = args[0];
|
|
955
|
+
auto type = GetNativeType(value);
|
|
956
|
+
if (type == NativeType::Matrix) {
|
|
957
|
+
auto matrix = GetPointer(value.As<v8::Object>());
|
|
958
|
+
canvas_native_matrix_premultiply_self(ptr->GetMatrix(), matrix->GetMatrix());
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
void MatrixImpl::ScaleNonUniform(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
964
|
+
auto count = args.Length();
|
|
965
|
+
auto isolate = args.GetIsolate();
|
|
966
|
+
|
|
967
|
+
|
|
968
|
+
if (count >= 3) {
|
|
969
|
+
auto context = isolate->GetCurrentContext();
|
|
970
|
+
auto sx = args[0];
|
|
971
|
+
auto sy = args[1];
|
|
972
|
+
auto value = args[2];
|
|
973
|
+
auto type = GetNativeType(value);
|
|
974
|
+
if (type == NativeType::Matrix) {
|
|
975
|
+
auto ptr = MatrixImpl::GetPointer(value.As<v8::Object>());
|
|
976
|
+
auto matrix = canvas_native_matrix_scale_non_uniform(
|
|
977
|
+
(float) sx->NumberValue(context).ToChecked(),
|
|
978
|
+
(float) sy->NumberValue(context).ToChecked(),
|
|
979
|
+
ptr->GetMatrix());
|
|
980
|
+
if (matrix == nullptr) {
|
|
981
|
+
args.GetReturnValue().SetUndefined();
|
|
982
|
+
return;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
auto ret = MatrixImpl::GetCtor(isolate)->GetFunction(
|
|
987
|
+
context).ToLocalChecked()->NewInstance(context).ToLocalChecked();
|
|
988
|
+
auto object = new MatrixImpl(matrix);
|
|
989
|
+
|
|
990
|
+
ret->SetAlignedPointerInInternalField(0, object);
|
|
991
|
+
|
|
992
|
+
SetNativeType(ret, NativeType::Matrix);
|
|
993
|
+
|
|
994
|
+
object->BindFinalizer(isolate, ret);
|
|
995
|
+
|
|
996
|
+
args.GetReturnValue().Set(ret);
|
|
997
|
+
return;
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
args.GetReturnValue().SetUndefined();
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
void MatrixImpl::ScaleNonUniformSelf(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
1005
|
+
auto count = args.Length();
|
|
1006
|
+
auto isolate = args.GetIsolate();
|
|
1007
|
+
|
|
1008
|
+
MatrixImpl *ptr = GetPointer(args.This());
|
|
1009
|
+
|
|
1010
|
+
if (count >= 2) {
|
|
1011
|
+
auto context = isolate->GetCurrentContext();
|
|
1012
|
+
auto x = args[0];
|
|
1013
|
+
auto y = args[1];
|
|
1014
|
+
canvas_native_matrix_scale_non_uniform_self(ptr->GetMatrix(),
|
|
1015
|
+
(float) x->NumberValue(context).ToChecked(),
|
|
1016
|
+
(float) y->NumberValue(context).ToChecked());
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
void MatrixImpl::Rotate(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
1021
|
+
auto count = args.Length();
|
|
1022
|
+
auto isolate = args.GetIsolate();
|
|
1023
|
+
|
|
1024
|
+
|
|
1025
|
+
if (count >= 4) {
|
|
1026
|
+
auto context = isolate->GetCurrentContext();
|
|
1027
|
+
auto angle = args[0];
|
|
1028
|
+
auto cx = args[1];
|
|
1029
|
+
auto cy = args[2];
|
|
1030
|
+
auto value = args[3];
|
|
1031
|
+
auto type = GetNativeType(value);
|
|
1032
|
+
if (type == NativeType::Matrix) {
|
|
1033
|
+
auto ptr = MatrixImpl::GetPointer(value.As<v8::Object>());
|
|
1034
|
+
auto matrix = canvas_native_matrix_rotate(
|
|
1035
|
+
(float) angle->NumberValue(context).ToChecked(),
|
|
1036
|
+
(float) cx->NumberValue(context).ToChecked(),
|
|
1037
|
+
(float) cy->NumberValue(context).ToChecked(),
|
|
1038
|
+
ptr->GetMatrix());
|
|
1039
|
+
if (matrix == nullptr) {
|
|
1040
|
+
args.GetReturnValue().SetUndefined();
|
|
1041
|
+
return;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
|
|
1045
|
+
auto ret = MatrixImpl::GetCtor(isolate)->GetFunction(
|
|
1046
|
+
context).ToLocalChecked()->NewInstance(context).ToLocalChecked();
|
|
1047
|
+
auto object = new MatrixImpl(matrix);
|
|
1048
|
+
|
|
1049
|
+
ret->SetAlignedPointerInInternalField(0, object);
|
|
1050
|
+
|
|
1051
|
+
SetNativeType(ret, NativeType::Matrix);
|
|
1052
|
+
|
|
1053
|
+
object->BindFinalizer(isolate, ret);
|
|
1054
|
+
|
|
1055
|
+
args.GetReturnValue().Set(ret);
|
|
1056
|
+
return;
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
args.GetReturnValue().SetUndefined();
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
void MatrixImpl::RotateSelf(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
1064
|
+
auto count = args.Length();
|
|
1065
|
+
auto isolate = args.GetIsolate();
|
|
1066
|
+
|
|
1067
|
+
MatrixImpl *ptr = GetPointer(args.This());
|
|
1068
|
+
|
|
1069
|
+
if (count >= 2) {
|
|
1070
|
+
auto context = isolate->GetCurrentContext();
|
|
1071
|
+
auto angle = args[0];
|
|
1072
|
+
auto cx = args[1];
|
|
1073
|
+
auto cy = args[2];
|
|
1074
|
+
canvas_native_matrix_rotate_self(ptr->GetMatrix(),
|
|
1075
|
+
(float) angle->NumberValue(context).ToChecked(),
|
|
1076
|
+
(float) cx->NumberValue(context).ToChecked(),
|
|
1077
|
+
(float) cy->NumberValue(context).ToChecked());
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
void MatrixImpl::SkewX(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
1082
|
+
auto count = args.Length();
|
|
1083
|
+
auto isolate = args.GetIsolate();
|
|
1084
|
+
|
|
1085
|
+
|
|
1086
|
+
if (count >= 2) {
|
|
1087
|
+
auto context = isolate->GetCurrentContext();
|
|
1088
|
+
auto angle = args[0];
|
|
1089
|
+
auto value = args[1];
|
|
1090
|
+
auto type = GetNativeType(value);
|
|
1091
|
+
if (type == NativeType::Matrix) {
|
|
1092
|
+
auto ptr = MatrixImpl::GetPointer(value.As<v8::Object>());
|
|
1093
|
+
auto matrix = canvas_native_matrix_skew_x(
|
|
1094
|
+
(float) angle->NumberValue(context).ToChecked(),
|
|
1095
|
+
ptr->GetMatrix());
|
|
1096
|
+
if (matrix == nullptr) {
|
|
1097
|
+
args.GetReturnValue().SetUndefined();
|
|
1098
|
+
return;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
|
|
1102
|
+
auto ret = MatrixImpl::GetCtor(isolate)->GetFunction(
|
|
1103
|
+
context).ToLocalChecked()->NewInstance(context).ToLocalChecked();
|
|
1104
|
+
auto object = new MatrixImpl(matrix);
|
|
1105
|
+
|
|
1106
|
+
ret->SetAlignedPointerInInternalField(0, object);
|
|
1107
|
+
|
|
1108
|
+
SetNativeType(ret, NativeType::Matrix);
|
|
1109
|
+
|
|
1110
|
+
object->BindFinalizer(isolate, ret);
|
|
1111
|
+
|
|
1112
|
+
args.GetReturnValue().Set(ret);
|
|
1113
|
+
return;
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
args.GetReturnValue().SetUndefined();
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
void MatrixImpl::SkewXSelf(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
1121
|
+
auto count = args.Length();
|
|
1122
|
+
auto isolate = args.GetIsolate();
|
|
1123
|
+
|
|
1124
|
+
MatrixImpl *ptr = GetPointer(args.This());
|
|
1125
|
+
|
|
1126
|
+
if (count >= 1) {
|
|
1127
|
+
auto context = isolate->GetCurrentContext();
|
|
1128
|
+
auto angle = args[0];
|
|
1129
|
+
canvas_native_matrix_skew_x_self(ptr->GetMatrix(),
|
|
1130
|
+
(float) angle->NumberValue(context).ToChecked());
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
void MatrixImpl::SkewY(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
1135
|
+
auto count = args.Length();
|
|
1136
|
+
auto isolate = args.GetIsolate();
|
|
1137
|
+
|
|
1138
|
+
|
|
1139
|
+
if (count >= 2) {
|
|
1140
|
+
auto context = isolate->GetCurrentContext();
|
|
1141
|
+
auto angle = args[0];
|
|
1142
|
+
auto value = args[1];
|
|
1143
|
+
auto type = GetNativeType(value);
|
|
1144
|
+
if (type == NativeType::Matrix) {
|
|
1145
|
+
auto ptr = MatrixImpl::GetPointer(value.As<v8::Object>());
|
|
1146
|
+
auto matrix = canvas_native_matrix_skew_y(
|
|
1147
|
+
angle->NumberValue(context).ToChecked(),
|
|
1148
|
+
ptr->GetMatrix());
|
|
1149
|
+
if (matrix == nullptr) {
|
|
1150
|
+
args.GetReturnValue().SetUndefined();
|
|
1151
|
+
return;
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
|
|
1155
|
+
auto ret = MatrixImpl::GetCtor(isolate)->GetFunction(
|
|
1156
|
+
context).ToLocalChecked()->NewInstance(context).ToLocalChecked();
|
|
1157
|
+
auto object = new MatrixImpl(matrix);
|
|
1158
|
+
|
|
1159
|
+
ret->SetAlignedPointerInInternalField(0, object);
|
|
1160
|
+
|
|
1161
|
+
SetNativeType(ret, NativeType::Matrix);
|
|
1162
|
+
|
|
1163
|
+
object->BindFinalizer(isolate, ret);
|
|
1164
|
+
|
|
1165
|
+
args.GetReturnValue().Set(ret);
|
|
1166
|
+
return;
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
args.GetReturnValue().SetUndefined();
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
void MatrixImpl::SkewYSelf(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
1174
|
+
auto count = args.Length();
|
|
1175
|
+
auto isolate = args.GetIsolate();
|
|
1176
|
+
|
|
1177
|
+
MatrixImpl *ptr = GetPointer(args.This());
|
|
1178
|
+
|
|
1179
|
+
if (count >= 1) {
|
|
1180
|
+
auto context = isolate->GetCurrentContext();
|
|
1181
|
+
auto angle = args[0];
|
|
1182
|
+
canvas_native_matrix_skew_y_self(ptr->GetMatrix(),
|
|
1183
|
+
(float) angle->NumberValue(context).ToChecked());
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
void MatrixImpl::Clone(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
|
1188
|
+
auto isolate = args.GetIsolate();
|
|
1189
|
+
auto context = isolate->GetCurrentContext();
|
|
1190
|
+
MatrixImpl *ptr = GetPointer(args.This());
|
|
1191
|
+
|
|
1192
|
+
auto matrix = canvas_native_matrix_clone(ptr->GetMatrix());
|
|
1193
|
+
|
|
1194
|
+
|
|
1195
|
+
auto ret = MatrixImpl::GetCtor(isolate)->GetFunction(
|
|
1196
|
+
context).ToLocalChecked()->NewInstance(context).ToLocalChecked();
|
|
1197
|
+
auto object = new MatrixImpl(matrix);
|
|
1198
|
+
|
|
1199
|
+
ret->SetAlignedPointerInInternalField(0, object);
|
|
1200
|
+
|
|
1201
|
+
SetNativeType(ret, NativeType::Matrix);
|
|
1202
|
+
|
|
1203
|
+
object->BindFinalizer(isolate, ret);
|
|
1204
|
+
|
|
1205
|
+
args.GetReturnValue().Set(ret);
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
|
|
805
1209
|
Matrix *MatrixImpl::GetMatrix() {
|
|
806
1210
|
return this->matrix_;
|
|
807
1211
|
}
|
|
1212
|
+
|
|
1213
|
+
|
|
@@ -184,6 +184,33 @@ public:
|
|
|
184
184
|
v8::Local<v8::Value> value,
|
|
185
185
|
const v8::PropertyCallbackInfo<void> &info);
|
|
186
186
|
|
|
187
|
+
|
|
188
|
+
static void Translate(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
189
|
+
|
|
190
|
+
static void TranslateSelf(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
191
|
+
|
|
192
|
+
static void MultiplySelf(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
193
|
+
|
|
194
|
+
static void PremultiplySelf(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
195
|
+
|
|
196
|
+
static void ScaleNonUniform(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
197
|
+
|
|
198
|
+
static void ScaleNonUniformSelf(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
199
|
+
|
|
200
|
+
static void Rotate(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
201
|
+
|
|
202
|
+
static void RotateSelf(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
203
|
+
|
|
204
|
+
static void SkewX(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
205
|
+
|
|
206
|
+
static void SkewXSelf(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
207
|
+
|
|
208
|
+
static void SkewY(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
209
|
+
|
|
210
|
+
static void SkewYSelf(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
211
|
+
|
|
212
|
+
static void Clone(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
213
|
+
|
|
187
214
|
private:
|
|
188
215
|
Matrix* matrix_;
|
|
189
216
|
};
|