@abi-software/mapintegratedvuer 1.9.0-beta.0 → 1.9.0-beta.1

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.
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { u as p, c as u, E as r, T as d, d as h, e as m } from "./index-BGZgzrzo.js";
2
+ import { u as p, d as u, a as r, T as d, e as h, f as m } from "./index-BFdnIlxA.js";
3
3
  import { mapStores as g } from "pinia";
4
4
  function y(e) {
5
5
  return e[0].toUpperCase() + e.substring(1);
@@ -1,6 +1,6 @@
1
- import { _ as d, x as h, t as u, T as s, E as r } from "./index-BGZgzrzo.js";
2
- import { C as I } from "./ContentMixin-Ccjd33IX.js";
3
- import { D as g, R as M } from "./style-Dd26IITM.js";
1
+ import { _ as d, E as h, t as u, T as s, a as r } from "./index-BFdnIlxA.js";
2
+ import { C as I } from "./ContentMixin-CukPHyXB.js";
3
+ import { D as g, R as M } from "./style-DeVkU2io.js";
4
4
  import { resolveComponent as l, openBlock as p, createElementBlock as v, createVNode as y, createBlock as C, createCommentVNode as S } from "vue";
5
5
  const w = {
6
6
  name: "Flatmap",
@@ -1,6 +1,6 @@
1
- import { C as r } from "./ContentMixin-Ccjd33IX.js";
1
+ import { C as r } from "./ContentMixin-CukPHyXB.js";
2
2
  import { openBlock as o, createElementBlock as t, createElementVNode as s } from "vue";
3
- import { _ as n } from "./index-BGZgzrzo.js";
3
+ import { _ as n } from "./index-BFdnIlxA.js";
4
4
  const a = {
5
5
  name: "Iframe",
6
6
  mixins: [r]
@@ -1,6 +1,6 @@
1
- import { _ as u, x as h, a as y, g, E as r, t as M, T as p } from "./index-BGZgzrzo.js";
2
- import { C as v } from "./ContentMixin-Ccjd33IX.js";
3
- import { D as I, q as C } from "./style-Dd26IITM.js";
1
+ import { _ as u, E as h, b as y, g, a as r, t as M, T as p } from "./index-BFdnIlxA.js";
2
+ import { C as v } from "./ContentMixin-CukPHyXB.js";
3
+ import { D as I, q as C } from "./style-DeVkU2io.js";
4
4
  import { resolveComponent as f, openBlock as c, createElementBlock as S, createVNode as F, createBlock as k, createCommentVNode as w } from "vue";
5
5
  const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><path d="M11.0748 3.25583C11.4141 2.42845 12.5859 2.42845 12.9252 3.25583L14.6493 7.45955C14.793 7.80979 15.1221 8.04889 15.4995 8.07727L20.0303 8.41798C20.922 8.48504 21.2841 9.59942 20.6021 10.1778L17.1369 13.1166C16.8482 13.3614 16.7225 13.7483 16.8122 14.1161L17.8882 18.5304C18.1 19.3992 17.152 20.0879 16.3912 19.618L12.5255 17.2305C12.2034 17.0316 11.7966 17.0316 11.4745 17.2305L7.60881 19.618C6.84796 20.0879 5.90001 19.3992 6.1118 18.5304L7.18785 14.1161C7.2775 13.7483 7.1518 13.3614 6.86309 13.1166L3.3979 10.1778C2.71588 9.59942 3.07796 8.48504 3.96971 8.41798L8.50046 8.07727C8.87794 8.04889 9.20704 7.80979 9.35068 7.45955L11.0748 3.25583Z" stroke="#000000" stroke-width="2"/></svg>', d = (e) => {
6
6
  const t = [
@@ -1,7 +1,7 @@
1
1
  import { PlotVuer as o } from "@abi-software/plotvuer";
2
- import { C as r } from "./ContentMixin-Ccjd33IX.js";
2
+ import { C as r } from "./ContentMixin-CukPHyXB.js";
3
3
  import { resolveComponent as a, openBlock as n, createBlock as s } from "vue";
4
- import { _ as m } from "./index-BGZgzrzo.js";
4
+ import { _ as m } from "./index-BFdnIlxA.js";
5
5
  const p = {
6
6
  name: "Plot",
7
7
  mixins: [r],
@@ -1,5 +1,5 @@
1
- import { y as K1, b as Q1, w as ew, h as tw, C as iw, k as rw, _ as nw, x as ow, E as Wu } from "./index-BGZgzrzo.js";
2
- import { C as aw } from "./ContentMixin-Ccjd33IX.js";
1
+ import { c as K1, k as Q1, w as ew, h as tw, x as iw, S as rw, _ as nw, E as ow, a as Wu } from "./index-BFdnIlxA.js";
2
+ import { C as aw } from "./ContentMixin-CukPHyXB.js";
3
3
  import { ref as Ee, defineComponent as Pe, computed as he, openBlock as ye, createElementBlock as Ce, mergeProps as Rr, unref as V, renderSlot as $e, useAttrs as sw, useSlots as au, shallowRef as Ci, watch as Qe, nextTick as yt, onMounted as ti, toRef as Ii, createCommentVNode as Ue, Fragment as zt, normalizeClass as Re, createElementVNode as ze, createBlock as Ve, withCtx as ve, resolveDynamicComponent as Ni, withModifiers as si, createVNode as le, toDisplayString as vt, normalizeStyle as Ct, provide as ui, reactive as $i, onActivated as lw, onUpdated as ip, inject as ht, onBeforeUnmount as rr, withDirectives as Ot, cloneVNode as cw, Text as n0, Comment as uw, Transition as hl, vShow as mi, readonly as o0, onDeactivated as hw, toHandlers as dw, withKeys as pr, createTextVNode as mt, createSlots as pw, toRefs as ln, getCurrentInstance as ni, h as ba, renderList as Qi, onUnmounted as a0, markRaw as Wt, watchEffect as s0, warn as fw, onBeforeMount as mw, toRaw as rp, getCurrentScope as l0, onScopeDispose as c0, isRef as Lo, isVNode as Kh, Teleport as gw, resolveComponent as Ei, resolveDirective as vw, toHandlerKey as yw, vModelText as bw, createApp as xw, hasInjectionContext as ww, effectScope as _w, isReactive as np } from "vue";
4
4
  const Jr = (i, e, { checkForDefaultPrevented: t = !0 } = {}) => (r) => {
5
5
  const n = i == null ? void 0 : i(r);
@@ -31407,7 +31407,7 @@ const Bz = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31407
31407
  /* 2 */
31408
31408
  /***/
31409
31409
  (a) => {
31410
- a.exports = /* @__PURE__ */ JSON.parse('{"name":"zincjs","version":"1.12.1","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"}}');
31410
+ a.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"}}');
31411
31411
  },
31412
31412
  /* 3 */
31413
31413
  /***/
@@ -42231,6 +42231,12 @@ const $4 = {
42231
42231
  }
42232
42232
  },
42233
42233
  methods: {
42234
+ enableAxisDisplay: function(i, e) {
42235
+ this.$module.scene && this.$module.scene.enableAxisDisplay(i, e);
42236
+ },
42237
+ createAxisDisplay: function(i) {
42238
+ this.$module.scene && this.$module.scene.createAxisDisplay(i);
42239
+ },
42234
42240
  /**
42235
42241
  * @public
42236
42242
  * Call this to manually add a zinc object into the current scene.
@@ -42341,7 +42347,7 @@ const $4 = {
42341
42347
  if (this.existDrawnFeatures = Wt(this.existDrawnFeatures.filter((o) => o.id !== n.item.id)), this.existDrawnFeatures.push(n.feature), this.offlineAnnotationEnabled) {
42342
42348
  n.group = e;
42343
42349
  let o = i;
42344
- o.slice(-1) === "/" && (o = o.slice(0, -1)), n.region = o, this.offlineAnnotations = JSON.parse(sessionStorage.getItem("offline-annotation")) || [], this.offlineAnnotations.push(n), sessionStorage.setItem("offline-annotation", JSON.stringify(this.offlineAnnotations));
42350
+ o.slice(-1) === "/" && (o = o.slice(0, -1)), n.region = o, this.offlineAnnotations = JSON.parse(sessionStorage.getItem("anonymous-annotation")) || [], this.offlineAnnotations.push(n), sessionStorage.setItem("anonymous-annotation", JSON.stringify(this.offlineAnnotations));
42345
42351
  }
42346
42352
  this.$emit("userPrimitivesUpdated", { region: i, group: e, zincObject: t });
42347
42353
  },
@@ -42407,7 +42413,7 @@ const $4 = {
42407
42413
  confirmComment: function(i) {
42408
42414
  if (this._editingZincObject) {
42409
42415
  let e = i;
42410
- this._editingZincObject.isEditable && (this.existDrawnFeatures = Wt(this.existDrawnFeatures.filter((t) => t.id !== e.item.id)), this.existDrawnFeatures.push(i.feature)), this.offlineAnnotationEnabled && (e.group = this._editingZincObject.groupName, e.region = this._editingZincObject.region.getFullPath(), this.offlineAnnotations = JSON.parse(sessionStorage.getItem("offline-annotation")) || [], this.offlineAnnotations.push(e), sessionStorage.setItem("offline-annotation", JSON.stringify(this.offlineAnnotations)));
42416
+ this._editingZincObject.isEditable && (this.existDrawnFeatures = Wt(this.existDrawnFeatures.filter((t) => t.id !== e.item.id)), this.existDrawnFeatures.push(i.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)));
42411
42417
  }
42412
42418
  },
42413
42419
  /**
@@ -42427,7 +42433,7 @@ const $4 = {
42427
42433
  this.url,
42428
42434
  "Deleted"
42429
42435
  );
42430
- r && (this.existDrawnFeatures = Wt(this.existDrawnFeatures.filter((n) => n.id !== r.item.id)), this.$module.scene.getRootRegion().findChildFromPath(e).removeZincObject(this._editingZincObject), this.offlineAnnotationEnabled && (this.offlineAnnotations = JSON.parse(sessionStorage.getItem("offline-annotation")) || [], this.offlineAnnotations = this.offlineAnnotations.filter((n) => n.item.id !== r.item.id), sessionStorage.setItem("offline-annotation", JSON.stringify(this.offlineAnnotations))));
42436
+ r && (this.existDrawnFeatures = Wt(this.existDrawnFeatures.filter((n) => n.id !== r.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((n) => n.item.id !== r.item.id), sessionStorage.setItem("anonymous-annotation", JSON.stringify(this.offlineAnnotations))));
42431
42437
  }
42432
42438
  this.cancelCreate();
42433
42439
  },
@@ -42901,7 +42907,7 @@ const $4 = {
42901
42907
  addAnnotationFeature: async function() {
42902
42908
  let i;
42903
42909
  if (this.offlineAnnotationEnabled)
42904
- this.offlineAnnotations = JSON.parse(sessionStorage.getItem("offline-annotation")) || [], i = this.offlineAnnotations.filter((e) => e.resource === this.url && e.feature.properties.drawn).map((e) => e.feature);
42910
+ this.offlineAnnotations = JSON.parse(sessionStorage.getItem("anonymous-annotation")) || [], i = this.offlineAnnotations.filter((e) => e.resource === this.url && e.feature.properties.drawn).map((e) => e.feature);
42905
42911
  else {
42906
42912
  i = [];
42907
42913
  const e = await qv(this.annotator, this.userToken, this.url);
@@ -43040,7 +43046,7 @@ const $4 = {
43040
43046
  } else i.region && i.region !== "" && this.viewRegion(i.region);
43041
43047
  i.visibility && this.$nextTick(() => {
43042
43048
  this.$refs.scaffoldTreeControls.setState(i.visibility);
43043
- }), i.background && this.backgroundChangeCallback(i.background), i.offlineAnnotations && sessionStorage.setItem("offline-annotation", i.offlineAnnotations), i.viewingMode && this.changeViewingMode(i.viewingMode);
43049
+ }), i.background && this.backgroundChangeCallback(i.background), i.offlineAnnotations && sessionStorage.setItem("anonymous-annotation", i.offlineAnnotations), i.viewingMode && this.changeViewingMode(i.viewingMode);
43044
43050
  const e = i.search;
43045
43051
  e && e.group && (e.isSearch ? this.search(e.group, !0) : this.changeActiveByName(e.group, e.region, !0));
43046
43052
  }
@@ -43086,7 +43092,7 @@ const $4 = {
43086
43092
  let e = this.$module.scene.getZincCameraControls();
43087
43093
  i.viewport = e.getCurrentViewport();
43088
43094
  }
43089
- return this.lastSelected && this.lastSelected.group && (i.search = { ...this.lastSelected }), this.offlineAnnotationEnabled && (i.offlineAnnotations = sessionStorage.getItem("offline-annotation")), i;
43095
+ return this.lastSelected && this.lastSelected.group && (i.search = { ...this.lastSelected }), this.offlineAnnotationEnabled && (i.offlineAnnotations = sessionStorage.getItem("anonymous-annotation")), i;
43090
43096
  },
43091
43097
  /**
43092
43098
  * Function used for importing the states of the scene. This exported states
@@ -43101,7 +43107,7 @@ const $4 = {
43101
43107
  viewport: i.viewport,
43102
43108
  visibility: i.visibility,
43103
43109
  background: i.background,
43104
- viewingMode: this.viewingMode,
43110
+ viewingMode: i.viewingMode,
43105
43111
  search: i.search,
43106
43112
  offlineAnnotations: i.offlineAnnotations
43107
43113
  }) : (i.background || i.search || i.viewport || i.viewingMode || i.visibility) && (this.isReady && this.$module.scene ? this.restoreSettings(i) : this.$module.setFinishDownloadCallback(
@@ -43155,7 +43161,7 @@ const $4 = {
43155
43161
  const e = i.map((t) => t.feature);
43156
43162
  Zv(this.$module.scene, e), i.forEach((t) => {
43157
43163
  this.offlineAnnotations.push({ ...t });
43158
- }), sessionStorage.setItem("offline-annotation", JSON.stringify(this.offlineAnnotations));
43164
+ }), sessionStorage.setItem("anonymous-annotation", JSON.stringify(this.offlineAnnotations));
43159
43165
  }
43160
43166
  },
43161
43167
  /**
@@ -43618,7 +43624,7 @@ function oF(i, e, t, r, n, o) {
43618
43624
  class: "viewing-mode-description"
43619
43625
  }, {
43620
43626
  default: ve(() => e[34] || (e[34] = [
43621
- mt(" (Offline annotate) ")
43627
+ mt(" (Anonymous annotate) ")
43622
43628
  ])),
43623
43629
  _: 1
43624
43630
  })) : Ue("", !0)
@@ -43714,7 +43720,7 @@ function oF(i, e, t, r, n, o) {
43714
43720
  [x, i.loading]
43715
43721
  ]);
43716
43722
  }
43717
- const aF = /* @__PURE__ */ xn($4, [["render", oF], ["__scopeId", "data-v-0e4573fe"]]), sF = {
43723
+ const aF = /* @__PURE__ */ xn($4, [["render", oF], ["__scopeId", "data-v-62fb1890"]]), sF = {
43718
43724
  name: "Scaffold",
43719
43725
  mixins: [aw],
43720
43726
  components: {
@@ -1,7 +1,7 @@
1
- import { C as i } from "./ContentMixin-Ccjd33IX.js";
1
+ import { C as i } from "./ContentMixin-CukPHyXB.js";
2
2
  import { SimulationVuer as t } from "@abi-software/simulationvuer";
3
3
  import { resolveComponent as e, openBlock as r, createBlock as a } from "vue";
4
- import { _ as m } from "./index-BGZgzrzo.js";
4
+ import { _ as m } from "./index-BFdnIlxA.js";
5
5
  const c = {
6
6
  name: "Simulation",
7
7
  mixins: [i],