0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-11-11 05:33:23 +01:00
doodle3d-client/www/printmanager/js/Viewer.js
2015-04-27 23:38:01 +02:00

19 lines
362 B
JavaScript

var Viewer = function(viewer) {
var className = "Viewer";
var items = [];
function setDoodles(_doodles) {
doodles = _doodles;
for (var i=0; i<doodles.length; i++) {
var item = new ViewerItem(doodles[i]);
items.push(item);
var svg = item.getSvg();
viewer.append(svg);
}
}
return {
setDoodles: setDoodles,
}
}