Grant user more control over the dimensions of the view
let View = (controller, svg, module) => {
// ...
return({
width: 1200,
height: 800,
customView: true, // needed to specify that our viewport has custom dimensions in order to properly set the viewBox attribute
update: () => {
// update logic
}
});
};
Grant user more control over the dimensions of the view