2025-12-04 15:24:44 +08:00
|
|
|
import { BimButtonGroup } from '../index';
|
|
|
|
|
|
|
|
|
|
export class Toolbar extends BimButtonGroup {
|
|
|
|
|
public async init(): Promise<void> {
|
|
|
|
|
await super.init();
|
|
|
|
|
|
2025-12-08 10:02:24 +08:00
|
|
|
const { createHomeButton } = await import('./buttons/home');
|
2025-12-24 19:02:34 +08:00
|
|
|
const { createZoomBoxButton } = await import('./buttons/zoom-box');
|
|
|
|
|
const { createWalkMenuButton } = await import('./buttons/walk/walk-menu');
|
2025-12-25 15:47:57 +08:00
|
|
|
const { createMapButton } = await import('./buttons/map');
|
|
|
|
|
const { createPropertyButton } = await import('./buttons/property');
|
2025-12-24 19:02:34 +08:00
|
|
|
const { createSettingButton } = await import('./buttons/setting');
|
|
|
|
|
const { createInfoButton } = await import('./buttons/info');
|
2025-12-25 15:47:57 +08:00
|
|
|
const { createFullscreenButton } = await import('./buttons/fullscreen');
|
2025-12-22 18:48:38 +08:00
|
|
|
const { createMeasureButton } = await import('./buttons/measure');
|
2025-12-24 19:02:34 +08:00
|
|
|
const { createSectionMenuButton } = await import('./buttons/section/section-menu');
|
|
|
|
|
const { createSectionPlaneButton } = await import('./buttons/section/section-plane');
|
|
|
|
|
const { createSectionAxisButton } = await import('./buttons/section/section-axis');
|
|
|
|
|
const { createSectionBoxButton } = await import('./buttons/section/section-box');
|
2025-12-04 15:24:44 +08:00
|
|
|
|
|
|
|
|
this.addGroup('group-1');
|
2025-12-08 10:02:24 +08:00
|
|
|
|
2026-01-22 15:23:57 +08:00
|
|
|
this.addButton(createHomeButton());
|
|
|
|
|
this.addButton(createZoomBoxButton());
|
|
|
|
|
this.addButton(createMeasureButton());
|
|
|
|
|
this.addButton(createSectionMenuButton());
|
|
|
|
|
this.addButton(createSectionPlaneButton());
|
|
|
|
|
this.addButton(createSectionAxisButton());
|
|
|
|
|
this.addButton(createSectionBoxButton());
|
|
|
|
|
this.addButton(createWalkMenuButton());
|
|
|
|
|
this.addButton(createMapButton());
|
|
|
|
|
this.addButton(createPropertyButton());
|
|
|
|
|
this.addGroup('group-2');
|
|
|
|
|
this.addButton(createSettingButton());
|
|
|
|
|
this.addButton(createInfoButton());
|
|
|
|
|
this.addButton(createFullscreenButton());
|
2025-12-08 10:02:24 +08:00
|
|
|
|
2025-12-04 15:24:44 +08:00
|
|
|
this.render();
|
|
|
|
|
}
|
|
|
|
|
}
|