@twab/visualization 0.2.3 → 0.9.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.
- package/dist/visualization.common.js +52 -35
- package/dist/visualization.common.js.map +1 -1
- package/dist/visualization.css +1 -1
- package/dist/visualization.umd.js +52 -35
- package/dist/visualization.umd.js.map +1 -1
- package/dist/visualization.umd.min.js +2 -2
- package/dist/visualization.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -10413,7 +10413,7 @@ if (typeof window !== 'undefined') {
|
|
|
10413
10413
|
// Indicate to webpack that this file can be concatenated
|
|
10414
10414
|
/* harmony default export */ var setPublicPath = (null);
|
|
10415
10415
|
|
|
10416
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/Visualization.vue?vue&type=template&id=
|
|
10416
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/Visualization.vue?vue&type=template&id=6b83e43c&scoped=true&
|
|
10417
10417
|
var render = function render() {
|
|
10418
10418
|
var _vm = this,
|
|
10419
10419
|
_c = _vm._self._c;
|
|
@@ -10697,8 +10697,8 @@ var render = function render() {
|
|
|
10697
10697
|
};
|
|
10698
10698
|
var staticRenderFns = [];
|
|
10699
10699
|
|
|
10700
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/Frame.vue?vue&type=template&id=
|
|
10701
|
-
var
|
|
10700
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/Frame.vue?vue&type=template&id=5c1173af&scoped=true&
|
|
10701
|
+
var Framevue_type_template_id_5c1173af_scoped_true_render = function render() {
|
|
10702
10702
|
var _vm = this,
|
|
10703
10703
|
_c = _vm._self._c;
|
|
10704
10704
|
return _c('div', {
|
|
@@ -10710,7 +10710,7 @@ var Framevue_type_template_id_efc1ebfe_scoped_true_render = function render() {
|
|
|
10710
10710
|
active: _vm.active
|
|
10711
10711
|
},
|
|
10712
10712
|
style: {
|
|
10713
|
-
|
|
10713
|
+
maxHeight: `${_vm.maxHeight}px`,
|
|
10714
10714
|
width: '100%',
|
|
10715
10715
|
position: 'relative'
|
|
10716
10716
|
}
|
|
@@ -10765,8 +10765,8 @@ var Framevue_type_template_id_efc1ebfe_scoped_true_render = function render() {
|
|
|
10765
10765
|
'frame-content': _vm.frame.title === -1 || _vm.videoStatus !== _vm.Status.stopped
|
|
10766
10766
|
},
|
|
10767
10767
|
style: {
|
|
10768
|
-
|
|
10769
|
-
|
|
10768
|
+
maxHeight: `${_vm.height}px`,
|
|
10769
|
+
maxWidth: `${_vm.width}px`,
|
|
10770
10770
|
color: 'white'
|
|
10771
10771
|
},
|
|
10772
10772
|
on: {
|
|
@@ -10776,14 +10776,22 @@ var Framevue_type_template_id_efc1ebfe_scoped_true_render = function render() {
|
|
|
10776
10776
|
class: {
|
|
10777
10777
|
'dummy-frame': _vm.frame.title === -1
|
|
10778
10778
|
},
|
|
10779
|
+
staticStyle: {
|
|
10780
|
+
"width": "100%",
|
|
10781
|
+
"height": "100%"
|
|
10782
|
+
},
|
|
10779
10783
|
domProps: {
|
|
10780
10784
|
"innerHTML": _vm._s(_vm.frame.image)
|
|
10781
10785
|
}
|
|
10782
10786
|
}) : _vm._e(), _vm.videoStatus !== _vm.Status.stopped && !_vm.videoIsLoading ? _c('video', {
|
|
10783
10787
|
ref: "videoPlayer",
|
|
10788
|
+
staticStyle: {
|
|
10789
|
+
"width": "100%",
|
|
10790
|
+
"aspect-ratio": "11/9"
|
|
10791
|
+
},
|
|
10784
10792
|
attrs: {
|
|
10785
|
-
"
|
|
10786
|
-
"
|
|
10793
|
+
"maxHeight": `${_vm.height}px`,
|
|
10794
|
+
"maxWidth": `${_vm.width}px`,
|
|
10787
10795
|
"src": _vm.videoUrlString,
|
|
10788
10796
|
"preload": "none",
|
|
10789
10797
|
"autoplay": ""
|
|
@@ -10810,7 +10818,7 @@ var Framevue_type_template_id_efc1ebfe_scoped_true_render = function render() {
|
|
|
10810
10818
|
}
|
|
10811
10819
|
})], 1);
|
|
10812
10820
|
};
|
|
10813
|
-
var
|
|
10821
|
+
var Framevue_type_template_id_5c1173af_scoped_true_staticRenderFns = [];
|
|
10814
10822
|
|
|
10815
10823
|
// EXTERNAL MODULE: ./node_modules/vue-loading-twa/lib/vue-loading-twa.min.js
|
|
10816
10824
|
var vue_loading_twa_min = __webpack_require__(3093);
|
|
@@ -11029,10 +11037,10 @@ const Status = Object.freeze({
|
|
|
11029
11037
|
});
|
|
11030
11038
|
;// CONCATENATED MODULE: ./src/components/Frame.vue?vue&type=script&lang=js&
|
|
11031
11039
|
/* harmony default export */ var components_Framevue_type_script_lang_js_ = (Framevue_type_script_lang_js_);
|
|
11032
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/Frame.vue?vue&type=style&index=0&id=
|
|
11040
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/Frame.vue?vue&type=style&index=0&id=5c1173af&prod&scoped=true&lang=css&
|
|
11033
11041
|
// extracted by mini-css-extract-plugin
|
|
11034
11042
|
|
|
11035
|
-
;// CONCATENATED MODULE: ./src/components/Frame.vue?vue&type=style&index=0&id=
|
|
11043
|
+
;// CONCATENATED MODULE: ./src/components/Frame.vue?vue&type=style&index=0&id=5c1173af&prod&scoped=true&lang=css&
|
|
11036
11044
|
|
|
11037
11045
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
11038
11046
|
/* globals __VUE_SSR_CONTEXT__ */
|
|
@@ -11143,11 +11151,11 @@ function normalizeComponent(
|
|
|
11143
11151
|
|
|
11144
11152
|
var component = normalizeComponent(
|
|
11145
11153
|
components_Framevue_type_script_lang_js_,
|
|
11146
|
-
|
|
11147
|
-
|
|
11154
|
+
Framevue_type_template_id_5c1173af_scoped_true_render,
|
|
11155
|
+
Framevue_type_template_id_5c1173af_scoped_true_staticRenderFns,
|
|
11148
11156
|
false,
|
|
11149
11157
|
null,
|
|
11150
|
-
"
|
|
11158
|
+
"5c1173af",
|
|
11151
11159
|
null
|
|
11152
11160
|
|
|
11153
11161
|
)
|
|
@@ -14428,9 +14436,9 @@ FramesManager.prototype.getSmallBlock = async function (time, channel, split) {
|
|
|
14428
14436
|
delete this.requests[requestId];
|
|
14429
14437
|
return true;
|
|
14430
14438
|
}
|
|
14431
|
-
|
|
14439
|
+
console.error(`Frames Manager (GetSmallBlock): Request blocked by another equal request occurring`);
|
|
14440
|
+
return false;
|
|
14432
14441
|
} catch (err) {
|
|
14433
|
-
console.log(err);
|
|
14434
14442
|
console.error(`Frames Manager (GetSmallBlock): ${err}`);
|
|
14435
14443
|
delete this.requests[requestId];
|
|
14436
14444
|
return false;
|
|
@@ -14465,9 +14473,10 @@ FramesManager.prototype.getBlock = async function (time, channel, split, directi
|
|
|
14465
14473
|
delete this.requests[requestId];
|
|
14466
14474
|
return true;
|
|
14467
14475
|
}
|
|
14468
|
-
|
|
14476
|
+
console.error(`Frames Manager (GetBlock ${direction}): Request blocked by another equal request occurring`);
|
|
14477
|
+
return false;
|
|
14469
14478
|
} catch (err) {
|
|
14470
|
-
console.error(`Frames Manager (GetBlock): ${err}`);
|
|
14479
|
+
console.error(`Frames Manager (GetBlock ${direction}): ${err}`);
|
|
14471
14480
|
delete this.requests[requestId];
|
|
14472
14481
|
return false;
|
|
14473
14482
|
}
|
|
@@ -14487,7 +14496,6 @@ FramesManager.prototype.checkFramesBackward = function () {
|
|
|
14487
14496
|
return this.currentPosition < Enum.MinBlockSizesBack[this.currentStep];
|
|
14488
14497
|
};
|
|
14489
14498
|
FramesManager.prototype.orderFramesBlock = function (images) {
|
|
14490
|
-
images = images.filter(image => image.time >= this.firstFrameTime);
|
|
14491
14499
|
if (this.buffer.length > 0) {
|
|
14492
14500
|
const bufferFistTime = this.buffer[0].time;
|
|
14493
14501
|
const bufferLastTime = this.buffer[this.buffer.length - 1].time;
|
|
@@ -14634,17 +14642,16 @@ FramesInterface.prototype.loadNextFrames = async function () {
|
|
|
14634
14642
|
};
|
|
14635
14643
|
FramesInterface.prototype.loadPrevFrames = async function () {
|
|
14636
14644
|
this.framesManager.previous();
|
|
14645
|
+
console.log(this.framesManager.currentTime, this.firstFrameTime);
|
|
14646
|
+
if (this.framesManager.currentTime < this.firstFrameTime) {
|
|
14647
|
+
await this.framesManager.goTo(this.firstFrameTime);
|
|
14648
|
+
await this.loadFrames();
|
|
14649
|
+
return;
|
|
14650
|
+
}
|
|
14637
14651
|
let prev = (await this.framesManager.getPrevImages()) || [];
|
|
14638
14652
|
prev = await this.constructImagesComponent(prev);
|
|
14639
|
-
|
|
14640
|
-
|
|
14641
|
-
let current = (await this.framesManager.getCurrentImages()) || [];
|
|
14642
|
-
this.frames.next = next;
|
|
14643
|
-
this.frames.current = current;
|
|
14644
|
-
} else {
|
|
14645
|
-
this.frames.next = this.frames.current;
|
|
14646
|
-
this.frames.current = this.frames.prev;
|
|
14647
|
-
}
|
|
14653
|
+
this.frames.next = this.frames.current;
|
|
14654
|
+
this.frames.current = this.frames.prev;
|
|
14648
14655
|
this.frames.prev = prev;
|
|
14649
14656
|
};
|
|
14650
14657
|
FramesInterface.prototype.constructImagesComponent = async function (array) {
|
|
@@ -14652,7 +14659,7 @@ FramesInterface.prototype.constructImagesComponent = async function (array) {
|
|
|
14652
14659
|
for (let frame of array) {
|
|
14653
14660
|
const image = document.createElement('img');
|
|
14654
14661
|
image.src = frame.title === -1 ? __webpack_require__(9583) : `${sessionStorage.getItem('base_url')}frames/${frame.title}${server == 'alternative' ? '?server=alt' : ''}`;
|
|
14655
|
-
image.style.
|
|
14662
|
+
image.style.maxWidth = frame.title === -1 ? '80%' : '100%';
|
|
14656
14663
|
image.style.contain = 'true';
|
|
14657
14664
|
Semaphor.push(new Promise(resolve => {
|
|
14658
14665
|
image.addEventListener('load', () => {
|
|
@@ -15767,6 +15774,9 @@ const Positions = Object.freeze({
|
|
|
15767
15774
|
framesFormat: {
|
|
15768
15775
|
type: [Number, String],
|
|
15769
15776
|
default: 6
|
|
15777
|
+
},
|
|
15778
|
+
maxSize: {
|
|
15779
|
+
type: Number
|
|
15770
15780
|
}
|
|
15771
15781
|
},
|
|
15772
15782
|
components: {
|
|
@@ -15860,7 +15870,9 @@ const Positions = Object.freeze({
|
|
|
15860
15870
|
this.framesPerRow = storedOnDb.framesPerRow;
|
|
15861
15871
|
this.numberOfRows = storedOnDb.numberOfRows;
|
|
15862
15872
|
await this.createFramesInterface();
|
|
15863
|
-
this.
|
|
15873
|
+
if (this.maxSize) {
|
|
15874
|
+
this.resize(this.maxSize, true);
|
|
15875
|
+
}
|
|
15864
15876
|
},
|
|
15865
15877
|
methods: {
|
|
15866
15878
|
framesClicked(e) {
|
|
@@ -15929,14 +15941,19 @@ const Positions = Object.freeze({
|
|
|
15929
15941
|
changePlayPause(status) {
|
|
15930
15942
|
this.paused = !status;
|
|
15931
15943
|
},
|
|
15932
|
-
|
|
15933
|
-
|
|
15944
|
+
resize() {
|
|
15945
|
+
let height = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.lastHeight;
|
|
15946
|
+
let dynamic = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
15947
|
+
if (this.numberOfRows === 2 && dynamic) {
|
|
15948
|
+
height *= 1.5;
|
|
15949
|
+
}
|
|
15934
15950
|
this.lastHeight = height;
|
|
15935
15951
|
if (this.$refs.frames) {
|
|
15936
15952
|
for (let frame of this.$refs.frames) {
|
|
15937
15953
|
frame.resize(height);
|
|
15938
15954
|
}
|
|
15939
15955
|
}
|
|
15956
|
+
this.$emit('resized');
|
|
15940
15957
|
},
|
|
15941
15958
|
async goToFirstFrame() {
|
|
15942
15959
|
let frames = this.$refs.frames;
|
|
@@ -16427,10 +16444,10 @@ const Positions = Object.freeze({
|
|
|
16427
16444
|
});
|
|
16428
16445
|
;// CONCATENATED MODULE: ./src/Visualization.vue?vue&type=script&lang=js&
|
|
16429
16446
|
/* harmony default export */ var src_Visualizationvue_type_script_lang_js_ = (Visualizationvue_type_script_lang_js_);
|
|
16430
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/Visualization.vue?vue&type=style&index=0&id=
|
|
16447
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/Visualization.vue?vue&type=style&index=0&id=6b83e43c&prod&scoped=true&lang=css&
|
|
16431
16448
|
// extracted by mini-css-extract-plugin
|
|
16432
16449
|
|
|
16433
|
-
;// CONCATENATED MODULE: ./src/Visualization.vue?vue&type=style&index=0&id=
|
|
16450
|
+
;// CONCATENATED MODULE: ./src/Visualization.vue?vue&type=style&index=0&id=6b83e43c&prod&scoped=true&lang=css&
|
|
16434
16451
|
|
|
16435
16452
|
;// CONCATENATED MODULE: ./src/Visualization.vue
|
|
16436
16453
|
|
|
@@ -16447,7 +16464,7 @@ var Visualization_component = normalizeComponent(
|
|
|
16447
16464
|
staticRenderFns,
|
|
16448
16465
|
false,
|
|
16449
16466
|
null,
|
|
16450
|
-
"
|
|
16467
|
+
"6b83e43c",
|
|
16451
16468
|
null
|
|
16452
16469
|
|
|
16453
16470
|
)
|