Skip to content

How do I listen to mouse events on a node in WebGL renderer? #65

@LasmGratel

Description

@LasmGratel

I found node related events

// For debugging
// onClick: ({sourceLayer}) => {
// // @ts-ignore
// console.log(sourceLayer.props.tile.id, sourceLayer.props.tile.data)
// },
autoHighlight: true,
onHover: ({object, sourceLayer}) => {
if (!this._highlightedNodeId) {
if (object instanceof GeomNode) {
this._highlight(object.id)
} else {
this._highlight(null)
}
}
},

certainly need to emit some mouse events here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions