@kubohiroya/turbowarp-plus-editor-code-views 0.21.1 → 0.21.2
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/script-arrows.js +3 -4
- package/package.json +1 -1
- package/src/script-arrows.ts +3 -4
- package/src/styles.css +3 -1
package/dist/script-arrows.js
CHANGED
|
@@ -252,10 +252,9 @@ export function attachScriptArrows({ workspace, vm, getTarget, getRelations, get
|
|
|
252
252
|
const head = `M ${end.x - 9} ${end.y - 5} L ${end.x} ${end.y} L ${end.x - 9} ${end.y + 5}`;
|
|
253
253
|
let waitTransform;
|
|
254
254
|
if (relation.kind === 'message' && relation.wait) {
|
|
255
|
-
const
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
waitTransform = `translate(${point.x} ${point.y}) scale(${1 / scale})`;
|
|
255
|
+
const point = waitBadgePoint(path, 24);
|
|
256
|
+
badgePoint = { x: point.x + 16, y: point.y + 4 };
|
|
257
|
+
waitTransform = `translate(${point.x} ${point.y})`;
|
|
259
258
|
}
|
|
260
259
|
return { path, head, recursive, badgePoint, waitTransform };
|
|
261
260
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubohiroya/turbowarp-plus-editor-code-views",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.2",
|
|
4
4
|
"description": "Code views for TurboWarp Plus Editor: code in tabs and windows, the detached block palette, script layout and block field editing",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MPL-2.0",
|
package/src/script-arrows.ts
CHANGED
|
@@ -277,10 +277,9 @@ export function attachScriptArrows({workspace, vm, getTarget, getRelations, getL
|
|
|
277
277
|
const head = `M ${end.x - 9} ${end.y - 5} L ${end.x} ${end.y} L ${end.x - 9} ${end.y + 5}`;
|
|
278
278
|
let waitTransform: string | undefined;
|
|
279
279
|
if (relation.kind === 'message' && relation.wait) {
|
|
280
|
-
const
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
waitTransform = `translate(${point.x} ${point.y}) scale(${1 / scale})`;
|
|
280
|
+
const point = waitBadgePoint(path, 24);
|
|
281
|
+
badgePoint = {x: point.x + 16, y: point.y + 4};
|
|
282
|
+
waitTransform = `translate(${point.x} ${point.y})`;
|
|
284
283
|
}
|
|
285
284
|
return {path, head, recursive, badgePoint, waitTransform};
|
|
286
285
|
}
|
package/src/styles.css
CHANGED
|
@@ -593,7 +593,9 @@
|
|
|
593
593
|
stroke-opacity: 0.2;
|
|
594
594
|
}
|
|
595
595
|
|
|
596
|
-
|
|
596
|
+
/* Fade external connections without reducing the wait icon's opacity. */
|
|
597
|
+
[data-script-relation-layer] > [data-script-relation][data-script-external] >
|
|
598
|
+
:is(.tw-script-relation-line, .tw-script-relation-head, .tw-script-relation-badge) {
|
|
597
599
|
opacity: 0.05;
|
|
598
600
|
}
|
|
599
601
|
|