Experimental
The ID of the element.
The attribute to set.
The function to set the element attribute. It can be reactive.
It can be used in three ways:
const setElement = useUpdateElement();
setElement('element-id', 'position', { x: 100, y: 100 });
Experimental
Set the element attribute in the graph. It returns a function to set the element attribute.
It must be used inside the GraphProvider.
The ID of the element.
The function to set the element attribute. It can be reactive.
It can be used in three ways:
const setElement = useUpdateElement();
setElement('element-id', 'position', { x: 100, y: 100 });
Experimental
Set the element attribute in the graph. It returns a function to set the element attribute.
It must be used inside the GraphProvider.
The function to set the element attribute. It can be reactive.
It can be used in three ways:
const setElement = useUpdateElement();
setElement('element-id', 'position', { x: 100, y: 100 });
Set the element attribute in the graph. It returns a function to set the element attribute.
It must be used inside the GraphProvider.