<div dir="ltr">Oops, sorry. I was reading that superficially. <div>I thought of using a Shape (Rectangle) which is a Node and has its own transforms methods.<div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 30, 2024 at 3:54 PM Davide Perini <<a href="mailto:perini.davide@dpsoftware.org">perini.davide@dpsoftware.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><u></u>
<div>
I would not like to scale the entire canvas, only the rectangle with
a mouse event.<br>
<br>
Davide<br>
<br>
<div>Il 30/07/2024 13:45, Zsolt Kúti ha
scritto:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi Davide,
<div><br>
</div>
<div>Have you tried setScaleX/Y/Z methods or the corresponding
properties?</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Jul 30, 2024 at
1:04 PM Davide Perini <<a href="mailto:perini.davide@dpsoftware.org" target="_blank">perini.davide@dpsoftware.org</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div> Hi there,<br>
is there an easy way to make a shape resizable?<br>
<br>
Suppose that I draw a rectangle with<br>
<div style="background-color:rgb(30,31,34);color:rgb(188,190,196)">
<pre style="font-family:"JetBrains Mono",monospace"><span style="color:rgb(199,125,187)">gc</span>.fillRect(x, y, z, h);</pre>
</div>
How am I supposed to make that shape resizable?<br>
I know that I can do it by draw the entire canvas again but
it is very tricky.<br>
<br>
Is there something that may help me doing it?<br>
<br>
Thanks<br>
Davide<br>
<br>
<br>
<br>
<br>
</div>
</blockquote>
</div>
</blockquote>
<br>
</div>
</blockquote></div>