/*!
 * Copyright (c) 2026 Vertex Software LLC. All rights reserved.
 */
import{r,h as o}from"./p-EpnuuCxl.js";const e=()=>`:host{--viewer-toolbar-group-gap:0.5rem;--viewer-toolbar-group-background:rgba(245, 245, 245, 0.95);--viewer-toolbar-group-border-radius:0.25rem;--viewer-toolbar-group-box-shadow:-1px 0 2px rgba(0, 0, 0, 0.12),     1px 0 2px rgba(0, 0, 0, 0.13);--viewer-toolbar-group-padding:0.25rem;--viewer-toolbar-group-item-gap:0.25rem}.group{background:var(--viewer-toolbar-group-background);border-radius:var(--viewer-toolbar-group-border-radius);box-shadow:var(--viewer-toolbar-group-box-shadow);padding:var(--viewer-toolbar-group-padding)}.group[data-direction='horizontal']:not(:first-child){margin-left:var(--viewer-toolbar-group-gap)}.group[data-direction='horizontal'] .group-item:not(:first-child){margin-left:var(--viewer-toolbar-group-item-gap)}.group[data-direction='vertical']:not(:first-child){margin-top:var(--viewer-toolbar-group-gap)}.group[data-direction='vertical'] .group-item:not(:first-child){margin-top:var(--viewer-toolbar-group-item-gap)}.btn{color:var(--neutral-800);padding:0.125rem;border-radius:0.125rem}.btn:hover{background:var(--neutral-300)}`;const a=class{constructor(o){r(this,o);this.placement="bottom-center";this.direction="horizontal";this.animationsDisabled=false;this.animationMs=1e3}render(){return o("vertex-viewer-toolbar",{key:"58781d25dbddb4e75f5be56d5ab0d9c2c232aee1",placement:this.placement,direction:this.direction},o("vertex-viewer-toolbar-group",{key:"3c6f854f20b29bac33318c5aca11647f6f0c7396",class:"group",direction:this.direction,"data-direction":this.direction},o("vertex-viewer-button",{key:"1cf18704559b00b0ceb10cea67125147a2431e8a",class:"group-item btn","data-test-id":"fit-all-btn",onClick:()=>this.viewAll()},o("vertex-viewer-icon",{key:"b24ac73216986e134fe4b27b5f254d43ffe755be",class:"icon",name:"fit-all",size:"md"}))))}async viewAll(){var r;const o=await((r=this.viewer)===null||r===void 0?void 0:r.scene());const e=this.animationsDisabled?undefined:{milliseconds:this.animationMs};o===null||o===void 0?void 0:o.camera().viewAll().render({animation:e})}};a.style=e();export{a as vertex_viewer_default_toolbar};
//# sourceMappingURL=p-c0796440.entry.js.map