tsviewer 1.0.8 → 1.0.9
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/tsviewer.css +1 -1
- package/dist/tsviewer.es.js +13 -13
- package/dist/tsviewer.umd.js +2 -2
- package/package.json +1 -1
package/dist/tsviewer.es.js
CHANGED
|
@@ -14305,7 +14305,7 @@ const __unplugin_components_2 = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["rend
|
|
|
14305
14305
|
}
|
|
14306
14306
|
},
|
|
14307
14307
|
mounted: function() {
|
|
14308
|
-
useGetToken().then((e) => {
|
|
14308
|
+
this.useGetToken().then((e) => {
|
|
14309
14309
|
const t = `https://api.pennsieve.net/timeseries/${this.activeViewer.content.id}/layers?api_key=${e}`;
|
|
14310
14310
|
return useSendXhr(t).then((n) => {
|
|
14311
14311
|
this._getLayerResponse(n).then(() => {
|
|
@@ -14456,7 +14456,7 @@ const __unplugin_components_2 = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["rend
|
|
|
14456
14456
|
layerId: c.id,
|
|
14457
14457
|
limit: this.constants.LIMITANNFETCH
|
|
14458
14458
|
};
|
|
14459
|
-
useGetToken().then((f) => {
|
|
14459
|
+
this.useGetToken().then((f) => {
|
|
14460
14460
|
const v = `https://api.pennsieve.net/timeseries/${this.activeViewer.content.id}/layers/${c.id}/annotations?api_key=${f}`, g = Object.keys(d).map((y) => `&${y}=${d[y]}`).join(""), b = `${v}${g}`;
|
|
14461
14461
|
return fetch(b, {
|
|
14462
14462
|
method: "GET",
|
|
@@ -14612,7 +14612,7 @@ const __unplugin_components_2 = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["rend
|
|
|
14612
14612
|
return defaultTo({}, find(propEq("id", t), this.viewerAnnotations));
|
|
14613
14613
|
},
|
|
14614
14614
|
createAnnotationLayer: function(e) {
|
|
14615
|
-
useGetToken().then((t) => {
|
|
14615
|
+
this.useGetToken().then((t) => {
|
|
14616
14616
|
const n = `https://api.pennsieve.net/timeseries/${this.activeViewer.content.id}/layers?api_key=${t}`;
|
|
14617
14617
|
return useSendXhr(n, {
|
|
14618
14618
|
method: "POST",
|
|
@@ -14698,7 +14698,7 @@ const __unplugin_components_2 = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["rend
|
|
|
14698
14698
|
const p = pathOr({}, ["objects", "view", 1, "content"], f), v = propOr("", "fileType", p), g = new Image();
|
|
14699
14699
|
if (v === "PNG") {
|
|
14700
14700
|
const { id: b, packageId: y } = p, _ = "https://api.pennsieve.net";
|
|
14701
|
-
useGetToken().then((w) => {
|
|
14701
|
+
this.useGetToken().then((w) => {
|
|
14702
14702
|
g.src = `${_}/packages/${y}/files/${b}/presign/?api_key=${w}`, g.complete || g.addEventListener("load", () => this.render(), { once: !0 }), e.drawImage(g, u, d - i, 27, r);
|
|
14703
14703
|
}).catch(console.log);
|
|
14704
14704
|
} else
|
|
@@ -14799,7 +14799,7 @@ function _sfc_render$4(e, t, n, r, i, a) {
|
|
|
14799
14799
|
style: normalizeStyle(a.canvasStyle)
|
|
14800
14800
|
}, null, 12, _hoisted_1$4);
|
|
14801
14801
|
}
|
|
14802
|
-
const __unplugin_components_1$1 = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-
|
|
14802
|
+
const __unplugin_components_1$1 = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-9d26fb2e"]]);
|
|
14803
14803
|
var src = { exports: {} }, indexLight = { exports: {} }, indexMinimal = {}, minimal = {}, aspromise, hasRequiredAspromise;
|
|
14804
14804
|
function requireAspromise() {
|
|
14805
14805
|
if (hasRequiredAspromise) return aspromise;
|
|
@@ -19042,7 +19042,7 @@ const protobuf = /* @__PURE__ */ getDefaultExportFromCjs(protobufjsExports), _sf
|
|
|
19042
19042
|
// _________________
|
|
19043
19043
|
// WEBSOCKET METHODS
|
|
19044
19044
|
openWebsocket: function() {
|
|
19045
|
-
this._websocket && (this._websocket.readyState === 0 || this._websocket.readyState === 1) || useGetToken().then((e) => {
|
|
19045
|
+
this._websocket && (this._websocket.readyState === 0 || this._websocket.readyState === 1) || this.useGetToken().then((e) => {
|
|
19046
19046
|
const t = "wss://api.pennsieve.net/streaming/ts/query?session=" + e + "&package=" + this.activeViewer.content.id;
|
|
19047
19047
|
this._websocket = new WebSocket(t), this._websocket.onopen = this._onWebsocketOpen.bind(this), this._websocket.onclose = this._onWebsocketClose.bind(this), this._websocket.onmessage = this._onWebsocketMessage.bind(this);
|
|
19048
19048
|
}).catch(console.log);
|
|
@@ -19287,7 +19287,7 @@ function _sfc_render$3(e, t, n, r, i, a) {
|
|
|
19287
19287
|
}, null, 12, _hoisted_3$3)
|
|
19288
19288
|
]);
|
|
19289
19289
|
}
|
|
19290
|
-
const __unplugin_components_0$1 = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-
|
|
19290
|
+
const __unplugin_components_0$1 = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-6c706684"]]), _sfc_main$2 = {
|
|
19291
19291
|
name: "TSViewerCanvas",
|
|
19292
19292
|
mixins: [
|
|
19293
19293
|
Request,
|
|
@@ -19943,7 +19943,7 @@ const __unplugin_components_1 = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["rend
|
|
|
19943
19943
|
},
|
|
19944
19944
|
_requestSegmentSpan: function(e, t, n, r, i) {
|
|
19945
19945
|
const a = this.constants.MAXRECURSION;
|
|
19946
|
-
useGetToken().then((o) => {
|
|
19946
|
+
this.useGetToken().then((o) => {
|
|
19947
19947
|
const l = `https://api.pennsieve.net/streaming/ts/retrieve/segments?session=${o}&channel=${e}&start=${n}&end=${r}`;
|
|
19948
19948
|
return this.sendXhr(l).then((u) => {
|
|
19949
19949
|
let c = new Array(u.length * 2), m = 0;
|
|
@@ -19973,7 +19973,7 @@ const __unplugin_components_1 = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["rend
|
|
|
19973
19973
|
});
|
|
19974
19974
|
},
|
|
19975
19975
|
getAnnotations: function() {
|
|
19976
|
-
useGetToken().then((e) => {
|
|
19976
|
+
this.useGetToken().then((e) => {
|
|
19977
19977
|
const t = map((i) => i.id, this.viewerAnnotations);
|
|
19978
19978
|
this.ts_end;
|
|
19979
19979
|
let r = `https://api.pennsieve.net/timeseries/${this.activeViewer.content.id}/annotations/window` + `?api_key=${e}&aggregation=count&start=${this.ts_start}&end=${this.ts_end}&period=${this.period}&mergePeriods=true`;
|
|
@@ -20117,7 +20117,7 @@ function _sfc_render$1(e, t, n, r, i, a) {
|
|
|
20117
20117
|
])
|
|
20118
20118
|
]);
|
|
20119
20119
|
}
|
|
20120
|
-
const __unplugin_components_0 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
20120
|
+
const __unplugin_components_0 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-9c68e52f"]]), TsAnnotation = {
|
|
20121
20121
|
mixins: [
|
|
20122
20122
|
Request,
|
|
20123
20123
|
viewerStoreMixin,
|
|
@@ -20167,7 +20167,7 @@ const __unplugin_components_0 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["rend
|
|
|
20167
20167
|
start: e,
|
|
20168
20168
|
end: e + t
|
|
20169
20169
|
}, c = `https://api.pennsieve.net/timeseries/${this.activeViewer.content.nodeId}/layers/${a}/annotations`;
|
|
20170
|
-
useGetToken().then((m) => {
|
|
20170
|
+
this.useGetToken().then((m) => {
|
|
20171
20171
|
this.sendXhr(c, {
|
|
20172
20172
|
method: "POST",
|
|
20173
20173
|
header: {
|
|
@@ -20218,7 +20218,7 @@ const __unplugin_components_0 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["rend
|
|
|
20218
20218
|
start: e,
|
|
20219
20219
|
end: e + t
|
|
20220
20220
|
}, o = this;
|
|
20221
|
-
useGetToken().then((l) => {
|
|
20221
|
+
this.useGetToken().then((l) => {
|
|
20222
20222
|
elf.sendXhr(i, {
|
|
20223
20223
|
method: "PUT",
|
|
20224
20224
|
header: {
|
|
@@ -20234,7 +20234,7 @@ const __unplugin_components_0 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["rend
|
|
|
20234
20234
|
let t = "";
|
|
20235
20235
|
e.layer ? t = e.layer.id : t = e.layer_id;
|
|
20236
20236
|
const r = `https://api.pennsieve.net/timeseries/${this.activeViewer.content.nodeId}/layers/${t}/annotations/${e.id}`, i = this;
|
|
20237
|
-
useGetToken().then((a) => {
|
|
20237
|
+
this.useGetToken().then((a) => {
|
|
20238
20238
|
i.sendXhr(r, {
|
|
20239
20239
|
method: "DELETE",
|
|
20240
20240
|
header: {
|