Inkscape.org
Creating New Extensions Need little help for my new extension.
  1. #1
    Harshil Patel Harshil Patel @harshil007
    *

     

    ( edit: issue fixed. now extension working fine as intended.)

    hey Inkscapers and developers,

    I created an extesion that automatically create a exactly canvas sized rectangle. ( got inspired by CorelDraw's double click on rectangle tool and create canvas size rectangle feature. )

    I've sucessfully implemented that feature and it works..!! But, the problem is when I change the document type ( let's say, A4 to business card US ) then it creates exactly canvas sized rectangle. but, my x and y axis not fit on that canvas.

    I need to create a rectangle exactly on a canvas.

  2. #2
    Patrick Storz Patrick Storz @Ede_123

    When you change page size a transform="translate(x,y)" attirbute is applied to all layers by Inkscape.

    Either you need to shift the rectangle accordingly, or put into a new layer / under the SVG root.

Inkscape Inkscape.org Inkscape Forum Creating New Extensions Need little help for my new extension.