in src/components/node-shape.js [20:28]
export function getShapeID(type?: null | string, types: any) {
if (!!type && types[type]) {
return types[type].shapeId;
} else if (types.emptyNode) {
return types.emptyNode.shapeId;
}
return null;
}