@octane-xplat/canvas 0.11.1 → 0.13.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 1,
3
- "buildId": "7c50d10e-9318-4788-ac47-7634fcda18b7",
3
+ "buildId": "a8549468-78d7-4b4f-abe5-9bc68f4c61c2",
4
4
  "mode": "production",
5
5
  "capabilities": {
6
6
  "independentHydration": false
@@ -1,7 +1,6 @@
1
1
  import { __s, bag7, clone, queueRefAttach, queueRefDetach, setStyle, template } from "octane";
2
- import { bindSignalAttribute, enableSignalBindings, replaceRef, setPlainAttribute } from "octane/internal/client";
2
+ import { replaceRef, setClassNameIfChanged, setPlainAttributeIfChanged } from "octane/internal/client";
3
3
  //#region src/Canvas.web.tsrx
4
- enableSignalBindings(1, true);
5
4
  var _t$0 = /* @__PURE__ */ template("<canvas></canvas>");
6
5
  var _rm$0 = [
7
6
  "r",
@@ -11,18 +10,17 @@ var _rm$0 = [
11
10
  var Canvas = /* @__PURE__ */ __s(function Canvas(props, __s, __extra) {
12
11
  let _b = __s.slots[0];
13
12
  if (_b === void 0) {
14
- let _m1, _m6;
13
+ let _m6;
15
14
  const _root = clone(_t$0);
16
- _m1 = _root;
17
15
  queueRefAttach(__s, _m6 = (el) => {
18
16
  if (!el) return;
19
17
  props.onReady?.({
20
18
  canvas: el,
21
19
  context: props.context ? el.getContext(props.context) : null
22
20
  });
23
- }, _m1);
21
+ }, _root);
24
22
  (__s.cleanups ??= []).push(() => _b && queueRefDetach(_b.g, _b.b));
25
- _b = bag7(__s, _root, void 0, _m1, void 0, void 0, void 0, void 0, _m6);
23
+ _b = bag7(__s, _root, void 0, _root, void 0, void 0, void 0, void 0, _m6);
26
24
  __s.refFields = _rm$0;
27
25
  } else {
28
26
  const _r = (el) => {
@@ -34,8 +32,8 @@ var Canvas = /* @__PURE__ */ __s(function Canvas(props, __s, __extra) {
34
32
  };
35
33
  if (_r !== _b.g) _b.g = replaceRef(__s, _b.g, _r, _b.b);
36
34
  }
37
- _b.a = bindSignalAttribute(__s, _b.a, _b.b, "id", props.id, "b:f0c24829", setPlainAttribute);
38
- _b.c = bindSignalAttribute(__s, _b.c, _b.b, "class", props.className, "b:ea9117bd", "class");
35
+ _b.a = setPlainAttributeIfChanged(props.id, _b.a, _b.b, "id");
36
+ _b.c = setClassNameIfChanged(props.className, _b.c, _b.b);
39
37
  {
40
38
  const _v = props.style;
41
39
  if (_b.d !== _v) {
@@ -43,8 +41,8 @@ var Canvas = /* @__PURE__ */ __s(function Canvas(props, __s, __extra) {
43
41
  _b.d = _v;
44
42
  }
45
43
  }
46
- _b.e = bindSignalAttribute(__s, _b.e, _b.b, "width", typeof props.width === "number" ? props.width : void 0, "b:b4becda6", setPlainAttribute);
47
- _b.f = bindSignalAttribute(__s, _b.f, _b.b, "height", typeof props.height === "number" ? props.height : void 0, "b:7ec30b3a", setPlainAttribute);
44
+ _b.e = setPlainAttributeIfChanged(typeof props.width === "number" ? props.width : void 0, _b.e, _b.b, "width");
45
+ _b.f = setPlainAttributeIfChanged(typeof props.height === "number" ? props.height : void 0, _b.f, _b.b, "height");
48
46
  });
49
47
  //#endregion
50
48
  export { Canvas };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 1,
3
- "buildId": "0ea42df6-0a9f-41aa-b4a9-297dada0bf34",
3
+ "buildId": "73a9b219-f088-44b6-be0d-1e6150a84567",
4
4
  "mode": "production",
5
5
  "capabilities": {
6
6
  "independentHydration": false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octane-xplat/canvas",
3
- "version": "0.11.1",
3
+ "version": "0.13.0",
4
4
  "description": "Canvas/GPU surface for Octane xplat — web <canvas> + @nativescript/canvas (2D, WebGL/WebGL2, WebGPU/WGSL)",
5
5
  "keywords": [
6
6
  "canvas",
@@ -44,9 +44,9 @@
44
44
  },
45
45
  "devDependencies": {
46
46
  "@nativescript-community/octane": "0.2.4",
47
- "@nativescript/core": "9.1.2",
47
+ "@nativescript/core": "9.1.3",
48
48
  "@octanejs/vite-plugin": "0.1.61",
49
- "octane": "0.6.3",
49
+ "octane": "0.11.0",
50
50
  "tsrx-typegen": "0.2.2",
51
51
  "typescript": "5.9.3",
52
52
  "vite": "8.3.0"