Skip to content

Commit b38fffb

Browse files
authored
fix(attributes.filter)!: fix filter attribute for links (#2450)
1 parent e4a8630 commit b38fffb

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

packages/joint-core/src/dia/Paper.mjs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2947,14 +2947,9 @@ export const Paper = View.extend({
29472947
throw new Error('Non-existing filter ' + name);
29482948
}
29492949

2950-
// Set the filter area to be 3x the bounding box of the cell
2951-
// and center the filter around the cell.
2950+
// SVG <filter/> attributes
29522951
var filterAttrs = assign({
2953-
filterUnits: 'objectBoundingBox',
2954-
x: -1,
2955-
y: -1,
2956-
width: 3,
2957-
height: 3
2952+
filterUnits: 'userSpaceOnUse',
29582953
}, filter.attrs, {
29592954
id: filterId
29602955
});

0 commit comments

Comments
 (0)