react-planner icon indicating copy to clipboard operation
react-planner copied to clipboard

Item in foreground

Open KhalidOnest opened this issue 7 years ago • 3 comments

Hei, I need to make an item always in foreground. Thank you.

KhalidOnest avatar Oct 10 '18 16:10 KhalidOnest

If you use layers the items in the topmost layers will always be displayed in front of items in layers below them. You're able to setup multiple layers by default so you can achieve a setup like this where it just becomes a matter of adding items to the right layer:

The problem of trying to do this in one layer is as items are added to that layer they have the potential to change position in the element on layer tab which is what determines the order of items.

rorycor avatar Oct 12 '18 12:10 rorycor

Hello, Thank you for your answer, there is no other solution? , I need to add an Item always in the foreground but in the same layer with other items.

I notice that the "holes" is always in background, the same with "lines", Why ?

Thank you.

KhalidOnest avatar Oct 17 '18 12:10 KhalidOnest

react planner uses 'SVG' to draw items wich means the last item drawn will be in the foreground for your case you will need to reorder the items in the layer in a way that will make it the last sibling node every time you insert a new item

nasriachref avatar Nov 19 '18 16:11 nasriachref