Hareeshchandera / jsplumb

Automatically exported from code.google.com/p/jsplumb
0 stars 0 forks source link

add importDefaults method #204

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
rather than having to type all this:

jsPlumb.Defaults.Anchors = [ sourceAnchors, "TopCenter" ];
jsPlumb.Defaults.DragOptions = { cursor: "pointer", zIndex:2000 };
jsPlumb.Defaults.EndpointStyles = [{ fillStyle:"#225588" }, { 
fillStyle:"#558822" }];
jsPlumb.Defaults.Endpoints = [ ["Dot", { radius:7 } ], [ "Dot", { radius:11 } ] 
];

it would be nice to be able to do this:

jsPlumb.importDefaults({
  Anchors:[ sourceAnchors, "TopCenter" ],
  DragOptions:{ cursor: "pointer", zIndex:2000 },
  EndpointStyles:[{ fillStyle:"#225588" }, { fillStyle:"#558822" }],
  Endpoints: [ ["Dot", { radius:7 } ], [ "Dot", { radius:11 } ] ]
});

Original issue reported on code.google.com by simon.po...@gmail.com on 23 Feb 2012 at 12:29

GoogleCodeExporter commented 8 years ago
this is now done.

Original comment by simon.po...@gmail.com on 23 Feb 2012 at 12:44