- TinLayer.js: add scaleZ methode for z-exaggeration

- new RangeSlider.js and RangeSlider.css
- new SliderControl.js and SliderControl.css
- small changes in EventEmitter.js
- change GetiefExplore.code-workspace for debugging
- document formating for page.css
This commit is contained in:
Arno Kaimbacher 2021-01-05 15:49:40 +01:00
parent 8b57f1dcb8
commit ca1a983665
9 changed files with 1318 additions and 468 deletions

172
src/js/core/RangeSlider.css Normal file
View file

@ -0,0 +1,172 @@
/* .range-slider-track .dragger {
display: block;
position: relative;
z-index: 2;
cursor: inherit;
border: none;
height: inherit;
width: 14px;
border-radius: 5%;
background: #333;
} */
.slider {
display: inline-block;
vertical-align: middle;
position: relative;
}
.slider.slider-vertical {
height: 160px;
width: 25px;
}
.slider.slider-vertical .range-slider-track {
cursor: pointer;
/* cursor: pointer; */
width: 5px;
height: 100%;
/* margin-left: -5px; */
left: 50%;
top: 0;
}
.slider.slider-vertical .slider-selection {
width: 100%;
left: 0;
top: 0;
bottom: 0;
border-radius:0%;
}
/* .slider-vertical .range-slider-track:before {
top: 0;
right: auto;
left: 9px;
width: 2px;
height: 100%;
} */
.slider.slider-vertical .slider-handle {
margin-left: -10px;
/* margin-top: -10px; */
}
.slider.slider-vertical .slider-handle.triangle {
border-width: 10px 0 10px 10px;
width: 1px;
height: 1px;
border-left-color: #0480be;
margin-left: 0;
}
/*.no-select {
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}*/
.slider {
display: inline-block;
vertical-align: middle;
position: relative;
}
.slider.slider-horizontal {
width: 100px;
height: 20px;
}
.slider.slider-horizontal .range-slider-track {
height: 8px;
width: 100%;
margin-top: -5px;
top: 50%;
left: 0;
}
.slider.slider-horizontal .slider-selection {
height: 100%;
top: 0;
bottom: 0;
}
.slider.slider-horizontal .slider-handle {
margin-left: -10px;
margin-top: -5px;
}
.range-slider-track {
position: absolute;
cursor: pointer;
background-color: #333;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
border-radius: 4px;
}
/*.slider.slider-horizontal .slider-handle.triangle {
border-width: 0 10px 10px 10px;
width: 0;
height: 0;
border-bottom-color: #0480be;
margin-top: 0;
}*/
.slider input {
display: none;
}
.slider .tooltip-inner {
white-space: nowrap;
}
.slider-selection {
position: absolute;
background-image: -moz-linear-gradient(top, #808080, rgba(0, 0, 0, 0.15));
background-image: -webkit-gradient(linear, 0 0, 0 100%, from( #808080), to(#f9f9f9));
background-image: -webkit-linear-gradient(top, #808080, #f9f9f9);
background-image: -o-linear-gradient(top, #808080, #f9f9f9);
background-image: linear-gradient(to bottom, #808080, #f9f9f9);
background-repeat: repeat-x;
/* filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#808080', endColorstr='#fff9f9f9', GradientType=0); */
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
border-radius: 4px;
}
.slider-handle {
position: absolute;
width: 25px;
height: 10px;
/* background-color: #0e90d2; */
background-color:black;
/* background-image: -moz-linear-gradient(top, #149bdf, #0480be);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#149bdf), to(#0480be));
background-image: -webkit-linear-gradient(top, #149bdf, #0480be);
background-image: -o-linear-gradient(top, #149bdf, #0480be);
background-image: linear-gradient(to bottom, #149bdf, #0480be);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff149bdf', endColorstr='#ff0480be', GradientType=0); */
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .05);
opacity: 0.8;
border: 0 solid transparent;
}
.slider-handle.round {
/* border-radius: 20px; */
}
.slider-handle.triangle {
background: transparent none;
}
.hide {
visibility: hidden;
}