fuselibs icon indicating copy to clipboard operation
fuselibs copied to clipboard

Feature request: Databindable read-only properties on Node

Open Sunjammer opened this issue 7 years ago • 1 comments

It would be really good to be able to databind to the absolute screenspace position of a node post layout, for instance to be able to draw lines between elements. Is it a horrible no-no to have readonly general properties like these?

Sunjammer avatar Dec 12 '17 18:12 Sunjammer

Absolute screenspace is an issue since it's very costly to determine when it updates. It involves a world transform listener. We have these, but they have a cost across all nodes in the app. I'm not really in favour of exposing this functionality too much to the user level due to this.

If you can give some clearer use-cases though I can probalby some up with functions that would help in the more limited situation. You usually don't wan't screen space, but some limited local space.

mortoray avatar Dec 12 '17 18:12 mortoray