Skip to main content
15-Moonstone
Mar 12, 2018 12:53 PM UTC
Solved

Change size of widget Javascript

 I wanted to know if there was a way to change the Height or Width of a 3d widget (eg Image3D) BY JAVASCRIPT.
I TRIED TO USE THE SYNTAX :
 
$ scope.size = function () {
 
$ scope.view.wdg ['3DImage-1']. height = 2;
};
 
 BUT NOT WORKING:
 
thnx 
 
Giuseppe
 
 
 
ytellaAnswer
17-Peridot
Apr 5, 2018 6:28 PM UTC

Hi Giuseppe,

Width and height are not currently dynamic properties. They cannot be changed after the image has been added to the scene. The closest equivalent you can use for this is 'scale' property.

1 reply

ytella17-PeridotAnswer
17-Peridot
Apr 5, 2018 6:28 PM UTC

Hi Giuseppe,

Width and height are not currently dynamic properties. They cannot be changed after the image has been added to the scene. The closest equivalent you can use for this is 'scale' property.

Translate