Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
mounted() {
// listen for proxyManager changes
this.renderListener = vtkListenerHelper.newInstance(
() => {
if (!this.loadingState) {
this.proxyManager.autoAnimateViews();
}
},
() =>
[].concat(
this.proxyManager.getSources(),
this.proxyManager.getRepresentations(),
this.proxyManager.getViews()
)
);
this.pxmSub = this.proxyManager.onProxyRegistrationChange(
this.renderListener.resetListeners
);
created() {
this.listenerHelper = vtkListenerHelper.newInstance(
() => {
this.updateData();
this.$nextTick(this.$forceUpdate);
},
() => this.getProxyWithFields()
);
this.subscriptions = addWatchers(this, fields, options.onChange);
this.subscriptions.push(
this.proxyManager.onProxyRegistrationChange(() => {
this.updateDomains();
this.updateData();
if (options.onUpdate) {
for (let i = 0; i < options.onUpdate.length; i++) {
this[options.onUpdate[i]]();
}
created() {
this.subscriptions = [];
this.listenerHelper = vtkListenerHelper.newInstance(
() => {
if (!this.loadingState) {
this.$nextTick(this.$forceUpdate);
}
},
() => [this.proxyManager].concat(this.proxyManager.getRepresentations())
);
Controls.forEach((control, i) => this.addPanel(control, i + 10));
},
mounted() {