@giro3d/giro3d
Version:
A JS/WebGL framework for 3D geospatial data visualization
24 lines (23 loc) • 1.06 kB
JavaScript
/*
* Copyright (c) 2015-2018, IGN France.
* Copyright (c) 2018-2026, Giro3D team.
* SPDX-License-Identifier: MIT
*/
import Panel from './Panel';
class ContourLinePanel extends Panel {
/**
* @param options - The options.
* @param parentGui - Parent GUI
* @param instance - The instance
*/
constructor(options, parentGui, instance) {
super(parentGui, instance, 'Contour lines');
this.addController(options, 'enabled').name('Enable').onChange(() => this.notify());
this.addColorController(options, 'color').name('Color').onChange(() => this.notify());
this.addController(options, 'thickness', 0, 4, 0.1).name('Thickness').onChange(() => this.notify());
this.addController(options, 'opacity', 0, 1).name('Opacity').onChange(() => this.notify());
this.addController(options, 'interval', 0, 3000, 1).name('Primary interval (m)').onChange(() => this.notify());
this.addController(options, 'secondaryInterval', 0, 3000, 1).name('Secondary interval (m)').onChange(() => this.notify());
}
}
export default ContourLinePanel;