#Using Shapes Pro Download.

1 messages · Page 1 of 1 (latest)

solemn phoenix
#

Everything is working great, but I have two issues that I can't figure out. Hoping someone can help.

  1. How do I add text wrap to the node-label?
    and
  2. How do I zoom to a specific node?

About text-wrapping: I've tried .css changes. I made the node-label a textarea. I've made the node-label a div -- Each time I get it to preform text wrapping, it breaks the placeholder/node-label center mechanic and the resize node centering breaks.

About Zoom to node: I want to select a node (say a rectangle) and click a button to zoom to that rectangle contents. I have the button in the toolbar, it does zoom when I click but not to the object in focus -- it seems to zoom up and to the right not matter what object I've selected.

Thanks,
Chas

zealous sierra
#

for zoom to a specific node you can use:
const reactFlowInstance = useReactFlow();
reactFlowInstance.fitView({ nodes: [{ id: nodeId }] });

final geyser