Merge branch 'develop' of https://github.com/potree/potree into develop

# Conflicts:
#	src/viewer/sidebar.html
#	src/viewer/sidebar.js
This commit is contained in:
Lukas Gersthofer 2017-04-22 12:22:55 +02:00
commit d64fbd5dc3
80 changed files with 8340 additions and 3415 deletions

23
.jshintrc Normal file
View File

@ -0,0 +1,23 @@
{
"bitwise": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"immed": true,
"indent": 4,
"latedef": true,
"newcap": true,
"noarg": true,
"nonew": true,
"undef": true,
"unused": true,
"esversion": 6,
"sub": true,
"browser": true,
"node": true,
"globals": {
"Potree": true,
"THREE": true,
"$": true
}
}

View File

@ -48,7 +48,6 @@
.potree_container{ .potree_container{
/*font-size: 75%;*/
} }
.potree_info_text{ .potree_info_text{
@ -89,7 +88,6 @@
#potree_sidebar_container a{ #potree_sidebar_container a{
color: #8Aa1c4; color: #8Aa1c4;
//color: red;
} }
.potree_menu_toggle{ .potree_menu_toggle{
@ -144,8 +142,6 @@ a:hover, a:visited, a:link, a:active{
} }
.annotation{ .annotation{
-webkit-transition: opacity .1s;
transition: opacity .1s;
position: absolute; position: absolute;
padding: 10px; padding: 10px;
opacity: 0.5; opacity: 0.5;
@ -158,14 +154,13 @@ a:hover, a:visited, a:link, a:active{
font-size: 1em; font-size: 1em;
opacity: 1; opacity: 1;
margin: auto; margin: auto;
width: fit-content; display: table;
} }
.annotation-expand{ .annotation-expand{
color: white; color: white;
font-size: 0.6em; font-size: 0.6em;
opacity: 1; opacity: 1;
width: fit-content;
} }
.annotation-action-icon{ .annotation-action-icon{
@ -206,22 +201,18 @@ a:hover, a:visited, a:link, a:active{
} }
.annotation-label{ .annotation-label{
//position: relative;
display: inline-block; display: inline-block;
height: 100%; height: 100%;
flex-grow: 1; flex-grow: 1;
//margin: 2px 8px;
user-select: none; user-select: none;
-moz-user-select: none;
z-index: 100; z-index: 100;
width: fit-content;
vertical-align: middle; vertical-align: middle;
line-height: 1.5em; line-height: 1.5em;
//text-align: center;
font-family: Arial; font-family: Arial;
font-weight: bold; font-weight: bold;
padding: 1px 8px 0px 8px; padding: 1px 8px 0px 8px;
cursor: default; cursor: default;
user-select: none;
white-space: nowrap; white-space: nowrap;
} }
@ -234,6 +225,7 @@ a:hover, a:visited, a:link, a:active{
border-radius: 4px; border-radius: 4px;
display: none; display: none;
max-width: 500px; max-width: 500px;
width: 500px;
} }
.annotation-description-close{ .annotation-description-close{
@ -286,8 +278,61 @@ body{
opacity: 0.1; opacity: 0.1;
} }
.measurement_item{
border-bottom: 1px solid rgba(0, 0, 0, 0.5);
display: block;
position: relative;
}
.measurement_header{
display:flex;
cursor: pointer;
padding: 2px;
}
.measurement_header:hover{
background-color: rgba(255, 255, 255, 0.1);
}
.measurement_item_icon{
width: 24px;
height: 24px;
}
.measurement_header_title{
flex-grow: 1;
display: flex;
align-items: center;
}
.measurement_icon{
padding: 0px 6px 0px 4px;
}
.measurement_content{
padding: 5px 15px 5px 10px;
background-color: rgba(0, 0, 0, 0.4);
}
.measurement_value_table{
width: 100%;
}
.measurement-panel-icon{
width: 16px;
height: 16px;
}
.measurement-panel-title{
flex-grow: 1;
text-align: center;
}
.measurement-panel-remove{
width: 16px;
height: 16px;
}
.measurement-detail-node-marker{ .measurement-detail-node-marker{
border: 1px solid var(--border-color); border: 1px solid var(--border-color);
@ -305,7 +350,7 @@ body{
margin-top: 15px; margin-top: 15px;
text-align: center; text-align: center;
background-color: var(--measurement-detail-node-bg-light); background-color: var(--measurement-detail-node-bg-light);
color: var(--border-color); color: var(--border-color);
} }
.measurement-detail-node-angle{ .measurement-detail-node-angle{
@ -344,6 +389,13 @@ body{
margin-top: 8px; margin-top: 8px;
} }
.pv-panel-heading{ .pv-panel-heading{
padding: 4px !important; padding: 4px !important;
display: flex; display: flex;
@ -415,7 +467,6 @@ body{
} }
.ui-widget-content{ .ui-widget-content{
background-color: none !important;
color: var(--font-color) !important; color: var(--font-color) !important;
} }
@ -438,6 +489,10 @@ body{
cursor: pointer; cursor: pointer;
} }
.accordion > h3:hover{
filter: brightness(125%);
}
.accordion > div{ .accordion > div{
background: none !important; background: none !important;
} }
@ -487,22 +542,9 @@ body{
/* no scrollbar styling in firefox, sadly */
.navmenu::-webkit-scrollbar{
height: 12px;
}
.navmenu::-webkit-scrollbar-track{
background: rgba(0, 0, 0, 0.1);
}
.navmenu::-webkit-scrollbar-thumb{
background: rgba(0, 0, 0, 0.5);
}
.pv-titlebar{ .pv-titlebar{
background-color: var(--color-1); background-color: var(--color-1);
color: #var(--color-2); color: var(--color-2);
font-weight: 700; font-weight: 700;
padding: 5px; padding: 5px;
} }
@ -593,7 +635,7 @@ body{
/* HOVER MENU */
.hover_menu{ .hover_menu{
position: absolute; position: absolute;
@ -603,11 +645,11 @@ body{
border-radius: 100px; border-radius: 100px;
display: block; display: block;
user-select: none; user-select: none;
-moz-user-select: none;
} }
.hover_menu_icon{ .hover_menu_icon{
position: absolute; position: absolute;
//border: 1px solid black;
display: inline-block; display: inline-block;
width: 16px; width: 16px;
height: 16px; height: 16px;
@ -660,4 +702,3 @@ body{
bottom: -5px; bottom: -5px;
opacity: 1.0; opacity: 1.0;
} }

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,93 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="64"
height="64"
viewBox="0 0 64.000001 64.000001"
id="svg2"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="eye.svg">
<defs
id="defs4" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="7.9195959"
inkscape:cx="-11.588817"
inkscape:cy="29.04571"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
units="px"
showguides="false"
inkscape:window-width="2560"
inkscape:window-height="1378"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-988.36216)">
<circle
style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:5;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path4138"
cx="32.167046"
cy="1019.7532"
r="12.911013" />
<circle
r="6.2958488"
cy="1016.4803"
cx="28.566353"
id="circle4140"
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:5;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:6;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 6,1020.3622 c 0,0 8.635627,-20.3563 26,-20.3563 15.414839,0 26,20.3563 26,20.3563 0,0 -5.427431,21.4926 -26,21.4926 -20.126654,0 -26,-21.4926 -26,-21.4926 z"
id="path4136"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cscsc" />
<g
id="g4150"
transform="translate(76.645324,0)">
<path
style="fill:none;fill-rule:evenodd;stroke:#ffffff;stroke-width:12;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 8,1044.3622 56,996.36216"
id="path4144"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<path
sodipodi:nodetypes="cc"
inkscape:connector-curvature="0"
id="path4142"
d="M 8,1044.3622 56,996.36216"
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:8;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -0,0 +1,93 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="64"
height="64"
viewBox="0 0 64.000001 64.000001"
id="svg2"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="eye_crossed.svg">
<defs
id="defs4" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="7.9195959"
inkscape:cx="26.72264"
inkscape:cy="42.323076"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
units="px"
showguides="false"
inkscape:window-width="2560"
inkscape:window-height="1378"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-988.36216)">
<circle
style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:5;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path4138"
cx="32.167046"
cy="1019.7532"
r="12.911013" />
<circle
r="6.2958488"
cy="1016.4803"
cx="28.566353"
id="circle4140"
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:5;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:6;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 6,1020.3622 c 0,0 8.635627,-20.3563 26,-20.3563 15.414839,0 26,20.3563 26,20.3563 0,0 -5.427431,21.4926 -26,21.4926 -20.126654,0 -26,-21.4926 -26,-21.4926 z"
id="path4136"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cscsc" />
<g
id="g4150"
transform="translate(-0.63134584,0)">
<path
style="fill:none;fill-rule:evenodd;stroke:#ffffff;stroke-width:12;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 8,1044.3622 56,996.36216"
id="path4144"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<path
sodipodi:nodetypes="cc"
inkscape:connector-curvature="0"
id="path4142"
d="M 8,1044.3622 56,996.36216"
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:8;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -0,0 +1,24 @@
<?php
$dir = './';
$files = scandir($dir);
foreach($files as $key => $value){
if($value === "." || $value === ".." || $value === "image_preview.php"){
continue;
}
?>
<div style="float: left; margin: 10px; width: 140px; height: 140px">
<span ><?= $value ?></span><br>
<img src="<?= $value ?>" style="width: 128px; border: 1px solid black" />
</div>
<?php
}
?>

View File

@ -1,237 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="64"
height="64"
id="svg2"
version="1.1"
inkscape:version="0.48.5 r10040"
sodipodi:docname="round_dropdown.svg"
inkscape:export-filename="D:\dev\workspaces\potree\develop\resources\icons\round_dropdown.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<defs
id="defs4">
<linearGradient
id="linearGradient3777">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3781" />
<stop
style="stop-color:#316c79;stop-opacity:0.36274511;"
offset="1"
id="stop3783" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient3927">
<stop
style="stop-color:#1c2a30;stop-opacity:1;"
offset="0"
id="stop3929" />
<stop
style="stop-color:#1c2a30;stop-opacity:0;"
offset="1"
id="stop3931" />
</linearGradient>
<linearGradient
id="linearGradient3916">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3920" />
<stop
style="stop-color:#ffffff;stop-opacity:0.28186274;"
offset="1"
id="stop3922" />
</linearGradient>
<linearGradient
id="linearGradient3890">
<stop
style="stop-color:#a9c1c7;stop-opacity:1;"
offset="0"
id="stop3902" />
<stop
id="stop3906"
offset="0.53744453"
style="stop-color:#375d66;stop-opacity:1;" />
<stop
id="stop3904"
offset="1"
style="stop-color:#1b3b42;stop-opacity:1;" />
</linearGradient>
<linearGradient
id="linearGradient3832">
<stop
style="stop-color:#486b7d;stop-opacity:1;"
offset="0"
id="stop3834" />
<stop
style="stop-color:#486b7d;stop-opacity:0;"
offset="1"
id="stop3836" />
</linearGradient>
<linearGradient
id="linearGradient3820">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3822" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3824" />
</linearGradient>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3890"
id="radialGradient3898"
cx="26.198547"
cy="56.964977"
fx="26.198547"
fy="56.964977"
r="31.88294"
gradientUnits="userSpaceOnUse"
spreadMethod="pad"
gradientTransform="matrix(2.3801773,-0.00906618,0.00377252,0.99041515,-30.640162,2.2988206)" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3916"
id="radialGradient3914"
cx="51.502235"
cy="44.744881"
fx="51.502235"
fy="44.744881"
r="31.88294"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(-0.01358059,0.34693581,-0.44544965,-0.01743684,50.983185,28.551401)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3927"
id="linearGradient3933"
x1="62.708218"
y1="-5.5219383"
x2="8.1835146"
y2="102.42551"
gradientUnits="userSpaceOnUse" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3777"
id="radialGradient3785"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(-0.06391254,0.55102676,-0.94714653,-0.10985773,40.412692,-13.569564)"
spreadMethod="pad"
cx="28.949028"
cy="0.31425104"
fx="28.949028"
fy="0.31425104"
r="31.88294" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="5.6"
inkscape:cx="27.539875"
inkscape:cy="13.64197"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="1018"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-988.36215)">
<path
sodipodi:type="arc"
style="fill:url(#radialGradient3898);stroke:none;stroke-width:4.62613439999999980;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:3;fill-opacity:1"
id="path3000-1"
sodipodi:cx="32.135479"
sodipodi:cy="31.611984"
sodipodi:rx="31.88294"
sodipodi:ry="31.88294"
d="m 64.018419,31.611984 c 0,17.608462 -14.274478,31.882941 -31.88294,31.882941 -17.608462,0 -31.88294032,-14.274479 -31.88294032,-31.882941 0,-17.608461 14.27447832,-31.88294004 31.88294032,-31.88294004 17.608462,0 31.88294,14.27447904 31.88294,31.88294004 z"
transform="matrix(0.8772954,0,0,0.8772954,3.8076922,992.6291)" />
<path
sodipodi:type="star"
style="fill:#22333a;fill-opacity:0.55319147999999996;stroke:#000000;stroke-width:2.98419642000000000;stroke-miterlimit:4;stroke-opacity:0.55851066;stroke-dasharray:none"
id="path3789"
sodipodi:sides="3"
sodipodi:cx="-43.035713"
sodipodi:cy="15.428571"
sodipodi:r1="17.18837"
sodipodi:r2="8.5941849"
sodipodi:arg1="2.6179939"
sodipodi:arg2="3.6651914"
inkscape:flatsided="true"
inkscape:rounded="0"
inkscape:randomized="0"
d="m -57.921278,24.022755 14.885565,-25.782554 14.885564,25.782555 z"
transform="matrix(-0.33509859,0,0,-0.33509859,17.79358,1042.2203)"
inkscape:transform-center-y="-5.4685954" />
<image
y="998.36212"
x="10"
id="image2993"
xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAA5FJREFU WIXtl11sVFUUhb8zM0ynLZUqmVpH5qEjQUZLiIhiTMSSJtQihh8V+mDQB0xETIwxiEUJaEjwwcSH hhhJoPgXJCUpxjSEEFoKgoSW2FggvvhXA02AWie02rSdLh/O7dzxQqcFZ9oXd7Jy7z17z97rnnXO PneMJKbSfLlIaozJM8aEpowAsAlYNqFISVkFEAX6gf0Tis8BgQMFoDD0AaHx4rMqgTFmCbBmB1AD hcBTkyYBEAA6F4GSoBMg4MvblgDYATx3CwTemGZQZwwpjpJxFAlwfTwZMiXsKgggoAEoGad4KZB4 Zx7SOhevzUXAylsmAJQXBlHX+2h5OQKuAmszEPh8Tgka+AipzkXr6+PLMFbCTUsXIZ2xqN+KiosQ cBAIe2IXG4NaP3bjh07Za/I0ioQzyzAWgeYPdiIlXVz6HT29LDUbz6ctvB9eXu/G/XgRbX3Xfd74 amYZblZ8OjD4WRtq143YVo+KihFwCPhiZilq6bW+thH00BPo3pgbv/t4ZhmMUzR9L6/IL+bQhz1g fPBbO3RfgMdedGMSl+HIThjog4U18ECVHT/5Cex/hR5gZu05iC4AjcCWWfQluglLGvC2gcBNWkN1 uALanRbV0QTfb4eWBnh8NxREgAiU1Vl/P9AG/HUZGjcjYBXwdVMDdz68APBBZDXTE7t4zxhTK2kk YyMCfr2nDpXLonAxAjYCjf5iNGuf60vHHSsRsNfJUR+c7foe/BuVbEOmkBbg7jHXABAHxMWQUL7o zxdBhoAZjr8GuEaFT7zkd/GsX8CfOP0CexKK7/JsnlH8FBJVvh7gydGaXgmqiQQh/qh9+rYXBjtP S0o4s/WVMaaZ4yPrgaDnt2clXXHujwKHWTJUzdtR2ByFkA9igP/8XfDHMWNMpaRW7wwc5YW40JsW bz0ioHai7diTywBbgGFiM8Q3q0TTamHPiBbA/y8JsKfXAPUbhA5YLIwJmH87BNLyVgDdgCjIk3Of WgfpgcsB0XVK6GfR2yF8vkv/pXha7lLnrYfT9fcS2EXZbHFFFp82CtiTDQJOfr+3uHcRVjO30m5q gIPNAIfJkklKAq3e8QCAMeZ+oIyiSmh3PGeak9jVnFMbnQH76fRLPvQNw+A1uHohtf0mg8BSANqe AVME/vsgi9OfyUY/SsOpEV2H4Q6AI5NBIHUaGmOiQBVWjvnAHHmPylwSmCrL1V+z/wlM2P4BOD/f 77tWK3UAAAAASUVORK5CYII= "
height="44"
width="44" />
<path
sodipodi:type="arc"
style="fill:none;stroke:url(#linearGradient3933);stroke-width:4.62557993999999970;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:3;fill-opacity:1"
id="path3000"
sodipodi:cx="32.135479"
sodipodi:cy="31.611984"
sodipodi:rx="31.88294"
sodipodi:ry="31.88294"
d="m 64.018419,31.611984 c 0,17.608462 -14.274478,31.882941 -31.88294,31.882941 -17.608462,0 -31.88294032,-14.274479 -31.88294032,-31.882941 0,-17.608461 14.27447832,-31.88294004 31.88294032,-31.88294004 17.608462,0 31.88294,14.27447904 31.88294,31.88294004 z"
transform="matrix(0.8772954,0,0,0.8772954,3.8076922,992.6291)" />
<rect
style="fill:#22333a;fill-opacity:0.5;stroke:#000000;stroke-width:0.77430558;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:0.6755319;stroke-dasharray:none;stroke-dashoffset:3"
id="rect3791"
width="10.78497"
height="7.18998"
x="8.8157263"
y="1077.2493" />
<path
transform="matrix(0.8772954,0,0,0.8772954,3.8076922,992.6291)"
d="m 64.018419,31.611984 c 0,17.608462 -14.274478,31.882941 -31.88294,31.882941 -17.608462,0 -31.88294032,-14.274479 -31.88294032,-31.882941 0,-17.608461 14.27447832,-31.88294004 31.88294032,-31.88294004 17.608462,0 31.88294,14.27447904 31.88294,31.88294004 z"
sodipodi:ry="31.88294"
sodipodi:rx="31.88294"
sodipodi:cy="31.611984"
sodipodi:cx="32.135479"
id="path3005"
style="fill:url(#radialGradient3785);stroke:none;stroke-width:4.62613439999999980;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:3;fill-opacity:1"
sodipodi:type="arc" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 9.7 KiB

View File

@ -1,230 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="64"
height="64"
id="svg2"
version="1.1"
inkscape:version="0.48.5 r10040"
sodipodi:docname="round_icon.svg"
inkscape:export-filename="D:\dev\workspaces\potree\develop\resources\icons\round_icon.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<defs
id="defs4">
<linearGradient
id="linearGradient3777">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3781" />
<stop
style="stop-color:#316c79;stop-opacity:0.36274511;"
offset="1"
id="stop3783" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient3927">
<stop
style="stop-color:#1c2a30;stop-opacity:1;"
offset="0"
id="stop3929" />
<stop
style="stop-color:#1c2a30;stop-opacity:0;"
offset="1"
id="stop3931" />
</linearGradient>
<linearGradient
id="linearGradient3916">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3920" />
<stop
style="stop-color:#ffffff;stop-opacity:0.28186274;"
offset="1"
id="stop3922" />
</linearGradient>
<linearGradient
id="linearGradient3890">
<stop
style="stop-color:#a9c1c7;stop-opacity:1;"
offset="0"
id="stop3902" />
<stop
id="stop3906"
offset="0.53744453"
style="stop-color:#375d66;stop-opacity:1;" />
<stop
id="stop3904"
offset="1"
style="stop-color:#1b3b42;stop-opacity:1;" />
</linearGradient>
<linearGradient
id="linearGradient3832">
<stop
style="stop-color:#486b7d;stop-opacity:1;"
offset="0"
id="stop3834" />
<stop
style="stop-color:#486b7d;stop-opacity:0;"
offset="1"
id="stop3836" />
</linearGradient>
<linearGradient
id="linearGradient3820">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3822" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3824" />
</linearGradient>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3890"
id="radialGradient3898"
cx="26.198547"
cy="56.964977"
fx="26.198547"
fy="56.964977"
r="31.88294"
gradientUnits="userSpaceOnUse"
spreadMethod="pad"
gradientTransform="matrix(2.3801773,-0.00906618,0.00377252,0.99041515,-30.640162,2.2988206)" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3916"
id="radialGradient3914"
cx="51.502235"
cy="44.744881"
fx="51.502235"
fy="44.744881"
r="31.88294"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(-0.01358059,0.34693581,-0.44544965,-0.01743684,50.983185,28.551401)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3927"
id="linearGradient3933"
x1="62.708218"
y1="-5.5219383"
x2="8.1835146"
y2="102.42551"
gradientUnits="userSpaceOnUse" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3777"
id="radialGradient3785"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(-0.06391254,0.55102676,-0.94714653,-0.10985773,40.412692,-13.569564)"
spreadMethod="pad"
cx="28.949028"
cy="0.31425104"
fx="28.949028"
fy="0.31425104"
r="31.88294" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="5.6"
inkscape:cx="14.039753"
inkscape:cy="24.532012"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="1018"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-988.36215)">
<path
sodipodi:type="arc"
style="fill:url(#radialGradient3898);stroke:none;stroke-width:4.62613439999999980;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:3;fill-opacity:1"
id="path3000-1"
sodipodi:cx="32.135479"
sodipodi:cy="31.611984"
sodipodi:rx="31.88294"
sodipodi:ry="31.88294"
d="m 64.018419,31.611984 c 0,17.608462 -14.274478,31.882941 -31.88294,31.882941 -17.608462,0 -31.88294032,-14.274479 -31.88294032,-31.882941 0,-17.608461 14.27447832,-31.88294004 31.88294032,-31.88294004 17.608462,0 31.88294,14.27447904 31.88294,31.88294004 z"
transform="matrix(0.8772954,0,0,0.8772954,3.8076922,992.6291)" />
<path
sodipodi:type="star"
style="fill:#22333a;fill-opacity:1;stroke:#000000;stroke-opacity:1;stroke-width:2.98419638;stroke-miterlimit:4;stroke-dasharray:none"
id="path3789"
sodipodi:sides="3"
sodipodi:cx="-43.035713"
sodipodi:cy="15.428571"
sodipodi:r1="17.18837"
sodipodi:r2="8.5941849"
sodipodi:arg1="2.6179939"
sodipodi:arg2="3.6651914"
inkscape:flatsided="true"
inkscape:rounded="0"
inkscape:randomized="0"
d="m -57.921278,24.022755 14.885565,-25.782554 14.885564,25.782555 z"
transform="matrix(-0.33509859,0,0,-0.33509859,17.436437,1043.1132)"
inkscape:transform-center-y="-5.4685954" />
<image
y="998.36212"
x="10"
id="image2993"
xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAA5FJREFU WIXtl11sVFUUhb8zM0ynLZUqmVpH5qEjQUZLiIhiTMSSJtQihh8V+mDQB0xETIwxiEUJaEjwwcSH hhhJoPgXJCUpxjSEEFoKgoSW2FggvvhXA02AWie02rSdLh/O7dzxQqcFZ9oXd7Jy7z17z97rnnXO PneMJKbSfLlIaozJM8aEpowAsAlYNqFISVkFEAX6gf0Tis8BgQMFoDD0AaHx4rMqgTFmCbBmB1AD hcBTkyYBEAA6F4GSoBMg4MvblgDYATx3CwTemGZQZwwpjpJxFAlwfTwZMiXsKgggoAEoGad4KZB4 Zx7SOhevzUXAylsmAJQXBlHX+2h5OQKuAmszEPh8Tgka+AipzkXr6+PLMFbCTUsXIZ2xqN+KiosQ cBAIe2IXG4NaP3bjh07Za/I0ioQzyzAWgeYPdiIlXVz6HT29LDUbz6ctvB9eXu/G/XgRbX3Xfd74 amYZblZ8OjD4WRtq143YVo+KihFwCPhiZilq6bW+thH00BPo3pgbv/t4ZhmMUzR9L6/IL+bQhz1g fPBbO3RfgMdedGMSl+HIThjog4U18ECVHT/5Cex/hR5gZu05iC4AjcCWWfQluglLGvC2gcBNWkN1 uALanRbV0QTfb4eWBnh8NxREgAiU1Vl/P9AG/HUZGjcjYBXwdVMDdz68APBBZDXTE7t4zxhTK2kk YyMCfr2nDpXLonAxAjYCjf5iNGuf60vHHSsRsNfJUR+c7foe/BuVbEOmkBbg7jHXABAHxMWQUL7o zxdBhoAZjr8GuEaFT7zkd/GsX8CfOP0CexKK7/JsnlH8FBJVvh7gydGaXgmqiQQh/qh9+rYXBjtP S0o4s/WVMaaZ4yPrgaDnt2clXXHujwKHWTJUzdtR2ByFkA9igP/8XfDHMWNMpaRW7wwc5YW40JsW bz0ioHai7diTywBbgGFiM8Q3q0TTamHPiBbA/y8JsKfXAPUbhA5YLIwJmH87BNLyVgDdgCjIk3Of WgfpgcsB0XVK6GfR2yF8vkv/pXha7lLnrYfT9fcS2EXZbHFFFp82CtiTDQJOfr+3uHcRVjO30m5q gIPNAIfJkklKAq3e8QCAMeZ+oIyiSmh3PGeak9jVnFMbnQH76fRLPvQNw+A1uHohtf0mg8BSANqe AVME/vsgi9OfyUY/SsOpEV2H4Q6AI5NBIHUaGmOiQBVWjvnAHHmPylwSmCrL1V+z/wlM2P4BOD/f 77tWK3UAAAAASUVORK5CYII= "
height="44"
width="44" />
<path
sodipodi:type="arc"
style="fill:none;stroke:url(#linearGradient3933);stroke-width:4.62557993999999970;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:3;fill-opacity:1"
id="path3000"
sodipodi:cx="32.135479"
sodipodi:cy="31.611984"
sodipodi:rx="31.88294"
sodipodi:ry="31.88294"
d="m 64.018419,31.611984 c 0,17.608462 -14.274478,31.882941 -31.88294,31.882941 -17.608462,0 -31.88294032,-14.274479 -31.88294032,-31.882941 0,-17.608461 14.27447832,-31.88294004 31.88294032,-31.88294004 17.608462,0 31.88294,14.27447904 31.88294,31.88294004 z"
transform="matrix(0.8772954,0,0,0.8772954,3.8076922,992.6291)" />
<path
transform="matrix(0.8772954,0,0,0.8772954,3.8076922,992.6291)"
d="m 64.018419,31.611984 c 0,17.608462 -14.274478,31.882941 -31.88294,31.882941 -17.608462,0 -31.88294032,-14.274479 -31.88294032,-31.882941 0,-17.608461 14.27447832,-31.88294004 31.88294032,-31.88294004 17.608462,0 31.88294,14.27447904 31.88294,31.88294004 z"
sodipodi:ry="31.88294"
sodipodi:rx="31.88294"
sodipodi:cy="31.611984"
sodipodi:cx="32.135479"
id="path3005"
style="fill:url(#radialGradient3785);stroke:none;stroke-width:4.62613439999999980;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:3;fill-opacity:1"
sodipodi:type="arc" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 9.4 KiB

View File

@ -49,7 +49,10 @@
"freeze": "Lock view", "freeze": "Lock view",
"language": "Language" "language": "Language"
}, },
"profile": { "annotations": {
"show": "show annotations"
},
"profile": {
"nb_points": "Point number", "nb_points": "Point number",
"title": "Height profile", "title": "Height profile",
"save_las": "Save LAS(3D)", "save_las": "Save LAS(3D)",

View File

@ -0,0 +1,66 @@
{
"tb": {
"navigation_opt": "ナビゲーション",
"rendering_opt": "外観",
"tools_opt": "ツール",
"measurments_opt": "測定結果",
"annotations_opt": "注釈",
"materials_opt": "材料",
"scene_opt": "シーン",
"classification_filter_opt": "フィルター分類",
"parameters_opt": "その他の設定",
"about_opt": "協力"
},
"tt": {
"angle_measurement": "角度測定",
"distance_measurement": "距離測定",
"height_measurement": "標高測定",
"area_measurement": "面積測定",
"volume_measurement": "体積測定",
"height_profile": "断面図",
"clip_volume": "クリッピングボリューム",
"remove_all_measurement": "計測結果のクリア",
"left_view_control": "左から見る",
"front_view_control": "前から見る",
"top_view_control": "上から見る",
"focus_control": "全体表示",
"orbit_control": " 軌道制御",
"flight_control": "Vol",
"earth_control": "地球"
},
"appearance": {
"nb_max_pts": "表示するポイント数を設定",
"point_size": "点サイズを設定",
"point_opacity": "不透明度",
"field_view": "視野",
"point_size_type": "点タイプ設定",
"point_material": "点の材質",
"elevation_range": "Plage altimétrique",
"point_quality": "品質",
"edl_radius": "点群の半径",
"edl_strength": "点群の強度",
"edl_enable": "アクティブにする",
"min_node_size": "最小ノードサイズ",
"clip_mode": "クリップモード",
"move_speed": "動く速度",
"skybox": "空",
"bottom_lock": "地上面を固定します。",
"box": "ボックス",
"freeze": "ビューの固定",
"language": "言語"
},
"profile": {
"nb_points": "点群番号",
"title": "Profil altimétrique",
"save_las": "LAS(3D)形式で保存",
"save_ortho": "CSV(2D)形式で保存",
"save": "保存"
},
"scene": {
"camera_position": "Camera Position",
"camera_target": "Camera Target"
},
"settings": {
"language": "言語"
}
}

Binary file not shown.

Binary file not shown.

View File

@ -14,7 +14,8 @@
<div style="font-family:arial;"> <div style="font-family:arial;">
<a href="javascript:viewer.setLanguage('en');" style="margin-left: 30px;">EN</a> - <a href="javascript:viewer.setLanguage('en');" style="margin-left: 30px;">EN</a> -
<a href="javascript:viewer.setLanguage('fr');">FR</a> - <a href="javascript:viewer.setLanguage('fr');">FR</a> -
<a href="javascript:viewer.setLanguage('de');">DE</a> <a href="javascript:viewer.setLanguage('de');">DE</a> -
<a href="javascript:viewer.setLanguage('jp');">JP</a>
</div> </div>
<div> <div>
<!--<div id="accordion" class="accordion">--> <!--<div id="accordion" class="accordion">-->
@ -94,8 +95,12 @@
<!-- MEASUREMENTS --> <!-- MEASUREMENTS -->
<h3 id="menu_measurements"><span data-i18n="tb.measurments_opt"></span></h3> <h3 id="menu_measurements"><span data-i18n="tb.measurments_opt"></span></h3>
<div> <div id="measurement_details">
<ul class="pv-menu-list selectable" id="measurement_details"></ul> <!-- <ul class="pv-menu-list selectable" id="measurement_details"></ul> -->
<div id="measurement_list_before" style="margin: 6px 2px 6px 2px"></div>
<div id="measurement_list"></div>
<div id="measurement_list_after" style="margin: 6px 2px 6px 2px"></div>
</div> </div>
<!-- ANNOTATIONS --> <!-- ANNOTATIONS -->

View File

@ -106,7 +106,7 @@
"description": `<ul><li>Click on the annotation label to move a predefined view.</li> "description": `<ul><li>Click on the annotation label to move a predefined view.</li>
<li>Click on the icon to execute the specified action.</li> <li>Click on the icon to execute the specified action.</li>
In this case, the action will bring you to another scene and point cloud.</ul>`, In this case, the action will bring you to another scene and point cloud.</ul>`,
"actions": [{ actions: [{
"icon": Potree.resourcePath + "/icons/goto.svg", "icon": Potree.resourcePath + "/icons/goto.svg",
"onclick": function(){ "onclick": function(){
viewer.setScene(sceneLion); viewer.setScene(sceneLion);

View File

@ -0,0 +1,12 @@
<html>
<head></head>
<body>
<div style="position: absolute; left: 20%; right: 20%; top: 20%; bottom: 20%">
<iframe src="viewer.html" style="width: 100%; height: 100%"></iframe>
</div>
</body>
</html>

View File

@ -94,6 +94,7 @@
{ // ANGLE MEASURE { // ANGLE MEASURE
let measure = new Potree.Measure(); let measure = new Potree.Measure();
measure.name = "Angle Sample";
measure.closed = true; measure.closed = true;
measure.showAngles = true; measure.showAngles = true;
measure.showDistances = false; measure.showDistances = false;
@ -106,6 +107,7 @@
{ // SINGLE POINT MEASURE { // SINGLE POINT MEASURE
let measure = new Potree.Measure(); let measure = new Potree.Measure();
measure.name = "Canopy";
measure.showDistances = false; measure.showDistances = false;
measure.showCoordinates = true; measure.showCoordinates = true;
measure.maxMarkers = 1; measure.maxMarkers = 1;
@ -116,6 +118,7 @@
{ // HEIGHT MEASURE { // HEIGHT MEASURE
let measure = new Potree.Measure(); let measure = new Potree.Measure();
measure.name = "Tree Height";
measure.closed = false; measure.closed = false;
measure.showDistances = false; measure.showDistances = false;
measure.showHeight = true; measure.showHeight = true;
@ -127,6 +130,7 @@
{ // AREA MEASURE { // AREA MEASURE
let measure = new Potree.Measure(); let measure = new Potree.Measure();
measure.name = "Area";
measure.closed = true; measure.closed = true;
measure.showArea = true; measure.showArea = true;
measure.addMarker(new THREE.Vector3(589899.37, 231300.16, 750.25)); measure.addMarker(new THREE.Vector3(589899.37, 231300.16, 750.25));

View File

@ -8,6 +8,9 @@ var rename = require('gulp-rename');
var uglify = require('gulp-uglify'); var uglify = require('gulp-uglify');
var gutil = require('gulp-util'); var gutil = require('gulp-util');
var through = require('through'); var through = require('through');
var jshint=require('gulp-jshint');
var os = require('os'); var os = require('os');
var File = gutil.File; var File = gutil.File;
@ -40,6 +43,7 @@ var paths = {
"src/navigation/EarthControls.js", "src/navigation/EarthControls.js",
"src/LRU.js", "src/LRU.js",
"src/Annotation.js", "src/Annotation.js",
"src/Actions.js",
"src/ProfileRequest.js", "src/ProfileRequest.js",
"src/PointCloudOctree.js", "src/PointCloudOctree.js",
"src/PointCloudOctreeGeometry.js", "src/PointCloudOctreeGeometry.js",
@ -167,6 +171,27 @@ gulp.task("scripts", ['workers','shaders'], function(){
return; return;
}); });
gulp.task('linter', function(){
gulp.src(paths.potree)
.pipe(jshint())
.pipe(jshint.reporter('default'));
gulp.src(paths.laslaz)
.pipe(jshint())
.pipe(jshint.reporter('default'));
gulp.src(workers.laslaz)
.pipe(jshint())
.pipe(jshint.reporter('default'));
gulp.src(workers.LASDecoder)
.pipe(jshint())
.pipe(jshint.reporter('default'));
gulp.src(workers.BinaryDecoder)
.pipe(jshint())
.pipe(jshint.reporter('default'));
gulp.src(workers.GreyhoundBinaryDecoder)
.pipe(jshint())
.pipe(jshint.reporter('default'));
});
gulp.task('build', ['scripts']); gulp.task('build', ['scripts']);
gulp.task('watch', function() { gulp.task('watch', function() {

View File

@ -1,5 +0,0 @@
{
"shadow": true,
"eqnull": true,
"laxbreak": true
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 418 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 312 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 262 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 348 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 278 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 328 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

559
libs/jquery-ui/index.html Normal file
View File

@ -0,0 +1,559 @@
<!doctype html>
<html lang="us">
<head>
<meta charset="utf-8">
<title>jQuery UI Example Page</title>
<link href="jquery-ui.css" rel="stylesheet">
<style>
body{
font-family: "Trebuchet MS", sans-serif;
margin: 50px;
}
.demoHeaders {
margin-top: 2em;
}
#dialog-link {
padding: .4em 1em .4em 20px;
text-decoration: none;
position: relative;
}
#dialog-link span.ui-icon {
margin: 0 5px 0 0;
position: absolute;
left: .2em;
top: 50%;
margin-top: -8px;
}
#icons {
margin: 0;
padding: 0;
}
#icons li {
margin: 2px;
position: relative;
padding: 4px 0;
cursor: pointer;
float: left;
list-style: none;
}
#icons span.ui-icon {
float: left;
margin: 0 4px;
}
.fakewindowcontain .ui-widget-overlay {
position: absolute;
}
select {
width: 200px;
}
</style>
</head>
<body>
<h1>Welcome to jQuery UI!</h1>
<div class="ui-widget">
<p>This page demonstrates the widgets and theme you selected in Download Builder. Please make sure you are using them with a compatible jQuery version.</p>
</div>
<h1>YOUR COMPONENTS:</h1>
<!-- Accordion -->
<h2 class="demoHeaders">Accordion</h2>
<div id="accordion">
<h3>First</h3>
<div>Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.</div>
<h3>Second</h3>
<div>Phasellus mattis tincidunt nibh.</div>
<h3>Third</h3>
<div>Nam dui erat, auctor a, dignissim quis.</div>
</div>
<!-- Autocomplete -->
<h2 class="demoHeaders">Autocomplete</h2>
<div>
<input id="autocomplete" title="type &quot;a&quot;">
</div>
<!-- Button -->
<h2 class="demoHeaders">Button</h2>
<button id="button">A button element</button>
<button id="button-icon">An icon-only button</button>
<!-- Checkboxradio -->
<h2 class="demoHeaders">Checkboxradio</h2>
<form style="margin-top: 1em;">
<div id="radioset">
<input type="radio" id="radio1" name="radio"><label for="radio1">Choice 1</label>
<input type="radio" id="radio2" name="radio" checked="checked"><label for="radio2">Choice 2</label>
<input type="radio" id="radio3" name="radio"><label for="radio3">Choice 3</label>
</div>
</form>
<!-- Controlgroup -->
<h2 class="demoHeaders">Controlgroup</h2>
<fieldset>
<legend>Rental Car</legend>
<div id="controlgroup">
<select id="car-type">
<option>Compact car</option>
<option>Midsize car</option>
<option>Full size car</option>
<option>SUV</option>
<option>Luxury</option>
<option>Truck</option>
<option>Van</option>
</select>
<label for="transmission-standard">Standard</label>
<input type="radio" name="transmission" id="transmission-standard">
<label for="transmission-automatic">Automatic</label>
<input type="radio" name="transmission" id="transmission-automatic">
<label for="insurance">Insurance</label>
<input type="checkbox" name="insurance" id="insurance">
<label for="horizontal-spinner" class="ui-controlgroup-label"># of cars</label>
<input id="horizontal-spinner" class="ui-spinner-input">
<button>Book Now!</button>
</div>
</fieldset>
<!-- Tabs -->
<h2 class="demoHeaders">Tabs</h2>
<div id="tabs">
<ul>
<li><a href="#tabs-1">First</a></li>
<li><a href="#tabs-2">Second</a></li>
<li><a href="#tabs-3">Third</a></li>
</ul>
<div id="tabs-1">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</div>
<div id="tabs-2">Phasellus mattis tincidunt nibh. Cras orci urna, blandit id, pretium vel, aliquet ornare, felis. Maecenas scelerisque sem non nisl. Fusce sed lorem in enim dictum bibendum.</div>
<div id="tabs-3">Nam dui erat, auctor a, dignissim quis, sollicitudin eu, felis. Pellentesque nisi urna, interdum eget, sagittis et, consequat vestibulum, lacus. Mauris porttitor ullamcorper augue.</div>
</div>
<h2 class="demoHeaders">Dialog</h2>
<p>
<button id="dialog-link" class="ui-button ui-corner-all ui-widget">
<span class="ui-icon ui-icon-newwin"></span>Open Dialog
</button>
</p>
<h2 class="demoHeaders">Overlay and Shadow Classes</h2>
<div style="position: relative; width: 96%; height: 200px; padding:1% 2%; overflow:hidden;" class="fakewindowcontain">
<p>Lorem ipsum dolor sit amet, Nulla nec tortor. Donec id elit quis purus consectetur consequat. </p><p>Nam congue semper tellus. Sed erat dolor, dapibus sit amet, venenatis ornare, ultrices ut, nisi. Aliquam ante. Suspendisse scelerisque dui nec velit. Duis augue augue, gravida euismod, vulputate ac, facilisis id, sem. Morbi in orci. </p><p>Nulla purus lacus, pulvinar vel, malesuada ac, mattis nec, quam. Nam molestie scelerisque quam. Nullam feugiat cursus lacus.orem ipsum dolor sit amet, consectetur adipiscing elit. Donec libero risus, commodo vitae, pharetra mollis, posuere eu, pede. Nulla nec tortor. Donec id elit quis purus consectetur consequat. </p><p>Nam congue semper tellus. Sed erat dolor, dapibus sit amet, venenatis ornare, ultrices ut, nisi. Aliquam ante. Suspendisse scelerisque dui nec velit. Duis augue augue, gravida euismod, vulputate ac, facilisis id, sem. Morbi in orci. Nulla purus lacus, pulvinar vel, malesuada ac, mattis nec, quam. Nam molestie scelerisque quam. </p><p>Nullam feugiat cursus lacus.orem ipsum dolor sit amet, consectetur adipiscing elit. Donec libero risus, commodo vitae, pharetra mollis, posuere eu, pede. Nulla nec tortor. Donec id elit quis purus consectetur consequat. Nam congue semper tellus. Sed erat dolor, dapibus sit amet, venenatis ornare, ultrices ut, nisi. Aliquam ante. </p><p>Suspendisse scelerisque dui nec velit. Duis augue augue, gravida euismod, vulputate ac, facilisis id, sem. Morbi in orci. Nulla purus lacus, pulvinar vel, malesuada ac, mattis nec, quam. Nam molestie scelerisque quam. Nullam feugiat cursus lacus.orem ipsum dolor sit amet, consectetur adipiscing elit. Donec libero risus, commodo vitae, pharetra mollis, posuere eu, pede. Nulla nec tortor. Donec id elit quis purus consectetur consequat. Nam congue semper tellus. Sed erat dolor, dapibus sit amet, venenatis ornare, ultrices ut, nisi. </p>
<!-- ui-dialog -->
<div class="ui-widget-overlay ui-front"></div>
<div style="position: absolute; width: 320px; left: 50px; top: 30px; padding: 1.2em" class="ui-widget ui-front ui-widget-content ui-corner-all ui-widget-shadow">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
</div>
</div>
<!-- ui-dialog -->
<div id="dialog" title="Dialog Title">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
</div>
<h2 class="demoHeaders">Framework Icons (content color preview)</h2>
<ul id="icons" class="ui-widget ui-helper-clearfix">
<li class="ui-state-default ui-corner-all" title=".ui-icon-caret-1-n"><span class="ui-icon ui-icon-caret-1-n"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-caret-1-ne"><span class="ui-icon ui-icon-caret-1-ne"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-caret-1-e"><span class="ui-icon ui-icon-caret-1-e"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-caret-1-se"><span class="ui-icon ui-icon-caret-1-se"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-caret-1-s"><span class="ui-icon ui-icon-caret-1-s"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-caret-1-sw"><span class="ui-icon ui-icon-caret-1-sw"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-caret-1-w"><span class="ui-icon ui-icon-caret-1-w"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-caret-1-nw"><span class="ui-icon ui-icon-caret-1-nw"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-caret-2-n-s"><span class="ui-icon ui-icon-caret-2-n-s"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-caret-2-e-w"><span class="ui-icon ui-icon-caret-2-e-w"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-triangle-1-n"><span class="ui-icon ui-icon-triangle-1-n"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-triangle-1-ne"><span class="ui-icon ui-icon-triangle-1-ne"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-triangle-1-e"><span class="ui-icon ui-icon-triangle-1-e"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-triangle-1-se"><span class="ui-icon ui-icon-triangle-1-se"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-triangle-1-s"><span class="ui-icon ui-icon-triangle-1-s"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-triangle-1-sw"><span class="ui-icon ui-icon-triangle-1-sw"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-triangle-1-w"><span class="ui-icon ui-icon-triangle-1-w"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-triangle-1-nw"><span class="ui-icon ui-icon-triangle-1-nw"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-triangle-2-n-s"><span class="ui-icon ui-icon-triangle-2-n-s"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-triangle-2-e-w"><span class="ui-icon ui-icon-triangle-2-e-w"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrow-1-n"><span class="ui-icon ui-icon-arrow-1-n"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrow-1-ne"><span class="ui-icon ui-icon-arrow-1-ne"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrow-1-e"><span class="ui-icon ui-icon-arrow-1-e"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrow-1-se"><span class="ui-icon ui-icon-arrow-1-se"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrow-1-s"><span class="ui-icon ui-icon-arrow-1-s"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrow-1-sw"><span class="ui-icon ui-icon-arrow-1-sw"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrow-1-w"><span class="ui-icon ui-icon-arrow-1-w"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrow-1-nw"><span class="ui-icon ui-icon-arrow-1-nw"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrow-2-n-s"><span class="ui-icon ui-icon-arrow-2-n-s"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrow-2-ne-sw"><span class="ui-icon ui-icon-arrow-2-ne-sw"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrow-2-e-w"><span class="ui-icon ui-icon-arrow-2-e-w"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrow-2-se-nw"><span class="ui-icon ui-icon-arrow-2-se-nw"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowstop-1-n"><span class="ui-icon ui-icon-arrowstop-1-n"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowstop-1-e"><span class="ui-icon ui-icon-arrowstop-1-e"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowstop-1-s"><span class="ui-icon ui-icon-arrowstop-1-s"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowstop-1-w"><span class="ui-icon ui-icon-arrowstop-1-w"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthick-1-n"><span class="ui-icon ui-icon-arrowthick-1-n"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthick-1-ne"><span class="ui-icon ui-icon-arrowthick-1-ne"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthick-1-e"><span class="ui-icon ui-icon-arrowthick-1-e"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthick-1-se"><span class="ui-icon ui-icon-arrowthick-1-se"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthick-1-s"><span class="ui-icon ui-icon-arrowthick-1-s"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthick-1-sw"><span class="ui-icon ui-icon-arrowthick-1-sw"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthick-1-w"><span class="ui-icon ui-icon-arrowthick-1-w"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthick-1-nw"><span class="ui-icon ui-icon-arrowthick-1-nw"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthick-2-n-s"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthick-2-ne-sw"><span class="ui-icon ui-icon-arrowthick-2-ne-sw"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthick-2-e-w"><span class="ui-icon ui-icon-arrowthick-2-e-w"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthick-2-se-nw"><span class="ui-icon ui-icon-arrowthick-2-se-nw"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthickstop-1-n"><span class="ui-icon ui-icon-arrowthickstop-1-n"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthickstop-1-e"><span class="ui-icon ui-icon-arrowthickstop-1-e"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthickstop-1-s"><span class="ui-icon ui-icon-arrowthickstop-1-s"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthickstop-1-w"><span class="ui-icon ui-icon-arrowthickstop-1-w"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowreturnthick-1-w"><span class="ui-icon ui-icon-arrowreturnthick-1-w"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowreturnthick-1-n"><span class="ui-icon ui-icon-arrowreturnthick-1-n"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowreturnthick-1-e"><span class="ui-icon ui-icon-arrowreturnthick-1-e"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowreturnthick-1-s"><span class="ui-icon ui-icon-arrowreturnthick-1-s"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowreturn-1-w"><span class="ui-icon ui-icon-arrowreturn-1-w"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowreturn-1-n"><span class="ui-icon ui-icon-arrowreturn-1-n"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowreturn-1-e"><span class="ui-icon ui-icon-arrowreturn-1-e"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowreturn-1-s"><span class="ui-icon ui-icon-arrowreturn-1-s"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowrefresh-1-w"><span class="ui-icon ui-icon-arrowrefresh-1-w"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowrefresh-1-n"><span class="ui-icon ui-icon-arrowrefresh-1-n"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowrefresh-1-e"><span class="ui-icon ui-icon-arrowrefresh-1-e"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowrefresh-1-s"><span class="ui-icon ui-icon-arrowrefresh-1-s"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrow-4"><span class="ui-icon ui-icon-arrow-4"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrow-4-diag"><span class="ui-icon ui-icon-arrow-4-diag"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-extlink"><span class="ui-icon ui-icon-extlink"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-newwin"><span class="ui-icon ui-icon-newwin"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-refresh"><span class="ui-icon ui-icon-refresh"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-shuffle"><span class="ui-icon ui-icon-shuffle"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-transfer-e-w"><span class="ui-icon ui-icon-transfer-e-w"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-transferthick-e-w"><span class="ui-icon ui-icon-transferthick-e-w"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-folder-collapsed"><span class="ui-icon ui-icon-folder-collapsed"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-folder-open"><span class="ui-icon ui-icon-folder-open"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-document"><span class="ui-icon ui-icon-document"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-document-b"><span class="ui-icon ui-icon-document-b"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-note"><span class="ui-icon ui-icon-note"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-mail-closed"><span class="ui-icon ui-icon-mail-closed"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-mail-open"><span class="ui-icon ui-icon-mail-open"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-suitcase"><span class="ui-icon ui-icon-suitcase"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-comment"><span class="ui-icon ui-icon-comment"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-person"><span class="ui-icon ui-icon-person"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-print"><span class="ui-icon ui-icon-print"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-trash"><span class="ui-icon ui-icon-trash"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-locked"><span class="ui-icon ui-icon-locked"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-unlocked"><span class="ui-icon ui-icon-unlocked"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-bookmark"><span class="ui-icon ui-icon-bookmark"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-tag"><span class="ui-icon ui-icon-tag"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-home"><span class="ui-icon ui-icon-home"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-flag"><span class="ui-icon ui-icon-flag"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-calculator"><span class="ui-icon ui-icon-calculator"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-cart"><span class="ui-icon ui-icon-cart"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-pencil"><span class="ui-icon ui-icon-pencil"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-clock"><span class="ui-icon ui-icon-clock"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-disk"><span class="ui-icon ui-icon-disk"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-calendar"><span class="ui-icon ui-icon-calendar"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-zoomin"><span class="ui-icon ui-icon-zoomin"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-zoomout"><span class="ui-icon ui-icon-zoomout"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-search"><span class="ui-icon ui-icon-search"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-wrench"><span class="ui-icon ui-icon-wrench"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-gear"><span class="ui-icon ui-icon-gear"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-heart"><span class="ui-icon ui-icon-heart"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-star"><span class="ui-icon ui-icon-star"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-link"><span class="ui-icon ui-icon-link"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-cancel"><span class="ui-icon ui-icon-cancel"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-plus"><span class="ui-icon ui-icon-plus"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-plusthick"><span class="ui-icon ui-icon-plusthick"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-minus"><span class="ui-icon ui-icon-minus"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-minusthick"><span class="ui-icon ui-icon-minusthick"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-close"><span class="ui-icon ui-icon-close"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-closethick"><span class="ui-icon ui-icon-closethick"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-key"><span class="ui-icon ui-icon-key"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-lightbulb"><span class="ui-icon ui-icon-lightbulb"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-scissors"><span class="ui-icon ui-icon-scissors"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-clipboard"><span class="ui-icon ui-icon-clipboard"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-copy"><span class="ui-icon ui-icon-copy"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-contact"><span class="ui-icon ui-icon-contact"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-image"><span class="ui-icon ui-icon-image"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-video"><span class="ui-icon ui-icon-video"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-script"><span class="ui-icon ui-icon-script"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-alert"><span class="ui-icon ui-icon-alert"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-info"><span class="ui-icon ui-icon-info"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-notice"><span class="ui-icon ui-icon-notice"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-help"><span class="ui-icon ui-icon-help"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-check"><span class="ui-icon ui-icon-check"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-bullet"><span class="ui-icon ui-icon-bullet"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-radio-off"><span class="ui-icon ui-icon-radio-off"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-radio-on"><span class="ui-icon ui-icon-radio-on"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-pin-w"><span class="ui-icon ui-icon-pin-w"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-pin-s"><span class="ui-icon ui-icon-pin-s"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-play"><span class="ui-icon ui-icon-play"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-pause"><span class="ui-icon ui-icon-pause"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-seek-next"><span class="ui-icon ui-icon-seek-next"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-seek-prev"><span class="ui-icon ui-icon-seek-prev"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-seek-end"><span class="ui-icon ui-icon-seek-end"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-seek-first"><span class="ui-icon ui-icon-seek-first"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-stop"><span class="ui-icon ui-icon-stop"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-eject"><span class="ui-icon ui-icon-eject"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-volume-off"><span class="ui-icon ui-icon-volume-off"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-volume-on"><span class="ui-icon ui-icon-volume-on"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-power"><span class="ui-icon ui-icon-power"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-signal-diag"><span class="ui-icon ui-icon-signal-diag"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-signal"><span class="ui-icon ui-icon-signal"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-battery-0"><span class="ui-icon ui-icon-battery-0"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-battery-1"><span class="ui-icon ui-icon-battery-1"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-battery-2"><span class="ui-icon ui-icon-battery-2"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-battery-3"><span class="ui-icon ui-icon-battery-3"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-circle-plus"><span class="ui-icon ui-icon-circle-plus"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-circle-minus"><span class="ui-icon ui-icon-circle-minus"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-circle-close"><span class="ui-icon ui-icon-circle-close"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-circle-triangle-e"><span class="ui-icon ui-icon-circle-triangle-e"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-circle-triangle-s"><span class="ui-icon ui-icon-circle-triangle-s"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-circle-triangle-w"><span class="ui-icon ui-icon-circle-triangle-w"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-circle-triangle-n"><span class="ui-icon ui-icon-circle-triangle-n"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-circle-arrow-e"><span class="ui-icon ui-icon-circle-arrow-e"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-circle-arrow-s"><span class="ui-icon ui-icon-circle-arrow-s"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-circle-arrow-w"><span class="ui-icon ui-icon-circle-arrow-w"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-circle-arrow-n"><span class="ui-icon ui-icon-circle-arrow-n"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-circle-zoomin"><span class="ui-icon ui-icon-circle-zoomin"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-circle-zoomout"><span class="ui-icon ui-icon-circle-zoomout"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-circle-check"><span class="ui-icon ui-icon-circle-check"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-circlesmall-plus"><span class="ui-icon ui-icon-circlesmall-plus"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-circlesmall-minus"><span class="ui-icon ui-icon-circlesmall-minus"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-circlesmall-close"><span class="ui-icon ui-icon-circlesmall-close"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-squaresmall-plus"><span class="ui-icon ui-icon-squaresmall-plus"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-squaresmall-minus"><span class="ui-icon ui-icon-squaresmall-minus"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-squaresmall-close"><span class="ui-icon ui-icon-squaresmall-close"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-grip-dotted-vertical"><span class="ui-icon ui-icon-grip-dotted-vertical"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-grip-dotted-horizontal"><span class="ui-icon ui-icon-grip-dotted-horizontal"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-grip-solid-vertical"><span class="ui-icon ui-icon-grip-solid-vertical"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-grip-solid-horizontal"><span class="ui-icon ui-icon-grip-solid-horizontal"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-gripsmall-diagonal-se"><span class="ui-icon ui-icon-gripsmall-diagonal-se"></span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-grip-diagonal-se"><span class="ui-icon ui-icon-grip-diagonal-se"></span></li>
</ul>
<!-- Slider -->
<h2 class="demoHeaders">Slider</h2>
<div id="slider"></div>
<!-- Datepicker -->
<h2 class="demoHeaders">Datepicker</h2>
<div id="datepicker"></div>
<!-- Progressbar -->
<h2 class="demoHeaders">Progressbar</h2>
<div id="progressbar"></div>
<!-- Progressbar -->
<h2 class="demoHeaders">Selectmenu</h2>
<select id="selectmenu">
<option>Slower</option>
<option>Slow</option>
<option selected="selected">Medium</option>
<option>Fast</option>
<option>Faster</option>
</select>
<!-- Spinner -->
<h2 class="demoHeaders">Spinner</h2>
<input id="spinner">
<!-- Menu -->
<h2 class="demoHeaders">Menu</h2>
<ul style="width:100px;" id="menu">
<li><div>Item 1</div></li>
<li><div>Item 2</div></li>
<li><div>Item 3</div>
<ul>
<li><div>Item 3-1</div></li>
<li><div>Item 3-2</div></li>
<li><div>Item 3-3</div></li>
<li><div>Item 3-4</div></li>
<li><div>Item 3-5</div></li>
</ul>
</li>
<li><div>Item 4</div></li>
<li><div>Item 5</div></li>
</ul>
<!-- Tooltip -->
<h2 class="demoHeaders">Tooltip</h2>
<p id="tooltip">
<a href="#" title="That&apos;s what this widget is">Tooltips</a> can be attached to any element. When you hover
the element with your mouse, the title attribute is displayed in a little box next to the element, just like a native tooltip.
</p>
<!-- Highlight / Error -->
<h2 class="demoHeaders">Highlight / Error</h2>
<div class="ui-widget">
<div class="ui-state-highlight ui-corner-all" style="margin-top: 20px; padding: 0 .7em;">
<p><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
<strong>Hey!</strong> Sample ui-state-highlight style.</p>
</div>
</div>
<br>
<div class="ui-widget">
<div class="ui-state-error ui-corner-all" style="padding: 0 .7em;">
<p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span>
<strong>Alert:</strong> Sample ui-state-error style.</p>
</div>
</div>
<script src="external/jquery/jquery.js"></script>
<script src="jquery-ui.js"></script>
<script>
$( "#accordion" ).accordion();
var availableTags = [
"ActionScript",
"AppleScript",
"Asp",
"BASIC",
"C",
"C++",
"Clojure",
"COBOL",
"ColdFusion",
"Erlang",
"Fortran",
"Groovy",
"Haskell",
"Java",
"JavaScript",
"Lisp",
"Perl",
"PHP",
"Python",
"Ruby",
"Scala",
"Scheme"
];
$( "#autocomplete" ).autocomplete({
source: availableTags
});
$( "#button" ).button();
$( "#button-icon" ).button({
icon: "ui-icon-gear",
showLabel: false
});
$( "#radioset" ).buttonset();
$( "#controlgroup" ).controlgroup();
$( "#tabs" ).tabs();
$( "#dialog" ).dialog({
autoOpen: false,
width: 400,
buttons: [
{
text: "Ok",
click: function() {
$( this ).dialog( "close" );
}
},
{
text: "Cancel",
click: function() {
$( this ).dialog( "close" );
}
}
]
});
// Link to open the dialog
$( "#dialog-link" ).click(function( event ) {
$( "#dialog" ).dialog( "open" );
event.preventDefault();
});
$( "#datepicker" ).datepicker({
inline: true
});
$( "#slider" ).slider({
range: true,
values: [ 17, 67 ]
});
$( "#progressbar" ).progressbar({
value: 20
});
$( "#spinner" ).spinner();
$( "#menu" ).menu();
$( "#tooltip" ).tooltip();
$( "#selectmenu" ).selectmenu();
// Hover states on the static widgets
$( "#dialog-link, #icons li" ).hover(
function() {
$( this ).addClass( "ui-state-hover" );
},
function() {
$( this ).removeClass( "ui-state-hover" );
}
);
</script>
</body>
</html>

1312
libs/jquery-ui/jquery-ui.css vendored Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

886
libs/jquery-ui/jquery-ui.structure.css vendored Normal file
View File

@ -0,0 +1,886 @@
/*!
* jQuery UI CSS Framework 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/category/theming/
*/
.ui-draggable-handle {
-ms-touch-action: none;
touch-action: none;
}
/* Layout helpers
----------------------------------*/
.ui-helper-hidden {
display: none;
}
.ui-helper-hidden-accessible {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
.ui-helper-reset {
margin: 0;
padding: 0;
border: 0;
outline: 0;
line-height: 1.3;
text-decoration: none;
font-size: 100%;
list-style: none;
}
.ui-helper-clearfix:before,
.ui-helper-clearfix:after {
content: "";
display: table;
border-collapse: collapse;
}
.ui-helper-clearfix:after {
clear: both;
}
.ui-helper-zfix {
width: 100%;
height: 100%;
top: 0;
left: 0;
position: absolute;
opacity: 0;
filter:Alpha(Opacity=0); /* support: IE8 */
}
.ui-front {
z-index: 100;
}
/* Interaction Cues
----------------------------------*/
.ui-state-disabled {
cursor: default !important;
pointer-events: none;
}
/* Icons
----------------------------------*/
.ui-icon {
display: inline-block;
vertical-align: middle;
margin-top: -.25em;
position: relative;
text-indent: -99999px;
overflow: hidden;
background-repeat: no-repeat;
}
.ui-widget-icon-block {
left: 50%;
margin-left: -8px;
display: block;
}
/* Misc visuals
----------------------------------*/
/* Overlays */
.ui-widget-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.ui-resizable {
position: relative;
}
.ui-resizable-handle {
position: absolute;
font-size: 0.1px;
display: block;
-ms-touch-action: none;
touch-action: none;
}
.ui-resizable-disabled .ui-resizable-handle,
.ui-resizable-autohide .ui-resizable-handle {
display: none;
}
.ui-resizable-n {
cursor: n-resize;
height: 7px;
width: 100%;
top: -5px;
left: 0;
}
.ui-resizable-s {
cursor: s-resize;
height: 7px;
width: 100%;
bottom: -5px;
left: 0;
}
.ui-resizable-e {
cursor: e-resize;
width: 7px;
right: -5px;
top: 0;
height: 100%;
}
.ui-resizable-w {
cursor: w-resize;
width: 7px;
left: -5px;
top: 0;
height: 100%;
}
.ui-resizable-se {
cursor: se-resize;
width: 12px;
height: 12px;
right: 1px;
bottom: 1px;
}
.ui-resizable-sw {
cursor: sw-resize;
width: 9px;
height: 9px;
left: -5px;
bottom: -5px;
}
.ui-resizable-nw {
cursor: nw-resize;
width: 9px;
height: 9px;
left: -5px;
top: -5px;
}
.ui-resizable-ne {
cursor: ne-resize;
width: 9px;
height: 9px;
right: -5px;
top: -5px;
}
.ui-selectable {
-ms-touch-action: none;
touch-action: none;
}
.ui-selectable-helper {
position: absolute;
z-index: 100;
border: 1px dotted black;
}
.ui-sortable-handle {
-ms-touch-action: none;
touch-action: none;
}
.ui-accordion .ui-accordion-header {
display: block;
cursor: pointer;
position: relative;
margin: 2px 0 0 0;
padding: .5em .5em .5em .7em;
font-size: 100%;
}
.ui-accordion .ui-accordion-content {
padding: 1em 2.2em;
border-top: 0;
overflow: auto;
}
.ui-autocomplete {
position: absolute;
top: 0;
left: 0;
cursor: default;
}
.ui-menu {
list-style: none;
padding: 0;
margin: 0;
display: block;
outline: 0;
}
.ui-menu .ui-menu {
position: absolute;
}
.ui-menu .ui-menu-item {
margin: 0;
cursor: pointer;
/* support: IE10, see #8844 */
list-style-image: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");
}
.ui-menu .ui-menu-item-wrapper {
position: relative;
padding: 3px 1em 3px .4em;
}
.ui-menu .ui-menu-divider {
margin: 5px 0;
height: 0;
font-size: 0;
line-height: 0;
border-width: 1px 0 0 0;
}
.ui-menu .ui-state-focus,
.ui-menu .ui-state-active {
margin: -1px;
}
/* icon support */
.ui-menu-icons {
position: relative;
}
.ui-menu-icons .ui-menu-item-wrapper {
padding-left: 2em;
}
/* left-aligned */
.ui-menu .ui-icon {
position: absolute;
top: 0;
bottom: 0;
left: .2em;
margin: auto 0;
}
/* right-aligned */
.ui-menu .ui-menu-icon {
left: auto;
right: 0;
}
.ui-button {
padding: .4em 1em;
display: inline-block;
position: relative;
line-height: normal;
margin-right: .1em;
cursor: pointer;
vertical-align: middle;
text-align: center;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
/* Support: IE <= 11 */
overflow: visible;
}
.ui-button,
.ui-button:link,
.ui-button:visited,
.ui-button:hover,
.ui-button:active {
text-decoration: none;
}
/* to make room for the icon, a width needs to be set here */
.ui-button-icon-only {
width: 2em;
box-sizing: border-box;
text-indent: -9999px;
white-space: nowrap;
}
/* no icon support for input elements */
input.ui-button.ui-button-icon-only {
text-indent: 0;
}
/* button icon element(s) */
.ui-button-icon-only .ui-icon {
position: absolute;
top: 50%;
left: 50%;
margin-top: -8px;
margin-left: -8px;
}
.ui-button.ui-icon-notext .ui-icon {
padding: 0;
width: 2.1em;
height: 2.1em;
text-indent: -9999px;
white-space: nowrap;
}
input.ui-button.ui-icon-notext .ui-icon {
width: auto;
height: auto;
text-indent: 0;
white-space: normal;
padding: .4em 1em;
}
/* workarounds */
/* Support: Firefox 5 - 40 */
input.ui-button::-moz-focus-inner,
button.ui-button::-moz-focus-inner {
border: 0;
padding: 0;
}
.ui-controlgroup {
vertical-align: middle;
display: inline-block;
}
.ui-controlgroup > .ui-controlgroup-item {
float: left;
margin-left: 0;
margin-right: 0;
}
.ui-controlgroup > .ui-controlgroup-item:focus,
.ui-controlgroup > .ui-controlgroup-item.ui-visual-focus {
z-index: 9999;
}
.ui-controlgroup-vertical > .ui-controlgroup-item {
display: block;
float: none;
width: 100%;
margin-top: 0;
margin-bottom: 0;
text-align: left;
}
.ui-controlgroup-vertical .ui-controlgroup-item {
box-sizing: border-box;
}
.ui-controlgroup .ui-controlgroup-label {
padding: .4em 1em;
}
.ui-controlgroup .ui-controlgroup-label span {
font-size: 80%;
}
.ui-controlgroup-horizontal .ui-controlgroup-label + .ui-controlgroup-item {
border-left: none;
}
.ui-controlgroup-vertical .ui-controlgroup-label + .ui-controlgroup-item {
border-top: none;
}
.ui-controlgroup-horizontal .ui-controlgroup-label.ui-widget-content {
border-right: none;
}
.ui-controlgroup-vertical .ui-controlgroup-label.ui-widget-content {
border-bottom: none;
}
/* Spinner specific style fixes */
.ui-controlgroup-vertical .ui-spinner-input {
/* Support: IE8 only, Android < 4.4 only */
width: 75%;
width: calc( 100% - 2.4em );
}
.ui-controlgroup-vertical .ui-spinner .ui-spinner-up {
border-top-style: solid;
}
.ui-checkboxradio-label .ui-icon-background {
box-shadow: inset 1px 1px 1px #ccc;
border-radius: .12em;
border: none;
}
.ui-checkboxradio-radio-label .ui-icon-background {
width: 16px;
height: 16px;
border-radius: 1em;
overflow: visible;
border: none;
}
.ui-checkboxradio-radio-label.ui-checkboxradio-checked .ui-icon,
.ui-checkboxradio-radio-label.ui-checkboxradio-checked:hover .ui-icon {
background-image: none;
width: 8px;
height: 8px;
border-width: 4px;
border-style: solid;
}
.ui-checkboxradio-disabled {
pointer-events: none;
}
.ui-datepicker {
width: 17em;
padding: .2em .2em 0;
display: none;
}
.ui-datepicker .ui-datepicker-header {
position: relative;
padding: .2em 0;
}
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
position: absolute;
top: 2px;
width: 1.8em;
height: 1.8em;
}
.ui-datepicker .ui-datepicker-prev-hover,
.ui-datepicker .ui-datepicker-next-hover {
top: 1px;
}
.ui-datepicker .ui-datepicker-prev {
left: 2px;
}
.ui-datepicker .ui-datepicker-next {
right: 2px;
}
.ui-datepicker .ui-datepicker-prev-hover {
left: 1px;
}
.ui-datepicker .ui-datepicker-next-hover {
right: 1px;
}
.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
display: block;
position: absolute;
left: 50%;
margin-left: -8px;
top: 50%;
margin-top: -8px;
}
.ui-datepicker .ui-datepicker-title {
margin: 0 2.3em;
line-height: 1.8em;
text-align: center;
}
.ui-datepicker .ui-datepicker-title select {
font-size: 1em;
margin: 1px 0;
}
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
width: 45%;
}
.ui-datepicker table {
width: 100%;
font-size: .9em;
border-collapse: collapse;
margin: 0 0 .4em;
}
.ui-datepicker th {
padding: .7em .3em;
text-align: center;
font-weight: bold;
border: 0;
}
.ui-datepicker td {
border: 0;
padding: 1px;
}
.ui-datepicker td span,
.ui-datepicker td a {
display: block;
padding: .2em;
text-align: right;
text-decoration: none;
}
.ui-datepicker .ui-datepicker-buttonpane {
background-image: none;
margin: .7em 0 0 0;
padding: 0 .2em;
border-left: 0;
border-right: 0;
border-bottom: 0;
}
.ui-datepicker .ui-datepicker-buttonpane button {
float: right;
margin: .5em .2em .4em;
cursor: pointer;
padding: .2em .6em .3em .6em;
width: auto;
overflow: visible;
}
.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current {
float: left;
}
/* with multiple calendars */
.ui-datepicker.ui-datepicker-multi {
width: auto;
}
.ui-datepicker-multi .ui-datepicker-group {
float: left;
}
.ui-datepicker-multi .ui-datepicker-group table {
width: 95%;
margin: 0 auto .4em;
}
.ui-datepicker-multi-2 .ui-datepicker-group {
width: 50%;
}
.ui-datepicker-multi-3 .ui-datepicker-group {
width: 33.3%;
}
.ui-datepicker-multi-4 .ui-datepicker-group {
width: 25%;
}
.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,
.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header {
border-left-width: 0;
}
.ui-datepicker-multi .ui-datepicker-buttonpane {
clear: left;
}
.ui-datepicker-row-break {
clear: both;
width: 100%;
font-size: 0;
}
/* RTL support */
.ui-datepicker-rtl {
direction: rtl;
}
.ui-datepicker-rtl .ui-datepicker-prev {
right: 2px;
left: auto;
}
.ui-datepicker-rtl .ui-datepicker-next {
left: 2px;
right: auto;
}
.ui-datepicker-rtl .ui-datepicker-prev:hover {
right: 1px;
left: auto;
}
.ui-datepicker-rtl .ui-datepicker-next:hover {
left: 1px;
right: auto;
}
.ui-datepicker-rtl .ui-datepicker-buttonpane {
clear: right;
}
.ui-datepicker-rtl .ui-datepicker-buttonpane button {
float: left;
}
.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,
.ui-datepicker-rtl .ui-datepicker-group {
float: right;
}
.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,
.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header {
border-right-width: 0;
border-left-width: 1px;
}
/* Icons */
.ui-datepicker .ui-icon {
display: block;
text-indent: -99999px;
overflow: hidden;
background-repeat: no-repeat;
left: .5em;
top: .3em;
}
.ui-dialog {
position: absolute;
top: 0;
left: 0;
padding: .2em;
outline: 0;
}
.ui-dialog .ui-dialog-titlebar {
padding: .4em 1em;
position: relative;
}
.ui-dialog .ui-dialog-title {
float: left;
margin: .1em 0;
white-space: nowrap;
width: 90%;
overflow: hidden;
text-overflow: ellipsis;
}
.ui-dialog .ui-dialog-titlebar-close {
position: absolute;
right: .3em;
top: 50%;
width: 20px;
margin: -10px 0 0 0;
padding: 1px;
height: 20px;
}
.ui-dialog .ui-dialog-content {
position: relative;
border: 0;
padding: .5em 1em;
background: none;
overflow: auto;
}
.ui-dialog .ui-dialog-buttonpane {
text-align: left;
border-width: 1px 0 0 0;
background-image: none;
margin-top: .5em;
padding: .3em 1em .5em .4em;
}
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
float: right;
}
.ui-dialog .ui-dialog-buttonpane button {
margin: .5em .4em .5em 0;
cursor: pointer;
}
.ui-dialog .ui-resizable-n {
height: 2px;
top: 0;
}
.ui-dialog .ui-resizable-e {
width: 2px;
right: 0;
}
.ui-dialog .ui-resizable-s {
height: 2px;
bottom: 0;
}
.ui-dialog .ui-resizable-w {
width: 2px;
left: 0;
}
.ui-dialog .ui-resizable-se,
.ui-dialog .ui-resizable-sw,
.ui-dialog .ui-resizable-ne,
.ui-dialog .ui-resizable-nw {
width: 7px;
height: 7px;
}
.ui-dialog .ui-resizable-se {
right: 0;
bottom: 0;
}
.ui-dialog .ui-resizable-sw {
left: 0;
bottom: 0;
}
.ui-dialog .ui-resizable-ne {
right: 0;
top: 0;
}
.ui-dialog .ui-resizable-nw {
left: 0;
top: 0;
}
.ui-draggable .ui-dialog-titlebar {
cursor: move;
}
.ui-progressbar {
height: 2em;
text-align: left;
overflow: hidden;
}
.ui-progressbar .ui-progressbar-value {
margin: -1px;
height: 100%;
}
.ui-progressbar .ui-progressbar-overlay {
background: url("data:image/gif;base64,R0lGODlhKAAoAIABAAAAAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQJAQABACwAAAAAKAAoAAACkYwNqXrdC52DS06a7MFZI+4FHBCKoDeWKXqymPqGqxvJrXZbMx7Ttc+w9XgU2FB3lOyQRWET2IFGiU9m1frDVpxZZc6bfHwv4c1YXP6k1Vdy292Fb6UkuvFtXpvWSzA+HycXJHUXiGYIiMg2R6W459gnWGfHNdjIqDWVqemH2ekpObkpOlppWUqZiqr6edqqWQAAIfkECQEAAQAsAAAAACgAKAAAApSMgZnGfaqcg1E2uuzDmmHUBR8Qil95hiPKqWn3aqtLsS18y7G1SzNeowWBENtQd+T1JktP05nzPTdJZlR6vUxNWWjV+vUWhWNkWFwxl9VpZRedYcflIOLafaa28XdsH/ynlcc1uPVDZxQIR0K25+cICCmoqCe5mGhZOfeYSUh5yJcJyrkZWWpaR8doJ2o4NYq62lAAACH5BAkBAAEALAAAAAAoACgAAAKVDI4Yy22ZnINRNqosw0Bv7i1gyHUkFj7oSaWlu3ovC8GxNso5fluz3qLVhBVeT/Lz7ZTHyxL5dDalQWPVOsQWtRnuwXaFTj9jVVh8pma9JjZ4zYSj5ZOyma7uuolffh+IR5aW97cHuBUXKGKXlKjn+DiHWMcYJah4N0lYCMlJOXipGRr5qdgoSTrqWSq6WFl2ypoaUAAAIfkECQEAAQAsAAAAACgAKAAAApaEb6HLgd/iO7FNWtcFWe+ufODGjRfoiJ2akShbueb0wtI50zm02pbvwfWEMWBQ1zKGlLIhskiEPm9R6vRXxV4ZzWT2yHOGpWMyorblKlNp8HmHEb/lCXjcW7bmtXP8Xt229OVWR1fod2eWqNfHuMjXCPkIGNileOiImVmCOEmoSfn3yXlJWmoHGhqp6ilYuWYpmTqKUgAAIfkECQEAAQAsAAAAACgAKAAAApiEH6kb58biQ3FNWtMFWW3eNVcojuFGfqnZqSebuS06w5V80/X02pKe8zFwP6EFWOT1lDFk8rGERh1TTNOocQ61Hm4Xm2VexUHpzjymViHrFbiELsefVrn6XKfnt2Q9G/+Xdie499XHd2g4h7ioOGhXGJboGAnXSBnoBwKYyfioubZJ2Hn0RuRZaflZOil56Zp6iioKSXpUAAAh+QQJAQABACwAAAAAKAAoAAACkoQRqRvnxuI7kU1a1UU5bd5tnSeOZXhmn5lWK3qNTWvRdQxP8qvaC+/yaYQzXO7BMvaUEmJRd3TsiMAgswmNYrSgZdYrTX6tSHGZO73ezuAw2uxuQ+BbeZfMxsexY35+/Qe4J1inV0g4x3WHuMhIl2jXOKT2Q+VU5fgoSUI52VfZyfkJGkha6jmY+aaYdirq+lQAACH5BAkBAAEALAAAAAAoACgAAAKWBIKpYe0L3YNKToqswUlvznigd4wiR4KhZrKt9Upqip61i9E3vMvxRdHlbEFiEXfk9YARYxOZZD6VQ2pUunBmtRXo1Lf8hMVVcNl8JafV38aM2/Fu5V16Bn63r6xt97j09+MXSFi4BniGFae3hzbH9+hYBzkpuUh5aZmHuanZOZgIuvbGiNeomCnaxxap2upaCZsq+1kAACH5BAkBAAEALAAAAAAoACgAAAKXjI8By5zf4kOxTVrXNVlv1X0d8IGZGKLnNpYtm8Lr9cqVeuOSvfOW79D9aDHizNhDJidFZhNydEahOaDH6nomtJjp1tutKoNWkvA6JqfRVLHU/QUfau9l2x7G54d1fl995xcIGAdXqMfBNadoYrhH+Mg2KBlpVpbluCiXmMnZ2Sh4GBqJ+ckIOqqJ6LmKSllZmsoq6wpQAAAh+QQJAQABACwAAAAAKAAoAAAClYx/oLvoxuJDkU1a1YUZbJ59nSd2ZXhWqbRa2/gF8Gu2DY3iqs7yrq+xBYEkYvFSM8aSSObE+ZgRl1BHFZNr7pRCavZ5BW2142hY3AN/zWtsmf12p9XxxFl2lpLn1rseztfXZjdIWIf2s5dItwjYKBgo9yg5pHgzJXTEeGlZuenpyPmpGQoKOWkYmSpaSnqKileI2FAAACH5BAkBAAEALAAAAAAoACgAAAKVjB+gu+jG4kORTVrVhRlsnn2dJ3ZleFaptFrb+CXmO9OozeL5VfP99HvAWhpiUdcwkpBH3825AwYdU8xTqlLGhtCosArKMpvfa1mMRae9VvWZfeB2XfPkeLmm18lUcBj+p5dnN8jXZ3YIGEhYuOUn45aoCDkp16hl5IjYJvjWKcnoGQpqyPlpOhr3aElaqrq56Bq7VAAAOw==");
height: 100%;
filter: alpha(opacity=25); /* support: IE8 */
opacity: 0.25;
}
.ui-progressbar-indeterminate .ui-progressbar-value {
background-image: none;
}
.ui-selectmenu-menu {
padding: 0;
margin: 0;
position: absolute;
top: 0;
left: 0;
display: none;
}
.ui-selectmenu-menu .ui-menu {
overflow: auto;
overflow-x: hidden;
padding-bottom: 1px;
}
.ui-selectmenu-menu .ui-menu .ui-selectmenu-optgroup {
font-size: 1em;
font-weight: bold;
line-height: 1.5;
padding: 2px 0.4em;
margin: 0.5em 0 0 0;
height: auto;
border: 0;
}
.ui-selectmenu-open {
display: block;
}
.ui-selectmenu-text {
display: block;
margin-right: 20px;
overflow: hidden;
text-overflow: ellipsis;
}
.ui-selectmenu-button.ui-button {
text-align: left;
white-space: nowrap;
width: 14em;
}
.ui-selectmenu-icon.ui-icon {
float: right;
margin-top: 0;
}
.ui-slider {
position: relative;
text-align: left;
}
.ui-slider .ui-slider-handle {
position: absolute;
z-index: 2;
width: 1.2em;
height: 1.2em;
cursor: default;
-ms-touch-action: none;
touch-action: none;
}
.ui-slider .ui-slider-range {
position: absolute;
z-index: 1;
font-size: .7em;
display: block;
border: 0;
background-position: 0 0;
}
/* support: IE8 - See #6727 */
.ui-slider.ui-state-disabled .ui-slider-handle,
.ui-slider.ui-state-disabled .ui-slider-range {
filter: inherit;
}
.ui-slider-horizontal {
height: .8em;
}
.ui-slider-horizontal .ui-slider-handle {
top: -.3em;
margin-left: -.6em;
}
.ui-slider-horizontal .ui-slider-range {
top: 0;
height: 100%;
}
.ui-slider-horizontal .ui-slider-range-min {
left: 0;
}
.ui-slider-horizontal .ui-slider-range-max {
right: 0;
}
.ui-slider-vertical {
width: .8em;
height: 100px;
}
.ui-slider-vertical .ui-slider-handle {
left: -.3em;
margin-left: 0;
margin-bottom: -.6em;
}
.ui-slider-vertical .ui-slider-range {
left: 0;
width: 100%;
}
.ui-slider-vertical .ui-slider-range-min {
bottom: 0;
}
.ui-slider-vertical .ui-slider-range-max {
top: 0;
}
.ui-spinner {
position: relative;
display: inline-block;
overflow: hidden;
padding: 0;
vertical-align: middle;
}
.ui-spinner-input {
border: none;
background: none;
color: inherit;
padding: .222em 0;
margin: .2em 0;
vertical-align: middle;
margin-left: .4em;
margin-right: 2em;
}
.ui-spinner-button {
width: 1.6em;
height: 50%;
font-size: .5em;
padding: 0;
margin: 0;
text-align: center;
position: absolute;
cursor: default;
display: block;
overflow: hidden;
right: 0;
}
/* more specificity required here to override default borders */
.ui-spinner a.ui-spinner-button {
border-top-style: none;
border-bottom-style: none;
border-right-style: none;
}
.ui-spinner-up {
top: 0;
}
.ui-spinner-down {
bottom: 0;
}
.ui-tabs {
position: relative;/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
padding: .2em;
}
.ui-tabs .ui-tabs-nav {
margin: 0;
padding: .2em .2em 0;
}
.ui-tabs .ui-tabs-nav li {
list-style: none;
float: left;
position: relative;
top: 0;
margin: 1px .2em 0 0;
border-bottom-width: 0;
padding: 0;
white-space: nowrap;
}
.ui-tabs .ui-tabs-nav .ui-tabs-anchor {
float: left;
padding: .5em 1em;
text-decoration: none;
}
.ui-tabs .ui-tabs-nav li.ui-tabs-active {
margin-bottom: -1px;
padding-bottom: 1px;
}
.ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor,
.ui-tabs .ui-tabs-nav li.ui-state-disabled .ui-tabs-anchor,
.ui-tabs .ui-tabs-nav li.ui-tabs-loading .ui-tabs-anchor {
cursor: text;
}
.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor {
cursor: pointer;
}
.ui-tabs .ui-tabs-panel {
display: block;
border-width: 0;
padding: 1em 1.4em;
background: none;
}
.ui-tooltip {
padding: 8px;
position: absolute;
z-index: 9999;
max-width: 300px;
}
body .ui-tooltip {
border-width: 2px;
}

File diff suppressed because one or more lines are too long

443
libs/jquery-ui/jquery-ui.theme.css vendored Normal file
View File

@ -0,0 +1,443 @@
/*!
* jQuery UI CSS Framework 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/category/theming/
*
* To view and modify this theme, visit http://jqueryui.com/themeroller/?scope=&folderName=base&cornerRadiusShadow=8px&offsetLeftShadow=0px&offsetTopShadow=0px&thicknessShadow=5px&opacityShadow=30&bgImgOpacityShadow=0&bgTextureShadow=flat&bgColorShadow=666666&opacityOverlay=30&bgImgOpacityOverlay=0&bgTextureOverlay=flat&bgColorOverlay=aaaaaa&iconColorError=cc0000&fcError=5f3f3f&borderColorError=f1a899&bgTextureError=flat&bgColorError=fddfdf&iconColorHighlight=777620&fcHighlight=777620&borderColorHighlight=dad55e&bgTextureHighlight=flat&bgColorHighlight=fffa90&iconColorActive=ffffff&fcActive=ffffff&borderColorActive=003eff&bgTextureActive=flat&bgColorActive=007fff&iconColorHover=555555&fcHover=2b2b2b&borderColorHover=cccccc&bgTextureHover=flat&bgColorHover=ededed&iconColorDefault=777777&fcDefault=454545&borderColorDefault=c5c5c5&bgTextureDefault=flat&bgColorDefault=f6f6f6&iconColorContent=444444&fcContent=333333&borderColorContent=dddddd&bgTextureContent=flat&bgColorContent=ffffff&iconColorHeader=444444&fcHeader=333333&borderColorHeader=dddddd&bgTextureHeader=flat&bgColorHeader=e9e9e9&cornerRadius=3px&fwDefault=normal&fsDefault=1em&ffDefault=Arial%2CHelvetica%2Csans-serif
*/
/* Component containers
----------------------------------*/
.ui-widget {
font-family: Arial,Helvetica,sans-serif;
font-size: 1em;
}
.ui-widget .ui-widget {
font-size: 1em;
}
.ui-widget input,
.ui-widget select,
.ui-widget textarea,
.ui-widget button {
font-family: Arial,Helvetica,sans-serif;
font-size: 1em;
}
.ui-widget.ui-widget-content {
border: 1px solid #c5c5c5;
}
.ui-widget-content {
border: 1px solid #dddddd;
background: #ffffff;
color: #333333;
}
.ui-widget-content a {
color: #333333;
}
.ui-widget-header {
border: 1px solid #dddddd;
background: #e9e9e9;
color: #333333;
font-weight: bold;
}
.ui-widget-header a {
color: #333333;
}
/* Interaction states
----------------------------------*/
.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default,
.ui-button,
/* We use html here because we need a greater specificity to make sure disabled
works properly when clicked or hovered */
html .ui-button.ui-state-disabled:hover,
html .ui-button.ui-state-disabled:active {
border: 1px solid #c5c5c5;
background: #f6f6f6;
font-weight: normal;
color: #454545;
}
.ui-state-default a,
.ui-state-default a:link,
.ui-state-default a:visited,
a.ui-button,
a:link.ui-button,
a:visited.ui-button,
.ui-button {
color: #454545;
text-decoration: none;
}
.ui-state-hover,
.ui-widget-content .ui-state-hover,
.ui-widget-header .ui-state-hover,
.ui-state-focus,
.ui-widget-content .ui-state-focus,
.ui-widget-header .ui-state-focus,
.ui-button:hover,
.ui-button:focus {
border: 1px solid #cccccc;
background: #ededed;
font-weight: normal;
color: #2b2b2b;
}
.ui-state-hover a,
.ui-state-hover a:hover,
.ui-state-hover a:link,
.ui-state-hover a:visited,
.ui-state-focus a,
.ui-state-focus a:hover,
.ui-state-focus a:link,
.ui-state-focus a:visited,
a.ui-button:hover,
a.ui-button:focus {
color: #2b2b2b;
text-decoration: none;
}
.ui-visual-focus {
box-shadow: 0 0 3px 1px rgb(94, 158, 214);
}
.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
border: 1px solid #003eff;
background: #007fff;
font-weight: normal;
color: #ffffff;
}
.ui-icon-background,
.ui-state-active .ui-icon-background {
border: #003eff;
background-color: #ffffff;
}
.ui-state-active a,
.ui-state-active a:link,
.ui-state-active a:visited {
color: #ffffff;
text-decoration: none;
}
/* Interaction Cues
----------------------------------*/
.ui-state-highlight,
.ui-widget-content .ui-state-highlight,
.ui-widget-header .ui-state-highlight {
border: 1px solid #dad55e;
background: #fffa90;
color: #777620;
}
.ui-state-checked {
border: 1px solid #dad55e;
background: #fffa90;
}
.ui-state-highlight a,
.ui-widget-content .ui-state-highlight a,
.ui-widget-header .ui-state-highlight a {
color: #777620;
}
.ui-state-error,
.ui-widget-content .ui-state-error,
.ui-widget-header .ui-state-error {
border: 1px solid #f1a899;
background: #fddfdf;
color: #5f3f3f;
}
.ui-state-error a,
.ui-widget-content .ui-state-error a,
.ui-widget-header .ui-state-error a {
color: #5f3f3f;
}
.ui-state-error-text,
.ui-widget-content .ui-state-error-text,
.ui-widget-header .ui-state-error-text {
color: #5f3f3f;
}
.ui-priority-primary,
.ui-widget-content .ui-priority-primary,
.ui-widget-header .ui-priority-primary {
font-weight: bold;
}
.ui-priority-secondary,
.ui-widget-content .ui-priority-secondary,
.ui-widget-header .ui-priority-secondary {
opacity: .7;
filter:Alpha(Opacity=70); /* support: IE8 */
font-weight: normal;
}
.ui-state-disabled,
.ui-widget-content .ui-state-disabled,
.ui-widget-header .ui-state-disabled {
opacity: .35;
filter:Alpha(Opacity=35); /* support: IE8 */
background-image: none;
}
.ui-state-disabled .ui-icon {
filter:Alpha(Opacity=35); /* support: IE8 - See #6059 */
}
/* Icons
----------------------------------*/
/* states and images */
.ui-icon {
width: 16px;
height: 16px;
}
.ui-icon,
.ui-widget-content .ui-icon {
background-image: url("images/ui-icons_444444_256x240.png");
}
.ui-widget-header .ui-icon {
background-image: url("images/ui-icons_444444_256x240.png");
}
.ui-state-hover .ui-icon,
.ui-state-focus .ui-icon,
.ui-button:hover .ui-icon,
.ui-button:focus .ui-icon {
background-image: url("images/ui-icons_555555_256x240.png");
}
.ui-state-active .ui-icon,
.ui-button:active .ui-icon {
background-image: url("images/ui-icons_ffffff_256x240.png");
}
.ui-state-highlight .ui-icon,
.ui-button .ui-state-highlight.ui-icon {
background-image: url("images/ui-icons_777620_256x240.png");
}
.ui-state-error .ui-icon,
.ui-state-error-text .ui-icon {
background-image: url("images/ui-icons_cc0000_256x240.png");
}
.ui-button .ui-icon {
background-image: url("images/ui-icons_777777_256x240.png");
}
/* positioning */
.ui-icon-blank { background-position: 16px 16px; }
.ui-icon-caret-1-n { background-position: 0 0; }
.ui-icon-caret-1-ne { background-position: -16px 0; }
.ui-icon-caret-1-e { background-position: -32px 0; }
.ui-icon-caret-1-se { background-position: -48px 0; }
.ui-icon-caret-1-s { background-position: -65px 0; }
.ui-icon-caret-1-sw { background-position: -80px 0; }
.ui-icon-caret-1-w { background-position: -96px 0; }
.ui-icon-caret-1-nw { background-position: -112px 0; }
.ui-icon-caret-2-n-s { background-position: -128px 0; }
.ui-icon-caret-2-e-w { background-position: -144px 0; }
.ui-icon-triangle-1-n { background-position: 0 -16px; }
.ui-icon-triangle-1-ne { background-position: -16px -16px; }
.ui-icon-triangle-1-e { background-position: -32px -16px; }
.ui-icon-triangle-1-se { background-position: -48px -16px; }
.ui-icon-triangle-1-s { background-position: -65px -16px; }
.ui-icon-triangle-1-sw { background-position: -80px -16px; }
.ui-icon-triangle-1-w { background-position: -96px -16px; }
.ui-icon-triangle-1-nw { background-position: -112px -16px; }
.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
.ui-icon-arrow-1-n { background-position: 0 -32px; }
.ui-icon-arrow-1-ne { background-position: -16px -32px; }
.ui-icon-arrow-1-e { background-position: -32px -32px; }
.ui-icon-arrow-1-se { background-position: -48px -32px; }
.ui-icon-arrow-1-s { background-position: -65px -32px; }
.ui-icon-arrow-1-sw { background-position: -80px -32px; }
.ui-icon-arrow-1-w { background-position: -96px -32px; }
.ui-icon-arrow-1-nw { background-position: -112px -32px; }
.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
.ui-icon-arrowthick-1-n { background-position: 1px -48px; }
.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
.ui-icon-arrow-4 { background-position: 0 -80px; }
.ui-icon-arrow-4-diag { background-position: -16px -80px; }
.ui-icon-extlink { background-position: -32px -80px; }
.ui-icon-newwin { background-position: -48px -80px; }
.ui-icon-refresh { background-position: -64px -80px; }
.ui-icon-shuffle { background-position: -80px -80px; }
.ui-icon-transfer-e-w { background-position: -96px -80px; }
.ui-icon-transferthick-e-w { background-position: -112px -80px; }
.ui-icon-folder-collapsed { background-position: 0 -96px; }
.ui-icon-folder-open { background-position: -16px -96px; }
.ui-icon-document { background-position: -32px -96px; }
.ui-icon-document-b { background-position: -48px -96px; }
.ui-icon-note { background-position: -64px -96px; }
.ui-icon-mail-closed { background-position: -80px -96px; }
.ui-icon-mail-open { background-position: -96px -96px; }
.ui-icon-suitcase { background-position: -112px -96px; }
.ui-icon-comment { background-position: -128px -96px; }
.ui-icon-person { background-position: -144px -96px; }
.ui-icon-print { background-position: -160px -96px; }
.ui-icon-trash { background-position: -176px -96px; }
.ui-icon-locked { background-position: -192px -96px; }
.ui-icon-unlocked { background-position: -208px -96px; }
.ui-icon-bookmark { background-position: -224px -96px; }
.ui-icon-tag { background-position: -240px -96px; }
.ui-icon-home { background-position: 0 -112px; }
.ui-icon-flag { background-position: -16px -112px; }
.ui-icon-calendar { background-position: -32px -112px; }
.ui-icon-cart { background-position: -48px -112px; }
.ui-icon-pencil { background-position: -64px -112px; }
.ui-icon-clock { background-position: -80px -112px; }
.ui-icon-disk { background-position: -96px -112px; }
.ui-icon-calculator { background-position: -112px -112px; }
.ui-icon-zoomin { background-position: -128px -112px; }
.ui-icon-zoomout { background-position: -144px -112px; }
.ui-icon-search { background-position: -160px -112px; }
.ui-icon-wrench { background-position: -176px -112px; }
.ui-icon-gear { background-position: -192px -112px; }
.ui-icon-heart { background-position: -208px -112px; }
.ui-icon-star { background-position: -224px -112px; }
.ui-icon-link { background-position: -240px -112px; }
.ui-icon-cancel { background-position: 0 -128px; }
.ui-icon-plus { background-position: -16px -128px; }
.ui-icon-plusthick { background-position: -32px -128px; }
.ui-icon-minus { background-position: -48px -128px; }
.ui-icon-minusthick { background-position: -64px -128px; }
.ui-icon-close { background-position: -80px -128px; }
.ui-icon-closethick { background-position: -96px -128px; }
.ui-icon-key { background-position: -112px -128px; }
.ui-icon-lightbulb { background-position: -128px -128px; }
.ui-icon-scissors { background-position: -144px -128px; }
.ui-icon-clipboard { background-position: -160px -128px; }
.ui-icon-copy { background-position: -176px -128px; }
.ui-icon-contact { background-position: -192px -128px; }
.ui-icon-image { background-position: -208px -128px; }
.ui-icon-video { background-position: -224px -128px; }
.ui-icon-script { background-position: -240px -128px; }
.ui-icon-alert { background-position: 0 -144px; }
.ui-icon-info { background-position: -16px -144px; }
.ui-icon-notice { background-position: -32px -144px; }
.ui-icon-help { background-position: -48px -144px; }
.ui-icon-check { background-position: -64px -144px; }
.ui-icon-bullet { background-position: -80px -144px; }
.ui-icon-radio-on { background-position: -96px -144px; }
.ui-icon-radio-off { background-position: -112px -144px; }
.ui-icon-pin-w { background-position: -128px -144px; }
.ui-icon-pin-s { background-position: -144px -144px; }
.ui-icon-play { background-position: 0 -160px; }
.ui-icon-pause { background-position: -16px -160px; }
.ui-icon-seek-next { background-position: -32px -160px; }
.ui-icon-seek-prev { background-position: -48px -160px; }
.ui-icon-seek-end { background-position: -64px -160px; }
.ui-icon-seek-start { background-position: -80px -160px; }
/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
.ui-icon-seek-first { background-position: -80px -160px; }
.ui-icon-stop { background-position: -96px -160px; }
.ui-icon-eject { background-position: -112px -160px; }
.ui-icon-volume-off { background-position: -128px -160px; }
.ui-icon-volume-on { background-position: -144px -160px; }
.ui-icon-power { background-position: 0 -176px; }
.ui-icon-signal-diag { background-position: -16px -176px; }
.ui-icon-signal { background-position: -32px -176px; }
.ui-icon-battery-0 { background-position: -48px -176px; }
.ui-icon-battery-1 { background-position: -64px -176px; }
.ui-icon-battery-2 { background-position: -80px -176px; }
.ui-icon-battery-3 { background-position: -96px -176px; }
.ui-icon-circle-plus { background-position: 0 -192px; }
.ui-icon-circle-minus { background-position: -16px -192px; }
.ui-icon-circle-close { background-position: -32px -192px; }
.ui-icon-circle-triangle-e { background-position: -48px -192px; }
.ui-icon-circle-triangle-s { background-position: -64px -192px; }
.ui-icon-circle-triangle-w { background-position: -80px -192px; }
.ui-icon-circle-triangle-n { background-position: -96px -192px; }
.ui-icon-circle-arrow-e { background-position: -112px -192px; }
.ui-icon-circle-arrow-s { background-position: -128px -192px; }
.ui-icon-circle-arrow-w { background-position: -144px -192px; }
.ui-icon-circle-arrow-n { background-position: -160px -192px; }
.ui-icon-circle-zoomin { background-position: -176px -192px; }
.ui-icon-circle-zoomout { background-position: -192px -192px; }
.ui-icon-circle-check { background-position: -208px -192px; }
.ui-icon-circlesmall-plus { background-position: 0 -208px; }
.ui-icon-circlesmall-minus { background-position: -16px -208px; }
.ui-icon-circlesmall-close { background-position: -32px -208px; }
.ui-icon-squaresmall-plus { background-position: -48px -208px; }
.ui-icon-squaresmall-minus { background-position: -64px -208px; }
.ui-icon-squaresmall-close { background-position: -80px -208px; }
.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
/* Misc visuals
----------------------------------*/
/* Corner radius */
.ui-corner-all,
.ui-corner-top,
.ui-corner-left,
.ui-corner-tl {
border-top-left-radius: 3px;
}
.ui-corner-all,
.ui-corner-top,
.ui-corner-right,
.ui-corner-tr {
border-top-right-radius: 3px;
}
.ui-corner-all,
.ui-corner-bottom,
.ui-corner-left,
.ui-corner-bl {
border-bottom-left-radius: 3px;
}
.ui-corner-all,
.ui-corner-bottom,
.ui-corner-right,
.ui-corner-br {
border-bottom-right-radius: 3px;
}
/* Overlays */
.ui-widget-overlay {
background: #aaaaaa;
opacity: .3;
filter: Alpha(Opacity=30); /* support: IE8 */
}
.ui-widget-shadow {
-webkit-box-shadow: 0px 0px 5px #666666;
box-shadow: 0px 0px 5px #666666;
}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,74 @@
{
"name": "jquery-ui",
"title": "jQuery UI",
"description": "A curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library.",
"version": "1.12.1",
"homepage": "http://jqueryui.com",
"author": {
"name": "jQuery Foundation and other contributors",
"url": "https://github.com/jquery/jquery-ui/blob/1.12.1/AUTHORS.txt"
},
"main": "ui/widget.js",
"maintainers": [
{
"name": "Scott González",
"email": "scott.gonzalez@gmail.com",
"url": "http://scottgonzalez.com"
},
{
"name": "Jörn Zaefferer",
"email": "joern.zaefferer@gmail.com",
"url": "http://bassistance.de"
},
{
"name": "Mike Sherov",
"email": "mike.sherov@gmail.com",
"url": "http://mike.sherov.com"
},
{
"name": "TJ VanToll",
"email": "tj.vantoll@gmail.com",
"url": "http://tjvantoll.com"
},
{
"name": "Felix Nagel",
"email": "info@felixnagel.com",
"url": "http://www.felixnagel.com"
},
{
"name": "Alex Schmitz",
"email": "arschmitz@gmail.com",
"url": "https://github.com/arschmitz"
}
],
"repository": {
"type": "git",
"url": "git://github.com/jquery/jquery-ui.git"
},
"bugs": "https://bugs.jqueryui.com/",
"license": "MIT",
"scripts": {
"test": "grunt"
},
"dependencies": {},
"devDependencies": {
"commitplease": "2.3.0",
"grunt": "0.4.5",
"grunt-bowercopy": "1.2.4",
"grunt-cli": "0.1.13",
"grunt-compare-size": "0.4.0",
"grunt-contrib-concat": "0.5.1",
"grunt-contrib-csslint": "0.5.0",
"grunt-contrib-jshint": "0.12.0",
"grunt-contrib-qunit": "1.0.1",
"grunt-contrib-requirejs": "0.4.4",
"grunt-contrib-uglify": "0.11.1",
"grunt-git-authors": "3.1.0",
"grunt-html": "6.0.0",
"grunt-jscs": "2.1.0",
"load-grunt-tasks": "3.4.0",
"rimraf": "2.5.1",
"testswarm": "1.1.0"
},
"keywords": []
}

469
libs/shapefile/shapefile.js Normal file
View File

@ -0,0 +1,469 @@
// https://github.com/mbostock/shapefile Version 0.6.2. Copyright 2017 Mike Bostock.
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.shapefile = global.shapefile || {})));
}(this, (function (exports) { 'use strict';
var array_cancel = function() {
this._array = null;
return Promise.resolve();
};
var array_read = function() {
var array = this._array;
this._array = null;
return Promise.resolve(array ? {done: false, value: array} : {done: true, value: undefined});
};
function array(array) {
return new ArraySource(array instanceof Uint8Array ? array : new Uint8Array(array));
}
function ArraySource(array) {
this._array = array;
}
ArraySource.prototype.read = array_read;
ArraySource.prototype.cancel = array_cancel;
var fetchPath = function(url) {
return fetch(url).then(function(response) {
return response.body && response.body.getReader
? response.body.getReader()
: response.arrayBuffer().then(array);
});
};
var requestPath = function(url) {
return new Promise(function(resolve, reject) {
var request = new XMLHttpRequest;
request.responseType = "arraybuffer";
request.onload = function() { resolve(array(request.response)); };
request.onerror = reject;
request.ontimeout = reject;
request.open("GET", url, true);
request.send();
});
};
function path(path) {
return (typeof fetch === "function" ? fetchPath : requestPath)(path);
}
function stream(source) {
return typeof source.read === "function" ? source : source.getReader();
}
var empty = new Uint8Array(0);
var slice_cancel = function() {
return this._source.cancel();
};
function concat(a, b) {
if (!a.length) return b;
if (!b.length) return a;
var c = new Uint8Array(a.length + b.length);
c.set(a);
c.set(b, a.length);
return c;
}
var slice_read = function() {
var that = this, array = that._array.subarray(that._index);
return that._source.read().then(function(result) {
that._array = empty;
that._index = 0;
return result.done ? (array.length > 0
? {done: false, value: array}
: {done: true, value: undefined})
: {done: false, value: concat(array, result.value)};
});
};
var slice_slice = function(length) {
if ((length |= 0) < 0) throw new Error("invalid length");
var that = this, index = this._array.length - this._index;
// If the request fits within the remaining buffer, resolve it immediately.
if (this._index + length <= this._array.length) {
return Promise.resolve(this._array.subarray(this._index, this._index += length));
}
// Otherwise, read chunks repeatedly until the request is fulfilled.
var array = new Uint8Array(length);
array.set(this._array.subarray(this._index));
return (function read() {
return that._source.read().then(function(result) {
// When done, it’s possible the request wasn’t fully fullfilled!
// If so, the pre-allocated array is too big and needs slicing.
if (result.done) {
that._array = empty;
that._index = 0;
return index > 0 ? array.subarray(0, index) : null;
}
// If this chunk fulfills the request, return the resulting array.
if (index + result.value.length >= length) {
that._array = result.value;
that._index = length - index;
array.set(result.value.subarray(0, length - index), index);
return array;
}
// Otherwise copy this chunk into the array, then read the next chunk.
array.set(result.value, index);
index += result.value.length;
return read();
});
})();
};
function slice(source) {
return typeof source.slice === "function" ? source :
new SliceSource(typeof source.read === "function" ? source
: source.getReader());
}
function SliceSource(source) {
this._source = source;
this._array = empty;
this._index = 0;
}
SliceSource.prototype.read = slice_read;
SliceSource.prototype.slice = slice_slice;
SliceSource.prototype.cancel = slice_cancel;
var dbf_cancel = function() {
return this._source.cancel();
};
var readBoolean = function(value) {
return /^[nf]$/i.test(value) ? false
: /^[yt]$/i.test(value) ? true
: null;
};
var readDate = function(value) {
return new Date(+value.substring(0, 4), value.substring(4, 6) - 1, +value.substring(6, 8));
};
var readNumber = function(value) {
return !(value = value.trim()) || isNaN(value = +value) ? null : value;
};
var readString = function(value) {
return value.trim() || null;
};
var types = {
B: readNumber,
C: readString,
D: readDate,
F: readNumber,
L: readBoolean,
M: readNumber,
N: readNumber
};
var dbf_read = function() {
var that = this, i = 1;
return that._source.slice(that._recordLength).then(function(value) {
return value && (value[0] !== 0x1a) ? {done: false, value: that._fields.reduce(function(p, f) {
p[f.name] = types[f.type](that._decode(value.subarray(i, i += f.length)));
return p;
}, {})} : {done: true, value: undefined};
});
};
var view = function(array) {
return new DataView(array.buffer, array.byteOffset, array.byteLength);
};
var dbf = function(source, decoder) {
source = slice(source);
return source.slice(32).then(function(array) {
var head = view(array);
return source.slice(head.getUint16(8, true) - 32).then(function(array) {
return new Dbf(source, decoder, head, view(array));
});
});
};
function Dbf(source, decoder, head, body) {
this._source = source;
this._decode = decoder.decode.bind(decoder);
this._recordLength = head.getUint16(10, true);
this._fields = [];
for (var n = 0; body.getUint8(n) !== 0x0d; n += 32) {
for (var j = 0; j < 11; ++j) if (body.getUint8(n + j) === 0) break;
this._fields.push({
name: this._decode(new Uint8Array(body.buffer, body.byteOffset + n, j)),
type: String.fromCharCode(body.getUint8(n + 11)),
length: body.getUint8(n + 16)
});
}
}
var prototype = Dbf.prototype;
prototype.read = dbf_read;
prototype.cancel = dbf_cancel;
function cancel() {
return this._source.cancel();
}
var readMultiPoint = function(record) {
var i = 40, j, n = record.getInt32(36, true), coordinates = new Array(n);
for (j = 0; j < n; ++j, i += 16) coordinates[j] = [record.getFloat64(i, true), record.getFloat64(i + 8, true)];
return {type: "MultiPoint", coordinates: coordinates};
};
var readNull = function() {
return null;
};
var readPoint = function(record) {
return {type: "Point", coordinates: [record.getFloat64(4, true), record.getFloat64(12, true)]};
};
var readPolygon = function(record) {
var i = 44, j, n = record.getInt32(36, true), m = record.getInt32(40, true), parts = new Array(n), points = new Array(m), polygons = [], holes = [];
for (j = 0; j < n; ++j, i += 4) parts[j] = record.getInt32(i, true);
for (j = 0; j < m; ++j, i += 16) points[j] = [record.getFloat64(i, true), record.getFloat64(i + 8, true)];
parts.forEach(function(i, j) {
var ring = points.slice(i, parts[j + 1]);
if (ringClockwise(ring)) polygons.push([ring]);
else holes.push(ring);
});
holes.forEach(function(hole) {
polygons.some(function(polygon) {
if (ringContainsSome(polygon[0], hole)) {
polygon.push(hole);
return true;
}
}) || polygons.push([hole]);
});
return polygons.length === 1
? {type: "Polygon", coordinates: polygons[0]}
: {type: "MultiPolygon", coordinates: polygons};
};
function ringClockwise(ring) {
if ((n = ring.length) < 4) return false;
var i = 0, n, area = ring[n - 1][1] * ring[0][0] - ring[n - 1][0] * ring[0][1];
while (++i < n) area += ring[i - 1][1] * ring[i][0] - ring[i - 1][0] * ring[i][1];
return area >= 0;
}
function ringContainsSome(ring, hole) {
var i = -1, n = hole.length, c;
while (++i < n) {
if (c = ringContains(ring, hole[i])) {
return c > 0;
}
}
return false;
}
function ringContains(ring, point) {
var x = point[0], y = point[1], contains = -1;
for (var i = 0, n = ring.length, j = n - 1; i < n; j = i++) {
var pi = ring[i], xi = pi[0], yi = pi[1],
pj = ring[j], xj = pj[0], yj = pj[1];
if (segmentContains(pi, pj, point)) {
return 0;
}
if (((yi > y) !== (yj > y)) && ((x < (xj - xi) * (y - yi) / (yj - yi) + xi))) {
contains = -contains;
}
}
return contains;
}
function segmentContains(p0, p1, p2) {
var x20 = p2[0] - p0[0], y20 = p2[1] - p0[1];
if (x20 === 0 && y20 === 0) return true;
var x10 = p1[0] - p0[0], y10 = p1[1] - p0[1];
if (x10 === 0 && y10 === 0) return false;
var t = (x20 * x10 + y20 * y10) / (x10 * x10 + y10 * y10);
return t < 0 || t > 1 ? false : t === 0 || t === 1 ? true : t * x10 === x20 && t * y10 === y20;
}
var readPolyLine = function(record) {
var i = 44, j, n = record.getInt32(36, true), m = record.getInt32(40, true), parts = new Array(n), points = new Array(m);
for (j = 0; j < n; ++j, i += 4) parts[j] = record.getInt32(i, true);
for (j = 0; j < m; ++j, i += 16) points[j] = [record.getFloat64(i, true), record.getFloat64(i + 8, true)];
return n === 1
? {type: "LineString", coordinates: points}
: {type: "MultiLineString", coordinates: parts.map(function(i, j) { return points.slice(i, parts[j + 1]); })};
};
var shp_read = function() {
var that = this;
return that._source.slice(8).then(function(array) {
if (array == null) return {done: true, value: undefined};
var header = view(array);
return that._source.slice(header.getInt32(4, false) * 2).then(function(array) {
var record = view(array);
return {done: false, value: record.getInt32(0, true) ? that._type(record) : readNull()};
});
});
};
var types$1 = {
0: readNull,
1: readPoint,
3: readPolyLine,
5: readPolygon,
8: readMultiPoint,
11: readPoint,
13: readPolyLine,
15: readPolygon,
18: readMultiPoint
};
var shp = function(source) {
source = slice(source);
return source.slice(100).then(function(array) {
return new Shp(source, view(array));
});
};
function Shp(source, header) {
var type = header.getInt32(32, true);
if (!(type in types$1)) throw new Error("unsupported shape type: " + type);
this._source = source;
this._type = types$1[type];
this.bbox = [header.getFloat64(36, true), header.getFloat64(44, true), header.getFloat64(52, true), header.getFloat64(60, true)];
}
var prototype$2 = Shp.prototype;
prototype$2.read = shp_read;
prototype$2.cancel = cancel;
function noop() {}
var shapefile_cancel = function() {
return Promise.all([
this._dbf && this._dbf.cancel(),
this._shp.cancel()
]).then(noop);
};
var shapefile_read = function() {
var that = this;
return Promise.all([
that._dbf ? that._dbf.read() : {value: {}},
that._shp.read()
]).then(function(results) {
var dbf = results[0], shp = results[1];
return shp.done ? shp : {
done: false,
value: {
type: "Feature",
properties: dbf.value,
geometry: shp.value
}
};
});
};
var shapefile = function(shpSource, dbfSource, decoder) {
return Promise.all([
shp(shpSource),
dbfSource && dbf(dbfSource, decoder)
]).then(function(sources) {
return new Shapefile(sources[0], sources[1]);
});
};
function Shapefile(shp$$1, dbf$$1) {
this._shp = shp$$1;
this._dbf = dbf$$1;
this.bbox = shp$$1.bbox;
}
var prototype$1 = Shapefile.prototype;
prototype$1.read = shapefile_read;
prototype$1.cancel = shapefile_cancel;
function open(shp$$1, dbf$$1, options) {
if (typeof dbf$$1 === "string") {
if (!/\.dbf$/.test(dbf$$1)) dbf$$1 += ".dbf";
dbf$$1 = path(dbf$$1, options);
} else if (dbf$$1 instanceof ArrayBuffer || dbf$$1 instanceof Uint8Array) {
dbf$$1 = array(dbf$$1);
} else if (dbf$$1 != null) {
dbf$$1 = stream(dbf$$1);
}
if (typeof shp$$1 === "string") {
if (!/\.shp$/.test(shp$$1)) shp$$1 += ".shp";
if (dbf$$1 === undefined) dbf$$1 = path(shp$$1.substring(0, shp$$1.length - 4) + ".dbf", options).catch(function() {});
shp$$1 = path(shp$$1, options);
} else if (shp$$1 instanceof ArrayBuffer || shp$$1 instanceof Uint8Array) {
shp$$1 = array(shp$$1);
} else {
shp$$1 = stream(shp$$1);
}
return Promise.all([shp$$1, dbf$$1]).then(function(sources) {
var shp$$1 = sources[0], dbf$$1 = sources[1], encoding = "windows-1252";
if (options && options.encoding != null) encoding = options.encoding;
return shapefile(shp$$1, dbf$$1, dbf$$1 && new TextDecoder(encoding));
});
}
function openShp(source, options) {
if (typeof source === "string") {
if (!/\.shp$/.test(source)) source += ".shp";
source = path(source, options);
} else if (source instanceof ArrayBuffer || source instanceof Uint8Array) {
source = array(source);
} else {
source = stream(source);
}
return Promise.resolve(source).then(shp);
}
function openDbf(source, options) {
var encoding = "windows-1252";
if (options && options.encoding != null) encoding = options.encoding;
encoding = new TextDecoder(encoding);
if (typeof source === "string") {
if (!/\.dbf$/.test(source)) source += ".dbf";
source = path(source, options);
} else if (source instanceof ArrayBuffer || source instanceof Uint8Array) {
source = array(source);
} else {
source = stream(source);
}
return Promise.resolve(source).then(function(source) {
return dbf(source, encoding);
});
}
function read(shp$$1, dbf$$1, options) {
return open(shp$$1, dbf$$1, options).then(function(source) {
var features = [], collection = {type: "FeatureCollection", features: features, bbox: source.bbox};
return source.read().then(function read(result) {
if (result.done) return collection;
features.push(result.value);
return source.read().then(read);
});
});
}
exports.open = open;
exports.openShp = openShp;
exports.openDbf = openDbf;
exports.read = read;
Object.defineProperty(exports, '__esModule', { value: true });
})));

View File

@ -8,7 +8,9 @@
"gulp-size": "*", "gulp-size": "*",
"gulp-concat": "*", "gulp-concat": "*",
"gulp-uglify": "*", "gulp-uglify": "*",
"gulp-rename": "*" "gulp-rename": "*",
"jshint": "*",
"gulp-jshint": "*"
}, },
"author": {}, "author": {},
"license": "", "license": "",

93
resources/icons/eye.svg Normal file
View File

@ -0,0 +1,93 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="64"
height="64"
viewBox="0 0 64.000001 64.000001"
id="svg2"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="eye.svg">
<defs
id="defs4" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="7.9195959"
inkscape:cx="-11.588817"
inkscape:cy="29.04571"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
units="px"
showguides="false"
inkscape:window-width="2560"
inkscape:window-height="1378"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-988.36216)">
<circle
style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:5;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path4138"
cx="32.167046"
cy="1019.7532"
r="12.911013" />
<circle
r="6.2958488"
cy="1016.4803"
cx="28.566353"
id="circle4140"
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:5;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:6;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 6,1020.3622 c 0,0 8.635627,-20.3563 26,-20.3563 15.414839,0 26,20.3563 26,20.3563 0,0 -5.427431,21.4926 -26,21.4926 -20.126654,0 -26,-21.4926 -26,-21.4926 z"
id="path4136"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cscsc" />
<g
id="g4150"
transform="translate(76.645324,0)">
<path
style="fill:none;fill-rule:evenodd;stroke:#ffffff;stroke-width:12;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 8,1044.3622 56,996.36216"
id="path4144"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<path
sodipodi:nodetypes="cc"
inkscape:connector-curvature="0"
id="path4142"
d="M 8,1044.3622 56,996.36216"
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:8;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -0,0 +1,93 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="64"
height="64"
viewBox="0 0 64.000001 64.000001"
id="svg2"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="eye_crossed.svg">
<defs
id="defs4" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="7.9195959"
inkscape:cx="26.72264"
inkscape:cy="42.323076"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
units="px"
showguides="false"
inkscape:window-width="2560"
inkscape:window-height="1378"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-988.36216)">
<circle
style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:5;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path4138"
cx="32.167046"
cy="1019.7532"
r="12.911013" />
<circle
r="6.2958488"
cy="1016.4803"
cx="28.566353"
id="circle4140"
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:5;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:6;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 6,1020.3622 c 0,0 8.635627,-20.3563 26,-20.3563 15.414839,0 26,20.3563 26,20.3563 0,0 -5.427431,21.4926 -26,21.4926 -20.126654,0 -26,-21.4926 -26,-21.4926 z"
id="path4136"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cscsc" />
<g
id="g4150"
transform="translate(-0.63134584,0)">
<path
style="fill:none;fill-rule:evenodd;stroke:#ffffff;stroke-width:12;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 8,1044.3622 56,996.36216"
id="path4144"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<path
sodipodi:nodetypes="cc"
inkscape:connector-curvature="0"
id="path4142"
d="M 8,1044.3622 56,996.36216"
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:8;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -0,0 +1,24 @@
<?php
$dir = './';
$files = scandir($dir);
foreach($files as $key => $value){
if($value === "." || $value === ".." || $value === "image_preview.php"){
continue;
}
?>
<div style="float: left; margin: 10px; width: 140px; height: 140px">
<span ><?= $value ?></span><br>
<img src="<?= $value ?>" style="width: 128px; border: 1px solid black" />
</div>
<?php
}
?>

View File

@ -1,237 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="64"
height="64"
id="svg2"
version="1.1"
inkscape:version="0.48.5 r10040"
sodipodi:docname="round_dropdown.svg"
inkscape:export-filename="D:\dev\workspaces\potree\develop\resources\icons\round_dropdown.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<defs
id="defs4">
<linearGradient
id="linearGradient3777">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3781" />
<stop
style="stop-color:#316c79;stop-opacity:0.36274511;"
offset="1"
id="stop3783" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient3927">
<stop
style="stop-color:#1c2a30;stop-opacity:1;"
offset="0"
id="stop3929" />
<stop
style="stop-color:#1c2a30;stop-opacity:0;"
offset="1"
id="stop3931" />
</linearGradient>
<linearGradient
id="linearGradient3916">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3920" />
<stop
style="stop-color:#ffffff;stop-opacity:0.28186274;"
offset="1"
id="stop3922" />
</linearGradient>
<linearGradient
id="linearGradient3890">
<stop
style="stop-color:#a9c1c7;stop-opacity:1;"
offset="0"
id="stop3902" />
<stop
id="stop3906"
offset="0.53744453"
style="stop-color:#375d66;stop-opacity:1;" />
<stop
id="stop3904"
offset="1"
style="stop-color:#1b3b42;stop-opacity:1;" />
</linearGradient>
<linearGradient
id="linearGradient3832">
<stop
style="stop-color:#486b7d;stop-opacity:1;"
offset="0"
id="stop3834" />
<stop
style="stop-color:#486b7d;stop-opacity:0;"
offset="1"
id="stop3836" />
</linearGradient>
<linearGradient
id="linearGradient3820">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3822" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3824" />
</linearGradient>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3890"
id="radialGradient3898"
cx="26.198547"
cy="56.964977"
fx="26.198547"
fy="56.964977"
r="31.88294"
gradientUnits="userSpaceOnUse"
spreadMethod="pad"
gradientTransform="matrix(2.3801773,-0.00906618,0.00377252,0.99041515,-30.640162,2.2988206)" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3916"
id="radialGradient3914"
cx="51.502235"
cy="44.744881"
fx="51.502235"
fy="44.744881"
r="31.88294"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(-0.01358059,0.34693581,-0.44544965,-0.01743684,50.983185,28.551401)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3927"
id="linearGradient3933"
x1="62.708218"
y1="-5.5219383"
x2="8.1835146"
y2="102.42551"
gradientUnits="userSpaceOnUse" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3777"
id="radialGradient3785"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(-0.06391254,0.55102676,-0.94714653,-0.10985773,40.412692,-13.569564)"
spreadMethod="pad"
cx="28.949028"
cy="0.31425104"
fx="28.949028"
fy="0.31425104"
r="31.88294" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="5.6"
inkscape:cx="27.539875"
inkscape:cy="13.64197"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="1018"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-988.36215)">
<path
sodipodi:type="arc"
style="fill:url(#radialGradient3898);stroke:none;stroke-width:4.62613439999999980;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:3;fill-opacity:1"
id="path3000-1"
sodipodi:cx="32.135479"
sodipodi:cy="31.611984"
sodipodi:rx="31.88294"
sodipodi:ry="31.88294"
d="m 64.018419,31.611984 c 0,17.608462 -14.274478,31.882941 -31.88294,31.882941 -17.608462,0 -31.88294032,-14.274479 -31.88294032,-31.882941 0,-17.608461 14.27447832,-31.88294004 31.88294032,-31.88294004 17.608462,0 31.88294,14.27447904 31.88294,31.88294004 z"
transform="matrix(0.8772954,0,0,0.8772954,3.8076922,992.6291)" />
<path
sodipodi:type="star"
style="fill:#22333a;fill-opacity:0.55319147999999996;stroke:#000000;stroke-width:2.98419642000000000;stroke-miterlimit:4;stroke-opacity:0.55851066;stroke-dasharray:none"
id="path3789"
sodipodi:sides="3"
sodipodi:cx="-43.035713"
sodipodi:cy="15.428571"
sodipodi:r1="17.18837"
sodipodi:r2="8.5941849"
sodipodi:arg1="2.6179939"
sodipodi:arg2="3.6651914"
inkscape:flatsided="true"
inkscape:rounded="0"
inkscape:randomized="0"
d="m -57.921278,24.022755 14.885565,-25.782554 14.885564,25.782555 z"
transform="matrix(-0.33509859,0,0,-0.33509859,17.79358,1042.2203)"
inkscape:transform-center-y="-5.4685954" />
<image
y="998.36212"
x="10"
id="image2993"
xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAA5FJREFU WIXtl11sVFUUhb8zM0ynLZUqmVpH5qEjQUZLiIhiTMSSJtQihh8V+mDQB0xETIwxiEUJaEjwwcSH hhhJoPgXJCUpxjSEEFoKgoSW2FggvvhXA02AWie02rSdLh/O7dzxQqcFZ9oXd7Jy7z17z97rnnXO PneMJKbSfLlIaozJM8aEpowAsAlYNqFISVkFEAX6gf0Tis8BgQMFoDD0AaHx4rMqgTFmCbBmB1AD hcBTkyYBEAA6F4GSoBMg4MvblgDYATx3CwTemGZQZwwpjpJxFAlwfTwZMiXsKgggoAEoGad4KZB4 Zx7SOhevzUXAylsmAJQXBlHX+2h5OQKuAmszEPh8Tgka+AipzkXr6+PLMFbCTUsXIZ2xqN+KiosQ cBAIe2IXG4NaP3bjh07Za/I0ioQzyzAWgeYPdiIlXVz6HT29LDUbz6ctvB9eXu/G/XgRbX3Xfd74 amYZblZ8OjD4WRtq143YVo+KihFwCPhiZilq6bW+thH00BPo3pgbv/t4ZhmMUzR9L6/IL+bQhz1g fPBbO3RfgMdedGMSl+HIThjog4U18ECVHT/5Cex/hR5gZu05iC4AjcCWWfQluglLGvC2gcBNWkN1 uALanRbV0QTfb4eWBnh8NxREgAiU1Vl/P9AG/HUZGjcjYBXwdVMDdz68APBBZDXTE7t4zxhTK2kk YyMCfr2nDpXLonAxAjYCjf5iNGuf60vHHSsRsNfJUR+c7foe/BuVbEOmkBbg7jHXABAHxMWQUL7o zxdBhoAZjr8GuEaFT7zkd/GsX8CfOP0CexKK7/JsnlH8FBJVvh7gydGaXgmqiQQh/qh9+rYXBjtP S0o4s/WVMaaZ4yPrgaDnt2clXXHujwKHWTJUzdtR2ByFkA9igP/8XfDHMWNMpaRW7wwc5YW40JsW bz0ioHai7diTywBbgGFiM8Q3q0TTamHPiBbA/y8JsKfXAPUbhA5YLIwJmH87BNLyVgDdgCjIk3Of WgfpgcsB0XVK6GfR2yF8vkv/pXha7lLnrYfT9fcS2EXZbHFFFp82CtiTDQJOfr+3uHcRVjO30m5q gIPNAIfJkklKAq3e8QCAMeZ+oIyiSmh3PGeak9jVnFMbnQH76fRLPvQNw+A1uHohtf0mg8BSANqe AVME/vsgi9OfyUY/SsOpEV2H4Q6AI5NBIHUaGmOiQBVWjvnAHHmPylwSmCrL1V+z/wlM2P4BOD/f 77tWK3UAAAAASUVORK5CYII= "
height="44"
width="44" />
<path
sodipodi:type="arc"
style="fill:none;stroke:url(#linearGradient3933);stroke-width:4.62557993999999970;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:3;fill-opacity:1"
id="path3000"
sodipodi:cx="32.135479"
sodipodi:cy="31.611984"
sodipodi:rx="31.88294"
sodipodi:ry="31.88294"
d="m 64.018419,31.611984 c 0,17.608462 -14.274478,31.882941 -31.88294,31.882941 -17.608462,0 -31.88294032,-14.274479 -31.88294032,-31.882941 0,-17.608461 14.27447832,-31.88294004 31.88294032,-31.88294004 17.608462,0 31.88294,14.27447904 31.88294,31.88294004 z"
transform="matrix(0.8772954,0,0,0.8772954,3.8076922,992.6291)" />
<rect
style="fill:#22333a;fill-opacity:0.5;stroke:#000000;stroke-width:0.77430558;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:0.6755319;stroke-dasharray:none;stroke-dashoffset:3"
id="rect3791"
width="10.78497"
height="7.18998"
x="8.8157263"
y="1077.2493" />
<path
transform="matrix(0.8772954,0,0,0.8772954,3.8076922,992.6291)"
d="m 64.018419,31.611984 c 0,17.608462 -14.274478,31.882941 -31.88294,31.882941 -17.608462,0 -31.88294032,-14.274479 -31.88294032,-31.882941 0,-17.608461 14.27447832,-31.88294004 31.88294032,-31.88294004 17.608462,0 31.88294,14.27447904 31.88294,31.88294004 z"
sodipodi:ry="31.88294"
sodipodi:rx="31.88294"
sodipodi:cy="31.611984"
sodipodi:cx="32.135479"
id="path3005"
style="fill:url(#radialGradient3785);stroke:none;stroke-width:4.62613439999999980;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:3;fill-opacity:1"
sodipodi:type="arc" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 9.7 KiB

View File

@ -1,230 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="64"
height="64"
id="svg2"
version="1.1"
inkscape:version="0.48.5 r10040"
sodipodi:docname="round_icon.svg"
inkscape:export-filename="D:\dev\workspaces\potree\develop\resources\icons\round_icon.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<defs
id="defs4">
<linearGradient
id="linearGradient3777">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3781" />
<stop
style="stop-color:#316c79;stop-opacity:0.36274511;"
offset="1"
id="stop3783" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient3927">
<stop
style="stop-color:#1c2a30;stop-opacity:1;"
offset="0"
id="stop3929" />
<stop
style="stop-color:#1c2a30;stop-opacity:0;"
offset="1"
id="stop3931" />
</linearGradient>
<linearGradient
id="linearGradient3916">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3920" />
<stop
style="stop-color:#ffffff;stop-opacity:0.28186274;"
offset="1"
id="stop3922" />
</linearGradient>
<linearGradient
id="linearGradient3890">
<stop
style="stop-color:#a9c1c7;stop-opacity:1;"
offset="0"
id="stop3902" />
<stop
id="stop3906"
offset="0.53744453"
style="stop-color:#375d66;stop-opacity:1;" />
<stop
id="stop3904"
offset="1"
style="stop-color:#1b3b42;stop-opacity:1;" />
</linearGradient>
<linearGradient
id="linearGradient3832">
<stop
style="stop-color:#486b7d;stop-opacity:1;"
offset="0"
id="stop3834" />
<stop
style="stop-color:#486b7d;stop-opacity:0;"
offset="1"
id="stop3836" />
</linearGradient>
<linearGradient
id="linearGradient3820">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3822" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3824" />
</linearGradient>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3890"
id="radialGradient3898"
cx="26.198547"
cy="56.964977"
fx="26.198547"
fy="56.964977"
r="31.88294"
gradientUnits="userSpaceOnUse"
spreadMethod="pad"
gradientTransform="matrix(2.3801773,-0.00906618,0.00377252,0.99041515,-30.640162,2.2988206)" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3916"
id="radialGradient3914"
cx="51.502235"
cy="44.744881"
fx="51.502235"
fy="44.744881"
r="31.88294"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(-0.01358059,0.34693581,-0.44544965,-0.01743684,50.983185,28.551401)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3927"
id="linearGradient3933"
x1="62.708218"
y1="-5.5219383"
x2="8.1835146"
y2="102.42551"
gradientUnits="userSpaceOnUse" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3777"
id="radialGradient3785"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(-0.06391254,0.55102676,-0.94714653,-0.10985773,40.412692,-13.569564)"
spreadMethod="pad"
cx="28.949028"
cy="0.31425104"
fx="28.949028"
fy="0.31425104"
r="31.88294" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="5.6"
inkscape:cx="14.039753"
inkscape:cy="24.532012"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="1018"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-988.36215)">
<path
sodipodi:type="arc"
style="fill:url(#radialGradient3898);stroke:none;stroke-width:4.62613439999999980;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:3;fill-opacity:1"
id="path3000-1"
sodipodi:cx="32.135479"
sodipodi:cy="31.611984"
sodipodi:rx="31.88294"
sodipodi:ry="31.88294"
d="m 64.018419,31.611984 c 0,17.608462 -14.274478,31.882941 -31.88294,31.882941 -17.608462,0 -31.88294032,-14.274479 -31.88294032,-31.882941 0,-17.608461 14.27447832,-31.88294004 31.88294032,-31.88294004 17.608462,0 31.88294,14.27447904 31.88294,31.88294004 z"
transform="matrix(0.8772954,0,0,0.8772954,3.8076922,992.6291)" />
<path
sodipodi:type="star"
style="fill:#22333a;fill-opacity:1;stroke:#000000;stroke-opacity:1;stroke-width:2.98419638;stroke-miterlimit:4;stroke-dasharray:none"
id="path3789"
sodipodi:sides="3"
sodipodi:cx="-43.035713"
sodipodi:cy="15.428571"
sodipodi:r1="17.18837"
sodipodi:r2="8.5941849"
sodipodi:arg1="2.6179939"
sodipodi:arg2="3.6651914"
inkscape:flatsided="true"
inkscape:rounded="0"
inkscape:randomized="0"
d="m -57.921278,24.022755 14.885565,-25.782554 14.885564,25.782555 z"
transform="matrix(-0.33509859,0,0,-0.33509859,17.436437,1043.1132)"
inkscape:transform-center-y="-5.4685954" />
<image
y="998.36212"
x="10"
id="image2993"
xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAA5FJREFU WIXtl11sVFUUhb8zM0ynLZUqmVpH5qEjQUZLiIhiTMSSJtQihh8V+mDQB0xETIwxiEUJaEjwwcSH hhhJoPgXJCUpxjSEEFoKgoSW2FggvvhXA02AWie02rSdLh/O7dzxQqcFZ9oXd7Jy7z17z97rnnXO PneMJKbSfLlIaozJM8aEpowAsAlYNqFISVkFEAX6gf0Tis8BgQMFoDD0AaHx4rMqgTFmCbBmB1AD hcBTkyYBEAA6F4GSoBMg4MvblgDYATx3CwTemGZQZwwpjpJxFAlwfTwZMiXsKgggoAEoGad4KZB4 Zx7SOhevzUXAylsmAJQXBlHX+2h5OQKuAmszEPh8Tgka+AipzkXr6+PLMFbCTUsXIZ2xqN+KiosQ cBAIe2IXG4NaP3bjh07Za/I0ioQzyzAWgeYPdiIlXVz6HT29LDUbz6ctvB9eXu/G/XgRbX3Xfd74 amYZblZ8OjD4WRtq143YVo+KihFwCPhiZilq6bW+thH00BPo3pgbv/t4ZhmMUzR9L6/IL+bQhz1g fPBbO3RfgMdedGMSl+HIThjog4U18ECVHT/5Cex/hR5gZu05iC4AjcCWWfQluglLGvC2gcBNWkN1 uALanRbV0QTfb4eWBnh8NxREgAiU1Vl/P9AG/HUZGjcjYBXwdVMDdz68APBBZDXTE7t4zxhTK2kk YyMCfr2nDpXLonAxAjYCjf5iNGuf60vHHSsRsNfJUR+c7foe/BuVbEOmkBbg7jHXABAHxMWQUL7o zxdBhoAZjr8GuEaFT7zkd/GsX8CfOP0CexKK7/JsnlH8FBJVvh7gydGaXgmqiQQh/qh9+rYXBjtP S0o4s/WVMaaZ4yPrgaDnt2clXXHujwKHWTJUzdtR2ByFkA9igP/8XfDHMWNMpaRW7wwc5YW40JsW bz0ioHai7diTywBbgGFiM8Q3q0TTamHPiBbA/y8JsKfXAPUbhA5YLIwJmH87BNLyVgDdgCjIk3Of WgfpgcsB0XVK6GfR2yF8vkv/pXha7lLnrYfT9fcS2EXZbHFFFp82CtiTDQJOfr+3uHcRVjO30m5q gIPNAIfJkklKAq3e8QCAMeZ+oIyiSmh3PGeak9jVnFMbnQH76fRLPvQNw+A1uHohtf0mg8BSANqe AVME/vsgi9OfyUY/SsOpEV2H4Q6AI5NBIHUaGmOiQBVWjvnAHHmPylwSmCrL1V+z/wlM2P4BOD/f 77tWK3UAAAAASUVORK5CYII= "
height="44"
width="44" />
<path
sodipodi:type="arc"
style="fill:none;stroke:url(#linearGradient3933);stroke-width:4.62557993999999970;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:3;fill-opacity:1"
id="path3000"
sodipodi:cx="32.135479"
sodipodi:cy="31.611984"
sodipodi:rx="31.88294"
sodipodi:ry="31.88294"
d="m 64.018419,31.611984 c 0,17.608462 -14.274478,31.882941 -31.88294,31.882941 -17.608462,0 -31.88294032,-14.274479 -31.88294032,-31.882941 0,-17.608461 14.27447832,-31.88294004 31.88294032,-31.88294004 17.608462,0 31.88294,14.27447904 31.88294,31.88294004 z"
transform="matrix(0.8772954,0,0,0.8772954,3.8076922,992.6291)" />
<path
transform="matrix(0.8772954,0,0,0.8772954,3.8076922,992.6291)"
d="m 64.018419,31.611984 c 0,17.608462 -14.274478,31.882941 -31.88294,31.882941 -17.608462,0 -31.88294032,-14.274479 -31.88294032,-31.882941 0,-17.608461 14.27447832,-31.88294004 31.88294032,-31.88294004 17.608462,0 31.88294,14.27447904 31.88294,31.88294004 z"
sodipodi:ry="31.88294"
sodipodi:rx="31.88294"
sodipodi:cy="31.611984"
sodipodi:cx="32.135479"
id="path3005"
style="fill:url(#radialGradient3785);stroke:none;stroke-width:4.62613439999999980;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:3;fill-opacity:1"
sodipodi:type="arc" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 9.4 KiB

View File

@ -50,7 +50,10 @@
"freeze": "Lock view", "freeze": "Lock view",
"language": "Language" "language": "Language"
}, },
"profile": { "annotations": {
"show": "show annotations"
},
"profile": {
"nb_points": "Point number", "nb_points": "Point number",
"title": "Height profile", "title": "Height profile",
"save_las": "Save LAS(3D)", "save_las": "Save LAS(3D)",

View File

@ -0,0 +1,66 @@
{
"tb": {
"navigation_opt": "ナビゲーション",
"rendering_opt": "外観",
"tools_opt": "ツール",
"measurments_opt": "測定結果",
"annotations_opt": "注釈",
"materials_opt": "材料",
"scene_opt": "シーン",
"classification_filter_opt": "フィルター分類",
"parameters_opt": "その他の設定",
"about_opt": "協力"
},
"tt": {
"angle_measurement": "角度測定",
"distance_measurement": "距離測定",
"height_measurement": "標高測定",
"area_measurement": "面積測定",
"volume_measurement": "体積測定",
"height_profile": "断面図",
"clip_volume": "クリッピングボリューム",
"remove_all_measurement": "計測結果のクリア",
"left_view_control": "左から見る",
"front_view_control": "前から見る",
"top_view_control": "上から見る",
"focus_control": "全体表示",
"orbit_control": " 軌道制御",
"flight_control": "Vol",
"earth_control": "地球"
},
"appearance": {
"nb_max_pts": "表示するポイント数を設定",
"point_size": "点サイズを設定",
"point_opacity": "不透明度",
"field_view": "視野",
"point_size_type": "点タイプ設定",
"point_material": "点の材質",
"elevation_range": "Plage altimétrique",
"point_quality": "品質",
"edl_radius": "点群の半径",
"edl_strength": "点群の強度",
"edl_enable": "アクティブにする",
"min_node_size": "最小ノードサイズ",
"clip_mode": "クリップモード",
"move_speed": "動く速度",
"skybox": "空",
"bottom_lock": "地上面を固定します。",
"box": "ボックス",
"freeze": "ビューの固定",
"language": "言語"
},
"profile": {
"nb_points": "点群番号",
"title": "Profil altimétrique",
"save_las": "LAS(3D)形式で保存",
"save_ortho": "CSV(2D)形式で保存",
"save": "保存"
},
"scene": {
"camera_position": "Camera Position",
"camera_target": "Camera Target"
},
"settings": {
"language": "言語"
}
}

Binary file not shown.

Binary file not shown.

86
src/Actions.js Normal file
View File

@ -0,0 +1,86 @@
Potree.Action = class Action extends THREE.EventDispatcher{
constructor(args = {}){
super();
this.icon = args.icon || "";
this.tooltip = args.tooltip;
if(args.onclick !== undefined){
this.onclick = args.onclick;
}
}
onclick(event){
}
pairWith(object){
}
setIcon(newIcon){
let oldIcon = this.icon;
if(newIcon === oldIcon){
return;
}
this.icon = newIcon;
this.dispatchEvent({
type: "icon_changed",
action: this,
icon: newIcon,
oldIcon: oldIcon
});
}
};
Potree.Actions = {};
Potree.Actions.ToggleAnnotationVisibility = class ToggleAnnotationVisibility extends Potree.Action{
constructor(args = {}){
super(args);
this.icon = Potree.resourcePath + "/icons/eye.svg";
this.showIn = "sidebar";
this.tooltip = "toggle visibility";
}
pairWith(annotation){
if(annotation.visible){
this.setIcon(Potree.resourcePath + "/icons/eye.svg");
}else{
this.setIcon(Potree.resourcePath + "/icons/eye_crossed.svg");
}
annotation.addEventListener("visibility_changed", e => {
let annotation = e.annotation;
if(annotation.visible){
this.setIcon(Potree.resourcePath + "/icons/eye.svg");
}else{
this.setIcon(Potree.resourcePath + "/icons/eye_crossed.svg");
}
});
}
onclick(event){
let annotation = event.annotation;
annotation.visible = !annotation.visible;
if(annotation.visible){
this.setIcon(Potree.resourcePath + "/icons/eye.svg");
}else{
this.setIcon(Potree.resourcePath + "/icons/eye_crossed.svg");
}
}
}

View File

@ -27,7 +27,9 @@ Potree.Annotation = class extends THREE.EventDispatcher{
this.showDescription = true; this.showDescription = true;
this.actions = args.actions || []; this.actions = args.actions || [];
this.isHighlighted = false; this.isHighlighted = false;
this.visible = true; this._visible = true;
this.__visible = true;
this.collapseThreshold = [args.collapseThreshold, 100].find(e => e !== undefined);
this.children = []; this.children = [];
this.parent = null; this.parent = null;
@ -61,13 +63,28 @@ Potree.Annotation = class extends THREE.EventDispatcher{
} }
this.dispatchEvent({type: "click", target: this}); this.dispatchEvent({type: "click", target: this});
}); });
this.actions = this.actions.map(a => {
if(a instanceof Potree.Action){
return a;
}else{
return new Potree.Action(a);
}
});
for(let action of this.actions){ for(let action of this.actions){
action.pairWith(this);
}
let actions = this.actions.filter(
a => a.showIn === undefined || a.showIn.includes("scene"));
for(let action of actions){
this.elTitle.css("padding", "1px 3px 0px 8px"); this.elTitle.css("padding", "1px 3px 0px 8px");
let elButton = $(`<img src="${action.icon}" class="annotation-action-icon">`); let elButton = $(`<img src="${action.icon}" class="annotation-action-icon">`);
this.elTitlebar.append(elButton); this.elTitlebar.append(elButton);
elButton.click(() => action.onclick()); elButton.click(() => action.onclick({annotation: this}));
} }
this.elDescriptionClose.hover( this.elDescriptionClose.hover(
@ -92,7 +109,7 @@ Potree.Annotation = class extends THREE.EventDispatcher{
let c = this; let c = this;
while(c !== null){ while(c !== null){
this.dispatchEvent({ c.dispatchEvent({
"type": "annotation_added", "type": "annotation_added",
"annotation": annotation "annotation": annotation
}); });
@ -176,7 +193,8 @@ Potree.Annotation = class extends THREE.EventDispatcher{
if(this.description){ if(this.description){
this.descriptionVisible = true; this.descriptionVisible = true;
this.elDescription.css("display", "block"); //this.elDescription.css("display", "block");
this.elDescription.fadeIn(200);
this.elDescription.css("position", "relative"); this.elDescription.css("position", "relative");
} }
}else{ }else{
@ -185,6 +203,7 @@ Potree.Annotation = class extends THREE.EventDispatcher{
this.domElement.css("z-index", "100"); this.domElement.css("z-index", "100");
this.descriptionVisible = false; this.descriptionVisible = false;
this.elDescription.css("display", "none"); this.elDescription.css("display", "none");
//this.elDescription.fadeOut(200);
} }
this.isHighlighted = highlighted; this.isHighlighted = highlighted;
@ -205,10 +224,13 @@ Potree.Annotation = class extends THREE.EventDispatcher{
if(!this.hasView()){ if(!this.hasView()){
return; return;
} }
let view = this.scene.view;
var animationDuration = 800; var animationDuration = 800;
var easing = TWEEN.Easing.Quartic.Out; var easing = TWEEN.Easing.Quartic.Out;
let endTarget; let endTarget;
if(this.cameraTarget){ if(this.cameraTarget){
endTarget = this.cameraTarget; endTarget = this.cameraTarget;
@ -217,37 +239,61 @@ Potree.Annotation = class extends THREE.EventDispatcher{
}else{ }else{
endTarget = this.boundingBox.getCenter(); endTarget = this.boundingBox.getCenter();
} }
let endPosition = this.cameraPosition;
if(!endPosition){
let direction = this.scene.view.direction;
endPosition = endTarget.clone().add(direction.multiplyScalar(-this.radius));
}
{ // animate camera position
let tween = new TWEEN.Tween(this.scene.view.position).to(endPosition, animationDuration);
tween.easing(easing);
tween.start();
}
{ // animate camera target if(this.cameraPosition){
var camTargetDistance = camera.position.distanceTo(endTarget);
var target = new THREE.Vector3().addVectors( let endPosition = this.cameraPosition;
camera.position,
camera.getWorldDirection().clone().multiplyScalar(camTargetDistance) { // animate camera position
); let tween = new TWEEN.Tween(view.position).to(endPosition, animationDuration);
var tween = new TWEEN.Tween(target).to(endTarget, animationDuration); tween.easing(easing);
tween.easing(easing); tween.start();
tween.onUpdate(() => { }
this.scene.view.lookAt(target);
}); { // animate camera target
tween.onComplete(() => { var camTargetDistance = camera.position.distanceTo(endTarget);
this.scene.view.lookAt(target); var target = new THREE.Vector3().addVectors(
this.dispatchEvent({type: "focusing_finished", target: this}); camera.position,
}); camera.getWorldDirection().clone().multiplyScalar(camTargetDistance)
);
var tween = new TWEEN.Tween(target).to(endTarget, animationDuration);
tween.easing(easing);
tween.onUpdate(() => {
view.lookAt(target);
});
tween.onComplete(() => {
view.lookAt(target);
this.dispatchEvent({type: "focusing_finished", target: this});
});
this.dispatchEvent({type: "focusing_started", target: this});
tween.start();
}
}else if(this.radius){
let direction = view.direction;
let endPosition = endTarget.clone().add(direction.multiplyScalar(-this.radius));
let startRadius = view.radius;
let endRadius = this.radius;
{ // animate camera position
let tween = new TWEEN.Tween(view.position).to(endPosition, animationDuration);
tween.easing(easing);
tween.start();
}
{ // animate radius
let t = {x: 0};
let tween = new TWEEN.Tween(t)
.to({x: 1}, animationDuration)
.onUpdate(function(){
view.radius = this.x * endRadius + (1 - this.x) * startRadius;
});
tween.easing(easing);
tween.start();
}
} }
this.dispatchEvent({type: "focusing_started", target: this});
tween.start();
}; };
dispose(){ dispose(){
@ -257,6 +303,34 @@ Potree.Annotation = class extends THREE.EventDispatcher{
}; };
get visible(){
return this._visible;
}
set visible(value){
if(this._visible === value){
return;
}
this._visible = value;
if(!value){
this.traverse(node => {
node.__visible = false;
node.domElement.css("display", "none");
});
}else{
this.traverse(node => {
node.__visible = true;
});
}
this.dispatchEvent({
type: "visibility_changed",
annotation: this
});
}
toString(){ toString(){
return "Annotation: " + this.title; return "Annotation: " + this.title;
} }

View File

@ -98,7 +98,12 @@ Potree.PointCloudOctree = class extends Potree.PointCloudTree{
toTreeNode(geometryNode, parent){ toTreeNode(geometryNode, parent){
var node = new Potree.PointCloudOctreeNode(); var node = new Potree.PointCloudOctreeNode();
//if(geometryNode.name === "r40206"){
// console.log("creating node for r40206");
//}
var sceneNode = new THREE.Points(geometryNode.geometry, this.material); var sceneNode = new THREE.Points(geometryNode.geometry, this.material);
sceneNode.name = geometryNode.name;
node.geometryNode = geometryNode; node.geometryNode = geometryNode;
node.sceneNode = sceneNode; node.sceneNode = sceneNode;
@ -857,6 +862,8 @@ Potree.PointCloudOctree = class extends Potree.PointCloudTree{
gl.enableVertexAttribArray( apIndices ); gl.enableVertexAttribArray( apIndices );
} }
//renderer.resetGLState();
for(let i = 0; i < nodes.length; i++){ for(let i = 0; i < nodes.length; i++){
let node = nodes[i]; let node = nodes[i];
let object = node.sceneNode; let object = node.sceneNode;
@ -900,9 +907,10 @@ Potree.PointCloudOctree = class extends Potree.PointCloudTree{
gl.uniform1f(uniforms["pcIndex"], pickMaterial.pcIndex); gl.uniform1f(uniforms["pcIndex"], pickMaterial.pcIndex);
let numPoints = node.getNumPoints(); //let numPoints = node.getNumPoints();
let numPoints = geometry.attributes.position.count;
if(numPoints > 0){ if(numPoints > 0){
gl.drawArrays( gl.POINTS, 0, node.getNumPoints()); gl.drawArrays( gl.POINTS, 0, numPoints);
} }
// TODO hack // TODO hack
@ -929,7 +937,7 @@ Potree.PointCloudOctree = class extends Potree.PointCloudTree{
// renderer.context.readPixels( 0, 0, width, height, // renderer.context.readPixels( 0, 0, width, height,
// renderer.context.RGBA, renderer.context.UNSIGNED_BYTE, bp); // renderer.context.RGBA, renderer.context.UNSIGNED_BYTE, bp);
// //
// var img = pixelsArrayToImage(bp, width, height); // var img = Potree.utils.pixelsArrayToImage(bp, width, height);
// var screenshot = img.src; // var screenshot = img.src;
// //
// var w = window.open(); // var w = window.open();

View File

@ -10,31 +10,31 @@ Potree.PointCloudTreeNode = class{
getChildren(){ getChildren(){
throw "override function"; throw "override function";
}; }
getBoundingBox(){ getBoundingBox(){
throw "override function"; throw "override function";
}; }
isLoaded(){ isLoaded(){
throw "override function"; throw "override function";
}; }
isGeometryNode(){ isGeometryNode(){
throw "override function"; throw "override function";
}; }
isTreeNode(){ isTreeNode(){
throw "override function"; throw "override function";
}; }
getLevel(){ getLevel(){
throw "override function"; throw "override function";
}; }
getBoundingSphere(){ getBoundingSphere(){
throw "override function"; throw "override function";
}; }
}; };
@ -47,7 +47,7 @@ Potree.PointCloudTree = class PointCloudTree extends THREE.Object3D{
initialized(){ initialized(){
return this.root !== null; return this.root !== null;
}; }
}; };

View File

@ -30,7 +30,7 @@ Potree.webgl = {
Potree.scriptPath = null; Potree.scriptPath = null;
if(document.currentScript.src){ if(document.currentScript.src){
Potree.scriptPath = new URL(document.currentScript.src + "/..").href; Potree.scriptPath = new URL(document.currentScript.src + "/..").href;
if (Potree.scriptPath.slice(-1) == '/') { if (Potree.scriptPath.slice(-1) === '/') {
Potree.scriptPath = Potree.scriptPath.slice(0, -1); Potree.scriptPath = Potree.scriptPath.slice(0, -1);
} }
}else{ }else{
@ -101,7 +101,7 @@ Potree.resolveQueries = function(gl){
delete Potree.timerQueries[name]; delete Potree.timerQueries[name];
} }
} }
} };
Potree.MOUSE = { Potree.MOUSE = {
@ -117,7 +117,7 @@ Potree.loadPointCloud = function(path, name, callback){
pointcloud.name = name; pointcloud.name = name;
callback({type: "pointcloud_loaded", pointcloud: pointcloud}); callback({type: "pointcloud_loaded", pointcloud: pointcloud});
} };
// load pointcloud // load pointcloud
if(!path){ if(!path){
@ -153,7 +153,7 @@ Potree.loadPointCloud = function(path, name, callback){
}else{ }else{
callback({"type": "loading_failed"}); callback({"type": "loading_failed"});
} }
} };
Potree.updatePointClouds = function(pointclouds, camera, renderer){ Potree.updatePointClouds = function(pointclouds, camera, renderer){
@ -375,6 +375,20 @@ Potree.updateVisibility = function(pointclouds, camera, renderer){
unloadedGeometry[i].load(); unloadedGeometry[i].load();
} }
//for(let node of visibleNodes){
// //let allowedNodes = ["r", "r0", "r4", "r04", "r40", "r402", "r4020", "r4022", "r40206", "r40224", "r40202", "r40220", "r00", "r042"];
// //let allowedNodes = ["r", "r0", "r4", "r04", "r40", "r402", "r4020", "r4022", "r00", "r042"];
// //let allowedNodes = ["r", "r0", "r04", "r042"];
// let allowedNodes = ["r", "r4", "r40", "r402", "r4020", "r40206"];
// //let allowedNodes = ["r", "r4", "r40", "r402", "r4020"];
// node.sceneNode.visible = allowedNodes.includes(node.geometryNode.name);
//
// if(node.boundingBoxNode){
// node.boundingBoxNode.visible = node.boundingBoxNode.visible && node.sceneNode.visible;
// }
//}
Potree.updateDEMs(renderer, visibleNodes); Potree.updateDEMs(renderer, visibleNodes);
return { return {
@ -440,207 +454,207 @@ Potree.updateDEMs = function(renderer, visibleNodes){
} }
}
Potree.Shader = class Shader{
constructor(vertexShader, fragmentShader, program, uniforms){
this.vertexShader = vertexShader;
this.fragmentShader = fragmentShader;
this.program = program;
this.uniforms = uniforms;
}
}; };
Potree.VBO = class VBO{ //Potree.Shader = class Shader{
constructor(name, id, attribute){ // constructor(vertexShader, fragmentShader, program, uniforms){
this.name = name; // this.vertexShader = vertexShader;
this.id = id; // this.fragmentShader = fragmentShader;
this.attribute = attribute; // this.program = program;
} // this.uniforms = uniforms;
}; // }
//};
Potree.VAO = class VAO{ //
constructor(id, geometry, vbos){ //Potree.VBO = class VBO{
this.id = id; // constructor(name, id, attribute){
this.geometry = geometry; // this.name = name;
this.vbos = vbos; // this.id = id;
} // this.attribute = attribute;
}; // }
//};
Potree.compileShader = function(gl, vertexShader, fragmentShader){ //
// VERTEX SHADER //Potree.VAO = class VAO{
let vs = gl.createShader(gl.VERTEX_SHADER); // constructor(id, geometry, vbos){
{ // this.id = id;
gl.shaderSource(vs, vertexShader); // this.geometry = geometry;
gl.compileShader(vs); // this.vbos = vbos;
// }
let success = gl.getShaderParameter(vs, gl.COMPILE_STATUS); //};
if (!success) { //
console.error("could not compile vertex shader:"); //Potree.compileShader = function(gl, vertexShader, fragmentShader){
// // VERTEX SHADER
let log = gl.getShaderInfoLog(vs); // let vs = gl.createShader(gl.VERTEX_SHADER);
console.error(log, vertexShader); // {
// gl.shaderSource(vs, vertexShader);
return; // gl.compileShader(vs);
} //
} // let success = gl.getShaderParameter(vs, gl.COMPILE_STATUS);
// if (!success) {
// FRAGMENT SHADER // console.error("could not compile vertex shader:");
let fs = gl.createShader(gl.FRAGMENT_SHADER); //
{ // let log = gl.getShaderInfoLog(vs);
gl.shaderSource(fs, fragmentShader); // console.error(log, vertexShader);
gl.compileShader(fs); //
// return;
let success = gl.getShaderParameter(fs, gl.COMPILE_STATUS); // }
if (!success) { // }
console.error("could not compile fragment shader:"); //
console.error(fragmentShader); // // FRAGMENT SHADER
// let fs = gl.createShader(gl.FRAGMENT_SHADER);
return; // {
} // gl.shaderSource(fs, fragmentShader);
} // gl.compileShader(fs);
//
// PROGRAM // let success = gl.getShaderParameter(fs, gl.COMPILE_STATUS);
let program = gl.createProgram(); // if (!success) {
gl.attachShader(program, vs); // console.error("could not compile fragment shader:");
gl.attachShader(program, fs); // console.error(fragmentShader);
gl.linkProgram(program); //
let success = gl.getProgramParameter(program, gl.LINK_STATUS); // return;
if (!success) { // }
console.error("could not compile shader:"); // }
console.error(vertexShader); //
console.error(fragmentShader); // // PROGRAM
// let program = gl.createProgram();
return; // gl.attachShader(program, vs);
} // gl.attachShader(program, fs);
// gl.linkProgram(program);
gl.useProgram(program); // let success = gl.getProgramParameter(program, gl.LINK_STATUS);
// if (!success) {
let uniforms = {}; // console.error("could not compile shader:");
{ // UNIFORMS // console.error(vertexShader);
let n = gl.getProgramParameter(program, gl.ACTIVE_UNIFORMS); // console.error(fragmentShader);
//
for(let i = 0; i < n; i++){ // return;
let uniform = gl.getActiveUniform(program, i); // }
let name = uniform.name; //
let loc = gl.getUniformLocation(program, name); // gl.useProgram(program);
//
uniforms[name] = loc; // let uniforms = {};
} // { // UNIFORMS
} // let n = gl.getProgramParameter(program, gl.ACTIVE_UNIFORMS);
//
let shader = new Potree.Shader(vertexShader, fragmentShader, program, uniforms); // for(let i = 0; i < n; i++){
// let uniform = gl.getActiveUniform(program, i);
return shader; // let name = uniform.name;
}; // let loc = gl.getUniformLocation(program, name);
//
// http://blog.tojicode.com/2012/10/oesvertexarrayobject-extension.html // uniforms[name] = loc;
Potree.createVAO = function(gl, geometry){ // }
if(Potree.vaos[geometry.uuid] ==! undefined){ // }
return Potree.vaos[geometry.uuid]; //
} // let shader = new Potree.Shader(vertexShader, fragmentShader, program, uniforms);
//
let ext = gl.getExtension("OES_vertex_array_object"); // return shader;
let id = ext.createVertexArrayOES(); //};
//
ext.bindVertexArrayOES(id); //// http://blog.tojicode.com/2012/10/oesvertexarrayobject-extension.html
//Potree.createVAO = function(gl, geometry){
let vbos = {}; // if(Potree.vaos[geometry.uuid] ==! undefined){
for(let key in geometry.attributes){ // return Potree.vaos[geometry.uuid];
let attribute = geometry.attributes[key]; // }
//
let type = gl.FLOAT; // let ext = gl.getExtension("OES_vertex_array_object");
if(attribute.array instanceof Uint8Array){ // let id = ext.createVertexArrayOES();
type = gl.UNSIGNED_BYTE; //
}else if(attribute.array instanceof Uint16Array){ // ext.bindVertexArrayOES(id);
type = gl.UNSIGNED_SHORT; //
}else if(attribute.array instanceof Uint32Array){ // let vbos = {};
type = gl.UNSIGNED_INT; // for(let key in geometry.attributes){
}else if(attribute.array instanceof Int8Array){ // let attribute = geometry.attributes[key];
type = gl.BYTE; //
}else if(attribute.array instanceof Int16Array){ // let type = gl.FLOAT;
type = gl.SHORT; // if(attribute.array instanceof Uint8Array){
}else if(attribute.array instanceof Int32Array){ // type = gl.UNSIGNED_BYTE;
type = gl.INT; // }else if(attribute.array instanceof Uint16Array){
}else if(attribute.array instanceof Float32Array){ // type = gl.UNSIGNED_SHORT;
type = gl.FLOAT; // }else if(attribute.array instanceof Uint32Array){
} // type = gl.UNSIGNED_INT;
// }else if(attribute.array instanceof Int8Array){
let vbo = gl.createBuffer(); // type = gl.BYTE;
gl.bindBuffer(gl.ARRAY_BUFFER, vbo); // }else if(attribute.array instanceof Int16Array){
gl.bufferData(gl.ARRAY_BUFFER, attribute.array, gl.STATIC_DRAW); // type = gl.SHORT;
//gl.enableVertexAttribArray(attributePointer); // }else if(attribute.array instanceof Int32Array){
//gl.vertexAttribPointer(attributePointer, numElements, type, attribute.normalized, 0, 0); // type = gl.INT;
// }else if(attribute.array instanceof Float32Array){
vbos[key] = new Potree.VBO(key, vbo, attribute); // type = gl.FLOAT;
} // }
//
ext.bindVertexArrayOES(null); // let vbo = gl.createBuffer();
// gl.bindBuffer(gl.ARRAY_BUFFER, vbo);
let vao = new Potree.VAO(id, geometry, vbos); // gl.bufferData(gl.ARRAY_BUFFER, attribute.array, gl.STATIC_DRAW);
Potree.vaos[geometry.uuid] = vao; // //gl.enableVertexAttribArray(attributePointer);
// //gl.vertexAttribPointer(attributePointer, numElements, type, attribute.normalized, 0, 0);
return vao; //
}; // vbos[key] = new Potree.VBO(key, vbo, attribute);
// }
Potree.renderPointcloud = function(pointcloud, camera, renderer){ //
let gl = renderer.context; // ext.bindVertexArrayOES(null);
let webgl = Potree.webgl; //
let material = pointcloud.material; // let vao = new Potree.VAO(id, geometry, vbos);
// Potree.vaos[geometry.uuid] = vao;
if(gl.getExtension("OES_vertex_array_object") === null){ //
console.error("OES_vertex_array_object extension not supported"); // return vao;
return; //};
} //
//Potree.renderPointcloud = function(pointcloud, camera, renderer){
if(material.needsUpdate){ // let gl = renderer.context;
Potree.pointcloudShader = Potree.compileShader(gl, // let webgl = Potree.webgl;
material.vertexShader, material.fragmentShader); // let material = pointcloud.material;
//
material.needsUpdate = false; // if(gl.getExtension("OES_vertex_array_object") === null){
} // console.error("OES_vertex_array_object extension not supported");
// return;
let shader = Potree.pointcloudShader; // }
let uniforms = shader.uniforms; //
// if(material.needsUpdate){
gl.useProgram(shader.program); // Potree.pointcloudShader = Potree.compileShader(gl,
// material.vertexShader, material.fragmentShader);
gl.uniformMatrix4fv(uniforms["projectionMatrix"], false, camera.projectionMatrix.elements); //
gl.uniformMatrix4fv(uniforms["viewMatrix"], false, camera.matrixWorldInverse.elements); // material.needsUpdate = false;
gl.uniform1f(uniforms["fov"], this.material.fov); // }
gl.uniform1f(uniforms["screenWidth"], material.screenWidth); //
gl.uniform1f(uniforms["screenHeight"], material.screenHeight); // let shader = Potree.pointcloudShader;
gl.uniform1f(uniforms["spacing"], material.spacing); // let uniforms = shader.uniforms;
gl.uniform1f(uniforms["near"], material.near); //
gl.uniform1f(uniforms["far"], material.far); // gl.useProgram(shader.program);
gl.uniform1f(uniforms["size"], material.size); //
gl.uniform1f(uniforms["minSize"], material.minSize); // gl.uniformMatrix4fv(uniforms["projectionMatrix"], false, camera.projectionMatrix.elements);
gl.uniform1f(uniforms["maxSize"], material.maxSize); // gl.uniformMatrix4fv(uniforms["viewMatrix"], false, camera.matrixWorldInverse.elements);
gl.uniform1f(uniforms["octreeSize"], pointcloud.pcoGeometry.boundingBox.getSize().x); // gl.uniform1f(uniforms["fov"], this.material.fov);
// gl.uniform1f(uniforms["screenWidth"], material.screenWidth);
{ // gl.uniform1f(uniforms["screenHeight"], material.screenHeight);
let apPosition = gl.getAttribLocation(program, "position"); // gl.uniform1f(uniforms["spacing"], material.spacing);
let apColor = gl.getAttribLocation(program, "color"); // gl.uniform1f(uniforms["near"], material.near);
let apNormal = gl.getAttribLocation(program, "normal"); // gl.uniform1f(uniforms["far"], material.far);
let apClassification = gl.getAttribLocation(program, "classification"); // gl.uniform1f(uniforms["size"], material.size);
let apIndices = gl.getAttribLocation(program, "indices"); // gl.uniform1f(uniforms["minSize"], material.minSize);
// gl.uniform1f(uniforms["maxSize"], material.maxSize);
gl.enableVertexAttribArray(apPosition); // gl.uniform1f(uniforms["octreeSize"], pointcloud.pcoGeometry.boundingBox.getSize().x);
gl.enableVertexAttribArray(apColor); //
gl.enableVertexAttribArray(apNormal); // {
gl.enableVertexAttribArray(apClassification); // let apPosition = gl.getAttribLocation(program, "position");
gl.enableVertexAttribArray(apIndices); // let apColor = gl.getAttribLocation(program, "color");
} // let apNormal = gl.getAttribLocation(program, "normal");
// let apClassification = gl.getAttribLocation(program, "classification");
let nodes = pointcloud.visibleNodes; // let apIndices = gl.getAttribLocation(program, "indices");
for(let node of nodes){ //
let object = node.sceneNode; // gl.enableVertexAttribArray(apPosition);
let geometry = object.geometry; // gl.enableVertexAttribArray(apColor);
// gl.enableVertexAttribArray(apNormal);
// gl.enableVertexAttribArray(apClassification);
} // gl.enableVertexAttribArray(apIndices);
// }
}; //
// let nodes = pointcloud.visibleNodes;
// for(let node of nodes){
// let object = node.sceneNode;
// let geometry = object.geometry;
//
//
// }
//
//};

View File

@ -25,7 +25,7 @@ Potree.WorkerPool = class WorkerPool{
this.workers[url].push(worker); this.workers[url].push(worker);
} }
} };
Potree.workerPool = new Potree.WorkerPool(); Potree.workerPool = new Potree.WorkerPool();

View File

@ -8,109 +8,146 @@
Potree.DXFExporter = class DXFExporter{ Potree.DXFExporter = class DXFExporter{
static toString(measurement){ static measurementSection(measurement){
let isLine = measurement.showDistances && !measurement.showArea && !measurement.showAngles;
let isPolygon = measurement.showDistances && measurement.showArea && !measurement.showAngles;
if (!isLine && !isPolygon) { if(measurement.points.length <= 1){
return; return "";
} }
let geomCode = isLine ? 8 : 9;
let dxfBody = '0\n\
SECTION\n\ // bit code for polygons/polylines:
2\n\ // https://www.autodesk.com/techpubs/autocad/acad2000/dxf/polyline_dxf_06.htm
ENTITIES\n\ let geomCode = 8;
0\n\ if(measurement.closed){
POLYLINE\n\ geomCode += 1;
8\n\ }
0\n\
62\n\ let dxfSection = `0
1\n\ SECTION
66\n\ 2
1\n\ ENTITIES
10\n\ 0
0.0\n\ POLYLINE
20\n\ 8
0.0\n\ 0
30\n\ 62
0.0\n\ 1
70\n\ 66
{geomCode}\n'.replace('{geomCode}', geomCode); 1
10
0.0
20
0.0
30
0.0
70
${geomCode}
`;
let xMax = 0.0; let xMax = 0.0;
let yMax = 0.0; let yMax = 0.0;
let zMax = 0.0; let zMax = 0.0;
measurement.points.forEach(function (point) { for(let point of measurement.points){
point = point.position; point = point.position;
xMax = Math.max(xMax, point.x); xMax = Math.max(xMax, point.x);
yMax = Math.max(yMax, point.y); yMax = Math.max(yMax, point.y);
zMax = Math.max(zMax, point.z); zMax = Math.max(zMax, point.z);
dxfBody += '0\n\
VERTEX\n\ dxfSection += `0
8\n\ VERTEX
0\n\ 8
10\n\ 0
{X}\n\ 10
20\n\ ${point.x}
{Y}\n\ 20
30\n\ ${point.y}
{Z}\n\ 30
70\n\ ${point.z}
32\n'.replace('{X}', point.x) 70
.replace('{Y}', point.y) 32
.replace('{Z}', point.z); `;
});
dxfBody += '0\n\ dxfSection += `0
SEQEND\n\ SEQEND
0\n\ 0
ENDSEC\n'; ENDSEC
`;
}
var dxfHeader = '999\n\ return dxfSection;
DXF created from potree\n\
0\n\
SECTION\n\
2\n\
HEADER\n\
9\n\
$ACADVER\n\
1\n\
AC1006\n\
9\n\
$INSBASE\n\
10\n\
0.0\n\
20\n\
0.0\n\
30\n\
0.0\n\
9\n\
$EXTMIN\n\
10\n\
0.0\n\
20\n\
0.0\n\
30\n\
0\n\
9\n\
$EXTMAX\n\
10\n\
{xMax}\n\
20\n\
{yMax}\n\
30\n\
{zMax}\n\
0\n\
ENDSEC\n'.replace('{xMax}', xMax)
.replace('{yMax}', yMax)
.replace('{zMax}', zMax);
let dxf = dxfHeader + dxfBody + '0\n\
EOF';
return dxf;
} }
static toString(measurements){
if(!(measurements instanceof Array)){
measurements = [measurements];
}
measurements = measurements.filter(m => m instanceof Potree.Measure);
let points = measurements.filter(m => (m instanceof Potree.Measure))
.map(m => m.points)
.reduce((a, v) => a.concat(v))
.map(p => p.position);
let min = new THREE.Vector3(Infinity, Infinity, Infinity);
let max = new THREE.Vector3(-Infinity, -Infinity, -Infinity);
for(let point of points){
min.min(point);
max.max(point);
}
let dxfHeader = `999
DXF created from potree
0
SECTION
2
HEADER
9
$ACADVER
1
AC1006
9
$INSBASE
10
0.0
20
0.0
30
0.0
9
$EXTMIN
10
${min.x}
20
${min.y}
30
${min.z}
9
$EXTMAX
10
${max.x}
20
${max.y}
30
${max.z}
0
ENDSEC
`;
let dxfBody = "";
for(let measurement of measurements){
dxfBody += Potree.DXFExporter.measurementSection(measurement);
}
let dxf = dxfHeader + dxfBody + '0\nEOF';
return dxf;
}
} }

View File

@ -8,67 +8,69 @@
Potree.GeoJSONExporter = class GeoJSONExporter{ Potree.GeoJSONExporter = class GeoJSONExporter{
static toString(measurement){ static measurementToFeatures(measurement){
let geojson = {
"type": "FeatureCollection",
"features": []
};
let isLine = measurement.showDistances && !measurement.showArea && !measurement.showAngles;
let isPolygon = measurement.showDistances && measurement.showArea && !measurement.showAngles;
if(isLine){
geojson.features.push({
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": []
},
"properties": {
}
});
}else if (isPolygon) {
geojson.features.push({
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": []
},
"properties": {
}
});
}
let coords = measurement.points.map(e => e.position.toArray()); let coords = measurement.points.map(e => e.position.toArray());
if(isLine){ let features = [];
geojson.features[0].geometry.coordinates = coords;
}else if(isPolygon){
coords.push(coords[0]);
geojson.features[0].geometry.coordinates.push(coords);
}
measurement.edgeLabels.forEach(function (label) { if(coords.length === 1){
var labelPoint = { let feature = {
type: 'Feature', type: 'Feature',
geometry: { geometry: {
type: 'Point', type: 'Point',
coordinates: label.position.toArray(), coordinates: coords[0],
}, },
properties: { properties: {
name: label.text name: measurement.name
} }
}; };
geojson.features.push(labelPoint); features.push(feature);
}); }else if(coords.length > 1 && !measurement.closed){
let object = {
if (isLine) { "type": "Feature",
// There is one point more than the number of edges. "geometry": {
geojson.features.pop(); "type": "LineString",
"coordinates": coords
},
"properties": {
name: measurement.name
}
};
features.push(object);
}else if(coords.length > 1 && measurement.closed){
let object = {
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [[...coords, coords[0]]]
},
"properties": {
name: measurement.name
}
};
features.push(object);
}
if(measurement.showDistances){
measurement.edgeLabels.forEach((label) => {
let labelPoint = {
type: 'Feature',
geometry: {
type: 'Point',
coordinates: label.position.toArray(),
},
properties: {
distance: label.text
}
};
features.push(labelPoint);
});
} }
if (isPolygon) { if(measurement.showArea){
var point = measurement.areaLabel.position; var point = measurement.areaLabel.position;
var labelArea = { var labelArea = {
type: 'Feature', type: 'Feature',
@ -77,13 +79,36 @@ Potree.GeoJSONExporter = class GeoJSONExporter{
coordinates: point.toArray(), coordinates: point.toArray(),
}, },
properties: { properties: {
name: measurement.areaLabel.text area: measurement.areaLabel.text
} }
}; };
geojson.features.push(labelArea); features.push(labelArea);
} }
return JSON.stringify(geojson); return features;
}
static toString(measurements){
if(!(measurements instanceof Array)){
measurements = [measurements];
}
measurements = measurements.filter(m => m instanceof Potree.Measure);
let features = [];
for(let measure of measurements){
let f = Potree.GeoJSONExporter.measurementToFeatures(measure);
features = features.concat(f);
}
let geojson = {
"type": "FeatureCollection",
"features": features
};
return JSON.stringify(geojson, null, "\t");
} }
} }

View File

@ -1,7 +1,11 @@
THREE.EventDispatcher.prototype.removeEventListeners = function(type){ THREE.EventDispatcher.prototype.removeEventListeners = function(type){
if ( this._listeners === undefined ) return; if ( this._listeners === undefined ) {
return;
}
if ( this._listeners[ type ] ) { if ( this._listeners[ type ] ) {

View File

@ -15,22 +15,22 @@ Potree.BinaryLoader.prototype.load = function(node){
return; return;
} }
var scope = this; let scope = this;
var url = node.getURL(); let url = node.getURL();
if(this.version.equalOrHigher("1.4")){ if(this.version.equalOrHigher("1.4")){
url += ".bin"; url += ".bin";
} }
var xhr = new XMLHttpRequest(); let xhr = new XMLHttpRequest();
xhr.open('GET', url, true); xhr.open('GET', url, true);
xhr.responseType = 'arraybuffer'; xhr.responseType = 'arraybuffer';
xhr.overrideMimeType('text/plain; charset=x-user-defined'); xhr.overrideMimeType('text/plain; charset=x-user-defined');
xhr.onreadystatechange = function() { xhr.onreadystatechange = function() {
if (xhr.readyState === 4) { if (xhr.readyState === 4) {
if (xhr.status === 200 || xhr.status === 0) { if (xhr.status === 200 || xhr.status === 0) {
var buffer = xhr.response; let buffer = xhr.response;
scope.parse(node, buffer); scope.parse(node, buffer);
} else { } else {
console.log('Failed to load file! HTTP status: ' + xhr.status + ", file: " + url); console.log('Failed to load file! HTTP status: ' + xhr.status + ", file: " + url);
@ -46,8 +46,8 @@ Potree.BinaryLoader.prototype.load = function(node){
Potree.BinaryLoader.prototype.parse = function(node, buffer){ Potree.BinaryLoader.prototype.parse = function(node, buffer){
var numPoints = buffer.byteLength / node.pcoGeometry.pointAttributes.byteSize; let numPoints = buffer.byteLength / node.pcoGeometry.pointAttributes.byteSize;
var pointAttributes = node.pcoGeometry.pointAttributes; let pointAttributes = node.pcoGeometry.pointAttributes;
if(this.version.upTo("1.5")){ if(this.version.upTo("1.5")){
node.numPoints = numPoints; node.numPoints = numPoints;
@ -57,22 +57,22 @@ Potree.BinaryLoader.prototype.parse = function(node, buffer){
let worker = Potree.workerPool.getWorker(workerPath); let worker = Potree.workerPool.getWorker(workerPath);
worker.onmessage = function(e){ worker.onmessage = function(e){
var data = e.data; let data = e.data;
var buffers = data.attributeBuffers; let buffers = data.attributeBuffers;
var tightBoundingBox = new THREE.Box3( let tightBoundingBox = new THREE.Box3(
new THREE.Vector3().fromArray(data.tightBoundingBox.min), new THREE.Vector3().fromArray(data.tightBoundingBox.min),
new THREE.Vector3().fromArray(data.tightBoundingBox.max) new THREE.Vector3().fromArray(data.tightBoundingBox.max)
); );
Potree.workerPool.returnWorker(workerPath, worker); Potree.workerPool.returnWorker(workerPath, worker);
var geometry = new THREE.BufferGeometry(); let geometry = new THREE.BufferGeometry();
for(var property in buffers){ for(let property in buffers){
if(buffers.hasOwnProperty(property)){ if(buffers.hasOwnProperty(property)){
var buffer = buffers[property].buffer; let buffer = buffers[property].buffer;
var attribute = buffers[property].attribute; let attribute = buffers[property].attribute;
var numElements = attribute.numElements; let numElements = attribute.numElements;
if(parseInt(property) === Potree.PointAttributeNames.POSITION_CARTESIAN){ if(parseInt(property) === Potree.PointAttributeNames.POSITION_CARTESIAN){
geometry.addAttribute("position", new THREE.BufferAttribute(new Float32Array(buffer), 3)); geometry.addAttribute("position", new THREE.BufferAttribute(new Float32Array(buffer), 3));
@ -94,7 +94,7 @@ Potree.BinaryLoader.prototype.parse = function(node, buffer){
geometry.addAttribute("indices", new THREE.BufferAttribute(new Float32Array(data.indices), 1)); geometry.addAttribute("indices", new THREE.BufferAttribute(new Float32Array(data.indices), 1));
if(!geometry.attributes.normal){ if(!geometry.attributes.normal){
var buffer = new Float32Array(numPoints*3); let buffer = new Float32Array(numPoints*3);
geometry.addAttribute("normal", new THREE.BufferAttribute(new Float32Array(buffer), 3)); geometry.addAttribute("normal", new THREE.BufferAttribute(new Float32Array(buffer), 3));
} }
@ -108,7 +108,7 @@ Potree.BinaryLoader.prototype.parse = function(node, buffer){
node.pcoGeometry.numNodesLoading--; node.pcoGeometry.numNodesLoading--;
}; };
var message = { let message = {
buffer: buffer, buffer: buffer,
pointAttributes: pointAttributes, pointAttributes: pointAttributes,
version: this.version.version, version: this.version.version,

View File

@ -5,131 +5,136 @@
* @author Oscar Martinez Rubi * @author Oscar Martinez Rubi
* @author Connor Manning * @author Connor Manning
*/ */
var getQueryParam = function(name) {
name = name.replace(/[\[\]]/g, "\\$&"); class GreyhoundUtils{
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
results = regex.exec(window.location.href); static getQueryParam(name) {
if (!results) return null; name = name.replace(/[\[\]]/g, "\\$&");
if (!results[2]) return ''; var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
return decodeURIComponent(results[2].replace(/\+/g, " ")); results = regex.exec(window.location.href);
} if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, " "));
}
static createSchema(attributes) {
var schema = [
{ "name": "X", "size": 4, "type": "signed" },
{ "name": "Y", "size": 4, "type": "signed" },
{ "name": "Z", "size": 4, "type": "signed" }
];
// Once we include options in the UI to load a dynamic list of available
// attributes for visualization (f.e. Classification, Intensity etc.)
// we will be able to ask for that specific attribute from the server,
// where we are now requesting all attributes for all points all the time.
// If we do that though, we also need to tell Potree to redraw the points
// that are already loaded (with different attributes).
// This is not default behaviour.
attributes.forEach(function(item) {
if(item === 'COLOR_PACKED') {
schema.push({ "name": "Red", "size": 2, "type": "unsigned" });
schema.push({ "name": "Green", "size": 2, "type": "unsigned" });
schema.push({ "name": "Blue", "size": 2, "type": "unsigned" });
} else if(item === 'INTENSITY'){
schema.push({ "name": "Intensity", "size": 2, "type": "unsigned" });
} else if(item === 'CLASSIFICATION') {
schema.push(
{ "name": "Classification", "size": 1, "type": "unsigned" });
}
});
return schema;
}
static fetch(url, cb) {
var xhr = new XMLHttpRequest();
xhr.open('GET', url, true);
xhr.onreadystatechange = function() {
if (xhr.readyState === 4) {
if (xhr.status === 200 || xhr.status === 0) {
cb(null, xhr.responseText);
}
else {
cb(xhr.responseText);
}
}
};
xhr.send(null);
};
static fetchBinary(url, cb) {
var xhr = new XMLHttpRequest();
xhr.open('GET', url, true);
xhr.responseType = 'arraybuffer';
xhr.onreadystatechange = function() {
if (xhr.readyState === 4) {
if (xhr.status === 200 || xhr.status === 0) {
cb(null, xhr.response);
}
else {
cb(xhr.responseText);
}
}
};
xhr.send(null);
};
static pointSizeFrom(schema) {
return schema.reduce((p, c) => p + c.size, 0);
};
static getNormalization(serverURL, baseDepth, cb) {
var s = [
{ "name": "X", "size": 4, "type": "floating" },
{ "name": "Y", "size": 4, "type": "floating" },
{ "name": "Z", "size": 4, "type": "floating" },
{ "name": "Red", "size": 2, "type": "unsigned" },
{ "name": "Green", "size": 2, "type": "unsigned" },
{ "name": "Blue", "size": 2, "type": "unsigned" },
{ "name": "Intensity", "size": 2, "type": "unsigned" }
];
var url = serverURL + 'read?depth=' + baseDepth +
'&schema=' + JSON.stringify(s);
GreyhoundUtils.fetchBinary(url, function(err, buffer) {
if (err) throw new Error(err);
var view = new DataView(buffer);
var numBytes = buffer.byteLength - 4;
var numPoints = view.getUint32(numBytes, true);
var pointSize = GreyhoundUtils.pointSizeFrom(s);
var colorNorm = false, intensityNorm = false;
var v;
for (var offset = 0; offset < numBytes; offset += pointSize) {
if (view.getUint16(offset + 12, true) > 255 ||
view.getUint16(offset + 14, true) > 255 ||
view.getUint16(offset + 16, true) > 255) {
colorNorm = true;
}
if (view.getUint16(18, true) > 255) {
intensityNorm = true;
}
if (colorNorm && intensityNorm) break;
}
if (colorNorm) console.log('Normalizing color');
if (intensityNorm) console.log('Normalizing intensity');
cb(null, { color: colorNorm, intensity: intensityNorm });
});
};
};
Potree.GreyhoundLoader = function() { }; Potree.GreyhoundLoader = function() { };
Potree.GreyhoundLoader.loadInfoJSON = function load(url, callback) { } Potree.GreyhoundLoader.loadInfoJSON = function load(url, callback) { }
var createSchema = function(attributes) {
var schema = [
{ "name": "X", "size": 4, "type": "signed" },
{ "name": "Y", "size": 4, "type": "signed" },
{ "name": "Z", "size": 4, "type": "signed" }
];
// Once we include options in the UI to load a dynamic list of available
// attributes for visualization (f.e. Classification, Intensity etc.)
// we will be able to ask for that specific attribute from the server,
// where we are now requesting all attributes for all points all the time.
// If we do that though, we also need to tell Potree to redraw the points
// that are already loaded (with different attributes).
// This is not default behaviour.
attributes.forEach(function(item) {
if(item === 'COLOR_PACKED') {
schema.push({ "name": "Red", "size": 2, "type": "unsigned" });
schema.push({ "name": "Green", "size": 2, "type": "unsigned" });
schema.push({ "name": "Blue", "size": 2, "type": "unsigned" });
} else if(item === 'INTENSITY'){
schema.push({ "name": "Intensity", "size": 2, "type": "unsigned" });
} else if(item === 'CLASSIFICATION') {
schema.push(
{ "name": "Classification", "size": 1, "type": "unsigned" });
}
});
return schema;
}
var fetch = function(url, cb) {
var xhr = new XMLHttpRequest();
xhr.open('GET', url, true);
xhr.onreadystatechange = function() {
if (xhr.readyState === 4) {
if (xhr.status === 200 || xhr.status === 0) {
cb(null, xhr.responseText);
}
else {
cb(xhr.responseText);
}
}
};
xhr.send(null);
};
var fetchBinary = function(url, cb) {
var xhr = new XMLHttpRequest();
xhr.open('GET', url, true);
xhr.responseType = 'arraybuffer';
xhr.onreadystatechange = function() {
if (xhr.readyState === 4) {
if (xhr.status === 200 || xhr.status === 0) {
cb(null, xhr.response);
}
else {
cb(xhr.responseText);
}
}
};
xhr.send(null);
};
var pointSizeFrom = function(schema) {
return schema.reduce((p, c) => p + c.size, 0);
};
var getNormalization = function(serverURL, baseDepth, cb) {
var s = [
{ "name": "X", "size": 4, "type": "floating" },
{ "name": "Y", "size": 4, "type": "floating" },
{ "name": "Z", "size": 4, "type": "floating" },
{ "name": "Red", "size": 2, "type": "unsigned" },
{ "name": "Green", "size": 2, "type": "unsigned" },
{ "name": "Blue", "size": 2, "type": "unsigned" },
{ "name": "Intensity", "size": 2, "type": "unsigned" }
];
var url = serverURL + 'read?depth=' + baseDepth +
'&schema=' + JSON.stringify(s);
fetchBinary(url, function(err, buffer) {
if (err) throw new Error(err);
var view = new DataView(buffer);
var numBytes = buffer.byteLength - 4;
var numPoints = view.getUint32(numBytes, true);
var pointSize = pointSizeFrom(s);
var colorNorm = false, intensityNorm = false;
var v;
for (var offset = 0; offset < numBytes; offset += pointSize) {
if (view.getUint16(offset + 12, true) > 255 ||
view.getUint16(offset + 14, true) > 255 ||
view.getUint16(offset + 16, true) > 255) {
colorNorm = true;
}
if (view.getUint16(18, true) > 255) {
intensityNorm = true;
}
if (colorNorm && intensityNorm) break;
}
if (colorNorm) console.log('Normalizing color');
if (intensityNorm) console.log('Normalizing intensity');
cb(null, { color: colorNorm, intensity: intensityNorm });
});
};
/** /**
* @return a point cloud octree with the root node data loaded. * @return a point cloud octree with the root node data loaded.
* loading of descendants happens asynchronously when they're needed * loading of descendants happens asynchronously when they're needed
@ -148,7 +153,7 @@ Potree.GreyhoundLoader.load = function load(url, callback) {
serverURL = 'http://' + serverURL; serverURL = 'http://' + serverURL;
} }
fetch(serverURL + 'info', function(err, data) { GreyhoundUtils.fetch(serverURL + 'info', function(err, data) {
if (err) throw new Error(err); if (err) throw new Error(err);
/* We parse the result of the info query, which should be a JSON /* We parse the result of the info query, which should be a JSON
@ -187,7 +192,7 @@ Potree.GreyhoundLoader.load = function load(url, callback) {
scale = Math.min(scale[0], scale[1], scale[2]); scale = Math.min(scale[0], scale[1], scale[2]);
} }
if (getQueryParam('scale')) { if (GreyhoundUtils.getQueryParam('scale')) {
scale = parseFloat(getQueryParam('scale')); scale = parseFloat(getQueryParam('scale'));
} }
@ -232,7 +237,7 @@ Potree.GreyhoundLoader.load = function load(url, callback) {
pgg.baseDepth = baseDepth; pgg.baseDepth = baseDepth;
pgg.hierarchyStepSize = HIERARCHY_STEP_SIZE; pgg.hierarchyStepSize = HIERARCHY_STEP_SIZE;
pgg.schema = createSchema(attributes); pgg.schema = GreyhoundUtils.createSchema(attributes);
var pointSize = pointSizeFrom(pgg.schema); var pointSize = pointSizeFrom(pgg.schema);
pgg.pointAttributes = new Potree.PointAttributes(attributes); pgg.pointAttributes = new Potree.PointAttributes(attributes);
@ -281,7 +286,7 @@ Potree.GreyhoundLoader.load = function load(url, callback) {
pgg.nodes = nodes; pgg.nodes = nodes;
getNormalization(serverURL, greyhoundInfo.baseDepth, GreyhoundUtils.getNormalization(serverURL, greyhoundInfo.baseDepth,
function(err, normalize) { function(err, normalize) {
if (normalize.color) pgg.normalize.color = true; if (normalize.color) pgg.normalize.color = true;
if (normalize.intensity) pgg.normalize.intensity = true; if (normalize.intensity) pgg.normalize.intensity = true;

View File

@ -19,16 +19,16 @@ Potree.POCLoader = function(){
*/ */
Potree.POCLoader.load = function load(url, callback) { Potree.POCLoader.load = function load(url, callback) {
try{ try{
var pco = new Potree.PointCloudOctreeGeometry(); let pco = new Potree.PointCloudOctreeGeometry();
pco.url = url; pco.url = url;
var xhr = new XMLHttpRequest(); let xhr = new XMLHttpRequest();
xhr.open('GET', url, true); xhr.open('GET', url, true);
xhr.onreadystatechange = function(){ xhr.onreadystatechange = function(){
if(xhr.readyState === 4 && (xhr.status === 200 || xhr.status === 0)){ if(xhr.readyState === 4 && (xhr.status === 200 || xhr.status === 0)){
var fMno = JSON.parse(xhr.responseText); let fMno = JSON.parse(xhr.responseText);
var version = new Potree.Version(fMno.version); let version = new Potree.Version(fMno.version);
// assume octreeDir is absolute if it starts with http // assume octreeDir is absolute if it starts with http
if(fMno.octreeDir.indexOf("http") === 0){ if(fMno.octreeDir.indexOf("http") === 0){
@ -42,10 +42,10 @@ Potree.POCLoader.load = function load(url, callback) {
pco.pointAttributes = fMno.pointAttributes; pco.pointAttributes = fMno.pointAttributes;
var min = new THREE.Vector3(fMno.boundingBox.lx, fMno.boundingBox.ly, fMno.boundingBox.lz); let min = new THREE.Vector3(fMno.boundingBox.lx, fMno.boundingBox.ly, fMno.boundingBox.lz);
var max = new THREE.Vector3(fMno.boundingBox.ux, fMno.boundingBox.uy, fMno.boundingBox.uz); let max = new THREE.Vector3(fMno.boundingBox.ux, fMno.boundingBox.uy, fMno.boundingBox.uz);
var boundingBox = new THREE.Box3(min, max); let boundingBox = new THREE.Box3(min, max);
var tightBoundingBox = boundingBox.clone(); let tightBoundingBox = boundingBox.clone();
if(fMno.tightBoundingBox){ if(fMno.tightBoundingBox){
tightBoundingBox.min.copy(new THREE.Vector3(fMno.tightBoundingBox.lx, fMno.tightBoundingBox.ly, fMno.tightBoundingBox.lz)); tightBoundingBox.min.copy(new THREE.Vector3(fMno.tightBoundingBox.lx, fMno.tightBoundingBox.ly, fMno.tightBoundingBox.lz));
@ -75,12 +75,12 @@ Potree.POCLoader.load = function load(url, callback) {
pco.pointAttributes = new Potree.PointAttributes(pco.pointAttributes); pco.pointAttributes = new Potree.PointAttributes(pco.pointAttributes);
} }
var nodes = {}; let nodes = {};
{ // load root { // load root
var name = "r"; let name = "r";
var root = new Potree.PointCloudOctreeGeometryNode(name, pco, boundingBox); let root = new Potree.PointCloudOctreeGeometryNode(name, pco, boundingBox);
root.level = 0; root.level = 0;
root.hasChildren = true; root.hasChildren = true;
root.spacing = pco.spacing; root.spacing = pco.spacing;
@ -96,16 +96,16 @@ Potree.POCLoader.load = function load(url, callback) {
// load remaining hierarchy // load remaining hierarchy
if(version.upTo("1.4")){ if(version.upTo("1.4")){
for( var i = 1; i < fMno.hierarchy.length; i++){ for( let i = 1; i < fMno.hierarchy.length; i++){
var name = fMno.hierarchy[i][0]; let name = fMno.hierarchy[i][0];
var numPoints = fMno.hierarchy[i][1]; let numPoints = fMno.hierarchy[i][1];
var index = parseInt(name.charAt(name.length-1)); let index = parseInt(name.charAt(name.length-1));
var parentName = name.substring(0, name.length-1); let parentName = name.substring(0, name.length-1);
var parentNode = nodes[parentName]; let parentNode = nodes[parentName];
var level = name.length-1; let level = name.length-1;
var boundingBox = Potree.POCLoader.createChildAABB(parentNode.boundingBox, index); let boundingBox = Potree.POCLoader.createChildAABB(parentNode.boundingBox, index);
var node = new Potree.PointCloudOctreeGeometryNode(name, pco, boundingBox); let node = new Potree.PointCloudOctreeGeometryNode(name, pco, boundingBox);
node.level = level; node.level = level;
node.numPoints = numPoints; node.numPoints = numPoints;
node.spacing = pco.spacing / Math.pow(2, level); node.spacing = pco.spacing / Math.pow(2, level);
@ -131,11 +131,11 @@ Potree.POCLoader.load = function load(url, callback) {
Potree.POCLoader.loadPointAttributes = function(mno){ Potree.POCLoader.loadPointAttributes = function(mno){
var fpa = mno.pointAttributes; let fpa = mno.pointAttributes;
var pa = new Potree.PointAttributes(); let pa = new Potree.PointAttributes();
for(var i = 0; i < fpa.length; i++){ for(let i = 0; i < fpa.length; i++){
var pointAttribute = Potree.PointAttribute[fpa[i]]; let pointAttribute = Potree.PointAttribute[fpa[i]];
pa.add(pointAttribute); pa.add(pointAttribute);
} }
@ -143,43 +143,28 @@ Potree.POCLoader.loadPointAttributes = function(mno){
}; };
Potree.POCLoader.createChildAABB = function(aabb, childIndex){ Potree.POCLoader.createChildAABB = function(aabb, index){
var V3 = THREE.Vector3;
var min = aabb.min; let min = aabb.min.clone();
var max = aabb.max; let max = aabb.max.clone();
var dHalfLength = new THREE.Vector3().copy(max).sub(min).multiplyScalar(0.5); let size = new THREE.Vector3().subVectors(max, min);
var xHalfLength = new THREE.Vector3(dHalfLength.x, 0, 0);
var yHalfLength = new THREE.Vector3(0, dHalfLength.y, 0); if((index & 0b0001) > 0){
var zHalfLength = new THREE.Vector3(0, 0, dHalfLength.z); min.z += size.z / 2;
}else{
var cmin = min; max.z -= size.z / 2;
var cmax = new THREE.Vector3().add(min).add(dHalfLength); }
var min, max; if((index & 0b0010) > 0){
if (childIndex === 1) { min.y += size.y / 2;
min = new THREE.Vector3().copy(cmin).add(zHalfLength); }else{
max = new THREE.Vector3().copy(cmax).add(zHalfLength); max.y -= size.y / 2;
}else if (childIndex === 3) { }
min = new THREE.Vector3().copy(cmin).add(zHalfLength).add(yHalfLength);
max = new THREE.Vector3().copy(cmax).add(zHalfLength).add(yHalfLength); if((index & 0b0100) > 0){
}else if (childIndex === 0) { min.x += size.x / 2;
min = cmin; }else{
max = cmax; max.x -= size.x / 2;
}else if (childIndex === 2) {
min = new THREE.Vector3().copy(cmin).add(yHalfLength);
max = new THREE.Vector3().copy(cmax).add(yHalfLength);
}else if (childIndex === 5) {
min = new THREE.Vector3().copy(cmin).add(zHalfLength).add(xHalfLength);
max = new THREE.Vector3().copy(cmax).add(zHalfLength).add(xHalfLength);
}else if (childIndex === 7) {
min = new THREE.Vector3().copy(cmin).add(dHalfLength);
max = new THREE.Vector3().copy(cmax).add(dHalfLength);
}else if (childIndex === 4) {
min = new THREE.Vector3().copy(cmin).add(xHalfLength);
max = new THREE.Vector3().copy(cmax).add(xHalfLength);
}else if (childIndex === 6) {
min = new THREE.Vector3().copy(cmin).add(xHalfLength).add(yHalfLength);
max = new THREE.Vector3().copy(cmax).add(xHalfLength).add(yHalfLength);
} }
return new THREE.Box3(min, max); return new THREE.Box3(min, max);

View File

@ -23,7 +23,7 @@ Potree.EyeDomeLightingMaterial = function(parameters){
this.neighbours[2*c+1] = Math.sin(2 * c * Math.PI / this.neighbourCount); this.neighbours[2*c+1] = Math.sin(2 * c * Math.PI / this.neighbourCount);
} }
var lightDir = new THREE.Vector3(0.0, 0.0, 1.0).normalize(); //var lightDir = new THREE.Vector3(0.0, 0.0, 1.0).normalize();
var uniforms = { var uniforms = {
screenWidth: { type: "f", value: 0 }, screenWidth: { type: "f", value: 0 },
@ -59,17 +59,19 @@ Potree.EyeDomeLightingMaterial.prototype.getDefines = function(){
Potree.EyeDomeLightingMaterial.prototype.updateShaderSource = function(){ Potree.EyeDomeLightingMaterial.prototype.updateShaderSource = function(){
var attributes = {}; var attributes = {};
if(this.pointColorType === Potree.PointColorType.INTENSITY
|| this.pointColorType === Potree.PointColorType.INTENSITY_GRADIENT){ let PC = Potree.PointColorType;
if([PC.INTENSITY, PC.INTENSITY_GRADIENT].includes(this.pointColorType)){
attributes.intensity = { type: "f", value: [] }; attributes.intensity = { type: "f", value: [] };
}else if(this.pointColorType === Potree.PointColorType.CLASSIFICATION){ }else if(this.pointColorType === PC.CLASSIFICATION){
//attributes.classification = { type: "f", value: [] }; //attributes.classification = { type: "f", value: [] };
}else if(this.pointColorType === Potree.PointColorType.RETURN_NUMBER){ }else if(this.pointColorType === PC.RETURN_NUMBER){
attributes.returnNumber = { type: "f", value: [] }; attributes.returnNumber = { type: "f", value: [] };
attributes.numberOfReturns = { type: "f", value: [] }; attributes.numberOfReturns = { type: "f", value: [] };
}else if(this.pointColorType === Potree.PointColorType.SOURCE){ }else if(this.pointColorType === PC.SOURCE){
attributes.pointSourceID = { type: "f", value: [] }; attributes.pointSourceID = { type: "f", value: [] };
}else if(this.pointColorType === Potree.PointColorType.NORMAL || this.pointColorType === Potree.PointColorType.PHONG){ }else if(this.pointColorType === PC.NORMAL || this.pointColorType === Potree.PointColorType.PHONG){
attributes.normal = { type: "f", value: [] }; attributes.normal = { type: "f", value: [] };
} }
attributes.classification = { type: "f", value: 0 }; attributes.classification = { type: "f", value: 0 };
@ -85,7 +87,7 @@ Potree.EyeDomeLightingMaterial.prototype.updateShaderSource = function(){
this.uniforms.neighbours.value = this.neighbours; this.uniforms.neighbours.value = this.neighbours;
this.needsUpdate = true; this.needsUpdate = true;
} };
Object.defineProperty(Potree.EyeDomeLightingMaterial.prototype, "neighbourCount", { Object.defineProperty(Potree.EyeDomeLightingMaterial.prototype, "neighbourCount", {
get: function(){ get: function(){

View File

@ -125,8 +125,7 @@ Potree.PointCloudMaterial = function(parameters){
classification: { type: "f", value: [] }, classification: { type: "f", value: [] },
returnNumber: { type: "f", value: [] }, returnNumber: { type: "f", value: [] },
numberOfReturns: { type: "f", value: [] }, numberOfReturns: { type: "f", value: [] },
pointSourceID: { type: "f", value: [] }, pointSourceID: { type: "f", value: [] }
normal: { type: "f", value: [] }
}; };
this.uniforms = { this.uniforms = {
@ -326,7 +325,7 @@ Potree.PointCloudMaterial.prototype.setClipBoxes = function(clipBoxes){
} }
this.clipBoxes = clipBoxes; this.clipBoxes = clipBoxes;
var doUpdate = (this.numClipBoxes != clipBoxes.length) && (clipBoxes.length === 0 || this.numClipBoxes === 0); var doUpdate = (this.numClipBoxes !== clipBoxes.length) && (clipBoxes.length === 0 || this.numClipBoxes === 0);
this.numClipBoxes = clipBoxes.length; this.numClipBoxes = clipBoxes.length;
this.uniforms.clipBoxCount.value = this.numClipBoxes; this.uniforms.clipBoxCount.value = this.numClipBoxes;
@ -586,7 +585,7 @@ Object.defineProperty(Potree.PointCloudMaterial.prototype, "treeType", {
return this._treeType; return this._treeType;
}, },
set: function(value){ set: function(value){
if(this._treeType != value){ if(this._treeType !== value){
this._treeType = value; this._treeType = value;
this.updateShaderSource(); this.updateShaderSource();
} }
@ -637,7 +636,7 @@ Potree.PointCloudMaterial.generateGradientTexture = function(gradient) {
var size = 64; var size = 64;
// create canvas // create canvas
canvas = document.createElement( 'canvas' ); let canvas = document.createElement( 'canvas' );
canvas.width = size; canvas.width = size;
canvas.height = size; canvas.height = size;
@ -659,7 +658,7 @@ Potree.PointCloudMaterial.generateGradientTexture = function(gradient) {
var texture = new THREE.Texture( canvas ); var texture = new THREE.Texture( canvas );
texture.needsUpdate = true; texture.needsUpdate = true;
textureImage = texture.image; //textureImage = texture.image;
return texture; return texture;
}; };
@ -677,8 +676,8 @@ Potree.PointCloudMaterial.generateClassificationTexture = function(classificati
for(var x = 0; x < width; x++){ for(var x = 0; x < width; x++){
for(var y = 0; y < height; y++){ for(var y = 0; y < height; y++){
var u = 2 * (x / width) - 1; //var u = 2 * (x / width) - 1;
var v = 2 * (y / height) - 1; //var v = 2 * (y / height) - 1;
var i = x + width*y; var i = x + width*y;

59
src/server/getPoints.php Normal file
View File

@ -0,0 +1,59 @@
<?php
// "{693550.968, 3915914.169},{693890.618, 3916387.819},{694584.820, 3916458.180},{694786.239, 3916307.199}"
// width14
// getPoints.php?min=693550.968;3915914.169&max=694584.820;3916458.180&minLevel=0&maxLevel=3
// getPoints.php?pc=../pointclouds/vol_total/cloud.js&min=693550.968;3915914.169&max=694584.820;3916458.180&minLevel=0&maxLevel=5
function toCoordinate($value){
$coord = explode(';', $value);
for($i = 0; $i < count($coord); $i++){
$coord[$i] = (double)$coord[$i];
}
return $coord;
}
$min = toCoordinate($_GET['min']);
$max = toCoordinate($_GET['max']);
$minLevel = isset($_GET['minLevel']) ? (int)$_GET['minLevel'] : 0;
$maxLevel = isset($_GET['maxLevel']) ? (int)$_GET['maxLevel'] : 3;
$path = realpath($_GET['pc']);
$path = str_replace("\\", "/", $path);
//$path = "D:/dev/pointclouds/converted/CA13/cloud.js";
$outputFile = "./result.las";
$yc = ($min[1] + $max[1]) / 2.0;
$sizeY = $max[1] - $min[1];
$coordinates = "{".$min[0].",$yc},{".$max[0].",$yc}";
$width = ($max[1] - $min[1]) / 2.0;
$binary = "D:/dev/workspaces/CPotree/master/bin/Release_x64/PotreeElevationProfile.exe";
$command = "$binary " . escapeshellarg($path) . " "
. "-o " . escapeshellarg($outputFile) . " "
. "--estimate "
. "--coordinates " . escapeshellarg($coordinates) . " "
. "--width " . escapeshellarg($width) . " "
. "--min-level " . escapeshellarg($minLevel) . " "
. "--max-level " . escapeshellarg($maxLevel) . " ";
echo "$command <br/>";
$output = "";
exec($command, $output);
foreach($output as $line){
echo "$line <br/>";
}
$path = realpath($_GET['pc']);
echo($path);
?>

View File

@ -3,6 +3,9 @@ Potree.Measure = class Measure extends THREE.Object3D{
constructor(){ constructor(){
super(); super();
this.constructor.counter = (this.constructor.counter === undefined) ? 0 : this.constructor.counter + 1;
this.name = "Measure_" + this.constructor.counter;
this.points = []; this.points = [];
this._showDistances = true; this._showDistances = true;
this._showCoordinates = false; this._showCoordinates = false;
@ -152,12 +155,10 @@ Potree.Measure = class Measure extends THREE.Object3D{
if(I){ if(I){
let i = this.spheres.indexOf(e.drag.object); let i = this.spheres.indexOf(e.drag.object);
if(i !== -1){ if(i !== -1){
let point = this.points[i];
for(let key of Object.keys(I.point)){ let point = this.points[i];
if(key !== "position"){ for(let key of Object.keys(I.point).filter(e => e !== "position")){
point[key] = I.point[key]; point[key] = I.point[key];
}
} }
this.setPosition(i, I.location); this.setPosition(i, I.location);
@ -251,7 +252,7 @@ Potree.Measure = class Measure extends THREE.Object3D{
for(let i = 0; i < this.points.length; i++){ for(let i = 0; i < this.points.length; i++){
let p1 = this.points[i].position; let p1 = this.points[i].position;
let p2 = this.points[j].position; let p2 = this.points[j].position;
area += (p2.x + p1.x) * (p1.z - p2.z); area += (p2.x + p1.x) * (p1.y - p2.y);
j = i; j = i;
} }

View File

@ -60,6 +60,7 @@ Potree.MeasuringTool = class MeasuringTool extends THREE.EventDispatcher{
measure.showHeight = args.showHeight || false; measure.showHeight = args.showHeight || false;
measure.closed = args.closed || false; measure.closed = args.closed || false;
measure.maxMarkers = args.maxMarkers || Infinity; measure.maxMarkers = args.maxMarkers || Infinity;
measure.name = args.name || "Measurement";
this.sceneMeasurement.add(measure); this.sceneMeasurement.add(measure);

View File

@ -4,6 +4,9 @@ Potree.Profile = class extends THREE.Object3D{
constructor(){ constructor(){
super(); super();
this.constructor.counter = (this.constructor.counter === undefined) ? 0 : this.constructor.counter + 1;
this.name = "Profile_" + this.constructor.counter;
this.points = []; this.points = [];
this.spheres = []; this.spheres = [];
this.edges = []; this.edges = [];

View File

@ -44,6 +44,7 @@ Potree.ProfileTool = class ProfileTool extends THREE.EventDispatcher{
let domElement = this.viewer.renderer.domElement; let domElement = this.viewer.renderer.domElement;
let profile = new Potree.Profile(); let profile = new Potree.Profile();
profile.name = args.name || "Profile";
this.dispatchEvent({ this.dispatchEvent({
type: "start_inserting_profile", type: "start_inserting_profile",

View File

@ -54,6 +54,7 @@ Potree.VolumeTool = class VolumeTool extends THREE.EventDispatcher{
let volume = new Potree.Volume(); let volume = new Potree.Volume();
volume.clip = args.clip || false; volume.clip = args.clip || false;
volume.name = args.name || "Volume";
this.dispatchEvent({ this.dispatchEvent({
type: "start_inserting_volume", type: "start_inserting_volume",

View File

@ -455,6 +455,43 @@ Potree.MapView = class{
var view = this.map.getView(); var view = this.map.getView();
view.setCenter(mapCenter); view.setCenter(mapCenter);
//{
// let bb = this.viewer.getBoundingBox();
// let corners = [
// [bb.min.x, bb.min.y],
// [bb.max.x, bb.min.y],
// [bb.max.x, bb.max.y],
// [bb.min.x, bb.max.y],
// [bb.min.x, bb.min.y]];
//
// let vertices = [];
//
// for(let i = 0; i < corners.length - 1; i++){
// let pieces = 5;
//
// for(let j = 0; j < pieces; j++){
// let t0 = j / pieces;
// let t1 = (j+1) / pieces;
//
// let c0 = corners[i+0];
// let c1 = corners[i+1];
//
// let p0 = [
// (1 - t0) * c0[0] + t0 * c1[0],
// (1 - t0) * c0[1] + t0 * c1[1]];
//
// let p1 = [
// (1 - t1) * c0[0] + t1 * c1[0],
// (1 - t1) * c0[1] + t1 * c1[1]];
//
// vertices.push(this.toMap.forward(p0));
// vertices.push(this.toMap.forward(p1));
// }
// }
//
// this.gExtent.setCoordinates(vertices);
//}
this.gExtent.setCoordinates([ this.gExtent.setCoordinates([
mapExtent.bottomLeft, mapExtent.bottomLeft,
mapExtent.bottomRight, mapExtent.bottomRight,

View File

@ -48,7 +48,6 @@
.potree_container{ .potree_container{
/*font-size: 75%;*/
} }
.potree_info_text{ .potree_info_text{
@ -89,7 +88,6 @@
#potree_sidebar_container a{ #potree_sidebar_container a{
color: #8Aa1c4; color: #8Aa1c4;
//color: red;
} }
.potree_menu_toggle{ .potree_menu_toggle{
@ -144,8 +142,6 @@ a:hover, a:visited, a:link, a:active{
} }
.annotation{ .annotation{
-webkit-transition: opacity .1s;
transition: opacity .1s;
position: absolute; position: absolute;
padding: 10px; padding: 10px;
opacity: 0.5; opacity: 0.5;
@ -158,14 +154,13 @@ a:hover, a:visited, a:link, a:active{
font-size: 1em; font-size: 1em;
opacity: 1; opacity: 1;
margin: auto; margin: auto;
width: fit-content; display: table;
} }
.annotation-expand{ .annotation-expand{
color: white; color: white;
font-size: 0.6em; font-size: 0.6em;
opacity: 1; opacity: 1;
width: fit-content;
} }
.annotation-action-icon{ .annotation-action-icon{
@ -206,22 +201,18 @@ a:hover, a:visited, a:link, a:active{
} }
.annotation-label{ .annotation-label{
//position: relative;
display: inline-block; display: inline-block;
height: 100%; height: 100%;
flex-grow: 1; flex-grow: 1;
//margin: 2px 8px;
user-select: none; user-select: none;
-moz-user-select: none;
z-index: 100; z-index: 100;
width: fit-content;
vertical-align: middle; vertical-align: middle;
line-height: 1.5em; line-height: 1.5em;
//text-align: center;
font-family: Arial; font-family: Arial;
font-weight: bold; font-weight: bold;
padding: 1px 8px 0px 8px; padding: 1px 8px 0px 8px;
cursor: default; cursor: default;
user-select: none;
white-space: nowrap; white-space: nowrap;
} }
@ -234,6 +225,7 @@ a:hover, a:visited, a:link, a:active{
border-radius: 4px; border-radius: 4px;
display: none; display: none;
max-width: 500px; max-width: 500px;
width: 500px;
} }
.annotation-description-close{ .annotation-description-close{
@ -286,6 +278,46 @@ body{
opacity: 0.1; opacity: 0.1;
} }
.measurement_item{
border-bottom: 1px solid rgba(0, 0, 0, 0.5);
display: block;
position: relative;
}
.measurement_header{
display:flex;
cursor: pointer;
padding: 2px;
}
.measurement_header:hover{
background-color: rgba(255, 255, 255, 0.1);
}
.measurement_item_icon{
width: 24px;
height: 24px;
}
.measurement_header_title{
flex-grow: 1;
display: flex;
align-items: center;
}
.measurement_icon{
padding: 0px 6px 0px 4px;
}
.measurement_content{
padding: 5px 15px 5px 10px;
background-color: rgba(0, 0, 0, 0.4);
}
.measurement_value_table{
width: 100%;
}
.measurement-panel-icon{ .measurement-panel-icon{
width: 16px; width: 16px;
@ -357,6 +389,13 @@ body{
margin-top: 8px; margin-top: 8px;
} }
.pv-panel-heading{ .pv-panel-heading{
padding: 4px !important; padding: 4px !important;
display: flex; display: flex;
@ -428,7 +467,6 @@ body{
} }
.ui-widget-content{ .ui-widget-content{
background-color: none !important;
color: var(--font-color) !important; color: var(--font-color) !important;
} }
@ -451,6 +489,10 @@ body{
cursor: pointer; cursor: pointer;
} }
.accordion > h3:hover{
filter: brightness(125%);
}
.accordion > div{ .accordion > div{
background: none !important; background: none !important;
} }
@ -500,22 +542,9 @@ body{
/* no scrollbar styling in firefox, sadly */
.navmenu::-webkit-scrollbar{
height: 12px;
}
.navmenu::-webkit-scrollbar-track{
background: rgba(0, 0, 0, 0.1);
}
.navmenu::-webkit-scrollbar-thumb{
background: rgba(0, 0, 0, 0.5);
}
.pv-titlebar{ .pv-titlebar{
background-color: var(--color-1); background-color: var(--color-1);
color: #var(--color-2); color: var(--color-2);
font-weight: 700; font-weight: 700;
padding: 5px; padding: 5px;
} }
@ -606,7 +635,7 @@ body{
/* HOVER MENU */
.hover_menu{ .hover_menu{
position: absolute; position: absolute;
@ -616,11 +645,11 @@ body{
border-radius: 100px; border-radius: 100px;
display: block; display: block;
user-select: none; user-select: none;
-moz-user-select: none;
} }
.hover_menu_icon{ .hover_menu_icon{
position: absolute; position: absolute;
//border: 1px solid black;
display: inline-block; display: inline-block;
width: 16px; width: 16px;
height: 16px; height: 16px;
@ -673,4 +702,3 @@ body{
bottom: -5px; bottom: -5px;
opacity: 1.0; opacity: 1.0;
} }

View File

@ -14,7 +14,8 @@
<div style="font-family:arial;"> <div style="font-family:arial;">
<a href="javascript:viewer.setLanguage('en');" style="margin-left: 30px;">EN</a> - <a href="javascript:viewer.setLanguage('en');" style="margin-left: 30px;">EN</a> -
<a href="javascript:viewer.setLanguage('fr');">FR</a> - <a href="javascript:viewer.setLanguage('fr');">FR</a> -
<a href="javascript:viewer.setLanguage('de');">DE</a> <a href="javascript:viewer.setLanguage('de');">DE</a> -
<a href="javascript:viewer.setLanguage('jp');">JP</a>
</div> </div>
<div> <div>
<!--<div id="accordion" class="accordion">--> <!--<div id="accordion" class="accordion">-->
@ -94,7 +95,12 @@
<!-- MEASUREMENTS --> <!-- MEASUREMENTS -->
<h3 id="menu_measurements"><span data-i18n="tb.measurments_opt"></span></h3> <h3 id="menu_measurements"><span data-i18n="tb.measurments_opt"></span></h3>
<div> <div id="measurement_details">
<!-- <ul class="pv-menu-list selectable" id="measurement_details"></ul> -->
<div id="measurement_list_before" style="margin: 6px 2px 6px 2px"></div>
<div id="measurement_list"></div>
<div id="measurement_list_after" style="margin: 6px 2px 6px 2px"></div>
<div> <div>
<label for="optLengthUnit" class="pv-select-label"><span data-i18n="appearance.length_unit"></span></label> <label for="optLengthUnit" class="pv-select-label"><span data-i18n="appearance.length_unit"></span></label>
<select id="optLengthUnit" name="optLengthUnit"> <select id="optLengthUnit" name="optLengthUnit">
@ -103,8 +109,6 @@
<option value="in">Inch (&#8243)</option> <option value="in">Inch (&#8243)</option>
</select> </select>
</div> </div>
<ul class="pv-menu-list selectable" id="measurement_details">
</ul>
</div> </div>
<!-- ANNOTATIONS --> <!-- ANNOTATIONS -->

File diff suppressed because it is too large Load Diff

View File

@ -377,6 +377,7 @@ Potree.Viewer = class PotreeViewer extends THREE.EventDispatcher{
this.lengthUnit = this.LENGTH_UNITS.METER; this.lengthUnit = this.LENGTH_UNITS.METER;
this.showBoundingBox = false; this.showBoundingBox = false;
this.showAnnotations = true;
this.freeze = false; this.freeze = false;
this.mapView; this.mapView;
@ -384,9 +385,9 @@ Potree.Viewer = class PotreeViewer extends THREE.EventDispatcher{
this.progressBar = new ProgressBar(); this.progressBar = new ProgressBar();
this.stats = new Stats(); this.stats = new Stats();
this.stats.showPanel( 0 ); // 0: fps, 1: ms, 2: mb, 3+: custom //this.stats.showPanel( 0 ); // 0: fps, 1: ms, 2: mb, 3+: custom
document.body.appendChild( this.stats.dom ); //document.body.appendChild( this.stats.dom );
this.stats.dom.style.left = "100px"; //this.stats.dom.style.left = "100px";
this.potreeRenderer = null; this.potreeRenderer = null;
this.highQualityRenderer = null; this.highQualityRenderer = null;
@ -519,18 +520,14 @@ Potree.Viewer = class PotreeViewer extends THREE.EventDispatcher{
if(!this.onAnnotationAdded){ if(!this.onAnnotationAdded){
this.onAnnotationAdded = e => { this.onAnnotationAdded = e => {
//this.renderArea.appendChild(e.annotation.domElement[0]);
//console.log("annotation added: " + e.annotation.title);
e.annotation.traverse(node => {
this.renderArea.appendChild(node.domElement[0]); e.annotation.traverse(node => {
}); this.renderArea.appendChild(node.domElement[0]);
node.scene = this.scene;
////focusing_finished });
//e.annotation.addEventListener("focusing_finished", (event) => {
// let distance = this.scene.view.position.distanceTo(this.scene.view.getPivot());
// this.setMoveSpeed(Math.pow(distance, 0.4));
// this.renderer.domElement.focus();
//});
}; };
} }
@ -861,7 +858,7 @@ Potree.Viewer = class PotreeViewer extends THREE.EventDispatcher{
setPointBudget(value){ setPointBudget(value){
if(Potree.pointBudget != value){ if(Potree.pointBudget !== value){
Potree.pointBudget = parseInt(value); Potree.pointBudget = parseInt(value);
this.dispatchEvent({"type": "point_budget_changed", "viewer": this}); this.dispatchEvent({"type": "point_budget_changed", "viewer": this});
} }
@ -871,8 +868,19 @@ Potree.Viewer = class PotreeViewer extends THREE.EventDispatcher{
return Potree.pointBudget; return Potree.pointBudget;
}; };
setShowAnnotations(value){
if(this.showAnnotations !== value){
this.showAnnotations = value;
this.dispatchEvent({"type": "show_annotations_changed", "viewer": this});
}
}
getShowAnnotations(){
return this.showAnnotations;
}
setClipMode(clipMode){ setClipMode(clipMode){
if(this.clipMode != clipMode){ if(this.clipMode !== clipMode){
this.clipMode = clipMode; this.clipMode = clipMode;
this.dispatchEvent({"type": "clip_mode_changed", "viewer": this}); this.dispatchEvent({"type": "clip_mode_changed", "viewer": this});
} }
@ -1470,7 +1478,7 @@ Potree.Viewer = class PotreeViewer extends THREE.EventDispatcher{
i18n.init({ i18n.init({
lng: 'en', lng: 'en',
resGetPath: Potree.resourcePath + '/lang/__lng__/__ns__.json', resGetPath: Potree.resourcePath + '/lang/__lng__/__ns__.json',
preload: ['en', 'fr', 'de'], preload: ['en', 'fr', 'de', 'jp'],
getAsync: true, getAsync: true,
debug: false debug: false
}, function(t) { }, function(t) {
@ -1523,6 +1531,22 @@ Potree.Viewer = class PotreeViewer extends THREE.EventDispatcher{
updateAnnotations(){ updateAnnotations(){
if(!this.getShowAnnotations()){
this.scene.annotations.traverseDescendants(descendant => {
if(!descendant.__visible || !descendant.visible){
return false;
}else{
descendant.__visible = false;
//descendant.domElement[0].style.display = "none";
descendant.domElement.fadeOut(200);
}
return;
});
return;
}
this.scene.annotations.updateBounds(); this.scene.annotations.updateBounds();
this.scene.camera.updateMatrixWorld(); this.scene.camera.updateMatrixWorld();
@ -1534,9 +1558,13 @@ Potree.Viewer = class PotreeViewer extends THREE.EventDispatcher{
return true; return true;
} }
if(!annotation.visible){
return false;
}
annotation.scene = this.scene; annotation.scene = this.scene;
let element = annotation.domElement[0]; let element = annotation.domElement;
let position = annotation.position; let position = annotation.position;
if(!position){ if(!position){
@ -1554,7 +1582,7 @@ Potree.Viewer = class PotreeViewer extends THREE.EventDispatcher{
screenPos.x = this.renderArea.clientWidth * (screenPos.x + 1) / 2; screenPos.x = this.renderArea.clientWidth * (screenPos.x + 1) / 2;
screenPos.y = this.renderArea.clientHeight * (1 - (screenPos.y + 1) / 2); screenPos.y = this.renderArea.clientHeight * (1 - (screenPos.y + 1) / 2);
screenPos.x = Math.floor(screenPos.x - element.clientWidth / 2); screenPos.x = Math.floor(screenPos.x - element[0].clientWidth / 2);
screenPos.y = Math.floor(screenPos.y - annotation.elTitlebar[0].clientHeight / 2); screenPos.y = Math.floor(screenPos.y - annotation.elTitlebar[0].clientHeight / 2);
// SCREEN SIZE // SCREEN SIZE
@ -1565,105 +1593,48 @@ Potree.Viewer = class PotreeViewer extends THREE.EventDispatcher{
screenSize = radius * projFactor; screenSize = radius * projFactor;
} }
element.style.left = screenPos.x + "px"; element.css("left", screenPos.x + "px");
element.style.top = screenPos.y + "px"; element.css("top", screenPos.y + "px");
let zIndex = 10000000 - distance * (10000000 / this.scene.camera.far); let zIndex = 10000000 - distance * (10000000 / this.scene.camera.far);
if(annotation.descriptionVisible){ if(annotation.descriptionVisible){
zIndex += 10000000; zIndex += 10000000;
} }
element.style.zIndex = parseInt(zIndex); element.css("z-index", parseInt(zIndex));
if(annotation.children.length > 0){ if(annotation.children.length > 0){
let expand = screenSize > 100 || annotation.boundingBox.containsPoint(this.scene.camera.position); let expand = screenSize > annotation.collapseThreshold || annotation.boundingBox.containsPoint(this.scene.camera.position);
if(!expand){ if(!expand){
// TODO make sure descendants are invisible
annotation.traverseDescendants(descendant => { annotation.traverseDescendants(descendant => {
if(!descendant.visible){ if(!descendant.__visible){
return; return;
}else{ }else{
descendant.visible = false; descendant.__visible = false;
descendant.domElement[0].style.display = "none"; //descendant.domElement.fadeOut(200);
descendant.domElement.hide();
} }
}); });
annotation.visible = true; annotation.__visible = true;
element.style.display = "inline-block"; element.fadeIn(200);
}else{ }else{
annotation.visible = true; annotation.__visible = true;
element.style.display = "none"; element.fadeOut(200);
} }
return expand; return expand;
}else{ }else{
annotation.visible = (-1 <= screenPos.z && screenPos.z <= 1); annotation.__visible = (-1 <= screenPos.z && screenPos.z <= 1);
if(annotation.visible){ if(annotation.__visible){
element.style.display = "inline-block"; $(element).fadeIn(200);
}else{ }else{
element.style.display = "none"; $(element).fadeOut(200);
} }
} }
}); });
//let distances = [];
//let annotations = this.scene.annotations.descendants();
//
//let i = 0;
//for(let annotation of annotations){
//
// let element = annotation.domElement[0];
//
// let position = annotation.position;
// if(!position){
// position = annotation.boundingBox.getCenter();
// }
//
// let distance = viewer.scene.camera.position.distanceTo(position);
//
// let screenPos = new THREE.Vector3();
// let screenSize = 0;
// {
// // SCREEN POS
// screenPos.copy(position).project(this.scene.camera);
// screenPos.x = this.renderArea.clientWidth * (screenPos.x + 1) / 2;
// screenPos.y = this.renderArea.clientHeight * (1 - (screenPos.y + 1) / 2);
//
// screenPos.x = Math.floor(screenPos.x - element.clientWidth / 2);
// screenPos.y = Math.floor(screenPos.y - annotation.elTitlebar[0].clientHeight / 2);
//
// // SCREEN SIZE
// let fov = Math.PI * viewer.scene.camera.fov / 180;
// let slope = Math.tan(fov / 2.0);
// let projFactor = 0.5 * this.renderArea.clientHeight / (slope * distance);
//
// let radius = annotation.boundingBox.getBoundingSphere().radius;
// screenSize = radius * projFactor;
// }
//
// element.style.left = screenPos.x + "px";
// element.style.top = screenPos.y + "px";
//
//
// let visible = screenSize > 100 && (-1 <= screenPos.z && screenPos.z <= 1);
//
// if(visible){
// element.style.display = "inline-block";
// }else{
// element.style.display = "none";
// }
//
// annotation.visible = visible;
//
// let zIndex = 10000000 - distance * (10000000 / this.scene.camera.far);
// if(annotation.descriptionVisible){
// zIndex += 10000000;
// }
//
// element.style.zIndex = parseInt(zIndex);
//
// i++;
//}
} }
update(delta, timestamp){ update(delta, timestamp){