1 parent 5adf3c2 commit 2017934Copy full SHA for 2017934
1 file changed
examples/external-svg-images-js/src/main.js
@@ -288,11 +288,14 @@ mi3.attr('balls/fill', 'white');
288
// Use highlighter with the image element (notice a slight difference in the highlight for markup style).
289
highlighters.stroke.add(si2.findView(paper), 'image', 'h');
290
highlighters.stroke.add(ti2.findView(paper), 'image', 'h');
291
-highlighters.stroke.add(mi2.findView(paper), 'image', 'h');
+highlighters.stroke.add(mi2.findView(paper), 'image', 'h', {
292
+ nonScalingStroke: true
293
+});
294
295
// Use highlighter with an image sub-element (3).
296
highlighters.stroke.add(mi3.findView(paper), 'outline', 'h', {
- useFirstSubpath: true
297
+ useFirstSubpath: true,
298
+ nonScalingStroke: true,
299
});
300
301
// -----------------------------
0 commit comments