return"draw the desk, in a way that rotates around the back, middle point"
}
daaasks=[...Array(100)].map(x=>{
return{
desk_use:draw.use('desk',newURL("",location)),
x:Math.random()*1000,
y:Math.random()*1000,
width:25,
height:25,
rotation:(Math.random()*36)*10,
text:"random words to come"
}
})
// {
// const w = form1.size;
// const h = form1.size;
// daaasks.forEach(d=>
// d.desk_use
// .height(d.width)
// .width(d.height)
// .x(d.x)
// .y(d.y)
// .transform({
// rotate: d.rotation,//form1.deskRot,
// origin: "right center"
// })
// )
// return "draw the desks, all over the map, in a way that rotates around the back, middle point"
// }
moreDaaasks=deskData.map(d=>{
return{
desk_use:draw.use('desk',newURL("",location)),
x:+d.position.x+80,//+ casts to number
y:(+d.position.y*-1)-80,
width:25,
height:25,
rotation:d.rotation,
text:d.names
}
})
{
constw=form1.size;
consth=form1.size;
moreDaaasks.forEach(d=>{
console.log(d)
d.desk_use
.height(d.width)
.width(d.height)
.x(d.x)
.y(d.y)
.transform({
rotate:d.rotation,//form1.deskRot,
origin:"right center"
})
// .class("nice")
}
)
return"draw the desks, based on some data pulled from illustrator"
}
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.