forked from expo/troggle
CaveView - how to install
This commit is contained in:
parent
a11541eb58
commit
33eb91346c
@ -1,164 +1,164 @@
|
|||||||
From: <Saved by Blink>
|
From: <Saved by Blink>
|
||||||
Snapshot-Content-Location: https://aardgoose.github.io/CaveView.js/installation.html
|
Snapshot-Content-Location: https://aardgoose.github.io/CaveView.js/installation.html
|
||||||
Subject: CaveView installation
|
Subject: CaveView installation
|
||||||
Date: Sun, 24 Oct 2021 15:46:19 -0000
|
Date: Sun, 24 Oct 2021 15:46:19 -0000
|
||||||
MIME-Version: 1.0
|
MIME-Version: 1.0
|
||||||
Content-Type: multipart/related;
|
Content-Type: multipart/related;
|
||||||
type="text/html";
|
type="text/html";
|
||||||
boundary="----MultipartBoundary--eCFBXfFmJiPIUIDdJDuaiHRJfZ59xqA99QxmIcmsBZ----"
|
boundary="----MultipartBoundary--eCFBXfFmJiPIUIDdJDuaiHRJfZ59xqA99QxmIcmsBZ----"
|
||||||
|
|
||||||
|
|
||||||
------MultipartBoundary--eCFBXfFmJiPIUIDdJDuaiHRJfZ59xqA99QxmIcmsBZ----
|
------MultipartBoundary--eCFBXfFmJiPIUIDdJDuaiHRJfZ59xqA99QxmIcmsBZ----
|
||||||
Content-Type: text/html
|
Content-Type: text/html
|
||||||
Content-ID: <frame-F25506009C17180F1D15EDA63865EFC8@mhtml.blink>
|
Content-ID: <frame-F25506009C17180F1D15EDA63865EFC8@mhtml.blink>
|
||||||
Content-Transfer-Encoding: quoted-printable
|
Content-Transfer-Encoding: quoted-printable
|
||||||
Content-Location: https://aardgoose.github.io/CaveView.js/installation.html
|
Content-Location: https://aardgoose.github.io/CaveView.js/installation.html
|
||||||
|
|
||||||
<!DOCTYPE html><html xmlns=3D"http://www.w3.org/1999/xhtml" xml:lang=3D"en-=
|
<!DOCTYPE html><html xmlns=3D"http://www.w3.org/1999/xhtml" xml:lang=3D"en-=
|
||||||
gb" lang=3D"en-gb" dir=3D"ltr"><head><meta http-equiv=3D"Content-Type" cont=
|
gb" lang=3D"en-gb" dir=3D"ltr"><head><meta http-equiv=3D"Content-Type" cont=
|
||||||
ent=3D"text/html; charset=3DUTF-8">
|
ent=3D"text/html; charset=3DUTF-8">
|
||||||
<title>CaveView installation</title>
|
<title>CaveView installation</title>
|
||||||
=09
|
=09
|
||||||
<link type=3D"text/css" href=3D"https://aardgoose.github.io/CaveView.js/do=
|
<link type=3D"text/css" href=3D"https://aardgoose.github.io/CaveView.js/do=
|
||||||
c.css" rel=3D"stylesheet">
|
c.css" rel=3D"stylesheet">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Cave View - installation instructions - V2 API</h1>
|
<h1>Cave View - installation instructions - V2 API</h1>
|
||||||
<h2>Install CaveView files</h2>
|
<h2>Install CaveView files</h2>
|
||||||
<p>A zip archive containing the required files for the latest release are =
|
<p>A zip archive containing the required files for the latest release are =
|
||||||
<a href=3D"https://github.com/aardgoose/CaveView.js/releases">here</a>.</p>
|
<a href=3D"https://github.com/aardgoose/CaveView.js/releases">here</a>.</p>
|
||||||
<p>There is no need to build the JavaScript application from source files =
|
<p>There is no need to build the JavaScript application from source files =
|
||||||
unless you would like to modify the application.</p>
|
unless you would like to modify the application.</p>
|
||||||
<p>Unzip the archive in a convenient location on your web server </p>
|
<p>Unzip the archive in a convenient location on your web server </p>
|
||||||
<h2>Using in a web page</h2>
|
<h2>Using in a web page</h2>
|
||||||
|
|
||||||
<p>CaveView requires two files to be included in the page. Replace the plac=
|
<p>CaveView requires two files to be included in the page. Replace the plac=
|
||||||
eholder %path% with the path to the unzipped files on the server in the fol=
|
eholder %path% with the path to the unzipped files on the server in the fol=
|
||||||
lowing examples.</p><p>
|
lowing examples.</p><p>
|
||||||
|
|
||||||
</p><h3>caveview.css</h3>
|
</p><h3>caveview.css</h3>
|
||||||
<p>The side panel interface and on screen indicators are styled with cavevi=
|
<p>The side panel interface and on screen indicators are styled with cavevi=
|
||||||
ew.css. Include this in the <strong>head</strong> section of the page.</p>
|
ew.css. Include this in the <strong>head</strong> section of the page.</p>
|
||||||
|
|
||||||
<pre> <link type=3D"text/css" href=3D"%path%/CaveView/css/caveview.css" =
|
<pre> <link type=3D"text/css" href=3D"%path%/CaveView/css/caveview.css" =
|
||||||
rel=3D"stylesheet" /></pre>
|
rel=3D"stylesheet" /></pre>
|
||||||
|
|
||||||
<h3>CaveView.js</h3>
|
<h3>CaveView.js</h3>
|
||||||
|
|
||||||
<p>The CaveView application is provided in one javascript file. Include thi=
|
<p>The CaveView application is provided in one javascript file. Include thi=
|
||||||
s in the <strong>body</strong> section of the page. <strong>NOTE: The filen=
|
s in the <strong>body</strong> section of the page. <strong>NOTE: The filen=
|
||||||
ame has changed for the V2 API.</strong></p>
|
ame has changed for the V2 API.</strong></p>
|
||||||
|
|
||||||
<pre> <script type=3D"text/javascript" src=3D"%path%/CaveView/js/CaveVie=
|
<pre> <script type=3D"text/javascript" src=3D"%path%/CaveView/js/CaveVie=
|
||||||
w2.js" ></script></pre>
|
w2.js" ></script></pre>
|
||||||
|
|
||||||
<h3>Add a container element</h3>
|
<h3>Add a container element</h3>
|
||||||
|
|
||||||
<p>Add an empty block element to the page, with a suitable <strong>id</stro=
|
<p>Add an empty block element to the page, with a suitable <strong>id</stro=
|
||||||
ng> attribute. This contains the application, and be sized as required. For=
|
ng> attribute. This contains the application, and be sized as required. For=
|
||||||
example a <strong>div</strong> element:</p>
|
example a <strong>div</strong> element:</p>
|
||||||
|
|
||||||
<pre><div id=3D'% element-id %' ></div></pre>
|
<pre><div id=3D'% element-id %' ></div></pre>
|
||||||
|
|
||||||
<h3>Create a script to run the application</h3>
|
<h3>Create a script to run the application</h3>
|
||||||
|
|
||||||
<p>The application can be loaded using javascript, typically using an load =
|
<p>The application can be loaded using javascript, typically using an load =
|
||||||
event handler. Replace the placeholder %...% elements with values appropria=
|
event handler. Replace the placeholder %...% elements with values appropria=
|
||||||
te for your site.</p>
|
te for your site.</p>
|
||||||
<pre><script type=3D"text/javascript" >
|
<pre><script type=3D"text/javascript" >
|
||||||
|
|
||||||
function onLoad () {
|
function onLoad () {
|
||||||
|
|
||||||
// display the user interface - and a blank canvas
|
// display the user interface - and a blank canvas
|
||||||
|
|
||||||
// the configuration object specifies the location of CaveView, surveys a=
|
// the configuration object specifies the location of CaveView, surveys a=
|
||||||
nd terrain files
|
nd terrain files
|
||||||
|
|
||||||
var viewer =3D new CV2.CaveViewer( '% element-id %', {
|
var viewer =3D new CV2.CaveViewer( '% element-id %', {
|
||||||
home: '% location of the unzipped CaveView directory on the survey %',
|
home: '% location of the unzipped CaveView directory on the survey %',
|
||||||
surveyDirectory: '% location of the survey files on the server %',
|
surveyDirectory: '% location of the survey files on the server %',
|
||||||
terrainDirectory: '% location of the terrain files on the server %'
|
terrainDirectory: '% location of the terrain files on the server %'
|
||||||
} );
|
} );
|
||||||
|
|
||||||
// if using the full user interface (UI)
|
// if using the full user interface (UI)
|
||||||
|
|
||||||
var ui =3D new CV2.CaveViewUI( viewer );
|
var ui =3D new CV2.CaveViewUI( viewer );
|
||||||
|
|
||||||
// load a single survey to display
|
// load a single survey to display
|
||||||
|
|
||||||
ui.loadCave( '% survey filename %' );
|
ui.loadCave( '% survey filename %' );
|
||||||
|
|
||||||
// or without the user interface
|
// or without the user interface
|
||||||
|
|
||||||
viewer.loadCave( '% survey filename %' );
|
viewer.loadCave( '% survey filename %' );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>alternatively provide a list of surveys to display, by replacing the loa=
|
<p>alternatively provide a list of surveys to display, by replacing the loa=
|
||||||
dCave() function call with loadCaveList() :</p>
|
dCave() function call with loadCaveList() :</p>
|
||||||
|
|
||||||
<pre> ui.loadCaveList( [ '% survey filename 1 %', '% survey filename 2 %', =
|
<pre> ui.loadCaveList( [ '% survey filename 1 %', '% survey filename 2 %', =
|
||||||
'% survey filename 3 %' ] );
|
'% survey filename 3 %' ] );
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>This can be automatically executed on page load by including a page load=
|
<p>This can be automatically executed on page load by including a page load=
|
||||||
handler in the page <strong>body</strong> tag:</p>
|
handler in the page <strong>body</strong> tag:</p>
|
||||||
<pre><body onload=3D"onload();" ></pre>
|
<pre><body onload=3D"onload();" ></pre>
|
||||||
|
|
||||||
<p>CaveView should now display when the page is viewed.</p>
|
<p>CaveView should now display when the page is viewed.</p>
|
||||||
<p>The example files included demonstrate using multiple viewers on a page,
|
<p>The example files included demonstrate using multiple viewers on a page,
|
||||||
changing the default view settings and altering the appearance of the viewe=
|
changing the default view settings and altering the appearance of the viewe=
|
||||||
r.</p>
|
r.</p>
|
||||||
|
|
||||||
<h3>Removal</h3>
|
<h3>Removal</h3>
|
||||||
|
|
||||||
<p>To remove the viewer from a page and reclaim memory used promptly:</p>
|
<p>To remove the viewer from a page and reclaim memory used promptly:</p>
|
||||||
<pre> ui.dispose();
|
<pre> ui.dispose();
|
||||||
ui =3D null;
|
ui =3D null;
|
||||||
viewer =3D null;
|
viewer =3D null;
|
||||||
</pre>
|
</pre>
|
||||||
<p>Or if not using the UI, just the viewer:</p>
|
<p>Or if not using the UI, just the viewer:</p>
|
||||||
<pre> viewer.dispose();
|
<pre> viewer.dispose();
|
||||||
viewer =3D null;
|
viewer =3D null;
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
|
||||||
</body></html>
|
</body></html>
|
||||||
------MultipartBoundary--eCFBXfFmJiPIUIDdJDuaiHRJfZ59xqA99QxmIcmsBZ----
|
------MultipartBoundary--eCFBXfFmJiPIUIDdJDuaiHRJfZ59xqA99QxmIcmsBZ----
|
||||||
Content-Type: text/css
|
Content-Type: text/css
|
||||||
Content-Transfer-Encoding: quoted-printable
|
Content-Transfer-Encoding: quoted-printable
|
||||||
Content-Location: https://aardgoose.github.io/CaveView.js/doc.css
|
Content-Location: https://aardgoose.github.io/CaveView.js/doc.css
|
||||||
|
|
||||||
@charset "utf-8";
|
@charset "utf-8";
|
||||||
|
|
||||||
h1, h2 { margin: 0px 16px 1em; }
|
h1, h2 { margin: 0px 16px 1em; }
|
||||||
|
|
||||||
h3, h4, h5, p, pre, dl { margin-left: 32px; margin-right: 32px; }
|
h3, h4, h5, p, pre, dl { margin-left: 32px; margin-right: 32px; }
|
||||||
|
|
||||||
h2 { border-bottom: 2px solid gray; }
|
h2 { border-bottom: 2px solid gray; }
|
||||||
|
|
||||||
h3 { color: navy; }
|
h3 { color: navy; }
|
||||||
|
|
||||||
h4 { margin-top: 2em; background-color: rgb(238, 238, 238); padding: 3px 2p=
|
h4 { margin-top: 2em; background-color: rgb(238, 238, 238); padding: 3px 2p=
|
||||||
x 1px; }
|
x 1px; }
|
||||||
|
|
||||||
* { font-family: sans-serif; }
|
* { font-family: sans-serif; }
|
||||||
|
|
||||||
pre { font-family: monospace; font-weight: bold; background-color: rgb(238,=
|
pre { font-family: monospace; font-weight: bold; background-color: rgb(238,=
|
||||||
238, 238); padding: 8px; }
|
238, 238); padding: 8px; }
|
||||||
|
|
||||||
dd > span { display: inline-block; padding: 0px 2px; margin-right: 5px; bac=
|
dd > span { display: inline-block; padding: 0px 2px; margin-right: 5px; bac=
|
||||||
kground: rgb(238, 238, 238); }
|
kground: rgb(238, 238, 238); }
|
||||||
|
|
||||||
dd > span::before { content: "["; }
|
dd > span::before { content: "["; }
|
||||||
|
|
||||||
dd > span::after { content: "]"; }
|
dd > span::after { content: "]"; }
|
||||||
|
|
||||||
dt { margin-bottom: 0.5em; font-weight: bold; color: rgb(102, 102, 102); pa=
|
dt { margin-bottom: 0.5em; font-weight: bold; color: rgb(102, 102, 102); pa=
|
||||||
dding-left: 16px; }
|
dding-left: 16px; }
|
||||||
|
|
||||||
dd { margin-bottom: 1em; }
|
dd { margin-bottom: 1em; }
|
||||||
------MultipartBoundary--eCFBXfFmJiPIUIDdJDuaiHRJfZ59xqA99QxmIcmsBZ------
|
------MultipartBoundary--eCFBXfFmJiPIUIDdJDuaiHRJfZ59xqA99QxmIcmsBZ------
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
[InternetShortcut]
|
[InternetShortcut]
|
||||||
URL=https://github.com/aardgoose/CaveView.js/releases
|
URL=https://github.com/aardgoose/CaveView.js/releases
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
[InternetShortcut]
|
[InternetShortcut]
|
||||||
URL=https://aardgoose.github.io/CaveView.js/
|
URL=https://aardgoose.github.io/CaveView.js/
|
||||||
|
Loading…
Reference in New Issue
Block a user