@christianriedl/media 1.0.68 → 1.0.70
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@christianriedl/media",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.70",
|
|
4
4
|
"description": "RIC media interfaces",
|
|
5
5
|
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"author": "Christian Riedl",
|
|
19
19
|
"license": "ISC",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@christianriedl/utils": "^1.0.
|
|
21
|
+
"@christianriedl/utils": "^1.0.83",
|
|
22
22
|
"@christianriedl/rest": "^1.0.48",
|
|
23
23
|
"@christianriedl/epg": "^1.0.26"
|
|
24
24
|
},
|
|
@@ -95,10 +95,18 @@
|
|
|
95
95
|
const pictureQuality = mediaAppConfig.pictureQuality;
|
|
96
96
|
const quality = getQuality(pictureQuality);
|
|
97
97
|
const factor = getFactor(pictureQuality);
|
|
98
|
-
if (landscape.value)
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
98
|
+
if (landscape.value) {
|
|
99
|
+
let h = height.value * factor;
|
|
100
|
+
if (item.Height <= h)
|
|
101
|
+
h = 0;
|
|
102
|
+
return mediaService.getPhotoUrl(url.value, item.Url, `${0}x${h}x${item.Orientation}x${quality}`);
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
let w = width.value * factor;
|
|
106
|
+
if (item.Width <= w)
|
|
107
|
+
w = 0;
|
|
108
|
+
return mediaService.getPhotoUrl(url.value, item.Url, `${w}x${0}x${item.Orientation}x${quality}`);
|
|
109
|
+
}
|
|
102
110
|
}
|
|
103
111
|
function getHeight(item: IPictureFile) {
|
|
104
112
|
const pictureQuality = mediaAppConfig.pictureQuality;
|
|
@@ -144,8 +152,11 @@
|
|
|
144
152
|
}
|
|
145
153
|
else {
|
|
146
154
|
const msecDiff = new Date().getTime() - mouseDownTime;
|
|
147
|
-
if (msecDiff < 500)
|
|
148
|
-
|
|
155
|
+
if (msecDiff < 500) {
|
|
156
|
+
if (appState.device != EDevice.Windows && appState.device != EDevice.Mac) {
|
|
157
|
+
keyDialog.value = true;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
149
160
|
else
|
|
150
161
|
onKeyClick("KeyF");
|
|
151
162
|
mouseDownTime = 0;
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
-->
|
|
101
101
|
<template v-slot:append>
|
|
102
102
|
<v-list-item-avatar right>
|
|
103
|
-
<v-btn variant="text" color="grey lighten-1" icon="
|
|
103
|
+
<v-btn variant="text" color="grey lighten-1" icon="$info"></v-btn>
|
|
104
104
|
</v-list-item-avatar>
|
|
105
105
|
</template>
|
|
106
106
|
</v-list-item>
|