@abi-software/scaffoldvuer 1.8.1-beta.4 → 1.9.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/scaffoldvuer.js +17 -11
- package/dist/scaffoldvuer.umd.cjs +2 -2
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/src/App.vue +37 -0
- package/src/components/ScaffoldVuer.vue +24 -12
- package/vite.web-component.js +36 -0
package/dist/scaffoldvuer.js
CHANGED
|
@@ -31411,7 +31411,7 @@ const Oz = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
31411
31411
|
/* 2 */
|
|
31412
31412
|
/***/
|
|
31413
31413
|
(o) => {
|
|
31414
|
-
o.exports = /* @__PURE__ */ JSON.parse('{"name":"zincjs","version":"1.
|
|
31414
|
+
o.exports = /* @__PURE__ */ JSON.parse('{"name":"zincjs","version":"1.13.0","description":"ZincJS (Web-based-Zinc-Visualisation)","main":"build/zinc.js","directories":{"doc":"docs"},"files":["package.json","LICENSE","README.md","src/*","build/zinc.js","build/zinc.frontend.js","build/zinc.js.map","webpack.config.js"],"scripts":{"build-bundle":"webpack --config webpack.frontend.js; webpack --config webpack.backend.js","build-backend":"webpack --config webpack.backend.js","test":"npm --prefix ./test install && npm --prefix ./test run test-ci","changelog":"auto-changelog -p --output CHANGELOG.md --template keepachangelog","jsdoc":"jsdoc -c jsdoc_conf.json","version":"npm run build-bundle;npm run jsdoc;npm run changelog; git add CHANGELOG.md docs","release:beta":"npm version prerelease --preid=beta; npm publish --tag beta","release:minor":"npm version minor; npm publish","release:patch":"npm version patch; npm publish"},"repository":{"type":"git","url":"git+https://github.com/alan-wu/ZincJS.git"},"keywords":["library","webgl","3d","zincjs"],"author":"Alan Wu <alan.wu@auckland.ac.nz>","license":"MIT","bugs":{"url":"https://github.com/alan-wu/ZincJS/issues"},"homepage":"http://alan-wu.github.io/ZincJS/","devDependencies":{"@babel/core":"^7.23.9","@babel/preset-env":"^7.23.9","auto-changelog":"^2.4.0","babel-loader":"^9.1.3","babel-preset-minify":"^0.5.1","file-loader":"^6.2.0","jsdoc":"^4.0.2","raw-loader":"^4.0.2","webpack":"^5.90.3","webpack-cli":"^5.1.4","webpack-node-externals":"^3.0.0"},"dependencies":{"css-element-queries":"^1.2.2","lodash":"^4.17.19","promise-polyfill":"^8.1.3","three":"^0.130.1","three-spritetext":"1.6.2","url-loader":"^4.1.1","url-polyfill":"^1.1.7","webworkify-webpack":"^2.1.5"}}');
|
|
31415
31415
|
},
|
|
31416
31416
|
/* 3 */
|
|
31417
31417
|
/***/
|
|
@@ -42237,6 +42237,12 @@ const GU = {
|
|
|
42237
42237
|
}
|
|
42238
42238
|
},
|
|
42239
42239
|
methods: {
|
|
42240
|
+
enableAxisDisplay: function(n, e) {
|
|
42241
|
+
this.$module.scene && this.$module.scene.enableAxisDisplay(n, e);
|
|
42242
|
+
},
|
|
42243
|
+
createAxisDisplay: function(n) {
|
|
42244
|
+
this.$module.scene && this.$module.scene.createAxisDisplay(n);
|
|
42245
|
+
},
|
|
42240
42246
|
/**
|
|
42241
42247
|
* @public
|
|
42242
42248
|
* Call this to manually add a zinc object into the current scene.
|
|
@@ -42347,7 +42353,7 @@ const GU = {
|
|
|
42347
42353
|
if (this.existDrawnFeatures = $t(this.existDrawnFeatures.filter((s) => s.id !== r.item.id)), this.existDrawnFeatures.push(r.feature), this.offlineAnnotationEnabled) {
|
|
42348
42354
|
r.group = e;
|
|
42349
42355
|
let s = n;
|
|
42350
|
-
s.slice(-1) === "/" && (s = s.slice(0, -1)), r.region = s, this.offlineAnnotations = JSON.parse(sessionStorage.getItem("
|
|
42356
|
+
s.slice(-1) === "/" && (s = s.slice(0, -1)), r.region = s, this.offlineAnnotations = JSON.parse(sessionStorage.getItem("anonymous-annotation")) || [], this.offlineAnnotations.push(r), sessionStorage.setItem("anonymous-annotation", JSON.stringify(this.offlineAnnotations));
|
|
42351
42357
|
}
|
|
42352
42358
|
this.$emit("userPrimitivesUpdated", { region: n, group: e, zincObject: t });
|
|
42353
42359
|
},
|
|
@@ -42413,7 +42419,7 @@ const GU = {
|
|
|
42413
42419
|
confirmComment: function(n) {
|
|
42414
42420
|
if (this._editingZincObject) {
|
|
42415
42421
|
let e = n;
|
|
42416
|
-
this._editingZincObject.isEditable && (this.existDrawnFeatures = $t(this.existDrawnFeatures.filter((t) => t.id !== e.item.id)), this.existDrawnFeatures.push(n.feature)), this.offlineAnnotationEnabled && (e.group = this._editingZincObject.groupName, e.region = this._editingZincObject.region.getFullPath(), this.offlineAnnotations = JSON.parse(sessionStorage.getItem("
|
|
42422
|
+
this._editingZincObject.isEditable && (this.existDrawnFeatures = $t(this.existDrawnFeatures.filter((t) => t.id !== e.item.id)), this.existDrawnFeatures.push(n.feature)), this.offlineAnnotationEnabled && (e.group = this._editingZincObject.groupName, e.region = this._editingZincObject.region.getFullPath(), this.offlineAnnotations = JSON.parse(sessionStorage.getItem("anonymous-annotation")) || [], this.offlineAnnotations.push(e), sessionStorage.setItem("anonymous-annotation", JSON.stringify(this.offlineAnnotations)));
|
|
42417
42423
|
}
|
|
42418
42424
|
},
|
|
42419
42425
|
/**
|
|
@@ -42433,7 +42439,7 @@ const GU = {
|
|
|
42433
42439
|
this.url,
|
|
42434
42440
|
"Deleted"
|
|
42435
42441
|
);
|
|
42436
|
-
i && (this.existDrawnFeatures = $t(this.existDrawnFeatures.filter((s) => s.id !== i.item.id)), this.$module.scene.getRootRegion().findChildFromPath(e).removeZincObject(this._editingZincObject), this.offlineAnnotationEnabled && (this.offlineAnnotations = JSON.parse(sessionStorage.getItem("
|
|
42442
|
+
i && (this.existDrawnFeatures = $t(this.existDrawnFeatures.filter((s) => s.id !== i.item.id)), this.$module.scene.getRootRegion().findChildFromPath(e).removeZincObject(this._editingZincObject), this.offlineAnnotationEnabled && (this.offlineAnnotations = JSON.parse(sessionStorage.getItem("anonymous-annotation")) || [], this.offlineAnnotations = this.offlineAnnotations.filter((s) => s.item.id !== i.item.id), sessionStorage.setItem("anonymous-annotation", JSON.stringify(this.offlineAnnotations))));
|
|
42437
42443
|
}
|
|
42438
42444
|
this.cancelCreate();
|
|
42439
42445
|
},
|
|
@@ -42907,7 +42913,7 @@ const GU = {
|
|
|
42907
42913
|
addAnnotationFeature: async function() {
|
|
42908
42914
|
let n;
|
|
42909
42915
|
if (this.offlineAnnotationEnabled)
|
|
42910
|
-
this.offlineAnnotations = JSON.parse(sessionStorage.getItem("
|
|
42916
|
+
this.offlineAnnotations = JSON.parse(sessionStorage.getItem("anonymous-annotation")) || [], n = this.offlineAnnotations.filter((e) => e.resource === this.url && e.feature.properties.drawn).map((e) => e.feature);
|
|
42911
42917
|
else {
|
|
42912
42918
|
n = [];
|
|
42913
42919
|
const e = await Zv(this.annotator, this.userToken, this.url);
|
|
@@ -43046,7 +43052,7 @@ const GU = {
|
|
|
43046
43052
|
} else n.region && n.region !== "" && this.viewRegion(n.region);
|
|
43047
43053
|
n.visibility && this.$nextTick(() => {
|
|
43048
43054
|
this.$refs.scaffoldTreeControls.setState(n.visibility);
|
|
43049
|
-
}), n.background && this.backgroundChangeCallback(n.background), n.offlineAnnotations && sessionStorage.setItem("
|
|
43055
|
+
}), n.background && this.backgroundChangeCallback(n.background), n.offlineAnnotations && sessionStorage.setItem("anonymous-annotation", n.offlineAnnotations), n.viewingMode && this.changeViewingMode(n.viewingMode);
|
|
43050
43056
|
const e = n.search;
|
|
43051
43057
|
e && e.group && (e.isSearch ? this.search(e.group, !0) : this.changeActiveByName(e.group, e.region, !0));
|
|
43052
43058
|
}
|
|
@@ -43092,7 +43098,7 @@ const GU = {
|
|
|
43092
43098
|
let e = this.$module.scene.getZincCameraControls();
|
|
43093
43099
|
n.viewport = e.getCurrentViewport();
|
|
43094
43100
|
}
|
|
43095
|
-
return this.lastSelected && this.lastSelected.group && (n.search = { ...this.lastSelected }), this.offlineAnnotationEnabled && (n.offlineAnnotations = sessionStorage.getItem("
|
|
43101
|
+
return this.lastSelected && this.lastSelected.group && (n.search = { ...this.lastSelected }), this.offlineAnnotationEnabled && (n.offlineAnnotations = sessionStorage.getItem("anonymous-annotation")), n;
|
|
43096
43102
|
},
|
|
43097
43103
|
/**
|
|
43098
43104
|
* Function used for importing the states of the scene. This exported states
|
|
@@ -43107,7 +43113,7 @@ const GU = {
|
|
|
43107
43113
|
viewport: n.viewport,
|
|
43108
43114
|
visibility: n.visibility,
|
|
43109
43115
|
background: n.background,
|
|
43110
|
-
viewingMode:
|
|
43116
|
+
viewingMode: n.viewingMode,
|
|
43111
43117
|
search: n.search,
|
|
43112
43118
|
offlineAnnotations: n.offlineAnnotations
|
|
43113
43119
|
}) : (n.background || n.search || n.viewport || n.viewingMode || n.visibility) && (this.isReady && this.$module.scene ? this.restoreSettings(n) : this.$module.setFinishDownloadCallback(
|
|
@@ -43161,7 +43167,7 @@ const GU = {
|
|
|
43161
43167
|
const e = n.map((t) => t.feature);
|
|
43162
43168
|
Xv(this.$module.scene, e), n.forEach((t) => {
|
|
43163
43169
|
this.offlineAnnotations.push({ ...t });
|
|
43164
|
-
}), sessionStorage.setItem("
|
|
43170
|
+
}), sessionStorage.setItem("anonymous-annotation", JSON.stringify(this.offlineAnnotations));
|
|
43165
43171
|
}
|
|
43166
43172
|
},
|
|
43167
43173
|
/**
|
|
@@ -43624,7 +43630,7 @@ function t4(n, e, t, i, r, s) {
|
|
|
43624
43630
|
class: "viewing-mode-description"
|
|
43625
43631
|
}, {
|
|
43626
43632
|
default: ve(() => e[34] || (e[34] = [
|
|
43627
|
-
mt(" (
|
|
43633
|
+
mt(" (Anonymous annotate) ")
|
|
43628
43634
|
])),
|
|
43629
43635
|
_: 1
|
|
43630
43636
|
})) : ke("", !0)
|
|
@@ -43720,7 +43726,7 @@ function t4(n, e, t, i, r, s) {
|
|
|
43720
43726
|
[w, n.loading]
|
|
43721
43727
|
]);
|
|
43722
43728
|
}
|
|
43723
|
-
const s4 = /* @__PURE__ */ xr(GU, [["render", t4], ["__scopeId", "data-v-
|
|
43729
|
+
const s4 = /* @__PURE__ */ xr(GU, [["render", t4], ["__scopeId", "data-v-62fb1890"]]);
|
|
43724
43730
|
export {
|
|
43725
43731
|
s4 as ScaffoldVuer
|
|
43726
43732
|
};
|