@nativescript/canvas 2.0.0-alpha.18 → 2.0.0-alpha.19

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativescript/canvas",
3
- "version": "2.0.0-alpha.18",
3
+ "version": "2.0.0-alpha.19",
4
4
  "description": "DOM Canvas API for NativeScript",
5
5
  "main": "index",
6
6
  "typings": "index.d.ts",
@@ -22,11 +22,11 @@
22
22
  </data>
23
23
  <key>Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo</key>
24
24
  <data>
25
- tVpTLSI/RNyKgyxid5VqBsQ7cdI=
25
+ On3HtPq5afxCCYU68MUvC1yT82U=
26
26
  </data>
27
27
  <key>Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo</key>
28
28
  <data>
29
- +hGqd7ZyIf7HQWbjUTMnOqAQVak=
29
+ clOTNiLAgvXBDL2gvHd4zCjPH0c=
30
30
  </data>
31
31
  <key>Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
32
32
  <data>
@@ -104,14 +104,14 @@
104
104
  <dict>
105
105
  <key>hash2</key>
106
106
  <data>
107
- BPlf97wXai5B19FWvpVIqAmRXUuxKh3Rkm0RyQZexBI=
107
+ NibRSZP8YMDNnP2TFqAgquM09kCsJwEt65eYSYAdzvc=
108
108
  </data>
109
109
  </dict>
110
110
  <key>Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo</key>
111
111
  <dict>
112
112
  <key>hash2</key>
113
113
  <data>
114
- FQR0+yYxLDNvomY5yLenamKgjmEyaA8QuVizfqkvNdE=
114
+ bZnVf7oVUWpFT0SGglL+jWa5KCgf3/+VNCxaaChKHgI=
115
115
  </data>
116
116
  </dict>
117
117
  <key>Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
@@ -2125,20 +2125,22 @@ jsi::Value WebGL2RenderingContext::get(jsi::Runtime &runtime, const jsi::PropNam
2125
2125
  const jsi::Value &thisValue,
2126
2126
  const jsi::Value *arguments,
2127
2127
  size_t count) -> jsi::Value {
2128
-
2129
- if (count > 1) {
2130
- auto condition = (uint32_t) arguments[0].asNumber();
2131
- auto flags = (uint32_t) arguments[1].asNumber();
2132
- canvas_native_webgl2_fence_sync(
2133
- condition,
2134
- flags,
2135
- this->GetState()
2136
- );
2137
- }
2138
-
2139
- return jsi::Value::undefined();
2140
- }
2141
- );
2128
+
2129
+ if (count > 1) {
2130
+ auto condition = (uint32_t) arguments[0].asNumber();
2131
+ auto flags = (uint32_t) arguments[1].asNumber();
2132
+ auto sync = canvas_native_webgl2_fence_sync(
2133
+ condition,
2134
+ flags,
2135
+ this->GetState()
2136
+ );
2137
+
2138
+ return jsi::Object::createFromHostObject(runtime, std::make_shared<WebGLSyncImpl>(std::move(sync)));
2139
+ }
2140
+
2141
+ return jsi::Value::undefined();
2142
+ }
2143
+ );
2142
2144
  } else if (methodName == "framebufferTextureLayer") {
2143
2145
  return jsi::Function::createFromHostFunction(runtime,
2144
2146
  jsi::PropNameID::forAscii(runtime, methodName),