Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added styling Selection Outline #1952

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

rudrakpatra
Copy link

@rudrakpatra rudrakpatra commented Nov 17, 2021

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

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.

1 participant