@meta2d/core 1.0.81 → 1.0.82
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 +1 -1
- package/src/canvas/canvas.d.ts +1 -0
- package/src/canvas/canvas.js +29 -0
- package/src/canvas/canvas.js.map +1 -1
- package/src/core.js +2 -2
- package/src/core.js.map +1 -1
- package/src/diagrams/video.js +3 -0
- package/src/diagrams/video.js.map +1 -1
- package/src/dialog/dialog.js +0 -1
- package/src/dialog/dialog.js.map +1 -1
- package/src/pen/model.d.ts +13 -9
- package/src/pen/model.js +7 -0
- package/src/pen/model.js.map +1 -1
- package/src/pen/render.js +137 -59
- package/src/pen/render.js.map +1 -1
package/src/core.js
CHANGED
|
@@ -234,7 +234,7 @@ export class Meta2d {
|
|
|
234
234
|
let keys = url.match(/\$\{([^}]+)\}/g)?.map(m => m.slice(2, -1));
|
|
235
235
|
if (keys) {
|
|
236
236
|
keys?.forEach((key) => {
|
|
237
|
-
url = url.replace(`\${${key}}`, pen[key]);
|
|
237
|
+
url = url.replace(`\${${key}}`, pen[key] || this.getDynamicParam(key));
|
|
238
238
|
});
|
|
239
239
|
}
|
|
240
240
|
}
|
|
@@ -434,7 +434,7 @@ export class Meta2d {
|
|
|
434
434
|
let keys = e.params.match(/\$\{([^}]+)\}/g)?.map(m => m.slice(2, -1));
|
|
435
435
|
if (keys) {
|
|
436
436
|
keys?.forEach((key) => {
|
|
437
|
-
url = url.replace(`\${${key}}`, pen[key]);
|
|
437
|
+
url = url.replace(`\${${key}}`, pen[key] || this.getDynamicParam(key));
|
|
438
438
|
});
|
|
439
439
|
}
|
|
440
440
|
}
|