|
|
|
|
|
|
|
|
* This works by toggling the `visible` property of the children of a parent object. |
|
|
* This works by toggling the `visible` property of the children of a parent object. |
|
|
* The plugin interfaces with the picking plugin and also provides uiConfig to show and edit the variations. |
|
|
* The plugin interfaces with the picking plugin and also provides uiConfig to show and edit the variations. |
|
|
* It also provides a function to create snapshot previews of individual variations. This creates a limited render of the object with the selected child visible. |
|
|
* It also provides a function to create snapshot previews of individual variations. This creates a limited render of the object with the selected child visible. |
|
|
* To get a proper render, its better to render it offline and set the image as a preview. |
|
|
|
|
|
|
|
|
* To get a proper render, it's better to render it offline and set the image as a preview. |
|
|
* This functionality is inherited from `SwitchNodeBasePlugin`. |
|
|
* This functionality is inherited from `SwitchNodeBasePlugin`. |
|
|
* |
|
|
* |
|
|
* Additionally this plugin adds a Grid UI using {@link GridItemListPlugin} in the DOM over the viewer canvas to show various object variations and allow the user to select them. |
|
|
|
|
|
|
|
|
* Additionally, this plugin adds a Grid UI using {@link GridItemListPlugin} in the DOM over the viewer canvas to show various object variations and allow the user to select them. |
|
|
* The UI can also be used in the editor to edit the variations and apply them. |
|
|
* The UI can also be used in the editor to edit the variations and apply them. |
|
|
*/ |
|
|
*/ |
|
|
export class SwitchNodePlugin extends SwitchNodeBasePlugin { |
|
|
export class SwitchNodePlugin extends SwitchNodeBasePlugin { |