pixano / pixano-elements

Pixano Elements - Re-usable web components dedicated to data annotation tasks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

onTabulation selection does not reset previously selected shapes display

bpioge opened this issue · comments

onTabulation (pxn-canvas-2d.ts) do a this.targetShapes.set([nextShape]).

In the ShapesEditController, we observe the targetShapes but the "set" does not "clear" the shapes.

The case "set" should do the action that is in the case "clear" and then, the action in the case "add". We can also (the lazy way) just call this.targetShapes.clear() in onTabulation

@bpioge thanks so much for this finding :) I just rewrote the set function which clears and set the shapes.
PS: sorry for the delay !