@nativescript/canvas 2.0.0-alpha.19 → 2.0.0-alpha.20
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/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/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/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.mm +19 -13
package/package.json
CHANGED
|
Binary file
|
package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -2384,7 +2384,7 @@ jsi::Value WebGL2RenderingContext::get(jsi::Runtime &runtime, const jsi::PropNam
|
|
|
2384
2384
|
} else if (methodName == "getBufferSubData") {
|
|
2385
2385
|
return jsi::Function::createFromHostFunction(runtime,
|
|
2386
2386
|
jsi::PropNameID::forAscii(runtime, methodName),
|
|
2387
|
-
|
|
2387
|
+
5,
|
|
2388
2388
|
[this](jsi::Runtime &runtime,
|
|
2389
2389
|
const jsi::Value &thisValue,
|
|
2390
2390
|
const jsi::Value *arguments,
|
|
@@ -2400,18 +2400,24 @@ jsi::Value WebGL2RenderingContext::get(jsi::Runtime &runtime, const jsi::PropNam
|
|
|
2400
2400
|
|
|
2401
2401
|
if (dstDataObject.isTypedArray(
|
|
2402
2402
|
runtime)) {
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2403
|
+
|
|
2404
|
+
|
|
2405
|
+
auto array = dstDataObject.getTypedArray(
|
|
2406
|
+
runtime);
|
|
2407
|
+
|
|
2408
|
+
auto size = array.size(runtime) / array.length(runtime);
|
|
2409
|
+
|
|
2410
|
+
ssize_t dstOffsetValue = 0;
|
|
2411
|
+
if (arguments[3].isNumber()) {
|
|
2412
|
+
dstOffsetValue = static_cast<ssize_t>(arguments[3].asNumber()) * size;
|
|
2413
|
+
}
|
|
2414
|
+
|
|
2415
|
+
ssize_t lengthValue = 0;
|
|
2416
|
+
if (arguments[4].isNumber()) {
|
|
2417
|
+
lengthValue = static_cast<ssize_t>(arguments[4].asNumber()) * size;
|
|
2418
|
+
}
|
|
2419
|
+
|
|
2420
|
+
|
|
2415
2421
|
auto slice = GetTypedArrayData<uint8_t>(
|
|
2416
2422
|
runtime, array);
|
|
2417
2423
|
|