diagram.add(
$(
go.Part,
$(
go.Picture,
{
desiredSize: new go.Size(300, 350),
source: `${require("../assets/svg/BMS.svg")}`
}
)
)
);