Download original files #323
This commit is contained in:
parent
f69ae8efdd
commit
82ad91ccaa
@ -1,54 +1,67 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Generator: Adobe Illustrator 26.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
|
||||
<svg
|
||||
viewBox="0 0 18 18"
|
||||
xml:space="preserve"
|
||||
version="1.1"
|
||||
id="svg4"
|
||||
sodipodi:docname="download.svg"
|
||||
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
x="0px"
|
||||
y="0px"
|
||||
viewBox="0 0 18 18"
|
||||
style="enable-background:new 0 0 18 18;"
|
||||
xml:space="preserve"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"><defs
|
||||
id="defs8" /><sodipodi:namedview
|
||||
id="namedview6"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
showgrid="true"
|
||||
inkscape:zoom="23.833333"
|
||||
inkscape:cx="15.713287"
|
||||
inkscape:cy="13.321678"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1017"
|
||||
inkscape:window-x="-8"
|
||||
inkscape:window-y="-8"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="g1334"><inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid825" /></sodipodi:namedview><g
|
||||
id="g1334"><g
|
||||
id="g2200"><g
|
||||
id="g2196"><path
|
||||
fill="none"
|
||||
stroke="#263238"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-miterlimit="10"
|
||||
d="m 1.5,3.4 v 5.7 l 5,3 5,-3 V 3.4 l -5,-2.9 z m 5,8.7 V 6.2 m -5,-2.8 5,2.8 m 0,0 5,-2.8"
|
||||
id="path2"
|
||||
sodipodi:nodetypes="ccccccccccccc" /></g></g><g
|
||||
id="g2200-2"
|
||||
transform="rotate(90,14.5,14.5)"><g
|
||||
id="g2196-6"><path
|
||||
fill="none"
|
||||
stroke="#263238"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-miterlimit="10"
|
||||
d="M 16.6,14.5 H 6.5 m 8,3 3,-3 m -3,-3 3,3"
|
||||
id="path2-3"
|
||||
sodipodi:nodetypes="cccccc" /></g></g></g></svg>
|
||||
id="defs21" />
|
||||
<style
|
||||
type="text/css"
|
||||
id="style2">
|
||||
.st0{fill:none;stroke:#263238;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}
|
||||
</style>
|
||||
|
||||
<line
|
||||
class="st0"
|
||||
x1="14.5"
|
||||
y1="16.5"
|
||||
x2="14.5"
|
||||
y2="9.5"
|
||||
id="line6" />
|
||||
<line
|
||||
class="st0"
|
||||
x1="11.5"
|
||||
y1="14.5"
|
||||
x2="14.5"
|
||||
y2="17.5"
|
||||
id="line8" />
|
||||
<line
|
||||
class="st0"
|
||||
x1="17.5"
|
||||
y1="14.5"
|
||||
x2="14.5"
|
||||
y2="17.5"
|
||||
id="line10" />
|
||||
<polygon
|
||||
class="st0"
|
||||
points="1.5,3.4 1.5,9.1 6.5,12.1 11.5,9.1 11.5,3.4 6.5,0.5 "
|
||||
id="polygon12" />
|
||||
<line
|
||||
class="st0"
|
||||
x1="6.5"
|
||||
y1="12.1"
|
||||
x2="6.5"
|
||||
y2="6.2"
|
||||
id="line14" />
|
||||
<line
|
||||
class="st0"
|
||||
x1="1.5"
|
||||
y1="3.4"
|
||||
x2="6.5"
|
||||
y2="6.2"
|
||||
id="line16" />
|
||||
<line
|
||||
class="st0"
|
||||
x1="6.5"
|
||||
y1="6.2"
|
||||
x2="11.5"
|
||||
y2="3.4"
|
||||
id="line18" />
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.2 KiB |
@ -1 +1,66 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" xml:space="preserve"><path fill="none" stroke="#263238" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M16.6 14.5H6.5m8 3 3-3m-3-3 3 3M1.5 3.4v5.7l5 3 5-3V3.4L6.5.5zm5 8.7V6.2m-5-2.8 5 2.8m0 0 5-2.8"/></svg>
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Generator: Adobe Illustrator 26.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
|
||||
<svg
|
||||
version="1.1"
|
||||
id="Layer_1"
|
||||
x="0px"
|
||||
y="0px"
|
||||
viewBox="0 0 18 18"
|
||||
style="enable-background:new 0 0 18 18;"
|
||||
xml:space="preserve"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"><defs
|
||||
id="defs21" />
|
||||
<style
|
||||
type="text/css"
|
||||
id="style2">
|
||||
.st0{fill:none;stroke:#263238;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}
|
||||
</style>
|
||||
<line
|
||||
class="st0"
|
||||
x1="16.5"
|
||||
y1="14.5"
|
||||
x2="9.5"
|
||||
y2="14.5"
|
||||
id="line4" />
|
||||
<line
|
||||
class="st0"
|
||||
x1="14.5"
|
||||
y1="17.5"
|
||||
x2="17.5"
|
||||
y2="14.5"
|
||||
id="line6" />
|
||||
<line
|
||||
class="st0"
|
||||
x1="14.5"
|
||||
y1="11.5"
|
||||
x2="17.5"
|
||||
y2="14.5"
|
||||
id="line8" />
|
||||
<polygon
|
||||
class="st0"
|
||||
points="1.5,3.4 1.5,9.1 6.5,12.1 11.5,9.1 11.5,3.4 6.5,0.5 "
|
||||
id="polygon10" />
|
||||
<line
|
||||
class="st0"
|
||||
x1="6.5"
|
||||
y1="12.1"
|
||||
x2="6.5"
|
||||
y2="6.2"
|
||||
id="line12" />
|
||||
<line
|
||||
class="st0"
|
||||
x1="1.5"
|
||||
y1="3.4"
|
||||
x2="6.5"
|
||||
y2="6.2"
|
||||
id="line14" />
|
||||
<line
|
||||
class="st0"
|
||||
x1="6.5"
|
||||
y1="6.2"
|
||||
x2="11.5"
|
||||
y2="3.4"
|
||||
id="line16" />
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 293 B After Width: | Height: | Size: 1.2 KiB |
@ -1,4 +1,4 @@
|
||||
export const FeatureSet =
|
||||
{
|
||||
DownloadModel : false
|
||||
|
||||
};
|
||||
|
||||
@ -6,7 +6,7 @@ export function ShowOpenUrlDialog (onOk)
|
||||
{
|
||||
let dialog = new ButtonDialog ();
|
||||
let urlsTextArea = CreateDomElement ('textarea', 'ov_dialog_textarea');
|
||||
let contentDiv = dialog.Init ('Open Model from Url', [
|
||||
let contentDiv = dialog.Init ('Open from url', [
|
||||
{
|
||||
name : 'Cancel',
|
||||
subClass : 'outline',
|
||||
|
||||
@ -23,7 +23,6 @@ import { CookieGetBoolVal, CookieSetBoolVal } from './cookiehandler.js';
|
||||
import { MeasureTool } from './measuretool.js';
|
||||
import { CloseAllDialogs } from './dialog.js';
|
||||
import { EnumeratePlugins, PluginType } from './pluginregistry.js';
|
||||
import { FeatureSet } from './featureset.js';
|
||||
|
||||
import * as THREE from 'three';
|
||||
|
||||
@ -533,10 +532,10 @@ export class Website
|
||||
|
||||
let importer = this.modelLoaderUI.GetImporter ();
|
||||
|
||||
AddButton (this.toolbar, 'open', 'Open model from your device', [], () => {
|
||||
AddButton (this.toolbar, 'open', 'Open from your device', [], () => {
|
||||
this.OpenFileBrowserDialog ();
|
||||
});
|
||||
AddButton (this.toolbar, 'open_url', 'Open model from a url', [], () => {
|
||||
AddButton (this.toolbar, 'open_url', 'Open from url', [], () => {
|
||||
ShowOpenUrlDialog ((urls) => {
|
||||
if (urls.length > 0) {
|
||||
this.hashHandler.SetModelFilesToHash (urls);
|
||||
@ -581,26 +580,25 @@ export class Website
|
||||
});
|
||||
this.measureTool.SetButton (measureToolButton);
|
||||
AddSeparator (this.toolbar, ['only_full_width', 'only_on_model']);
|
||||
AddButton (this.toolbar, 'snapshot', 'Create snapshot', ['only_full_width', 'only_on_model'], () => {
|
||||
ShowSnapshotDialog (this.viewer);
|
||||
AddButton (this.toolbar, 'download', 'Download', ['only_full_width', 'only_on_model'], () => {
|
||||
HandleEvent ('model_downloaded', '');
|
||||
let importer = this.modelLoaderUI.GetImporter ();
|
||||
DownloadModel (importer);
|
||||
});
|
||||
if (FeatureSet.DownloadModel) {
|
||||
AddButton (this.toolbar, 'download', 'Download model', ['only_full_width', 'only_on_model'], () => {
|
||||
HandleEvent ('model_downloaded', '');
|
||||
let importer = this.modelLoaderUI.GetImporter ();
|
||||
DownloadModel (importer);
|
||||
});
|
||||
}
|
||||
AddButton (this.toolbar, 'export', 'Export model', ['only_full_width', 'only_on_model'], () => {
|
||||
AddButton (this.toolbar, 'export', 'Export', ['only_full_width', 'only_on_model'], () => {
|
||||
ShowExportDialog (this.model, this.viewer, {
|
||||
isMeshVisible : (meshInstanceId) => {
|
||||
return this.navigator.IsMeshVisible (meshInstanceId);
|
||||
}
|
||||
});
|
||||
});
|
||||
AddButton (this.toolbar, 'share', 'Share model', ['only_full_width', 'only_on_model'], () => {
|
||||
AddButton (this.toolbar, 'share', 'Share', ['only_full_width', 'only_on_model'], () => {
|
||||
ShowSharingDialog (importer.GetFileList (), this.settings, this.viewer);
|
||||
});
|
||||
AddSeparator (this.toolbar, ['only_full_width', 'only_on_model']);
|
||||
AddButton (this.toolbar, 'snapshot', 'Create snapshot', ['only_full_width', 'only_on_model'], () => {
|
||||
ShowSnapshotDialog (this.viewer);
|
||||
});
|
||||
|
||||
EnumeratePlugins (PluginType.Toolbar, (plugin) => {
|
||||
plugin.registerButtons ({
|
||||
|
||||
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
@font-face {
|
||||
font-family: "O3DVIcons";
|
||||
src: url("O3DVIcons/O3DVIcons.woff?c0e5a84e0c3367514518abbacd6417d6") format("woff");
|
||||
src: url("O3DVIcons/O3DVIcons.woff?5b9efabdc2c1ef6b3990e38a69a1fb39") format("woff");
|
||||
}
|
||||
|
||||
i[class^="icon-"]:before, i[class*=" icon-"]:before {
|
||||
|
||||
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
@font-face {
|
||||
font-family: "O3DVIcons";
|
||||
src: url("./O3DVIcons.woff?c0e5a84e0c3367514518abbacd6417d6") format("woff");
|
||||
src: url("./O3DVIcons.woff?5b9efabdc2c1ef6b3990e38a69a1fb39") format("woff");
|
||||
}
|
||||
|
||||
i[class^="icon-"]:before, i[class*=" icon-"]:before {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user