salesforce / runway-browser

Interactive visualization framework for Runway models of distributed systems
https://runway.systems
MIT License
188 stars 31 forks source link

Customizable view dimensions #13

Closed vidbina closed 8 years ago

vidbina commented 8 years ago

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
    }
  });
};
ongardie-sfdc commented 8 years ago

Yep, that's probably better than bigView, wideView, bigWideView, biggerNarrowView, etc... :)

Thanks!