0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-11-13 06:27:55 +01:00
doodle3d-client/www/printmanager/js/Viewer.js

19 lines
362 B
JavaScript
Raw Normal View History

var Viewer = function(viewer) {
var className = "Viewer";
2015-04-27 23:38:01 +02:00
var items = [];
function setDoodles(_doodles) {
doodles = _doodles;
for (var i=0; i<doodles.length; i++) {
2015-04-27 23:38:01 +02:00
var item = new ViewerItem(doodles[i]);
items.push(item);
var svg = item.getSvg();
viewer.append(svg);
}
}
return {
setDoodles: setDoodles,
}
}