mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2024-11-11 05:33:23 +01:00
19 lines
362 B
JavaScript
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,
|
|
}
|
|
}
|