@mappedin/mappedin-js 6.0.1-alpha.32 → 6.0.1-alpha.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/{GLTFExporter-TMSWNHZO.js → GLTFExporter-LHK62ADK.js} +1 -1
- package/lib/esm/{GLTFLoader-NIXX5K7V.js → GLTFLoader-O4IZAVCT.js} +1 -1
- package/lib/esm/{browser-7SS6EBDE.js → browser-VHMUGDFQ.js} +1 -1
- package/lib/esm/{chunk-NCVDSTLX.js → chunk-CYBYPK2K.js} +1 -1
- package/lib/esm/{chunk-3MNEOWBT.js → chunk-E5S56D7B.js} +7 -7
- package/lib/esm/{chunk-W43PFPS7.js → chunk-ENEOOXQO.js} +1 -1
- package/lib/esm/chunk-HZV2KXXK.js +950 -0
- package/lib/esm/{chunk-KMHSGG4L.js → chunk-LDHLD3E3.js} +1 -1
- package/lib/esm/index.css +1 -1
- package/lib/esm/index.d.ts +19962 -486
- package/lib/esm/index.js +1 -925
- package/lib/esm/inspector-BG5MSFCC.css +1 -0
- package/lib/esm/inspector-PLMHJ364.js +425 -0
- package/lib/esm/{outdoor-context-v4-2K6NTFX7.js → outdoor-context-v4-S76CRLDD.js} +1 -1
- package/lib/index.css +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.mappedin__smart-collision-engine__container{position:absolute;left:0;top:0;bottom:0;right:0;pointer-events:none;transform-style:preserve-3d;z-index:1;font-family:InterUI-Regular,Helvetica,Arial,sans-serif}.mappedin__smart-collision-engine-debug__container{position:absolute;left:0;top:0;bottom:0;right:0;transition:opacity .3s ease-in-out;pointer-events:none;will-change:opacity}.mappedin__smart-collision-engine-debug__container.interacting{opacity:.2}.mappedin-map .mappedin-interactive{cursor:grab}.mappedin-map .mappedin-interactive:active{cursor:grabbing}.mappedin-map .mappedin-interactive.mappedin-interaction-hover{cursor:pointer}.mappedin-marker{font-family:InterUI-Regular,Helvetica,Arial,sans-serif;font-weight:400;top:0;transition:transform .3s linear;position:absolute;font-weight:700;color:#000;z-index:1;transition:opacity .3s;display:flex;flex-direction:row;will-change:transform,opacity;justify-content:center;opacity:0}.mappedin-map .mappedin-control-container{position:absolute;left:0;top:0;bottom:0;right:0;pointer-events:none;font-family:InterUI-Regular,Helvetica,Arial,sans-serif}.mappedin-map .mappedin-control-container .mappedin-ctrl-top-left,.mappedin-map .mappedin-control-container .mappedin-ctrl-top-right,.mappedin-map .mappedin-control-container .mappedin-ctrl-bottom-left,.mappedin-map .mappedin-control-container .mappedin-ctrl-bottom-right{position:absolute;pointer-events:none}.mappedin-map .mappedin-control-container .mappedin-ctrl-top-left{top:0;left:0}.mappedin-map .mappedin-control-container .mappedin-ctrl-top-right{top:0;right:0}.mappedin-map .mappedin-control-container .mappedin-ctrl-bottom-left{bottom:0;left:0}.mappedin-map .mappedin-control-container .mappedin-ctrl-bottom-right{bottom:0;right:0}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib{display:block;position:relative;pointer-events:auto;font:9px/11px InterUI-Regular,Helvetica,Arial,sans-serif;padding:3px 5px 1px;background-color:#ffffff80;margin:0;min-width:11px;min-height:11px;-webkit-user-select:none;user-select:none}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib summary.mappedin-ctrl-attrib-button{-webkit-appearance:none;appearance:none;list-style:none}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib summary.mappedin-ctrl-attrib-button::-webkit-details-marker{display:none}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib.mappedin-compact .mappedin-ctrl-attrib-button,.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib.mappedin-compact-show .mappedin-ctrl-attrib-inner{display:inline-block}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib.mappedin-compact{background-color:transparent}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib.mappedin-compact-show{min-width:15px;min-height:15px;box-sizing:border-box;background-color:#ffffff80}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-top-left{float:left;border-bottom-right-radius:4px}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-top-right{float:right;border-bottom-left-radius:4px}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-bottom-left{float:left;border-top-right-radius:4px}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-bottom-right{float:right;border-top-left-radius:4px}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-top-left,.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-bottom-left{padding:3px 5px 1px 20px}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-inner{display:inline-block;margin-right:12px}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-inner,.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-inner a{color:#000000bf;text-decoration:none}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-inner-bold,.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-inner-bold a{font-weight:700}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-inner a:hover{color:#017ef1;text-decoration:underline;cursor:pointer}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;width:15px;height:15px;box-sizing:border-box;border-radius:50%;top:0;right:2px;border:1px}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-top-left .mappedin-ctrl-attrib-button,.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-bottom-left .mappedin-ctrl-attrib-button{left:2px}.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0 / 0%)}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right,.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px #0000001a}@media (-ms-high-contrast: active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:center center}@media (-ms-high-contrast: active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:#0000000d}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-zoom-out.svg",fill: #333)}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-zoom-in.svg",fill: #333)}@media (-ms-high-contrast: active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-zoom-out.svg",fill: #fff)}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-zoom-in.svg",fill: #fff)}}@media (-ms-high-contrast: black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-zoom-out.svg",fill: #000)}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-zoom-in.svg",fill: #000)}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-fullscreen.svg",fill: #333)}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-shrink.svg")}@media (-ms-high-contrast: active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-fullscreen.svg",fill: #fff)}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-shrink.svg",fill: #fff)}}@media (-ms-high-contrast: black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-fullscreen.svg",fill: #000)}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-shrink.svg",fill: #000)}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-compass.svg",fill: #333)}@media (-ms-high-contrast: active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{@svg-load ctrl-compass-white url(svg/maplibregl-ctrl-compass.svg){fill: #fff; #south {fill: #999;}}background-image:svg-inline(ctrl-compass-white)}}@media (-ms-high-contrast: black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-compass.svg",fill: #000)}}@svg-load ctrl-terrain url(svg/maplibregl-ctrl-terrain.svg){fill: #333; #stroke {display: none;}}@svg-load ctrl-terrain-enabled url(svg/maplibregl-ctrl-terrain.svg){fill: #33b5e5; #stroke {display: none;}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-terrain)}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-terrain-enabled)}@svg-load ctrl-geolocate url(svg/maplibregl-ctrl-geolocate.svg){fill: #333; #stroke {display: none;}}@svg-load ctrl-geolocate-white url(svg/maplibregl-ctrl-geolocate.svg){fill: #fff; #stroke {display: none;}}@svg-load ctrl-geolocate-black url(svg/maplibregl-ctrl-geolocate.svg){fill: #000; #stroke {display: none;}}@svg-load ctrl-geolocate-disabled url(svg/maplibregl-ctrl-geolocate.svg){fill: #aaa; #stroke {fill: #f00;}}@svg-load ctrl-geolocate-disabled-white url(svg/maplibregl-ctrl-geolocate.svg){fill: #999; #stroke {fill: #f00;}}@svg-load ctrl-geolocate-disabled-black url(svg/maplibregl-ctrl-geolocate.svg){fill: #666; #stroke {fill: #f00;}}@svg-load ctrl-geolocate-active url(svg/maplibregl-ctrl-geolocate.svg){fill: #33b5e5; #stroke {display: none;}}@svg-load ctrl-geolocate-active-error url(svg/maplibregl-ctrl-geolocate.svg){fill: #e58978; #stroke {display: none;}}@svg-load ctrl-geolocate-background url(svg/maplibregl-ctrl-geolocate.svg){fill: #33b5e5; #stroke {display: none;} #dot {display: none;}}@svg-load ctrl-geolocate-background-error url(svg/maplibregl-ctrl-geolocate.svg){fill: #e54e33; #stroke {display: none;} #dot {display: none;}}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-disabled)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-active)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-active-error)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-background)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-background-error)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s infinite linear}@media (-ms-high-contrast: active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-white)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-disabled-white)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-active)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-active-error)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-background)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-background-error)}}@media (-ms-high-contrast: black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-black)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-disabled-black)}}@keyframes maplibregl-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:svg-load("svg/maplibregl-ctrl-logo.svg")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (-ms-high-contrast: active){a.maplibregl-ctrl-logo{@svg-load ctrl-logo-white url(svg/maplibregl-ctrl-logo.svg){#outline {opacity: 1;} #fill {opacity: 1;}}background-color:transparent;background-image:svg-inline(ctrl-logo-white)}}@media (-ms-high-contrast: black-on-white){a.maplibregl-ctrl-logo{@svg-load ctrl-logo-black url(svg/maplibregl-ctrl-logo.svg){#outline {opacity: 1; fill: #fff; stroke: #fff;} #fill {opacity: 1; fill: #000;}}background-image:svg-inline(ctrl-logo-black)}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:#ffffff7f;margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:svg-load("svg/maplibregl-ctrl-attrib.svg");background-color:#ffffff7f;width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:#0000000d}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast: active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:svg-load("svg/maplibregl-ctrl-attrib.svg",fill=#fff)}}@media screen and (-ms-high-contrast: black-on-white){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:svg-load("svg/maplibregl-ctrl-attrib.svg")}}.maplibregl-ctrl-attrib a{color:#000000bf;text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:#ffffffbf;font-size:10px;border-width:medium 2px 2px;border-style:none solid solid;border-color:#333;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:#0000000d}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px #0000001a;padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-user-location-dot{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{background-color:#1da1f2;content:"";width:15px;height:15px;border-radius:50%;position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px #00000059}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:#0006;position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover: none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}.mappedin-js-inspector .list-items{max-height:600px;overflow-y:scroll;scroll-behavior:smooth}.mappedin-js-inspector .children:focus{border:1px solid blue}.mappedin-js-inspector #interactionPanel{position:absolute;right:0}.mappedin-js-inspector #mainPanel{position:absolute;left:0}.mappedin-js-inspector .title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:root{--pin-shadow-hover-scale: .9;--pin-shadow-width: 12px;--pin-shadow-height: 5px;--pin-shadow-opacity: .35;--pin-drop-animation-duration-ms: .25s}@keyframes drop-pin{0%{transform:translateY(-200%)}to{transform:translateY(0)}}@keyframes pin-shadow{0%{transform:scale(var(--pin-shadow-hover-scale))}to{transform:scale(1)}}.mappedin-dropped-pin-wrapper{position:relative;width:fit-content;height:fit-content;width:36px;height:42px}.mappedin-dropped-pin-wrapper svg{position:absolute;left:calc(50% - var(--pin-shadow-width));animation:drop-pin var(--pin-drop-animation-duration-ms) ease-in}.mappedin-dropped-pin-wrapper>.pin-shadow{position:absolute;left:calc(50% - var(--pin-shadow-width) / 2);bottom:0;height:var(--pin-shadow-height);width:var(--pin-shadow-width);border-radius:100%;opacity:var(--pin-shadow-opacity);animation:pin-shadow .25s ease-in}@keyframes bounce{0%{transform:translateY(-10px);opacity:0}12.5%{transform:translateY(0);opacity:1}25%{transform:translateY(0)}37.5%{transform:translateY(-10px)}50%{transform:translateY(0)}62.5%{transform:translateY(-10px)}75%{transform:translateY(0)}87.5%{transform:translateY(-10px)}to{transform:translateY(0)}}.mappedin-connection-marker .bouncey{animation:bounce 2.5s linear}.mappedin-connection-marker .arrow--down{transform:rotate(180deg)}.mappedin-connection-marker .connection-circle{display:flex;justify-content:center;align-items:center;border-radius:50%;border:2px solid white;box-shadow:0 2px 8px #00000026}
|
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
import{c as N,n as X}from"./chunk-HZV2KXXK.js";import"./chunk-E5S56D7B.js";import"./chunk-ENEOOXQO.js";import{J as W}from"./chunk-CYBYPK2K.js";import{a as o,j as A}from"./chunk-LDHLD3E3.js";A();A();A();A();var E=class E{constructor(t,e,i,r,s="div"){this.parent=t,this.object=e,this.property=i,this._disabled=!1,this._hidden=!1,this.initialValue=this.getValue(),this.domElement=document.createElement(s),this.domElement.classList.add("controller"),this.domElement.classList.add(r),this.$name=document.createElement("div"),this.$name.classList.add("name"),E.nextNameID=E.nextNameID||0,this.$name.id=`lil-gui-name-${++E.nextNameID}`,this.$widget=document.createElement("div"),this.$widget.classList.add("widget"),this.$disable=this.$widget,this.domElement.appendChild(this.$name),this.domElement.appendChild(this.$widget),this.domElement.addEventListener("keydown",a=>a.stopPropagation()),this.domElement.addEventListener("keyup",a=>a.stopPropagation()),this.parent.children.push(this),this.parent.controllers.push(this),this.parent.$children.appendChild(this.domElement),this._listenCallback=this._listenCallback.bind(this),this.name(i)}name(t){return this._name=t,this.$name.textContent=t,this}onChange(t){return this._onChange=t,this}_callOnChange(){this.parent._callOnChange(this),this._onChange!==void 0&&this._onChange.call(this,this.getValue()),this._changed=!0}onFinishChange(t){return this._onFinishChange=t,this}_callOnFinishChange(){this._changed&&(this.parent._callOnFinishChange(this),this._onFinishChange!==void 0&&this._onFinishChange.call(this,this.getValue())),this._changed=!1}reset(){return this.setValue(this.initialValue),this._callOnFinishChange(),this}enable(t=!0){return this.disable(!t)}disable(t=!0){return t===this._disabled?this:(this._disabled=t,this.domElement.classList.toggle("disabled",t),this.$disable.toggleAttribute("disabled",t),this)}show(t=!0){return this._hidden=!t,this.domElement.style.display=this._hidden?"none":"",this}hide(){return this.show(!1)}options(t){let e=this.parent.add(this.object,this.property,t);return e.name(this._name),this.destroy(),e}min(t){return this}max(t){return this}step(t){return this}decimals(t){return this}listen(t=!0){return this._listening=t,this._listenCallbackID!==void 0&&(cancelAnimationFrame(this._listenCallbackID),this._listenCallbackID=void 0),this._listening&&this._listenCallback(),this}_listenCallback(){this._listenCallbackID=requestAnimationFrame(this._listenCallback);let t=this.save();t!==this._listenPrevValue&&this.updateDisplay(),this._listenPrevValue=t}getValue(){return this.object[this.property]}setValue(t){return this.getValue()!==t&&(this.object[this.property]=t,this._callOnChange(),this.updateDisplay()),this}updateDisplay(){return this}load(t){return this.setValue(t),this._callOnFinishChange(),this}save(){return this.getValue()}destroy(){this.listen(!1),this.parent.children.splice(this.parent.children.indexOf(this),1),this.parent.controllers.splice(this.parent.controllers.indexOf(this),1),this.parent.$children.removeChild(this.domElement)}};o(E,"Controller");var _=E,G=class G extends _{constructor(t,e,i){super(t,e,i,"boolean","label"),this.$input=document.createElement("input"),this.$input.setAttribute("type","checkbox"),this.$input.setAttribute("aria-labelledby",this.$name.id),this.$widget.appendChild(this.$input),this.$input.addEventListener("change",()=>{this.setValue(this.$input.checked),this._callOnFinishChange()}),this.$disable=this.$input,this.updateDisplay()}updateDisplay(){return this.$input.checked=this.getValue(),this}};o(G,"BooleanController");var S=G;function F(n){let t,e;return(t=n.match(/(#|0x)?([a-f0-9]{6})/i))?e=t[2]:(t=n.match(/rgb\(\s*(\d*)\s*,\s*(\d*)\s*,\s*(\d*)\s*\)/))?e=parseInt(t[1]).toString(16).padStart(2,0)+parseInt(t[2]).toString(16).padStart(2,0)+parseInt(t[3]).toString(16).padStart(2,0):(t=n.match(/^#?([a-f0-9])([a-f0-9])([a-f0-9])$/i))&&(e=t[1]+t[1]+t[2]+t[2]+t[3]+t[3]),e?"#"+e:!1}o(F,"normalizeColorString");var dt={isPrimitive:!0,match:n=>typeof n=="string",fromHexString:F,toHexString:F},k={isPrimitive:!0,match:n=>typeof n=="number",fromHexString:n=>parseInt(n.substring(1),16),toHexString:n=>"#"+n.toString(16).padStart(6,0)},ht={isPrimitive:!1,match:n=>Array.isArray(n),fromHexString(n,t,e=1){let i=k.fromHexString(n);t[0]=(i>>16&255)/255*e,t[1]=(i>>8&255)/255*e,t[2]=(i&255)/255*e},toHexString([n,t,e],i=1){i=255/i;let r=n*i<<16^t*i<<8^e*i<<0;return k.toHexString(r)}},ct={isPrimitive:!1,match:n=>Object(n)===n,fromHexString(n,t,e=1){let i=k.fromHexString(n);t.r=(i>>16&255)/255*e,t.g=(i>>8&255)/255*e,t.b=(i&255)/255*e},toHexString({r:n,g:t,b:e},i=1){i=255/i;let r=n*i<<16^t*i<<8^e*i<<0;return k.toHexString(r)}},ut=[dt,k,ht,ct];function pt(n){return ut.find(t=>t.match(n))}o(pt,"getColorFormat");var H=class H extends _{constructor(t,e,i,r){super(t,e,i,"color"),this.$input=document.createElement("input"),this.$input.setAttribute("type","color"),this.$input.setAttribute("tabindex",-1),this.$input.setAttribute("aria-labelledby",this.$name.id),this.$text=document.createElement("input"),this.$text.setAttribute("type","text"),this.$text.setAttribute("spellcheck","false"),this.$text.setAttribute("aria-labelledby",this.$name.id),this.$display=document.createElement("div"),this.$display.classList.add("display"),this.$display.appendChild(this.$input),this.$widget.appendChild(this.$display),this.$widget.appendChild(this.$text),this._format=pt(this.initialValue),this._rgbScale=r,this._initialValueHexString=this.save(),this._textFocused=!1,this.$input.addEventListener("input",()=>{this._setValueFromHexString(this.$input.value)}),this.$input.addEventListener("blur",()=>{this._callOnFinishChange()}),this.$text.addEventListener("input",()=>{let s=F(this.$text.value);s&&this._setValueFromHexString(s)}),this.$text.addEventListener("focus",()=>{this._textFocused=!0,this.$text.select()}),this.$text.addEventListener("blur",()=>{this._textFocused=!1,this.updateDisplay(),this._callOnFinishChange()}),this.$disable=this.$text,this.updateDisplay()}reset(){return this._setValueFromHexString(this._initialValueHexString),this}_setValueFromHexString(t){if(this._format.isPrimitive){let e=this._format.fromHexString(t);this.setValue(e)}else this._format.fromHexString(t,this.getValue(),this._rgbScale),this._callOnChange(),this.updateDisplay()}save(){return this._format.toHexString(this.getValue(),this._rgbScale)}load(t){return this._setValueFromHexString(t),this._callOnFinishChange(),this}updateDisplay(){return this.$input.value=this._format.toHexString(this.getValue(),this._rgbScale),this._textFocused||(this.$text.value=this.$input.value.substring(1)),this.$display.style.backgroundColor=this.$input.value,this}};o(H,"ColorController");var D=H,T=class T extends _{constructor(t,e,i){super(t,e,i,"function"),this.$button=document.createElement("button"),this.$button.appendChild(this.$name),this.$widget.appendChild(this.$button),this.$button.addEventListener("click",r=>{r.preventDefault(),this.getValue().call(this.object),this._callOnChange()}),this.$button.addEventListener("touchstart",()=>{},{passive:!0}),this.$disable=this.$button}};o(T,"FunctionController");var $=T,U=class U extends _{constructor(t,e,i,r,s,a){super(t,e,i,"number"),this._initInput(),this.min(r),this.max(s);let u=a!==void 0;this.step(u?a:this._getImplicitStep(),u),this.updateDisplay()}decimals(t){return this._decimals=t,this.updateDisplay(),this}min(t){return this._min=t,this._onUpdateMinMax(),this}max(t){return this._max=t,this._onUpdateMinMax(),this}step(t,e=!0){return this._step=t,this._stepExplicit=e,this}updateDisplay(){let t=this.getValue();if(this._hasSlider){let e=(t-this._min)/(this._max-this._min);e=Math.max(0,Math.min(e,1)),this.$fill.style.width=e*100+"%"}return this._inputFocused||(this.$input.value=this._decimals===void 0?t:t.toFixed(this._decimals)),this}_initInput(){this.$input=document.createElement("input"),this.$input.setAttribute("type","text"),this.$input.setAttribute("aria-labelledby",this.$name.id),window.matchMedia("(pointer: coarse)").matches&&(this.$input.setAttribute("type","number"),this.$input.setAttribute("step","any")),this.$widget.appendChild(this.$input),this.$disable=this.$input;let e=o(()=>{let h=parseFloat(this.$input.value);isNaN(h)||(this._stepExplicit&&(h=this._snap(h)),this.setValue(this._clamp(h)))},"onInput"),i=o(h=>{let x=parseFloat(this.$input.value);isNaN(x)||(this._snapClampSetValue(x+h),this.$input.value=this.getValue())},"increment"),r=o(h=>{h.key==="Enter"&&this.$input.blur(),h.code==="ArrowUp"&&(h.preventDefault(),i(this._step*this._arrowKeyMultiplier(h))),h.code==="ArrowDown"&&(h.preventDefault(),i(this._step*this._arrowKeyMultiplier(h)*-1))},"onKeyDown"),s=o(h=>{this._inputFocused&&(h.preventDefault(),i(this._step*this._normalizeMouseWheel(h)))},"onWheel"),a=!1,u,g,v,f,d,c=5,l=o(h=>{u=h.clientX,g=v=h.clientY,a=!0,f=this.getValue(),d=0,window.addEventListener("mousemove",p),window.addEventListener("mouseup",b)},"onMouseDown"),p=o(h=>{if(a){let x=h.clientX-u,L=h.clientY-g;Math.abs(L)>c?(h.preventDefault(),this.$input.blur(),a=!1,this._setDraggingStyle(!0,"vertical")):Math.abs(x)>c&&b()}if(!a){let x=h.clientY-v;d-=x*this._step*this._arrowKeyMultiplier(h),f+d>this._max?d=this._max-f:f+d<this._min&&(d=this._min-f),this._snapClampSetValue(f+d)}v=h.clientY},"onMouseMove"),b=o(()=>{this._setDraggingStyle(!1,"vertical"),this._callOnFinishChange(),window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",b)},"onMouseUp"),y=o(()=>{this._inputFocused=!0},"onFocus"),m=o(()=>{this._inputFocused=!1,this.updateDisplay(),this._callOnFinishChange()},"onBlur");this.$input.addEventListener("input",e),this.$input.addEventListener("keydown",r),this.$input.addEventListener("wheel",s,{passive:!1}),this.$input.addEventListener("mousedown",l),this.$input.addEventListener("focus",y),this.$input.addEventListener("blur",m)}_initSlider(){this._hasSlider=!0,this.$slider=document.createElement("div"),this.$slider.classList.add("slider"),this.$fill=document.createElement("div"),this.$fill.classList.add("fill"),this.$slider.appendChild(this.$fill),this.$widget.insertBefore(this.$slider,this.$input),this.domElement.classList.add("hasSlider");let t=o((m,h,x,L,lt)=>(m-h)/(x-h)*(lt-L)+L,"map"),e=o(m=>{let h=this.$slider.getBoundingClientRect(),x=t(m,h.left,h.right,this._min,this._max);this._snapClampSetValue(x)},"setValueFromX"),i=o(m=>{this._setDraggingStyle(!0),e(m.clientX),window.addEventListener("mousemove",r),window.addEventListener("mouseup",s)},"mouseDown"),r=o(m=>{e(m.clientX)},"mouseMove"),s=o(()=>{this._callOnFinishChange(),this._setDraggingStyle(!1),window.removeEventListener("mousemove",r),window.removeEventListener("mouseup",s)},"mouseUp"),a=!1,u,g,v=o(m=>{m.preventDefault(),this._setDraggingStyle(!0),e(m.touches[0].clientX),a=!1},"beginTouchDrag"),f=o(m=>{m.touches.length>1||(this._hasScrollBar?(u=m.touches[0].clientX,g=m.touches[0].clientY,a=!0):v(m),window.addEventListener("touchmove",d,{passive:!1}),window.addEventListener("touchend",c))},"onTouchStart"),d=o(m=>{if(a){let h=m.touches[0].clientX-u,x=m.touches[0].clientY-g;Math.abs(h)>Math.abs(x)?v(m):(window.removeEventListener("touchmove",d),window.removeEventListener("touchend",c))}else m.preventDefault(),e(m.touches[0].clientX)},"onTouchMove"),c=o(()=>{this._callOnFinishChange(),this._setDraggingStyle(!1),window.removeEventListener("touchmove",d),window.removeEventListener("touchend",c)},"onTouchEnd"),l=this._callOnFinishChange.bind(this),p=400,b,y=o(m=>{if(Math.abs(m.deltaX)<Math.abs(m.deltaY)&&this._hasScrollBar)return;m.preventDefault();let x=this._normalizeMouseWheel(m)*this._step;this._snapClampSetValue(this.getValue()+x),this.$input.value=this.getValue(),clearTimeout(b),b=setTimeout(l,p)},"onWheel");this.$slider.addEventListener("mousedown",i),this.$slider.addEventListener("touchstart",f,{passive:!1}),this.$slider.addEventListener("wheel",y,{passive:!1})}_setDraggingStyle(t,e="horizontal"){this.$slider&&this.$slider.classList.toggle("active",t),document.body.classList.toggle("lil-gui-dragging",t),document.body.classList.toggle(`lil-gui-${e}`,t)}_getImplicitStep(){return this._hasMin&&this._hasMax?(this._max-this._min)/1e3:.1}_onUpdateMinMax(){!this._hasSlider&&this._hasMin&&this._hasMax&&(this._stepExplicit||this.step(this._getImplicitStep(),!1),this._initSlider(),this.updateDisplay())}_normalizeMouseWheel(t){let{deltaX:e,deltaY:i}=t;return Math.floor(t.deltaY)!==t.deltaY&&t.wheelDelta&&(e=0,i=-t.wheelDelta/120,i*=this._stepExplicit?1:10),e+-i}_arrowKeyMultiplier(t){let e=this._stepExplicit?1:10;return t.shiftKey?e*=10:t.altKey&&(e/=10),e}_snap(t){let e=Math.round(t/this._step)*this._step;return parseFloat(e.toPrecision(15))}_clamp(t){return t<this._min&&(t=this._min),t>this._max&&(t=this._max),t}_snapClampSetValue(t){this.setValue(this._clamp(this._snap(t)))}get _hasScrollBar(){let t=this.parent.root.$children;return t.scrollHeight>t.clientHeight}get _hasMin(){return this._min!==void 0}get _hasMax(){return this._max!==void 0}};o(U,"NumberController");var I=U,V=class V extends _{constructor(t,e,i,r){super(t,e,i,"option"),this.$select=document.createElement("select"),this.$select.setAttribute("aria-labelledby",this.$name.id),this.$display=document.createElement("div"),this.$display.classList.add("display"),this.$select.addEventListener("change",()=>{this.setValue(this._values[this.$select.selectedIndex]),this._callOnFinishChange()}),this.$select.addEventListener("focus",()=>{this.$display.classList.add("focus")}),this.$select.addEventListener("blur",()=>{this.$display.classList.remove("focus")}),this.$widget.appendChild(this.$select),this.$widget.appendChild(this.$display),this.$disable=this.$select,this.options(r)}options(t){return this._values=Array.isArray(t)?t:Object.values(t),this._names=Array.isArray(t)?t:Object.keys(t),this.$select.replaceChildren(),this._names.forEach(e=>{let i=document.createElement("option");i.textContent=e,this.$select.appendChild(i)}),this.updateDisplay(),this}updateDisplay(){let t=this.getValue(),e=this._values.indexOf(t);return this.$select.selectedIndex=e,this.$display.textContent=e===-1?t:this._names[e],this}};o(V,"OptionController");var O=V,P=class P extends _{constructor(t,e,i){super(t,e,i,"string"),this.$input=document.createElement("input"),this.$input.setAttribute("type","text"),this.$input.setAttribute("spellcheck","false"),this.$input.setAttribute("aria-labelledby",this.$name.id),this.$input.addEventListener("input",()=>{this.setValue(this.$input.value)}),this.$input.addEventListener("keydown",r=>{r.code==="Enter"&&this.$input.blur()}),this.$input.addEventListener("blur",()=>{this._callOnFinishChange()}),this.$widget.appendChild(this.$input),this.$disable=this.$input,this.updateDisplay()}updateDisplay(){return this.$input.value=this.getValue(),this}};o(P,"StringController");var z=P,gt=`.lil-gui {
|
|
2
|
+
font-family: var(--font-family);
|
|
3
|
+
font-size: var(--font-size);
|
|
4
|
+
line-height: 1;
|
|
5
|
+
font-weight: normal;
|
|
6
|
+
font-style: normal;
|
|
7
|
+
text-align: left;
|
|
8
|
+
color: var(--text-color);
|
|
9
|
+
user-select: none;
|
|
10
|
+
-webkit-user-select: none;
|
|
11
|
+
touch-action: manipulation;
|
|
12
|
+
--background-color: #1f1f1f;
|
|
13
|
+
--text-color: #ebebeb;
|
|
14
|
+
--title-background-color: #111111;
|
|
15
|
+
--title-text-color: #ebebeb;
|
|
16
|
+
--widget-color: #424242;
|
|
17
|
+
--hover-color: #4f4f4f;
|
|
18
|
+
--focus-color: #595959;
|
|
19
|
+
--number-color: #2cc9ff;
|
|
20
|
+
--string-color: #a2db3c;
|
|
21
|
+
--font-size: 11px;
|
|
22
|
+
--input-font-size: 11px;
|
|
23
|
+
--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
|
|
24
|
+
--font-family-mono: Menlo, Monaco, Consolas, "Droid Sans Mono", monospace;
|
|
25
|
+
--padding: 4px;
|
|
26
|
+
--spacing: 4px;
|
|
27
|
+
--widget-height: 20px;
|
|
28
|
+
--title-height: calc(var(--widget-height) + var(--spacing) * 1.25);
|
|
29
|
+
--name-width: 45%;
|
|
30
|
+
--slider-knob-width: 2px;
|
|
31
|
+
--slider-input-width: 27%;
|
|
32
|
+
--color-input-width: 27%;
|
|
33
|
+
--slider-input-min-width: 45px;
|
|
34
|
+
--color-input-min-width: 45px;
|
|
35
|
+
--folder-indent: 7px;
|
|
36
|
+
--widget-padding: 0 0 0 3px;
|
|
37
|
+
--widget-border-radius: 2px;
|
|
38
|
+
--checkbox-size: calc(0.75 * var(--widget-height));
|
|
39
|
+
--scrollbar-width: 5px;
|
|
40
|
+
}
|
|
41
|
+
.lil-gui, .lil-gui * {
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
margin: 0;
|
|
44
|
+
padding: 0;
|
|
45
|
+
}
|
|
46
|
+
.lil-gui.root {
|
|
47
|
+
width: var(--width, 245px);
|
|
48
|
+
display: flex;
|
|
49
|
+
flex-direction: column;
|
|
50
|
+
background: var(--background-color);
|
|
51
|
+
}
|
|
52
|
+
.lil-gui.root > .title {
|
|
53
|
+
background: var(--title-background-color);
|
|
54
|
+
color: var(--title-text-color);
|
|
55
|
+
}
|
|
56
|
+
.lil-gui.root > .children {
|
|
57
|
+
overflow-x: hidden;
|
|
58
|
+
overflow-y: auto;
|
|
59
|
+
}
|
|
60
|
+
.lil-gui.root > .children::-webkit-scrollbar {
|
|
61
|
+
width: var(--scrollbar-width);
|
|
62
|
+
height: var(--scrollbar-width);
|
|
63
|
+
background: var(--background-color);
|
|
64
|
+
}
|
|
65
|
+
.lil-gui.root > .children::-webkit-scrollbar-thumb {
|
|
66
|
+
border-radius: var(--scrollbar-width);
|
|
67
|
+
background: var(--focus-color);
|
|
68
|
+
}
|
|
69
|
+
@media (pointer: coarse) {
|
|
70
|
+
.lil-gui.allow-touch-styles, .lil-gui.allow-touch-styles .lil-gui {
|
|
71
|
+
--widget-height: 28px;
|
|
72
|
+
--padding: 6px;
|
|
73
|
+
--spacing: 6px;
|
|
74
|
+
--font-size: 13px;
|
|
75
|
+
--input-font-size: 16px;
|
|
76
|
+
--folder-indent: 10px;
|
|
77
|
+
--scrollbar-width: 7px;
|
|
78
|
+
--slider-input-min-width: 50px;
|
|
79
|
+
--color-input-min-width: 65px;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
.lil-gui.force-touch-styles, .lil-gui.force-touch-styles .lil-gui {
|
|
83
|
+
--widget-height: 28px;
|
|
84
|
+
--padding: 6px;
|
|
85
|
+
--spacing: 6px;
|
|
86
|
+
--font-size: 13px;
|
|
87
|
+
--input-font-size: 16px;
|
|
88
|
+
--folder-indent: 10px;
|
|
89
|
+
--scrollbar-width: 7px;
|
|
90
|
+
--slider-input-min-width: 50px;
|
|
91
|
+
--color-input-min-width: 65px;
|
|
92
|
+
}
|
|
93
|
+
.lil-gui.autoPlace {
|
|
94
|
+
max-height: 100%;
|
|
95
|
+
position: fixed;
|
|
96
|
+
top: 0;
|
|
97
|
+
right: 15px;
|
|
98
|
+
z-index: 1001;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.lil-gui .controller {
|
|
102
|
+
display: flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
padding: 0 var(--padding);
|
|
105
|
+
margin: var(--spacing) 0;
|
|
106
|
+
}
|
|
107
|
+
.lil-gui .controller.disabled {
|
|
108
|
+
opacity: 0.5;
|
|
109
|
+
}
|
|
110
|
+
.lil-gui .controller.disabled, .lil-gui .controller.disabled * {
|
|
111
|
+
pointer-events: none !important;
|
|
112
|
+
}
|
|
113
|
+
.lil-gui .controller > .name {
|
|
114
|
+
min-width: var(--name-width);
|
|
115
|
+
flex-shrink: 0;
|
|
116
|
+
white-space: pre;
|
|
117
|
+
padding-right: var(--spacing);
|
|
118
|
+
line-height: var(--widget-height);
|
|
119
|
+
}
|
|
120
|
+
.lil-gui .controller .widget {
|
|
121
|
+
position: relative;
|
|
122
|
+
display: flex;
|
|
123
|
+
align-items: center;
|
|
124
|
+
width: 100%;
|
|
125
|
+
min-height: var(--widget-height);
|
|
126
|
+
}
|
|
127
|
+
.lil-gui .controller.string input {
|
|
128
|
+
color: var(--string-color);
|
|
129
|
+
}
|
|
130
|
+
.lil-gui .controller.boolean {
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
}
|
|
133
|
+
.lil-gui .controller.color .display {
|
|
134
|
+
width: 100%;
|
|
135
|
+
height: var(--widget-height);
|
|
136
|
+
border-radius: var(--widget-border-radius);
|
|
137
|
+
position: relative;
|
|
138
|
+
}
|
|
139
|
+
@media (hover: hover) {
|
|
140
|
+
.lil-gui .controller.color .display:hover:before {
|
|
141
|
+
content: " ";
|
|
142
|
+
display: block;
|
|
143
|
+
position: absolute;
|
|
144
|
+
border-radius: var(--widget-border-radius);
|
|
145
|
+
border: 1px solid #fff9;
|
|
146
|
+
top: 0;
|
|
147
|
+
right: 0;
|
|
148
|
+
bottom: 0;
|
|
149
|
+
left: 0;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
.lil-gui .controller.color input[type=color] {
|
|
153
|
+
opacity: 0;
|
|
154
|
+
width: 100%;
|
|
155
|
+
height: 100%;
|
|
156
|
+
cursor: pointer;
|
|
157
|
+
}
|
|
158
|
+
.lil-gui .controller.color input[type=text] {
|
|
159
|
+
margin-left: var(--spacing);
|
|
160
|
+
font-family: var(--font-family-mono);
|
|
161
|
+
min-width: var(--color-input-min-width);
|
|
162
|
+
width: var(--color-input-width);
|
|
163
|
+
flex-shrink: 0;
|
|
164
|
+
}
|
|
165
|
+
.lil-gui .controller.option select {
|
|
166
|
+
opacity: 0;
|
|
167
|
+
position: absolute;
|
|
168
|
+
width: 100%;
|
|
169
|
+
max-width: 100%;
|
|
170
|
+
}
|
|
171
|
+
.lil-gui .controller.option .display {
|
|
172
|
+
position: relative;
|
|
173
|
+
pointer-events: none;
|
|
174
|
+
border-radius: var(--widget-border-radius);
|
|
175
|
+
height: var(--widget-height);
|
|
176
|
+
line-height: var(--widget-height);
|
|
177
|
+
max-width: 100%;
|
|
178
|
+
overflow: hidden;
|
|
179
|
+
word-break: break-all;
|
|
180
|
+
padding-left: 0.55em;
|
|
181
|
+
padding-right: 1.75em;
|
|
182
|
+
background: var(--widget-color);
|
|
183
|
+
}
|
|
184
|
+
@media (hover: hover) {
|
|
185
|
+
.lil-gui .controller.option .display.focus {
|
|
186
|
+
background: var(--focus-color);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
.lil-gui .controller.option .display.active {
|
|
190
|
+
background: var(--focus-color);
|
|
191
|
+
}
|
|
192
|
+
.lil-gui .controller.option .display:after {
|
|
193
|
+
font-family: "lil-gui";
|
|
194
|
+
content: "\u2195";
|
|
195
|
+
position: absolute;
|
|
196
|
+
top: 0;
|
|
197
|
+
right: 0;
|
|
198
|
+
bottom: 0;
|
|
199
|
+
padding-right: 0.375em;
|
|
200
|
+
}
|
|
201
|
+
.lil-gui .controller.option .widget,
|
|
202
|
+
.lil-gui .controller.option select {
|
|
203
|
+
cursor: pointer;
|
|
204
|
+
}
|
|
205
|
+
@media (hover: hover) {
|
|
206
|
+
.lil-gui .controller.option .widget:hover .display {
|
|
207
|
+
background: var(--hover-color);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
.lil-gui .controller.number input {
|
|
211
|
+
color: var(--number-color);
|
|
212
|
+
}
|
|
213
|
+
.lil-gui .controller.number.hasSlider input {
|
|
214
|
+
margin-left: var(--spacing);
|
|
215
|
+
width: var(--slider-input-width);
|
|
216
|
+
min-width: var(--slider-input-min-width);
|
|
217
|
+
flex-shrink: 0;
|
|
218
|
+
}
|
|
219
|
+
.lil-gui .controller.number .slider {
|
|
220
|
+
width: 100%;
|
|
221
|
+
height: var(--widget-height);
|
|
222
|
+
background: var(--widget-color);
|
|
223
|
+
border-radius: var(--widget-border-radius);
|
|
224
|
+
padding-right: var(--slider-knob-width);
|
|
225
|
+
overflow: hidden;
|
|
226
|
+
cursor: ew-resize;
|
|
227
|
+
touch-action: pan-y;
|
|
228
|
+
}
|
|
229
|
+
@media (hover: hover) {
|
|
230
|
+
.lil-gui .controller.number .slider:hover {
|
|
231
|
+
background: var(--hover-color);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
.lil-gui .controller.number .slider.active {
|
|
235
|
+
background: var(--focus-color);
|
|
236
|
+
}
|
|
237
|
+
.lil-gui .controller.number .slider.active .fill {
|
|
238
|
+
opacity: 0.95;
|
|
239
|
+
}
|
|
240
|
+
.lil-gui .controller.number .fill {
|
|
241
|
+
height: 100%;
|
|
242
|
+
border-right: var(--slider-knob-width) solid var(--number-color);
|
|
243
|
+
box-sizing: content-box;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.lil-gui-dragging .lil-gui {
|
|
247
|
+
--hover-color: var(--widget-color);
|
|
248
|
+
}
|
|
249
|
+
.lil-gui-dragging * {
|
|
250
|
+
cursor: ew-resize !important;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.lil-gui-dragging.lil-gui-vertical * {
|
|
254
|
+
cursor: ns-resize !important;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.lil-gui .title {
|
|
258
|
+
height: var(--title-height);
|
|
259
|
+
line-height: calc(var(--title-height) - 4px);
|
|
260
|
+
font-weight: 600;
|
|
261
|
+
padding: 0 var(--padding);
|
|
262
|
+
-webkit-tap-highlight-color: transparent;
|
|
263
|
+
cursor: pointer;
|
|
264
|
+
outline: none;
|
|
265
|
+
text-decoration-skip: objects;
|
|
266
|
+
}
|
|
267
|
+
.lil-gui .title:before {
|
|
268
|
+
font-family: "lil-gui";
|
|
269
|
+
content: "\u25BE";
|
|
270
|
+
padding-right: 2px;
|
|
271
|
+
display: inline-block;
|
|
272
|
+
}
|
|
273
|
+
.lil-gui .title:active {
|
|
274
|
+
background: var(--title-background-color);
|
|
275
|
+
opacity: 0.75;
|
|
276
|
+
}
|
|
277
|
+
@media (hover: hover) {
|
|
278
|
+
body:not(.lil-gui-dragging) .lil-gui .title:hover {
|
|
279
|
+
background: var(--title-background-color);
|
|
280
|
+
opacity: 0.85;
|
|
281
|
+
}
|
|
282
|
+
.lil-gui .title:focus {
|
|
283
|
+
text-decoration: underline var(--focus-color);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
.lil-gui.root > .title:focus {
|
|
287
|
+
text-decoration: none !important;
|
|
288
|
+
}
|
|
289
|
+
.lil-gui.closed > .title:before {
|
|
290
|
+
content: "\u25B8";
|
|
291
|
+
}
|
|
292
|
+
.lil-gui.closed > .children {
|
|
293
|
+
transform: translateY(-7px);
|
|
294
|
+
opacity: 0;
|
|
295
|
+
}
|
|
296
|
+
.lil-gui.closed:not(.transition) > .children {
|
|
297
|
+
display: none;
|
|
298
|
+
}
|
|
299
|
+
.lil-gui.transition > .children {
|
|
300
|
+
transition-duration: 300ms;
|
|
301
|
+
transition-property: height, opacity, transform;
|
|
302
|
+
transition-timing-function: cubic-bezier(0.2, 0.6, 0.35, 1);
|
|
303
|
+
overflow: hidden;
|
|
304
|
+
pointer-events: none;
|
|
305
|
+
}
|
|
306
|
+
.lil-gui .children:empty:before {
|
|
307
|
+
content: "Empty";
|
|
308
|
+
padding: 0 var(--padding);
|
|
309
|
+
margin: var(--spacing) 0;
|
|
310
|
+
display: block;
|
|
311
|
+
height: var(--widget-height);
|
|
312
|
+
font-style: italic;
|
|
313
|
+
line-height: var(--widget-height);
|
|
314
|
+
opacity: 0.5;
|
|
315
|
+
}
|
|
316
|
+
.lil-gui.root > .children > .lil-gui > .title {
|
|
317
|
+
border: 0 solid var(--widget-color);
|
|
318
|
+
border-width: 1px 0;
|
|
319
|
+
transition: border-color 300ms;
|
|
320
|
+
}
|
|
321
|
+
.lil-gui.root > .children > .lil-gui.closed > .title {
|
|
322
|
+
border-bottom-color: transparent;
|
|
323
|
+
}
|
|
324
|
+
.lil-gui + .controller {
|
|
325
|
+
border-top: 1px solid var(--widget-color);
|
|
326
|
+
margin-top: 0;
|
|
327
|
+
padding-top: var(--spacing);
|
|
328
|
+
}
|
|
329
|
+
.lil-gui .lil-gui .lil-gui > .title {
|
|
330
|
+
border: none;
|
|
331
|
+
}
|
|
332
|
+
.lil-gui .lil-gui .lil-gui > .children {
|
|
333
|
+
border: none;
|
|
334
|
+
margin-left: var(--folder-indent);
|
|
335
|
+
border-left: 2px solid var(--widget-color);
|
|
336
|
+
}
|
|
337
|
+
.lil-gui .lil-gui .controller {
|
|
338
|
+
border: none;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.lil-gui label, .lil-gui input, .lil-gui button {
|
|
342
|
+
-webkit-tap-highlight-color: transparent;
|
|
343
|
+
}
|
|
344
|
+
.lil-gui input {
|
|
345
|
+
border: 0;
|
|
346
|
+
outline: none;
|
|
347
|
+
font-family: var(--font-family);
|
|
348
|
+
font-size: var(--input-font-size);
|
|
349
|
+
border-radius: var(--widget-border-radius);
|
|
350
|
+
height: var(--widget-height);
|
|
351
|
+
background: var(--widget-color);
|
|
352
|
+
color: var(--text-color);
|
|
353
|
+
width: 100%;
|
|
354
|
+
}
|
|
355
|
+
@media (hover: hover) {
|
|
356
|
+
.lil-gui input:hover {
|
|
357
|
+
background: var(--hover-color);
|
|
358
|
+
}
|
|
359
|
+
.lil-gui input:active {
|
|
360
|
+
background: var(--focus-color);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
.lil-gui input:disabled {
|
|
364
|
+
opacity: 1;
|
|
365
|
+
}
|
|
366
|
+
.lil-gui input[type=text],
|
|
367
|
+
.lil-gui input[type=number] {
|
|
368
|
+
padding: var(--widget-padding);
|
|
369
|
+
-moz-appearance: textfield;
|
|
370
|
+
}
|
|
371
|
+
.lil-gui input[type=text]:focus,
|
|
372
|
+
.lil-gui input[type=number]:focus {
|
|
373
|
+
background: var(--focus-color);
|
|
374
|
+
}
|
|
375
|
+
.lil-gui input[type=checkbox] {
|
|
376
|
+
appearance: none;
|
|
377
|
+
width: var(--checkbox-size);
|
|
378
|
+
height: var(--checkbox-size);
|
|
379
|
+
border-radius: var(--widget-border-radius);
|
|
380
|
+
text-align: center;
|
|
381
|
+
cursor: pointer;
|
|
382
|
+
}
|
|
383
|
+
.lil-gui input[type=checkbox]:checked:before {
|
|
384
|
+
font-family: "lil-gui";
|
|
385
|
+
content: "\u2713";
|
|
386
|
+
font-size: var(--checkbox-size);
|
|
387
|
+
line-height: var(--checkbox-size);
|
|
388
|
+
}
|
|
389
|
+
@media (hover: hover) {
|
|
390
|
+
.lil-gui input[type=checkbox]:focus {
|
|
391
|
+
box-shadow: inset 0 0 0 1px var(--focus-color);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
.lil-gui button {
|
|
395
|
+
outline: none;
|
|
396
|
+
cursor: pointer;
|
|
397
|
+
font-family: var(--font-family);
|
|
398
|
+
font-size: var(--font-size);
|
|
399
|
+
color: var(--text-color);
|
|
400
|
+
width: 100%;
|
|
401
|
+
height: var(--widget-height);
|
|
402
|
+
text-transform: none;
|
|
403
|
+
background: var(--widget-color);
|
|
404
|
+
border-radius: var(--widget-border-radius);
|
|
405
|
+
border: none;
|
|
406
|
+
}
|
|
407
|
+
@media (hover: hover) {
|
|
408
|
+
.lil-gui button:hover {
|
|
409
|
+
background: var(--hover-color);
|
|
410
|
+
}
|
|
411
|
+
.lil-gui button:focus {
|
|
412
|
+
box-shadow: inset 0 0 0 1px var(--focus-color);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
.lil-gui button:active {
|
|
416
|
+
background: var(--focus-color);
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
@font-face {
|
|
420
|
+
font-family: "lil-gui";
|
|
421
|
+
src: url("data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAAUsAAsAAAAACJwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAH4AAADAImwmYE9TLzIAAAGIAAAAPwAAAGBKqH5SY21hcAAAAcgAAAD0AAACrukyyJBnbHlmAAACvAAAAF8AAACEIZpWH2hlYWQAAAMcAAAAJwAAADZfcj2zaGhlYQAAA0QAAAAYAAAAJAC5AHhobXR4AAADXAAAABAAAABMAZAAAGxvY2EAAANsAAAAFAAAACgCEgIybWF4cAAAA4AAAAAeAAAAIAEfABJuYW1lAAADoAAAASIAAAIK9SUU/XBvc3QAAATEAAAAZgAAAJCTcMc2eJxVjbEOgjAURU+hFRBK1dGRL+ALnAiToyMLEzFpnPz/eAshwSa97517c/MwwJmeB9kwPl+0cf5+uGPZXsqPu4nvZabcSZldZ6kfyWnomFY/eScKqZNWupKJO6kXN3K9uCVoL7iInPr1X5baXs3tjuMqCtzEuagm/AAlzQgPAAB4nGNgYRBlnMDAysDAYM/gBiT5oLQBAwuDJAMDEwMrMwNWEJDmmsJwgCFeXZghBcjlZMgFCzOiKOIFAB71Bb8AeJy1kjFuwkAQRZ+DwRAwBtNQRUGKQ8OdKCAWUhAgKLhIuAsVSpWz5Bbkj3dEgYiUIszqWdpZe+Z7/wB1oCYmIoboiwiLT2WjKl/jscrHfGg/pKdMkyklC5Zs2LEfHYpjcRoPzme9MWWmk3dWbK9ObkWkikOetJ554fWyoEsmdSlt+uR0pCJR34b6t/TVg1SY3sYvdf8vuiKrpyaDXDISiegp17p7579Gp3p++y7HPAiY9pmTibljrr85qSidtlg4+l25GLCaS8e6rRxNBmsnERunKbaOObRz7N72ju5vdAjYpBXHgJylOAVsMseDAPEP8LYoUHicY2BiAAEfhiAGJgZWBgZ7RnFRdnVJELCQlBSRlATJMoLV2DK4glSYs6ubq5vbKrJLSbGrgEmovDuDJVhe3VzcXFwNLCOILB/C4IuQ1xTn5FPilBTj5FPmBAB4WwoqAHicY2BkYGAA4sk1sR/j+W2+MnAzpDBgAyEMQUCSg4EJxAEAwUgFHgB4nGNgZGBgSGFggJMhDIwMqEAYAByHATJ4nGNgAIIUNEwmAABl3AGReJxjYAACIQYlBiMGJ3wQAEcQBEV4nGNgZGBgEGZgY2BiAAEQyQWEDAz/wXwGAAsPATIAAHicXdBNSsNAHAXwl35iA0UQXYnMShfS9GPZA7T7LgIu03SSpkwzYTIt1BN4Ak/gKTyAeCxfw39jZkjymzcvAwmAW/wgwHUEGDb36+jQQ3GXGot79L24jxCP4gHzF/EIr4jEIe7wxhOC3g2TMYy4Q7+Lu/SHuEd/ivt4wJd4wPxbPEKMX3GI5+DJFGaSn4qNzk8mcbKSR6xdXdhSzaOZJGtdapd4vVPbi6rP+cL7TGXOHtXKll4bY1Xl7EGnPtp7Xy2n00zyKLVHfkHBa4IcJ2oD3cgggWvt/V/FbDrUlEUJhTn/0azVWbNTNr0Ens8de1tceK9xZmfB1CPjOmPH4kitmvOubcNpmVTN3oFJyjzCvnmrwhJTzqzVj9jiSX911FjeAAB4nG3HMRKCMBBA0f0giiKi4DU8k0V2GWbIZDOh4PoWWvq6J5V8If9NVNQcaDhyouXMhY4rPTcG7jwYmXhKq8Wz+p762aNaeYXom2n3m2dLTVgsrCgFJ7OTmIkYbwIbC6vIB7WmFfAAAA==") format("woff");
|
|
422
|
+
}`;function mt(n){let t=document.createElement("style");t.innerHTML=n;let e=document.querySelector("head link[rel=stylesheet], head style");e?document.head.insertBefore(t,e):document.head.appendChild(t)}o(mt,"_injectStyles");var R=!1,M=class M{constructor({parent:t,autoPlace:e=t===void 0,container:i,width:r,title:s="Controls",closeFolders:a=!1,injectStyles:u=!0,touchStyles:g=!0}={}){if(this.parent=t,this.root=t?t.root:this,this.children=[],this.controllers=[],this.folders=[],this._closed=!1,this._hidden=!1,this.domElement=document.createElement("div"),this.domElement.classList.add("lil-gui"),this.$title=document.createElement("div"),this.$title.classList.add("title"),this.$title.setAttribute("role","button"),this.$title.setAttribute("aria-expanded",!0),this.$title.setAttribute("tabindex",0),this.$title.addEventListener("click",()=>this.openAnimated(this._closed)),this.$title.addEventListener("keydown",v=>{(v.code==="Enter"||v.code==="Space")&&(v.preventDefault(),this.$title.click())}),this.$title.addEventListener("touchstart",()=>{},{passive:!0}),this.$children=document.createElement("div"),this.$children.classList.add("children"),this.domElement.appendChild(this.$title),this.domElement.appendChild(this.$children),this.title(s),this.parent){this.parent.children.push(this),this.parent.folders.push(this),this.parent.$children.appendChild(this.domElement);return}this.domElement.classList.add("root"),g&&this.domElement.classList.add("allow-touch-styles"),!R&&u&&(mt(gt),R=!0),i?i.appendChild(this.domElement):e&&(this.domElement.classList.add("autoPlace"),document.body.appendChild(this.domElement)),r&&this.domElement.style.setProperty("--width",r+"px"),this._closeFolders=a}add(t,e,i,r,s){if(Object(i)===i)return new O(this,t,e,i);let a=t[e];switch(typeof a){case"number":return new I(this,t,e,i,r,s);case"boolean":return new S(this,t,e);case"string":return new z(this,t,e);case"function":return new $(this,t,e)}console.error(`gui.add failed
|
|
423
|
+
property:`,e,`
|
|
424
|
+
object:`,t,`
|
|
425
|
+
value:`,a)}addColor(t,e,i=1){return new D(this,t,e,i)}addFolder(t){let e=new M({parent:this,title:t});return this.root._closeFolders&&e.close(),e}load(t,e=!0){return t.controllers&&this.controllers.forEach(i=>{i instanceof $||i._name in t.controllers&&i.load(t.controllers[i._name])}),e&&t.folders&&this.folders.forEach(i=>{i._title in t.folders&&i.load(t.folders[i._title])}),this}save(t=!0){let e={controllers:{},folders:{}};return this.controllers.forEach(i=>{if(!(i instanceof $)){if(i._name in e.controllers)throw new Error(`Cannot save GUI with duplicate property "${i._name}"`);e.controllers[i._name]=i.save()}}),t&&this.folders.forEach(i=>{if(i._title in e.folders)throw new Error(`Cannot save GUI with duplicate folder "${i._title}"`);e.folders[i._title]=i.save()}),e}open(t=!0){return this._setClosed(!t),this.$title.setAttribute("aria-expanded",!this._closed),this.domElement.classList.toggle("closed",this._closed),this}close(){return this.open(!1)}_setClosed(t){this._closed!==t&&(this._closed=t,this._callOnOpenClose(this))}show(t=!0){return this._hidden=!t,this.domElement.style.display=this._hidden?"none":"",this}hide(){return this.show(!1)}openAnimated(t=!0){return this._setClosed(!t),this.$title.setAttribute("aria-expanded",!this._closed),requestAnimationFrame(()=>{let e=this.$children.clientHeight;this.$children.style.height=e+"px",this.domElement.classList.add("transition");let i=o(s=>{s.target===this.$children&&(this.$children.style.height="",this.domElement.classList.remove("transition"),this.$children.removeEventListener("transitionend",i))},"onTransitionEnd");this.$children.addEventListener("transitionend",i);let r=t?this.$children.scrollHeight:0;this.domElement.classList.toggle("closed",!t),requestAnimationFrame(()=>{this.$children.style.height=r+"px"})}),this}title(t){return this._title=t,this.$title.textContent=t,this}reset(t=!0){return(t?this.controllersRecursive():this.controllers).forEach(i=>i.reset()),this}onChange(t){return this._onChange=t,this}_callOnChange(t){this.parent&&this.parent._callOnChange(t),this._onChange!==void 0&&this._onChange.call(this,{object:t.object,property:t.property,value:t.getValue(),controller:t})}onFinishChange(t){return this._onFinishChange=t,this}_callOnFinishChange(t){this.parent&&this.parent._callOnFinishChange(t),this._onFinishChange!==void 0&&this._onFinishChange.call(this,{object:t.object,property:t.property,value:t.getValue(),controller:t})}onOpenClose(t){return this._onOpenClose=t,this}_callOnOpenClose(t){this.parent&&this.parent._callOnOpenClose(t),this._onOpenClose!==void 0&&this._onOpenClose.call(this,t)}destroy(){this.parent&&(this.parent.children.splice(this.parent.children.indexOf(this),1),this.parent.folders.splice(this.parent.folders.indexOf(this),1)),this.domElement.parentElement&&this.domElement.parentElement.removeChild(this.domElement),Array.from(this.children).forEach(t=>t.destroy())}controllersRecursive(){let t=Array.from(this.controllers);return this.folders.forEach(e=>{t=t.concat(e.controllersRecursive())}),t}foldersRecursive(){let t=Array.from(this.folders);return this.folders.forEach(e=>{t=t.concat(e.foldersRecursive())}),t}};o(M,"GUI");var B=M,K=B;A();A();var C=(()=>{let n=new W;return o(function(e){return n.set(e),`#${n.getHexString()}`},"normalize")})();function Z(n){let t;for(t of n)t()}o(Z,"runAll");function Q(n,t){let e=window.location.href,i=new URL(e),r=new URLSearchParams(i.search);for(let s in n)if(n.hasOwnProperty(s)){let a=`${t}.${s}`;r.set(a,n[s])}i.search=r.toString(),history.pushState({path:i.toString()},"",i.toString())}o(Q,"updateCurrentUrlParamsWithNamespace");function q(n,t){let e=new URLSearchParams(window.location.search),i={};for(let[r,s]of e)if(r.startsWith(`${n}.`)){let a=r.slice(n.length+1);s==="true"||s==="false"?i[a]=s==="true":typeof t[a]=="number"?i[a]=Number(s):i[a]=s}return{namespace:n,params:i}}o(q,"getUrlParamsWithNamespace");function tt(n,t,e){let i={labels:{},all(){e.Labels.all().forEach(l=>{this.labels[l.id]=l}),g()},removeAllLabels(){e.Labels.removeAll().forEach(l=>{delete this.labels[l.id]}),g()}},{addLabel:r,destroy:s}=ft(n,e);n.add(i,"all"),n.add(i,"removeAllLabels");let a=n.addFolder("Label List");n.close();let u=new Map,{rerender:g}=v();function v(){function c(b){var y;delete i.labels[b.id],(y=u.get(b.id))==null||y.destroy()}o(c,"remove");function l(b){let y=j(e,b,a,{onRemove:h=>{c(h)}});if(!y)return;let{labelItemFolder:m}=y;u.set(b.id,m)}o(l,"add");function p(){a.destroy(),a=n.addFolder("Label");for(let b in i.labels){let y=i.labels[b];l(y)}}return o(p,"rerender"),{rerender:p,add:l,remove:c}}o(v,"createLabelControls"),n.domElement.classList.add("list-items");let f;e.on("click",({labels:c,coordinate:l})=>{if(!n._closed)if(c[0]){f==null||f.close();let p=u.get(c[0].id);if(n.open(),!p)return;p==null||p.open(),p==null||p.domElement.scrollIntoView({block:"start"}),p==null||p.domElement.focus(),f=p}else r(l)});function d(c){for(let l of c)i.labels[l.id]=l;g()}return o(d,"populatelabels"),{populatelabels:d,destroy(){s()}}}o(tt,"createLabelControls");function j(n,t,e,{onRemove:i}={}){var v,f,d;let r=e.addFolder(`${t.text.substring(0,8)}`);r.onChange(c=>{n.updateState(t,{appearance:g.appearance,interactive:g.interactive})}),r.close();let s=n.getState(t);if((s==null?void 0:s.type)!=="label")throw new Error(`error getting state for label: ${t.id}`);let{appearance:a,interactive:u}=s;if(!a||a.margin==null||u==null)throw new Error("incomplte label state");let g={text:t.text,interactive:u,appearance:{...a,margin:a.margin||0,marker:{foregroundColor:(f=(v=a.marker)==null?void 0:v.foregroundColor)!=null&&f.active?C((d=a.marker.foregroundColor)==null?void 0:d.active):"black"},text:{foregroundColor:C(a.text.foregroundColor)}},remove(){n.Labels.remove(t),i==null||i(t),r.destroy()}};return r.add(g.appearance,"margin",0,20).name("margin"),r.add(g,"text"),r.add(g,"interactive"),r.addColor(g.appearance.marker,"foregroundColor").name("marker foreground"),r.addColor(g.appearance.text,"foregroundColor").name("text forground"),r.add(g,"remove"),{labelItemFolder:r,destroy(){r.destroy()}}}o(j,"addLabelControlToFolder");function ft(n,t){let e=n.addFolder("Add"),i={onClick:!1,margin:0,text:"New Label!",interactive:!0,marginForegroundColor:C("skyblue"),marginBackgroundColor:C("coral"),textForegroundColor:C("slategray"),textBackgroundColor:C("white")};return e.add(i,"onClick"),e.add(i,"margin"),e.add(i,"interactive"),e.add(i,"text"),e.addColor(i,"marginForegroundColor"),e.addColor(i,"marginBackgroundColor"),e.addColor(i,"textForegroundColor"),e.addColor(i,"textBackgroundColor"),{destroy(){e.destroy()},addLabel(r){return e._closed||!i.onClick?void 0:t.Labels.add(r,i.text,{appearance:{margin:i.margin,marker:{foregroundColor:{active:i.marginForegroundColor,inactive:i.marginForegroundColor},backgroundColor:{active:i.marginBackgroundColor,inactive:i.marginBackgroundColor}},text:{foregroundColor:i.textForegroundColor,backgroundColor:i.marginBackgroundColor}},interactive:i.interactive})}}}o(ft,"createAddControl");A();function et(n,t){t.domElement.id="interactionPanel";let e=t.addFolder("Click \u{1F447}");vt(n,e);let i=t.addFolder("Hover \u{1F681}");yt(n,i)}o(et,"createInteractionControls");function vt(n,t){let e={position:"",hoverColor:C(n.getHoverColor())},i=t.add(e,"position").disable(),r=[];function s(){r.forEach(a=>a()),r.length=0}o(s,"reset"),n.on("click",a=>{var f;let{labels:u,coordinate:g}=a;if(s(),i.load(JSON.stringify([g.longitude,g.latitude])),u[0]){let d=j(n,u[0],t);if(!d)return;r.push(d.destroy),d.labelItemFolder.openAnimated()}let v=(f=a.spaces[0])!=null?f:a.objects[0];if(v){let{cleanup:d}=At(n,{id:v.id,...n.getState(v.id),type:v.type},t);r.push(d)}})}o(vt,"createClickControls");var bt=["interactive"];function At(n,t,e){let i=e.addFolder(`${t.type}-${t.id}`);for(let r in t){if(r==="visible"&&i.add(t,r).onChange(s=>{n.updateState(t.id,{[r]:s})}),r==="color"||r==="hoverColor"){t[r]=C(t[r]),i.addColor(t,r).onChange(s=>{n.updateState(t.id,{[r]:s})});continue}if(r==="height"){i.add(t,r,0,20,1).onChange(s=>{n.updateState(t.id,{[r]:s})});continue}bt.includes(r)&&i.add(t,r).onChange(s=>{n.updateState(t.id,{[r]:s})})}return{cleanup(){i.destroy()}}}o(At,"renderByProp");function yt(n,t){n.setHoverColor("#1f3a7a");let e={position:"",hoverColor:C(n.getHoverColor()),intersected:""},i=t.add(e,"position").disable();t.addColor(e,"hoverColor").onChange(a=>{n.setHoverColor(a)});let r=[];function s(){r.forEach(a=>a()),r.length=0}o(s,"reset"),n.on("hover",({coordinate:a})=>{s(),i.load(JSON.stringify([a.longitude,a.latitude]))})}o(yt,"createHoverControls");var it={};A();function nt(n,t){let e=n.addFolder("Camera \u{1F4F7}").close(),i=t.Camera.center.toJSON(),r=document.createElement("div");Object.assign(r.style,{display:"none",position:"absolute",left:"0px",top:"0px",bottom:"0px",right:"0px",backgroundColor:"aqua",pointerEvents:"none",opacity:.5,zIndex:99999}),document.body.appendChild(r);let s={center_lat:i.latitude,center_lon:i.longitude,zoomLevel:t.Camera.zoomLevel,pitch:t.Camera.pitch,bearing:t.Camera.bearing,minZoomLevel:t.Camera.minZoomLevel,maxZoomLevel:t.Camera.maxZoomLevel,inset_top:0,inset_left:0,inset_right:0,inset_bottom:0,animateOnLoad:!0,share:()=>{Q(e.save().controllers,"camera"),navigator.clipboard.writeText(window.location.href)},visualizeInset:!1};function a(){Object.assign(r.style,{left:s.inset_left+"px",top:s.inset_top+"px",bottom:s.inset_bottom+"px",right:s.inset_right+"px"})}o(a,"updateInsetVisualizer"),e.add(s,"center_lat").listen().disable(),e.add(s,"center_lon").listen().disable(),e.add(s,"zoomLevel",16,22,.5).listen().disable(),e.add(s,"pitch").listen().disable(),e.add(s,"bearing").listen().disable(),e.add(s,"minZoomLevel",5,22,.5).onChange(l=>{t.Camera.setMinZoomLevel(l)}),e.add(s,"maxZoomLevel",10,22,.5).onChange(l=>{t.Camera.setMaxZoomLevel(l)}),e.add(s,"animateOnLoad"),e.add(s,"visualizeInset").onChange(l=>{l?r.style.display="block":r.style.display="none"});let{innerHeight:u,innerWidth:g}=window;e.add(s,"inset_top",0,u,1).onChange(c),e.add(s,"inset_bottom",0,u,1).onChange(c),e.add(s,"inset_left",0,g,1).onChange(c),e.add(s,"inset_right",0,g,1).onChange(c),e.add(s,"share");let v=o(l=>{e._closed||(s.center_lat=l.center.latitude,s.center_lon=l.center.longitude,s.zoomLevel=l.zoomLevel,s.bearing=l.bearing,s.pitch=l.pitch)},"onCameraChanged");t.on("camera-change",v);let{params:f}=q("camera",s);if(Object.keys(f).length>0){let l=f;t.Camera.setScreenOffsets({top:l.inset_top,left:l.inset_left,right:l.inset_right,bottom:l.inset_bottom});let p={pitch:l.pitch,center:new N(l.center_lat,l.center_lon),bearing:l.bearing,zoomLevel:l.zoomLevel};l.animateOnLoad?t.Camera.animateTo(p):t.Camera.set(p),e.load({controllers:l,folders:{}}),a()}let d=[()=>{t.off("camera-change",v)}];function c(){t.Camera.setScreenOffsets({top:s.inset_top,left:s.inset_left,right:s.inset_right,bottom:s.inset_bottom}),a()}return o(c,"updateInset"),()=>({destroy(){e.destroy(),Z(d)}})}o(nt,"createCameraControls");A();function rt(n,t,e){let i={markers:{},removeAllMarkers(){e.Markers.removeAll().forEach(l=>{delete this.markers[l.id]}),g()}},{addMarker:r,destroy:s}=wt(n,e);n.add(i,"removeAllMarkers");let a=n.addFolder("Marker List");n.close();let u=new Map,{rerender:g}=v();function v(){function c(b){var y;delete i.markers[b.id],(y=u.get(b.id))==null||y.destroy()}o(c,"remove");function l(b){let y=Ct(e,b,a,{onRemove:h=>{c(h)}});if(!y)return;let{markerItemFolder:m}=y;u.set(b.id,m)}o(l,"add");function p(){a.destroy(),a=n.addFolder("marker");for(let b in i.markers){let y=i.markers[b];l(y)}}return o(p,"rerender"),{rerender:p,add:l,remove:c}}o(v,"createMarkerControls"),n.domElement.classList.add("list-items");let f;e.on("click",({markers:c,coordinate:l})=>{if(!n._closed)if(c[0]){f==null||f.close();let p=u.get(c[0].id);if(n.open(),!p)return;p==null||p.open(),p==null||p.domElement.scrollIntoView({block:"start"}),p==null||p.domElement.focus(),f=p}else r(l)});function d(c){for(let l of c)i.markers[l.id]=l;g()}return o(d,"populateMarkers"),{populateMarkers:d,destroy(){s()}}}o(rt,"createMarkerControls");function Ct(n,t,e,{onRemove:i}={}){let r=e.addFolder(`${t.id.toString().substring(0,8)}`);r.onChange(g=>{n.updateState(t,{interactive:u.interactive})}),r.close();let s=n.getState(t);if((s==null?void 0:s.type)!=="marker")throw new Error(`error getting state for marker: ${t.id}`);let{interactive:a}=s;if(a==null)throw new Error("incomplte label state");let u={interactive:a,remove(){n.Markers.remove(t),i==null||i(t),r.destroy()}};return r.add(u,"interactive"),r.add(u,"remove"),{markerItemFolder:r,destroy(){r.destroy()}}}o(Ct,"addMarkerControlToFolder");function wt(n,t){let e=n.addFolder("Add"),i={onClick:!1,interactive:!0};return e.add(i,"onClick"),e.add(i,"interactive"),{destroy(){e.destroy()},addMarker(r){return e._closed||!i.onClick?void 0:t.Markers.add(r,"<div>New Marker</div>",{interactive:i.interactive})}}}o(wt,"createAddControl");A();function st(n,t){let e=n.addFolder("Geometries").close(),i={walls:!0};e.add(i,"walls").onChange(r=>{t.updateState("walls",{visible:r})})}o(st,"createGeometryControl");function at(n,t){_t();let e=new K({title:"SDK Controls"});e.domElement.classList.add("mappedin-js-inspector"),et(t,e),nt(e,t);let i=e.addFolder("Levels").close(),r=e.addFolder("Scene Controls"),s=e.addFolder("Labels"),a=e.addFolder("Markers");st(e,t);let u={level:t.currentFloor.id,load:()=>{let d=localStorage.getItem("mappedin-debug"),c=d?JSON.parse(d):{};for(let l in c)t.updateState(l,c[l])},clear(){localStorage.removeItem("mappedin-debug")}};e.add(u,"load"),e.add(u,"clear");let{populatelabels:g}=tt(s,n,t),{populateMarkers:v}=rt(a,n,t),f=n.getByType("floor").reduce((d,c)=>(d[c.name]=c.id,d),{});return i.add(u,"level",f).onChange(d=>{t.setFloor(d)}),t.on("floor-change-start",d=>{i.controllers[0].setValue(d.floor.id)}),n.getByType("space").forEach(d=>{t.updateState(d,{interactive:!0})}),n.getByType("object").forEach(d=>{t.updateState(d,{interactive:!0})}),n.getByType("object").forEach(d=>{t.updateState(d,{interactive:!0})}),t.setHoverColor("#a2b7e6"),{populatelabels:g,sceneFolder:r,populateMarkers:v}}o(at,"createUi");var ot="mappedin-sdk-debug-css";function _t(){if(document.getElementById(ot))return;let n=document.createElement("style");n.id=ot,n.textContent=it,document.head.appendChild(n)}o(_t,"injectCss");var J=class J{_enabled=!1;mv;api;mapData;storeStateToLocalStorageEnabled=!1;constructor(t,e){this.mv=t,this.api=e,this.mapData=this.api.getMapData()}setMapData(t){this.mapData=t}async enable(){var e;if(this._enabled)return;if(this._enabled=!0,!this.mapData)throw new Error("Please set mapData before enable debug.");let{sceneFolder:t}=at(this.mapData,this.mv);X(this.api.core,t),(e=this.api.getMapDataInternal())==null||e.spaces.forEach(i=>{this.mv.updateState(i.id,{interactive:!0})})}get enabled(){return this._enabled}storeState(t,e){if(!this.storeStateToLocalStorageEnabled)return;let i=localStorage.getItem("mappedin-debug"),r=i?JSON.parse(i):{};r[t]={...r[t],...e},localStorage.setItem("mappedin-debug",JSON.stringify(r))}};o(J,"Inspector");var Y=J;export{Y as Inspector};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,a,aa,b,ba,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunk-
|
|
1
|
+
import{$,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,a,aa,b,ba,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunk-E5S56D7B.js";import"./chunk-LDHLD3E3.js";var export_Point=T.default;export{d as AJAXError,J as AttributionControl,y as BoxZoomHandler,q as CanvasSource,I as CooperativeGesturesHandler,E as DoubleClickZoomHandler,F as DragPanHandler,G as DragRotateHandler,t as EdgeInsets,e as Evented,Q as FullscreenControl,n as GeoJSONSource,O as GeolocateControl,u as Hash,o as ImageSource,C as KeyboardHandler,h as LngLat,i as LngLatBounds,K as LogoControl,L as Map,v as MapMouseEvent,w as MapTouchEvent,x as MapWheelEvent,N as Marker,j as MercatorCoordinate,M as NavigationControl,export_Point as Point,S as Popup,m as RasterDEMTileSource,l as RasterTileSource,P as ScaleControl,D as ScrollZoomHandler,s as Style,R as TerrainControl,B as TwoFingersTouchPitchHandler,A as TwoFingersTouchRotateHandler,z as TwoFingersTouchZoomHandler,H as TwoFingersTouchZoomRotateHandler,k as VectorTileSource,p as VideoSource,b as addProtocol,r as addSourceType,g as clearPrewarmedResources,a as config,Z as getMaxParallelImageRequests,V as getRTLTextPluginStatus,W as getVersion,X as getWorkerCount,$ as getWorkerUrl,ba as importScriptInWorkers,f as prewarm,c as removeProtocol,_ as setMaxParallelImageRequests,U as setRTLTextPlugin,Y as setWorkerCount,aa as setWorkerUrl};
|