Creating a connector : problem with magnet

I tried to magnet the connector but it doesn’t work : where’s my code wrong ?

update: forgot code :slight_smile:

let connector;
connector = figma.createConnector();
connector.connectorEnd.endPointId = “0:7”;
connector.connectorEnd.magnet = ‘TOP’;
connector.connectorStart.endPointId = “0:3”;
connector.connectorStart.magnet = ‘BOTTOM’;

I searched on Google : weirdly nobody seems to have used it yet. Isn’t there a bug since seems rather trivial ?

let connector = figma.createConnector();
connector.connectorStart = {
	endpointNodeId: "0:1",
	magnet: "BOTTOM"
}
connector.connectorEnd = {
	endpointNodeId: "0:2",
	magnet: "TOP"
}
1 Like