@tradecanvas/core 2.5.0 → 2.6.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/dist/drawings/DrawingManager.d.ts +2 -0
- package/dist/drawings/DrawingManager.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/interaction/InteractionManager.d.ts +1 -1
- package/dist/interaction/InteractionManager.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -13377,7 +13377,7 @@ var Ip = class {
|
|
|
13377
13377
|
let a = e();
|
|
13378
13378
|
if (!a || this.drawingManager?.justFinished()) return;
|
|
13379
13379
|
let o = this.drawingManager?.drawingAt(n, a, r);
|
|
13380
|
-
o && this.onDrawingDoubleClick?.(o);
|
|
13380
|
+
o && this.onDrawingDoubleClick?.(o, n);
|
|
13381
13381
|
}, b = (e) => {
|
|
13382
13382
|
if (e.button !== 0 && e.type === "mouseup" || !s) return;
|
|
13383
13383
|
d();
|
|
@@ -16250,6 +16250,10 @@ var s_ = class {
|
|
|
16250
16250
|
getPlugin(e) {
|
|
16251
16251
|
return this.registry.get(e) ?? null;
|
|
16252
16252
|
}
|
|
16253
|
+
textSizeOf(e) {
|
|
16254
|
+
let t = this.drawings.find((t) => t.id === e);
|
|
16255
|
+
return t ? Ni(t.style) : null;
|
|
16256
|
+
}
|
|
16253
16257
|
textBoxOf(e, t) {
|
|
16254
16258
|
let n = this.drawings.find((t) => t.id === e), r = n ? this.viewportFor(n.paneId, t) : null;
|
|
16255
16259
|
return !n || !r ? null : this.registry.get(n.type)?.textBox?.(n, r) ?? null;
|