Change box dimensions


I am trying to perfect my “drag entity around” tool. I want users to be able to change the dimensions of the entity box through three slider functions.

The draging part works since before when i have static dimensions, but when i try to create a function where slider values sets the measurement of the entity the page crashes.

In my html i get a warning of “Invalid Array lenght”

In sandcastle I get the warning that my function is not defined.
(There is a lot of unessary css code hope its fine anyways! :slight_smile: )

I really hope you can help me since this tool could be perfect!

My sandcastle link: Cesium Sandcastle