Skip to content

Commit 2017934

Browse files
kumilingusclaude
andauthored
example(external-svg-image): fix highlighters (clientIO#3177)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5adf3c2 commit 2017934

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

  • examples/external-svg-images-js/src

examples/external-svg-images-js/src/main.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,14 @@ mi3.attr('balls/fill', 'white');
288288
// Use highlighter with the image element (notice a slight difference in the highlight for markup style).
289289
highlighters.stroke.add(si2.findView(paper), 'image', 'h');
290290
highlighters.stroke.add(ti2.findView(paper), 'image', 'h');
291-
highlighters.stroke.add(mi2.findView(paper), 'image', 'h');
291+
highlighters.stroke.add(mi2.findView(paper), 'image', 'h', {
292+
nonScalingStroke: true
293+
});
292294

293295
// Use highlighter with an image sub-element (3).
294296
highlighters.stroke.add(mi3.findView(paper), 'outline', 'h', {
295-
useFirstSubpath: true
297+
useFirstSubpath: true,
298+
nonScalingStroke: true,
296299
});
297300

298301
// -----------------------------

0 commit comments

Comments
 (0)