@meta2d/core 1.1.6 → 1.1.8
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 +40 -40
- package/src/canvas/canvas.js +8 -7
- package/src/canvas/canvas.js.map +1 -1
- package/src/core.js +7 -6
- package/src/core.js.map +1 -1
- package/src/dialog/dialog.js +60 -60
- package/src/message/message.js +18 -18
- package/src/utils/jetLinks.js +7 -7
- package/src/diagrams/iterator.d.ts +0 -0
- package/src/diagrams/iterator.js +0 -109
- package/src/diagrams/iterator.js.map +0 -1
package/src/core.js
CHANGED
|
@@ -4279,12 +4279,12 @@ export class Meta2d {
|
|
|
4279
4279
|
}
|
|
4280
4280
|
let mySerializedSVG = ctx.getSerializedSvg();
|
|
4281
4281
|
if (defs?.length) {
|
|
4282
|
-
mySerializedSVG = mySerializedSVG.replace('<defs/>', `<defs>
|
|
4283
|
-
<style type="text/css">
|
|
4284
|
-
${defs.join('\n')}
|
|
4285
|
-
</style>
|
|
4286
|
-
{{bk}}
|
|
4287
|
-
</defs>
|
|
4282
|
+
mySerializedSVG = mySerializedSVG.replace('<defs/>', `<defs>
|
|
4283
|
+
<style type="text/css">
|
|
4284
|
+
${defs.join('\n')}
|
|
4285
|
+
</style>
|
|
4286
|
+
{{bk}}
|
|
4287
|
+
</defs>
|
|
4288
4288
|
{{bkRect}}`);
|
|
4289
4289
|
}
|
|
4290
4290
|
if (background) {
|
|
@@ -5287,6 +5287,7 @@ export class Meta2d {
|
|
|
5287
5287
|
this.store.data.y = y;
|
|
5288
5288
|
for (const pen of this.store.data.pens) {
|
|
5289
5289
|
calcInView(pen);
|
|
5290
|
+
pen.onMove?.(pen);
|
|
5290
5291
|
}
|
|
5291
5292
|
this.canvas.canvasImage.init();
|
|
5292
5293
|
this.canvas.canvasImageBottom.init();
|