Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions td.vue/src/service/x6/shapes/trust-boundary-box.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const TrustBoundaryBox = Shape.Rect.define({
text: '',
textAnchor : 'bottom',
textVerticalAnchor : 'top',
refX: '15%',
refX: '12',
refY: '12'
}
}
Expand All @@ -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,
Expand Down
Loading