Hey,
thats probably a very easy question, but anyway - I would like to get the x- and y-coordinates out of my selected object.
When I say selection.items[0] than I get this - for example:
please have a look at the scenegraph documentation. Each SceneNode, among other properties, has localBounds, boundsInParent and globalBounds, which are objects with x, y, width and height.
// a "full" example
const selection = require('scenegraph').selection;
for (let node of selection.items) {
console.log(node.localBounds.x, node.localBounds.y);
}