aurea-eden 1.46.3 → 1.46.4
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/bpmn-diagram.es.js +10 -3
- package/dist/bpmn-diagram.umd.js +1 -1
- package/lib/elements/Element.js +16 -3
- package/package.json +1 -1
package/dist/bpmn-diagram.es.js
CHANGED
|
@@ -60443,7 +60443,7 @@ SPREAD LOG: Target ${nodeId} Port ${basePort}`);
|
|
|
60443
60443
|
return text.replace(/\n/g, "\\n").replace(/'/g, "\\'");
|
|
60444
60444
|
}
|
|
60445
60445
|
}
|
|
60446
|
-
const version = "1.46.
|
|
60446
|
+
const version = "1.46.4";
|
|
60447
60447
|
var Easing = Object.freeze({
|
|
60448
60448
|
Linear: Object.freeze({
|
|
60449
60449
|
None: function(amount) {
|
|
@@ -66393,7 +66393,7 @@ class Element extends Mesh {
|
|
|
66393
66393
|
*/
|
|
66394
66394
|
updateSpriteLabel(sprite, text, color = null) {
|
|
66395
66395
|
if (!sprite || !sprite.userData || !sprite.userData.context) return;
|
|
66396
|
-
|
|
66396
|
+
let { canvas, context, parameters } = sprite.userData;
|
|
66397
66397
|
const { scaledFontSize, scaledPadding, scaledBorderRadius, bgColor, taskType, color: defaultColor, borderColor, borderWidth, resolutionScale, mainHeight, tailHeight } = parameters;
|
|
66398
66398
|
const horizontalPadding = scaledPadding * 3.5;
|
|
66399
66399
|
context.font = `Bold ${scaledFontSize}px Arial`;
|
|
@@ -66402,7 +66402,14 @@ class Element extends Mesh {
|
|
|
66402
66402
|
const iconSize = taskType ? scaledFontSize : 0;
|
|
66403
66403
|
const requiredWidth = textWidth + horizontalPadding * 2 + (taskType ? iconSize + scaledPadding : 0);
|
|
66404
66404
|
if (requiredWidth > canvas.width) {
|
|
66405
|
-
|
|
66405
|
+
const newCanvas = document.createElement("canvas");
|
|
66406
|
+
newCanvas.width = requiredWidth;
|
|
66407
|
+
newCanvas.height = canvas.height;
|
|
66408
|
+
const newContext = newCanvas.getContext("2d");
|
|
66409
|
+
canvas = newCanvas;
|
|
66410
|
+
context = newContext;
|
|
66411
|
+
sprite.userData.canvas = canvas;
|
|
66412
|
+
sprite.userData.context = context;
|
|
66406
66413
|
context.font = `Bold ${scaledFontSize}px Arial`;
|
|
66407
66414
|
const worldScale = 0.4 / resolutionScale;
|
|
66408
66415
|
sprite.scale.set(canvas.width * worldScale, (mainHeight + tailHeight) * worldScale, 1);
|