Skip to content

Symbol snap points are not scaled with the symbol #486

@LenAgain

Description

@LenAgain

I have a stylesheet full of circuit symbols, for example this resistor:

<symbol name="resistor (spx)" snap="-20 0 20 0 0 0">
        <group>
            <!-- Left arm -->
            <path stroke="sym-stroke" pen="sym-pen" cap="2">
                -20 0 m
                -12 0 l
                -11 2 l
            </path>
            <!-- Zigzag -->
            <path stroke="sym-stroke" pen="sym-pen" join="2">
                -11  2 m
                -10  4 l
                 -6 -4 l
                 -2  4 l
                  2 -4 l
                  6  4 l
                 10 -4 l
                 11 -2 l
            </path>
            <!-- Right arm -->
            <path stroke="sym-stroke" pen="sym-pen" cap="2">
                11 -2 m
                12  0 l
                20  0 l
            </path>
            </group>
    </symbol>

When I insert this symbol and scale it using the symbol size dropdown, the symbol itself is scaled but the snap points are left floating where they were initially.

Is this simply an oversight or is there a reason the snap points can't be scaled as well?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions