PERGOLA LOGO

Window

Instantiation of a window can be as simple as this:
var myWindow = new pergola.Window();
myWindow.build({});

This produces an empty window with all initial settings, which include command buttons, menu bar, and toolbar with the default set of transformation tools. The properties hasCommands, hasToolBar and hasZoomAndPan let you override this behavior. Other properties let you control geometry, position, state and appearance. The property type let's you define a mapping window.

Using the theme "nürburgring" with skin "rubber", as set in the config file.

View as standalone SVG

var window1 = new pergola.Window("");
window1.build({
  x : 60,
  y : 60,
  width : 600,
  height : 400,
  fill : "#FFFFF4",
  hasToolBar : false,
  hasZoomAndPan : false,
});


var window2 = new pergola.Window("Ellipsis");
window2.build({
  x : 80,
  y : 80,
  width : 640,
  height : 480,
  contains : ellipses.dum(),
  menu : {
    menu1 : {
      ...
    },
    menu2 : {
      ...
    }
  }
});