@zyzgroup/core-web 0.1.54 → 0.1.55

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.
@@ -14232,7 +14232,6 @@ function hy(n, t) {
14232
14232
  return e.on("touchStart", s), () => e.off("touchStart", s);
14233
14233
  }
14234
14234
  class cy {
14235
- closed = !1;
14236
14235
  multicast;
14237
14236
  buffer;
14238
14237
  handlers = Oi(10);
@@ -14242,15 +14241,14 @@ class cy {
14242
14241
  this.buffer = t?.buffer || Oi(10), this.multicast = typeof t?.multicast == "boolean" ? t?.multicast : !1;
14243
14242
  }
14244
14243
  put(t) {
14245
- if (!this.closed)
14246
- if (this.multicast)
14247
- this.handlers.flush().forEach((e) => e(t));
14248
- else {
14249
- if (this.handlers.length === 0)
14250
- return this.buffer.put(t);
14251
- const e = this.handlers.take();
14252
- e && e(t);
14253
- }
14244
+ if (this.multicast) {
14245
+ this.handlers.flush().forEach((s) => s(t));
14246
+ return;
14247
+ }
14248
+ if (this.handlers.length === 0)
14249
+ return this.buffer.put(t);
14250
+ const e = this.handlers.take();
14251
+ e && e(t);
14254
14252
  }
14255
14253
  take(t) {
14256
14254
  if (!this.multicast) {
@@ -14260,14 +14258,11 @@ class cy {
14260
14258
  return;
14261
14259
  }
14262
14260
  }
14263
- this.closed || this.handlers.put(t);
14261
+ this.handlers.put(t);
14264
14262
  }
14265
14263
  flush(t) {
14266
14264
  this.multicast || this.buffer.flush().forEach(t);
14267
14265
  }
14268
- close() {
14269
- this.closed || (this.closed = !0, this.handlers.clear());
14270
- }
14271
14266
  }
14272
14267
  let ci = class {
14273
14268
  x;
@@ -18412,6 +18407,7 @@ function wy(n = document.documentElement, t = "canvas") {
18412
18407
  mousePoint: d.current,
18413
18408
  shapes: a,
18414
18409
  draw: x,
18410
+ ctx: r,
18415
18411
  unsubscribe: () => {
18416
18412
  o.unsubscribe(), f.unsubscribe();
18417
18413
  },