Skip to main content
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
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

ytellaAnswer
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.