From 5621a8b0f52ff14a7e94b76093fb12e7fc3a9d11 Mon Sep 17 00:00:00 2001 From: Stephan Brunner Date: Wed, 10 Jun 2026 09:40:26 +0200 Subject: [PATCH 1/2] feature(stencil): make trust boundary box only clickable on the border --- td.vue/src/service/x6/shapes/trust-boundary-box.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/td.vue/src/service/x6/shapes/trust-boundary-box.js b/td.vue/src/service/x6/shapes/trust-boundary-box.js index 7709b2b85..51af31445 100644 --- a/td.vue/src/service/x6/shapes/trust-boundary-box.js +++ b/td.vue/src/service/x6/shapes/trust-boundary-box.js @@ -33,7 +33,12 @@ TrustBoundaryBox.prototype.setName = function (name) { this.setAttrByPath('label/text', name); }; -TrustBoundaryBox.prototype.updateStyle = function () {}; +TrustBoundaryBox.prototype.updateStyle = function () { + // After the node is dropped, make sure it can only be clicked + // on the boundary. This helps prevent accidental clicks in + // the middle of the box. + this.setAttrByPath('body/style/pointerEvents', 'stroke'); +}; export default { name, From 56f0c1c42d93beb88b8eb5aa1cb6af5973c9a93e Mon Sep 17 00:00:00 2001 From: Stephan Brunner Date: Wed, 10 Jun 2026 09:44:44 +0200 Subject: [PATCH 2/2] fix(stencil): fix trust boundary box label on the top left instead of floating randomly --- td.vue/src/service/x6/shapes/trust-boundary-box.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td.vue/src/service/x6/shapes/trust-boundary-box.js b/td.vue/src/service/x6/shapes/trust-boundary-box.js index 51af31445..16637a3f3 100644 --- a/td.vue/src/service/x6/shapes/trust-boundary-box.js +++ b/td.vue/src/service/x6/shapes/trust-boundary-box.js @@ -21,7 +21,7 @@ export const TrustBoundaryBox = Shape.Rect.define({ text: '', textAnchor : 'bottom', textVerticalAnchor : 'top', - refX: '15%', + refX: '12', refY: '12' } }