Skip to content

added styling Selection Outline - #1952

Closed
rudrakpatra wants to merge 1 commit into
paperjs:developfrom
rudrakpatra:selection-style
Closed

rudrakpatra wants to merge 1 commit into
paperjs:developfrom
rudrakpatra:selection-style

Conversation

@rudrakpatra

@rudrakpatra rudrakpatra commented Nov 17, 2021 •

Copy link
Copy Markdown

Description

Added the following

paper.setting.drawSelected is a boolean, if you want to just select items and dont want to draw the outline, now you can

Styles have new properties,

    /**
     * The width of the selection stroke.
     */
    selectionWidth: number;

    /**
     * The shape to be used at the beginning and end of open {@link Path} items,
     * when they have a selection stroke.
     */
    selectionCap: string;

    /**
     * The shape to be used at the segments and corners of {@link Path} items
     * when they have a selection stroke.
     */
    selectionJoin: string;

    /**
     * The miter limit of the selection stroke.
     */
    selectedMiterLimit: number;
paper.project.currentStyle.selectionWidth = 5.6;

image

@lehni
lehni force-pushed the develop branch 3 times, most recently from 9aae748 to 0b26c7d Compare October 20, 2026 19:14
@lehni

lehni commented Oct 21, 2026

Copy link
Copy Markdown
Member

Thank you for this, and sorry it sat so long. Most of the change is in the committed dist/ files, and the code has moved too far since to rebase it. Styling the selection is something to design for 1.0, with the new rendering, so I'm closing this here.

@lehni lehni closed this Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants