@figurosity/consumer-pose-generator 0.1.4 → 0.1.6
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/consumer-pose-generator.js +132 -132
- package/package.json +3 -3
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { ref as j, computed as y, watch as Ne, onBeforeMount as Co, defineComponent as T, h, openBlock as O, createBlock as _t, unref as A, createElementBlock as $, Fragment as Xe, renderList as Ze, createVNode as B, normalizeClass as mt, createElementVNode as De, toDisplayString as _o, onMounted as bt, onBeforeUnmount as Jt, Transition as qt, withDirectives as vt, vShow as yt, normalizeStyle as on, TransitionGroup as bo, withCtx as jt, inject as Io } from "vue";
|
|
3
3
|
import { useRoute as Po } from "vue-router";
|
|
4
4
|
import { defineStore as ie, getActivePinia as xo, storeToRefs as S } from "pinia";
|
|
5
|
-
import { getConfig as es, useDynamicImages as wo, DEFAULT as Me, SKINS as Gt, DURATION as Yt, NOTHING as
|
|
6
|
-
import
|
|
7
|
-
import { useQuasar as It, QSlider as
|
|
8
|
-
import { CExpansion as me, CBaseButton as Qe, CBaseButtons as
|
|
9
|
-
import { historyCircle as
|
|
10
|
-
function
|
|
5
|
+
import { getConfig as es, DEFAULT_SATURATE as je, DEFAULT_CONTRAST as Ge, DEFAULT_BRIGHTNESS as Ye, useDynamicImages as wo, DEFAULT_VERTICAL as xs, DEFAULT_HORIZONTAL as ws, DEFAULT_SPACING as Ds, DEFAULT_VISIBLE as Do, DEFAULT as Me, SKINS as Gt, DURATION as Yt, FAILED as Wt, QUEUED as Mo, ABORTED as rn, LOADED as an, LOADING as Xt, UNLOADED as Et, NOTHING as Ao, EFFECTS as St, CAMERA_ANGLE as Ms, LIGHT_DIRECTION as As, GENDER as Tt, GRID as Ns, POSE_DIRECTION as Os, ADJUSTMENTS as ks, slugify as No, useEventBus as ln, useFilterStyle as Oo, FlipAnimation as ko, useWakeLock as Lo } from "@figurosity/toolbox";
|
|
6
|
+
import cn from "lodash-es/debounce";
|
|
7
|
+
import { useQuasar as It, QSlider as Vo, QSeparator as J, QCard as Uo, QItem as Ro, QItemSection as Ls, QIcon as Bo, QItemLabel as Vs, QCardSection as $o, QBtn as Oe, QPageSticky as zo, QCircularProgress as Ho } from "quasar";
|
|
8
|
+
import { CExpansion as me, CBaseButton as Qe, CBaseButtons as un, CNewGridTool as Fo, CBasicTool as ts, CAnimatedNumber as qo, CGridOverlay as jo, CFloatingModal as Go, CDraggableDrawer as dn, CDraggableDrawers as Yo } from "@figurosity/consumer-controls";
|
|
9
|
+
import { historyCircle as hn, contrast as pn, brightness as fn, shirt as Wo, cameraAngle as Xo, bulbLight as Zo, venus as Qo, cameraOrientation as Ko, grid as Jo, refresh as er, pause as tr, play as sr } from "@figurosity/icons";
|
|
10
|
+
function nr(e, t) {
|
|
11
11
|
for (var s = 0; s < t.length; s++) {
|
|
12
12
|
const n = t[s];
|
|
13
13
|
if (typeof n != "string" && !Array.isArray(n)) {
|
|
@@ -23,13 +23,13 @@ function tr(e, t) {
|
|
|
23
23
|
}
|
|
24
24
|
return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
|
|
25
25
|
}
|
|
26
|
-
const
|
|
26
|
+
const or = {
|
|
27
27
|
models: {},
|
|
28
28
|
collection: [],
|
|
29
29
|
slugs: {},
|
|
30
30
|
selected: [],
|
|
31
31
|
playSelected: 1
|
|
32
|
-
},
|
|
32
|
+
}, gn = {
|
|
33
33
|
random(e) {
|
|
34
34
|
var s;
|
|
35
35
|
if (!e.selected) return 1;
|
|
@@ -40,7 +40,7 @@ const sr = {
|
|
|
40
40
|
return e.collection.length > 0 ? e.collection.map((t) => e.models[t]) : [];
|
|
41
41
|
},
|
|
42
42
|
propertyById: (e) => (t, s, n = null) => e.models[t] && s in e.models[t] ? e.models[t][s] : n
|
|
43
|
-
},
|
|
43
|
+
}, mn = {
|
|
44
44
|
getRandom(e) {
|
|
45
45
|
if (!this.selected) return;
|
|
46
46
|
const t = new Set(e), s = [...new Set(this.selected.filter((n) => t.has(n)))];
|
|
@@ -102,15 +102,15 @@ const sr = {
|
|
|
102
102
|
actions: n = {}
|
|
103
103
|
}) => ie(e, {
|
|
104
104
|
state: () => ({
|
|
105
|
-
...
|
|
105
|
+
...or,
|
|
106
106
|
...t
|
|
107
107
|
}),
|
|
108
108
|
getters: {
|
|
109
|
-
...
|
|
109
|
+
...gn,
|
|
110
110
|
...s
|
|
111
111
|
},
|
|
112
112
|
actions: {
|
|
113
|
-
...
|
|
113
|
+
...mn,
|
|
114
114
|
...n
|
|
115
115
|
}
|
|
116
116
|
});
|
|
@@ -120,7 +120,7 @@ function Le(e) {
|
|
|
120
120
|
type: "conjunction"
|
|
121
121
|
}).format(e) : e.length === 1 ? e[0] : e.length === 2 ? `${e[0]} and ${e[1]}` : `${e.slice(0, -1).join(", ")} and ${e[e.length - 1]}` : "";
|
|
122
122
|
}
|
|
123
|
-
const
|
|
123
|
+
const rr = {}, ir = {
|
|
124
124
|
src(e) {
|
|
125
125
|
return (t) => {
|
|
126
126
|
const s = this.propertyById(t, "slug");
|
|
@@ -132,27 +132,27 @@ const nr = {}, or = {
|
|
|
132
132
|
caption(e) {
|
|
133
133
|
return Le(e.selected.map((t) => e.models[t].name));
|
|
134
134
|
}
|
|
135
|
-
},
|
|
135
|
+
}, ar = {}, pe = ke({
|
|
136
136
|
storeId: "pg-cameras",
|
|
137
|
-
state:
|
|
138
|
-
getters:
|
|
139
|
-
actions:
|
|
140
|
-
}),
|
|
137
|
+
state: rr,
|
|
138
|
+
getters: ir,
|
|
139
|
+
actions: ar
|
|
140
|
+
}), ge = ie("pg-adjustments", {
|
|
141
141
|
state: () => ({
|
|
142
|
-
brightness:
|
|
142
|
+
brightness: Ye,
|
|
143
143
|
contrast: Ge,
|
|
144
|
-
saturate:
|
|
144
|
+
saturate: je
|
|
145
145
|
}),
|
|
146
146
|
getters: {
|
|
147
|
-
brightnessChanged: (e) => e.brightness !==
|
|
147
|
+
brightnessChanged: (e) => e.brightness !== Ye,
|
|
148
148
|
contrastChanged: (e) => e.contrast !== Ge,
|
|
149
|
-
saturateChanged: (e) => e.saturate !==
|
|
149
|
+
saturateChanged: (e) => e.saturate !== je,
|
|
150
150
|
changed(e) {
|
|
151
151
|
return this.brightnessChanged || this.contrastChanged || this.saturateChanged;
|
|
152
152
|
},
|
|
153
153
|
caption(e) {
|
|
154
154
|
const t = [];
|
|
155
|
-
return e.brightness !==
|
|
155
|
+
return e.brightness !== Ye && t.push("Brightness"), e.contrast !== Ge && t.push("Contrast"), e.saturate !== je && t.push("Saturation"), t.length === 0 && t.push("None"), Le(t);
|
|
156
156
|
}
|
|
157
157
|
},
|
|
158
158
|
actions: {
|
|
@@ -160,9 +160,9 @@ const nr = {}, or = {
|
|
|
160
160
|
if (!e)
|
|
161
161
|
throw new Error(this.$id + " result must not be null");
|
|
162
162
|
this.$patch({
|
|
163
|
-
brightness: e.brightness ||
|
|
163
|
+
brightness: e.brightness || Ye,
|
|
164
164
|
contrast: e.contrast || Ge,
|
|
165
|
-
saturate: e.saturate ||
|
|
165
|
+
saturate: e.saturate || je
|
|
166
166
|
});
|
|
167
167
|
},
|
|
168
168
|
setBrightness(e) {
|
|
@@ -175,20 +175,20 @@ const nr = {}, or = {
|
|
|
175
175
|
this.$patch({ saturate: e });
|
|
176
176
|
},
|
|
177
177
|
resetBrightness() {
|
|
178
|
-
this.$patch({ brightness:
|
|
178
|
+
this.$patch({ brightness: Ye });
|
|
179
179
|
},
|
|
180
180
|
resetContrast() {
|
|
181
181
|
this.$patch({ contrast: Ge });
|
|
182
182
|
},
|
|
183
183
|
resetSaturate() {
|
|
184
|
-
this.$patch({ saturate:
|
|
184
|
+
this.$patch({ saturate: je });
|
|
185
185
|
},
|
|
186
186
|
customReset() {
|
|
187
187
|
this.$reset();
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
}), { setSelected:
|
|
191
|
-
function
|
|
190
|
+
}), { setSelected: lr } = mn;
|
|
191
|
+
function Us(e, t = !0) {
|
|
192
192
|
if (!e) return t ? "0s" : "0 seconds";
|
|
193
193
|
const s = e === 1 ? "second" : "seconds";
|
|
194
194
|
if (e < 60)
|
|
@@ -218,16 +218,16 @@ const Z = ie("pg-durations", {
|
|
|
218
218
|
return e.collection.findIndex((s) => String(s) === String(t));
|
|
219
219
|
},
|
|
220
220
|
title(e) {
|
|
221
|
-
return
|
|
221
|
+
return Us(e.duration, !1);
|
|
222
222
|
},
|
|
223
223
|
values(e) {
|
|
224
224
|
const t = e.models;
|
|
225
225
|
return e.collection.map((n, r) => ({
|
|
226
226
|
value: r,
|
|
227
|
-
label:
|
|
227
|
+
label: Us(t[n].seconds)
|
|
228
228
|
})) || [];
|
|
229
229
|
},
|
|
230
|
-
...
|
|
230
|
+
...gn
|
|
231
231
|
},
|
|
232
232
|
actions: {
|
|
233
233
|
customReset() {
|
|
@@ -241,7 +241,7 @@ const Z = ie("pg-durations", {
|
|
|
241
241
|
s.selected = t.id;
|
|
242
242
|
});
|
|
243
243
|
},
|
|
244
|
-
setSelected:
|
|
244
|
+
setSelected: lr,
|
|
245
245
|
setState(e) {
|
|
246
246
|
if (!e)
|
|
247
247
|
throw new Error(this.$id + " entities must not be null");
|
|
@@ -260,10 +260,10 @@ function Ke() {
|
|
|
260
260
|
const { freeServer: e, paidServer: t } = es();
|
|
261
261
|
return wo({ freeServer: e, paidServer: t });
|
|
262
262
|
}
|
|
263
|
-
const
|
|
263
|
+
const cr = {
|
|
264
264
|
uuid: void 0,
|
|
265
265
|
playSelected: 1
|
|
266
|
-
},
|
|
266
|
+
}, ur = {
|
|
267
267
|
src(e) {
|
|
268
268
|
return (t) => {
|
|
269
269
|
const { getThumbnail: s } = Ke();
|
|
@@ -277,7 +277,7 @@ const ar = {
|
|
|
277
277
|
var t, s;
|
|
278
278
|
return ((s = (t = e.models) == null ? void 0 : t[e.playSelected]) == null ? void 0 : s.name) || "Normal";
|
|
279
279
|
}
|
|
280
|
-
},
|
|
280
|
+
}, dr = {
|
|
281
281
|
getSrc(e, t) {
|
|
282
282
|
const { getThumbnail: s } = Ke();
|
|
283
283
|
return t = t || this.uuid, s({ uuid: t, image: e });
|
|
@@ -308,13 +308,13 @@ const ar = {
|
|
|
308
308
|
}
|
|
309
309
|
}, V = ke({
|
|
310
310
|
storeId: "pg-skins",
|
|
311
|
-
state:
|
|
312
|
-
getters:
|
|
313
|
-
actions:
|
|
314
|
-
}),
|
|
311
|
+
state: cr,
|
|
312
|
+
getters: ur,
|
|
313
|
+
actions: dr
|
|
314
|
+
}), hr = {
|
|
315
315
|
selected: 1,
|
|
316
316
|
playSelected: 1
|
|
317
|
-
},
|
|
317
|
+
}, pr = {
|
|
318
318
|
src(e) {
|
|
319
319
|
return (t = "none") => {
|
|
320
320
|
const { getThumbnail: s } = Ke(), n = t === "negative" ? "000000" : "ffffff", r = V();
|
|
@@ -355,7 +355,7 @@ const ar = {
|
|
|
355
355
|
return s.name;
|
|
356
356
|
};
|
|
357
357
|
}
|
|
358
|
-
},
|
|
358
|
+
}, fr = {
|
|
359
359
|
setSelected(e, t = !1) {
|
|
360
360
|
if (t) {
|
|
361
361
|
this.$patch((s) => {
|
|
@@ -377,24 +377,24 @@ const ar = {
|
|
|
377
377
|
}
|
|
378
378
|
}, R = ke({
|
|
379
379
|
storeId: "pg-effects",
|
|
380
|
-
state:
|
|
381
|
-
getters:
|
|
382
|
-
actions:
|
|
383
|
-
}),
|
|
380
|
+
state: hr,
|
|
381
|
+
getters: pr,
|
|
382
|
+
actions: fr
|
|
383
|
+
}), gr = {}, mr = {
|
|
384
384
|
caption(e) {
|
|
385
385
|
return Le(e.selected.map((t) => e.models[t].name));
|
|
386
386
|
}
|
|
387
|
-
},
|
|
387
|
+
}, vr = {}, re = ke({
|
|
388
388
|
storeId: "pg-genders",
|
|
389
|
-
state:
|
|
390
|
-
getters:
|
|
391
|
-
actions:
|
|
392
|
-
}),
|
|
389
|
+
state: gr,
|
|
390
|
+
getters: mr,
|
|
391
|
+
actions: vr
|
|
392
|
+
}), Ie = ie("pg-grid", {
|
|
393
393
|
state: () => ({
|
|
394
|
-
visible:
|
|
395
|
-
spacing:
|
|
396
|
-
horizontal:
|
|
397
|
-
vertical:
|
|
394
|
+
visible: Do,
|
|
395
|
+
spacing: Ds,
|
|
396
|
+
horizontal: ws,
|
|
397
|
+
vertical: xs
|
|
398
398
|
}),
|
|
399
399
|
getters: {
|
|
400
400
|
changed: (e) => e.visible === !0,
|
|
@@ -408,9 +408,9 @@ const ar = {
|
|
|
408
408
|
throw new Error(this.$id + " result must not be null");
|
|
409
409
|
this.$patch({
|
|
410
410
|
visible: e.visible === 1,
|
|
411
|
-
spacing: e.spacing ||
|
|
412
|
-
horizontal: e.horizontal ||
|
|
413
|
-
vertical: e.vertical ||
|
|
411
|
+
spacing: e.spacing || Ds,
|
|
412
|
+
horizontal: e.horizontal || ws,
|
|
413
|
+
vertical: e.vertical || xs
|
|
414
414
|
});
|
|
415
415
|
},
|
|
416
416
|
customReset() {
|
|
@@ -442,7 +442,7 @@ const ar = {
|
|
|
442
442
|
});
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
|
-
}),
|
|
445
|
+
}), yr = {}, Er = {
|
|
446
446
|
src(e) {
|
|
447
447
|
return (t) => {
|
|
448
448
|
const s = this.propertyById(t, "slug");
|
|
@@ -454,21 +454,21 @@ const ar = {
|
|
|
454
454
|
caption(e) {
|
|
455
455
|
return Le(e.selected.map((t) => e.models[t].name));
|
|
456
456
|
}
|
|
457
|
-
},
|
|
457
|
+
}, Sr = {}, ee = ke({
|
|
458
458
|
storeId: "pg-lights",
|
|
459
|
-
state:
|
|
460
|
-
getters:
|
|
461
|
-
actions:
|
|
459
|
+
state: yr,
|
|
460
|
+
getters: Er,
|
|
461
|
+
actions: Sr
|
|
462
462
|
});
|
|
463
|
-
function
|
|
463
|
+
function Tr(e) {
|
|
464
464
|
return function() {
|
|
465
465
|
e = e + 1831565813 >>> 0;
|
|
466
466
|
let t = Math.imul(e ^ e >>> 15, e | 1);
|
|
467
467
|
return t ^= t + Math.imul(t ^ t >>> 7, t | 61), ((t ^ t >>> 14) >>> 0) / 4294967296;
|
|
468
468
|
};
|
|
469
469
|
}
|
|
470
|
-
function
|
|
471
|
-
const s = e.slice(), n =
|
|
470
|
+
function Cr(e, t) {
|
|
471
|
+
const s = e.slice(), n = Tr(t ?? Date.now() & 4294967295);
|
|
472
472
|
for (let r = s.length - 1; r > 0; r--) {
|
|
473
473
|
const a = Math.floor(n() * (r + 1));
|
|
474
474
|
[s[r], s[a]] = [s[a], s[r]];
|
|
@@ -531,7 +531,7 @@ const Pe = ie("pg-poses", {
|
|
|
531
531
|
randomTake(e, t = {}) {
|
|
532
532
|
var a;
|
|
533
533
|
const n = ((a = this.candidates) == null ? void 0 : a.call(this, t)).filter((c) => !this.seen.has(c));
|
|
534
|
-
return n.length ?
|
|
534
|
+
return n.length ? Cr(n, this.seed).slice(0, e) : [];
|
|
535
535
|
},
|
|
536
536
|
async addToSeen(e) {
|
|
537
537
|
this.seen.add(parseInt(e)), await this.ensureUnseen({ minUnseen: 25 });
|
|
@@ -564,11 +564,11 @@ const Pe = ie("pg-poses", {
|
|
|
564
564
|
})();
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
}),
|
|
567
|
+
}), _r = {}, br = {
|
|
568
568
|
caption(e) {
|
|
569
569
|
return Le(e.selected.map((t) => e.models[t].name));
|
|
570
570
|
}
|
|
571
|
-
},
|
|
571
|
+
}, Ir = {
|
|
572
572
|
getRandom(e) {
|
|
573
573
|
const s = (c) => (c % 36 + 36) % 36, n = {
|
|
574
574
|
1: [[-4, 4]],
|
|
@@ -594,9 +594,9 @@ const Pe = ie("pg-poses", {
|
|
|
594
594
|
}
|
|
595
595
|
}, fe = ke({
|
|
596
596
|
storeId: "pg-positions",
|
|
597
|
-
state:
|
|
598
|
-
getters:
|
|
599
|
-
actions:
|
|
597
|
+
state: _r,
|
|
598
|
+
getters: br,
|
|
599
|
+
actions: Ir
|
|
600
600
|
}), Rs = {
|
|
601
601
|
entities: {
|
|
602
602
|
cameras: {
|
|
@@ -884,7 +884,7 @@ const Pe = ie("pg-poses", {
|
|
|
884
884
|
}).catch((t) => {
|
|
885
885
|
});
|
|
886
886
|
},
|
|
887
|
-
setSettings:
|
|
887
|
+
setSettings: cn(
|
|
888
888
|
function() {
|
|
889
889
|
console.log("setSettings"), this.internalSettings();
|
|
890
890
|
},
|
|
@@ -1058,7 +1058,7 @@ const Pt = ie("pg-count", {
|
|
|
1058
1058
|
typeof e == "number" && (this.ttlMs = e), typeof t == "number" && (this.maxEntries = t);
|
|
1059
1059
|
}
|
|
1060
1060
|
}
|
|
1061
|
-
}),
|
|
1061
|
+
}), Pr = {
|
|
1062
1062
|
/**
|
|
1063
1063
|
* Load the image and update the status of the
|
|
1064
1064
|
* @param context
|
|
@@ -1069,14 +1069,14 @@ const Pt = ie("pg-count", {
|
|
|
1069
1069
|
loadImage({ url: e, callback: t = null }) {
|
|
1070
1070
|
if (typeof Image > "u")
|
|
1071
1071
|
throw t && typeof t == "function" && t(e, Wt), new Error("Image() constructor does not exist.");
|
|
1072
|
-
t && typeof t == "function" && t(e,
|
|
1072
|
+
t && typeof t == "function" && t(e, Mo);
|
|
1073
1073
|
let s = new Image();
|
|
1074
1074
|
s.onabort = function(n) {
|
|
1075
|
-
t && typeof t == "function" && t(e,
|
|
1075
|
+
t && typeof t == "function" && t(e, rn), this.onerror = this.onabort = this.onload = null;
|
|
1076
1076
|
}, s.onerror = function(n) {
|
|
1077
1077
|
t && typeof t == "function" && t(e, Wt), this.onerror = this.onabort = this.onload = null;
|
|
1078
1078
|
}, s.onload = function(n) {
|
|
1079
|
-
t && typeof t == "function" && t(e,
|
|
1079
|
+
t && typeof t == "function" && t(e, an), this.onerror = this.onabort = this.onload = null;
|
|
1080
1080
|
}, s.src = e, t && typeof t == "function" && t(e, Xt);
|
|
1081
1081
|
}
|
|
1082
1082
|
};
|
|
@@ -1321,7 +1321,7 @@ const X = ie("pg-history", {
|
|
|
1321
1321
|
if ((r === Et || r === Xt) && this.loadImage({
|
|
1322
1322
|
url: n.src,
|
|
1323
1323
|
callback: this.updateStatus
|
|
1324
|
-
}), r === Wt || r ===
|
|
1324
|
+
}), r === Wt || r === rn) {
|
|
1325
1325
|
delete this.models[s];
|
|
1326
1326
|
const a = this.queue.indexOf(s);
|
|
1327
1327
|
a !== -1 && this.queue.splice(a, 1);
|
|
@@ -1463,7 +1463,7 @@ const X = ie("pg-history", {
|
|
|
1463
1463
|
* Check if currently inside of history, if so increment history index
|
|
1464
1464
|
* if not load from the queue
|
|
1465
1465
|
*/
|
|
1466
|
-
next:
|
|
1466
|
+
next: cn(
|
|
1467
1467
|
function() {
|
|
1468
1468
|
X().next(), this.resetOrRestartTimer();
|
|
1469
1469
|
},
|
|
@@ -1544,7 +1544,7 @@ const X = ie("pg-history", {
|
|
|
1544
1544
|
r();
|
|
1545
1545
|
}), { lang: s };
|
|
1546
1546
|
}, ae = ({
|
|
1547
|
-
tab: e =
|
|
1547
|
+
tab: e = Ao,
|
|
1548
1548
|
store: t,
|
|
1549
1549
|
options: s = [],
|
|
1550
1550
|
playMode: n = !1
|
|
@@ -1578,7 +1578,7 @@ const X = ie("pg-history", {
|
|
|
1578
1578
|
};
|
|
1579
1579
|
return [
|
|
1580
1580
|
h("div", { class: "q-mx-lg q-mt-sm q-mb-lg" }, [
|
|
1581
|
-
h(
|
|
1581
|
+
h(Vo, g, {
|
|
1582
1582
|
// single label slot, Quasar passes { index, label }
|
|
1583
1583
|
"marker-label": ({ marker: v }) => {
|
|
1584
1584
|
const C = { ...v.style, cursor: "default" };
|
|
@@ -1621,7 +1621,7 @@ const X = ie("pg-history", {
|
|
|
1621
1621
|
"onUpdate:modelValue": (g) => c.value = g,
|
|
1622
1622
|
label: d.value,
|
|
1623
1623
|
caption: a.value,
|
|
1624
|
-
icon:
|
|
1624
|
+
icon: hn
|
|
1625
1625
|
};
|
|
1626
1626
|
return h(me, f, () => h(En));
|
|
1627
1627
|
}
|
|
@@ -1702,7 +1702,7 @@ const X = ie("pg-history", {
|
|
|
1702
1702
|
class: "q-ma-xs"
|
|
1703
1703
|
};
|
|
1704
1704
|
u.value && (_.uuid = u.value), v.push(h(Nr, _));
|
|
1705
|
-
}), h(
|
|
1705
|
+
}), h(un, {}, () => v);
|
|
1706
1706
|
}
|
|
1707
1707
|
return () => f();
|
|
1708
1708
|
}
|
|
@@ -1783,7 +1783,7 @@ const X = ie("pg-history", {
|
|
|
1783
1783
|
class: "q-ma-xs"
|
|
1784
1784
|
})
|
|
1785
1785
|
);
|
|
1786
|
-
}), h(
|
|
1786
|
+
}), h(un, d, () => u);
|
|
1787
1787
|
}
|
|
1788
1788
|
return () => a();
|
|
1789
1789
|
}
|
|
@@ -1808,7 +1808,7 @@ const X = ie("pg-history", {
|
|
|
1808
1808
|
"onUpdate:modelValue": (v) => a.value = v,
|
|
1809
1809
|
label: c.value,
|
|
1810
1810
|
caption: u.value,
|
|
1811
|
-
icon:
|
|
1811
|
+
icon: pn
|
|
1812
1812
|
}, g = {
|
|
1813
1813
|
playMode: e.playMode
|
|
1814
1814
|
};
|
|
@@ -1862,8 +1862,8 @@ const X = ie("pg-history", {
|
|
|
1862
1862
|
name: "PgCamerasExpansion",
|
|
1863
1863
|
setup(e, { slots: t, emit: s }) {
|
|
1864
1864
|
const { lang: n } = M(), r = pe(), { caption: a } = S(r), { expanded: c } = ae({
|
|
1865
|
-
options:
|
|
1866
|
-
tab:
|
|
1865
|
+
options: Ms,
|
|
1866
|
+
tab: Ms
|
|
1867
1867
|
}), d = y(() => {
|
|
1868
1868
|
var f;
|
|
1869
1869
|
return (f = n.value.pg) == null ? void 0 : f.tools.angle;
|
|
@@ -1916,8 +1916,8 @@ const X = ie("pg-history", {
|
|
|
1916
1916
|
name: "PgLightsExpansion",
|
|
1917
1917
|
setup(e, { slots: t, emit: s }) {
|
|
1918
1918
|
const { lang: n } = M(), r = ee(), { caption: a } = S(r), { expanded: c } = ae({
|
|
1919
|
-
options:
|
|
1920
|
-
tab:
|
|
1919
|
+
options: As,
|
|
1920
|
+
tab: As
|
|
1921
1921
|
}), d = y(() => {
|
|
1922
1922
|
var f;
|
|
1923
1923
|
return (f = n.value.pg) == null ? void 0 : f.tools.light;
|
|
@@ -2034,7 +2034,7 @@ const X = ie("pg-history", {
|
|
|
2034
2034
|
"onUpdate:vertical": (v) => d.value = v,
|
|
2035
2035
|
onToggle: u
|
|
2036
2036
|
};
|
|
2037
|
-
return h(
|
|
2037
|
+
return h(Fo, g);
|
|
2038
2038
|
}
|
|
2039
2039
|
return () => f();
|
|
2040
2040
|
}
|
|
@@ -2045,8 +2045,8 @@ const X = ie("pg-history", {
|
|
|
2045
2045
|
},
|
|
2046
2046
|
setup(e, { slots: t, emit: s }) {
|
|
2047
2047
|
const { lang: n } = M(), r = Ie(), { caption: a } = S(r), { expanded: c } = ae({
|
|
2048
|
-
options:
|
|
2049
|
-
tab:
|
|
2048
|
+
options: Ns,
|
|
2049
|
+
tab: Ns,
|
|
2050
2050
|
playMode: e.playMode
|
|
2051
2051
|
}), d = y(() => {
|
|
2052
2052
|
var f;
|
|
@@ -2117,8 +2117,8 @@ const X = ie("pg-history", {
|
|
|
2117
2117
|
name: "PgEffectsExpansion",
|
|
2118
2118
|
setup(e, { slots: t, emit: s }) {
|
|
2119
2119
|
const { lang: n } = M(), r = fe(), { caption: a } = S(r), { expanded: c } = ae({
|
|
2120
|
-
options:
|
|
2121
|
-
tab:
|
|
2120
|
+
options: Os,
|
|
2121
|
+
tab: Os
|
|
2122
2122
|
}), d = y(() => {
|
|
2123
2123
|
var f;
|
|
2124
2124
|
return (f = n.value.pg) == null ? void 0 : f.tools.position;
|
|
@@ -2204,8 +2204,8 @@ const X = ie("pg-history", {
|
|
|
2204
2204
|
},
|
|
2205
2205
|
setup(e, { slots: t, emit: s }) {
|
|
2206
2206
|
const { lang: n } = M(), r = ge(), { caption: a } = S(r), { expanded: c } = ae({
|
|
2207
|
-
options:
|
|
2208
|
-
tab:
|
|
2207
|
+
options: ks,
|
|
2208
|
+
tab: ks,
|
|
2209
2209
|
playMode: e.playMode
|
|
2210
2210
|
}), d = y(() => {
|
|
2211
2211
|
var f;
|
|
@@ -2218,7 +2218,7 @@ const X = ie("pg-history", {
|
|
|
2218
2218
|
"onUpdate:modelValue": (g) => c.value = g,
|
|
2219
2219
|
label: d.value,
|
|
2220
2220
|
caption: a.value,
|
|
2221
|
-
icon:
|
|
2221
|
+
icon: fn
|
|
2222
2222
|
};
|
|
2223
2223
|
return h(me, f, () => [
|
|
2224
2224
|
h(Dn),
|
|
@@ -2274,29 +2274,29 @@ const X = ie("pg-history", {
|
|
|
2274
2274
|
function n() {
|
|
2275
2275
|
const r = {
|
|
2276
2276
|
class: "pg-card",
|
|
2277
|
-
"data-cy": "pg-card-" +
|
|
2277
|
+
"data-cy": "pg-card-" + No(e.label)
|
|
2278
2278
|
// style: style.value,
|
|
2279
2279
|
};
|
|
2280
2280
|
return h("div", r, [
|
|
2281
2281
|
h(
|
|
2282
|
-
|
|
2282
|
+
Uo,
|
|
2283
2283
|
{ flat: !0, bordered: !0 },
|
|
2284
2284
|
{
|
|
2285
2285
|
default: () => [
|
|
2286
|
-
h(
|
|
2287
|
-
h(
|
|
2288
|
-
h(
|
|
2286
|
+
h(Ro, {}, () => [
|
|
2287
|
+
h(Ls, { avatar: !0 }, () => [
|
|
2288
|
+
h(Bo, { name: e.icon, size: "36px" })
|
|
2289
2289
|
]),
|
|
2290
|
-
h(
|
|
2291
|
-
h(
|
|
2290
|
+
h(Ls, {}, () => [
|
|
2291
|
+
h(Vs, { class: "pg-card-label" }, () => e.label),
|
|
2292
2292
|
h(
|
|
2293
|
-
|
|
2293
|
+
Vs,
|
|
2294
2294
|
{ class: "pg-card-caption", caption: !0 },
|
|
2295
2295
|
() => e.caption
|
|
2296
2296
|
)
|
|
2297
2297
|
])
|
|
2298
2298
|
]),
|
|
2299
|
-
h(
|
|
2299
|
+
h($o, null, {
|
|
2300
2300
|
default: () => t.default ? t.default() : []
|
|
2301
2301
|
})
|
|
2302
2302
|
]
|
|
@@ -2318,7 +2318,7 @@ const X = ie("pg-history", {
|
|
|
2318
2318
|
class: "pg-duration-card",
|
|
2319
2319
|
label: c.value,
|
|
2320
2320
|
caption: a.value,
|
|
2321
|
-
icon:
|
|
2321
|
+
icon: hn
|
|
2322
2322
|
};
|
|
2323
2323
|
return h(ve, u, () => h(En, {}));
|
|
2324
2324
|
}
|
|
@@ -2336,7 +2336,7 @@ const X = ie("pg-history", {
|
|
|
2336
2336
|
class: "pg-skins-card",
|
|
2337
2337
|
label: a.value,
|
|
2338
2338
|
caption: c.value,
|
|
2339
|
-
icon:
|
|
2339
|
+
icon: Wo
|
|
2340
2340
|
};
|
|
2341
2341
|
return h(ve, u, {
|
|
2342
2342
|
default: () => h(ss, { desktop: !0 })
|
|
@@ -2356,7 +2356,7 @@ const X = ie("pg-history", {
|
|
|
2356
2356
|
class: "pg-skins-card",
|
|
2357
2357
|
label: a.value,
|
|
2358
2358
|
caption: c.value,
|
|
2359
|
-
icon:
|
|
2359
|
+
icon: pn
|
|
2360
2360
|
};
|
|
2361
2361
|
return h(ve, u, () => [h(Tn, { desktop: !0 })]);
|
|
2362
2362
|
}
|
|
@@ -2375,7 +2375,7 @@ const X = ie("pg-history", {
|
|
|
2375
2375
|
class: "pg-cameras-card",
|
|
2376
2376
|
label: c.value,
|
|
2377
2377
|
caption: a.value,
|
|
2378
|
-
icon:
|
|
2378
|
+
icon: Xo
|
|
2379
2379
|
};
|
|
2380
2380
|
return h(ve, u, () => [h(_n)]);
|
|
2381
2381
|
}
|
|
@@ -2393,7 +2393,7 @@ const X = ie("pg-history", {
|
|
|
2393
2393
|
class: "pg-lights-card",
|
|
2394
2394
|
label: c.value,
|
|
2395
2395
|
caption: a.value,
|
|
2396
|
-
icon:
|
|
2396
|
+
icon: Zo
|
|
2397
2397
|
};
|
|
2398
2398
|
return h(ve, u, {
|
|
2399
2399
|
default: () => h(bn, { desktop: !0 })
|
|
@@ -2418,7 +2418,7 @@ const X = ie("pg-history", {
|
|
|
2418
2418
|
class: "pg-genders-card",
|
|
2419
2419
|
label: c.value,
|
|
2420
2420
|
caption: a.value,
|
|
2421
|
-
icon:
|
|
2421
|
+
icon: Qo
|
|
2422
2422
|
};
|
|
2423
2423
|
return h(ve, u, () => [h(In)]);
|
|
2424
2424
|
}
|
|
@@ -2436,7 +2436,7 @@ const X = ie("pg-history", {
|
|
|
2436
2436
|
class: "pg-pose-position-card",
|
|
2437
2437
|
label: c.value,
|
|
2438
2438
|
caption: a.value,
|
|
2439
|
-
icon:
|
|
2439
|
+
icon: Ko
|
|
2440
2440
|
};
|
|
2441
2441
|
return h(ve, u, {
|
|
2442
2442
|
default: () => h(wn)
|
|
@@ -2462,7 +2462,7 @@ const X = ie("pg-history", {
|
|
|
2462
2462
|
class: "pg-grid-card",
|
|
2463
2463
|
label: c.value,
|
|
2464
2464
|
caption: a.value,
|
|
2465
|
-
icon:
|
|
2465
|
+
icon: Jo
|
|
2466
2466
|
};
|
|
2467
2467
|
return h(ve, u, { default: () => h(Pn) });
|
|
2468
2468
|
}
|
|
@@ -2494,7 +2494,7 @@ const X = ie("pg-history", {
|
|
|
2494
2494
|
class: "pg-adjustments-card",
|
|
2495
2495
|
label: c.value,
|
|
2496
2496
|
caption: a.value,
|
|
2497
|
-
icon:
|
|
2497
|
+
icon: fn
|
|
2498
2498
|
};
|
|
2499
2499
|
return h(ve, u, () => [h(ui)]);
|
|
2500
2500
|
}
|
|
@@ -2572,7 +2572,7 @@ const X = ie("pg-history", {
|
|
|
2572
2572
|
class: ""
|
|
2573
2573
|
};
|
|
2574
2574
|
return h("div", g, [
|
|
2575
|
-
h(
|
|
2575
|
+
h(qo, v),
|
|
2576
2576
|
h("span", {}, " " + d.value)
|
|
2577
2577
|
]);
|
|
2578
2578
|
}
|
|
@@ -2637,7 +2637,7 @@ const X = ie("pg-history", {
|
|
|
2637
2637
|
}), kn = T({
|
|
2638
2638
|
name: "PgGridOverlay",
|
|
2639
2639
|
setup(e, { slots: t, emit: s }) {
|
|
2640
|
-
const n = It(), r =
|
|
2640
|
+
const n = It(), r = ln(), a = Ie(), {
|
|
2641
2641
|
visible: c,
|
|
2642
2642
|
spacing: d,
|
|
2643
2643
|
horizontal: u,
|
|
@@ -2676,7 +2676,7 @@ const X = ie("pg-history", {
|
|
|
2676
2676
|
imageSize: C.value,
|
|
2677
2677
|
viewportSize: g.value
|
|
2678
2678
|
};
|
|
2679
|
-
return h(
|
|
2679
|
+
return h(jo, I);
|
|
2680
2680
|
}
|
|
2681
2681
|
return () => P();
|
|
2682
2682
|
}
|
|
@@ -2748,7 +2748,7 @@ const X = ie("pg-history", {
|
|
|
2748
2748
|
class: "pg-button-exit",
|
|
2749
2749
|
"data-cy": "pg-button-exit",
|
|
2750
2750
|
label: a.value,
|
|
2751
|
-
icon:
|
|
2751
|
+
icon: er,
|
|
2752
2752
|
onClick: n.close,
|
|
2753
2753
|
color: "primary",
|
|
2754
2754
|
onKeyup: c,
|
|
@@ -2761,7 +2761,7 @@ const X = ie("pg-history", {
|
|
|
2761
2761
|
qt,
|
|
2762
2762
|
{ name: "fade" },
|
|
2763
2763
|
() => vt(
|
|
2764
|
-
h(
|
|
2764
|
+
h(zo, u, () => [h(Oe, f)]),
|
|
2765
2765
|
[[yt, e.show]]
|
|
2766
2766
|
)
|
|
2767
2767
|
);
|
|
@@ -2816,7 +2816,7 @@ const X = ie("pg-history", {
|
|
|
2816
2816
|
}), Si = T({
|
|
2817
2817
|
name: "PgNextButton",
|
|
2818
2818
|
setup(e, { slots: t, emit: s }) {
|
|
2819
|
-
const n = he(), r = Z(), { milliseconds: a } = S(n), { duration: c } = S(r), d = Te(), { playing: u } = S(n), f = y(() => u.value ?
|
|
2819
|
+
const n = he(), r = Z(), { milliseconds: a } = S(n), { duration: c } = S(r), d = Te(), { playing: u } = S(n), f = y(() => u.value ? tr : sr), g = () => u.value ? d.pause() : d.play();
|
|
2820
2820
|
function v() {
|
|
2821
2821
|
const C = {
|
|
2822
2822
|
type: "play",
|
|
@@ -2833,7 +2833,7 @@ const X = ie("pg-history", {
|
|
|
2833
2833
|
thickness: 0.2,
|
|
2834
2834
|
instantFeedback: !0
|
|
2835
2835
|
};
|
|
2836
|
-
return h(ns, C, () => [h(
|
|
2836
|
+
return h(ns, C, () => [h(Ho, _)]);
|
|
2837
2837
|
}
|
|
2838
2838
|
return () => v();
|
|
2839
2839
|
}
|
|
@@ -2940,7 +2940,7 @@ const X = ie("pg-history", {
|
|
|
2940
2940
|
topOffset: 80,
|
|
2941
2941
|
"onUpdate:modelValue": (c) => n.value = c
|
|
2942
2942
|
};
|
|
2943
|
-
return h(
|
|
2943
|
+
return h(Go, a, {
|
|
2944
2944
|
default: () => h(Ln),
|
|
2945
2945
|
expanded: () => h(Un)
|
|
2946
2946
|
});
|
|
@@ -2954,7 +2954,7 @@ const X = ie("pg-history", {
|
|
|
2954
2954
|
zIndex: Number
|
|
2955
2955
|
},
|
|
2956
2956
|
setup(e) {
|
|
2957
|
-
const t = X(), s =
|
|
2957
|
+
const t = X(), s = ln(), n = e, r = y(() => t.playSrc), a = j(null), c = y(() => {
|
|
2958
2958
|
const f = {
|
|
2959
2959
|
// ...filterStyle.value,
|
|
2960
2960
|
zIndex: n.zIndex + 2
|
|
@@ -2987,7 +2987,7 @@ const X = ie("pg-history", {
|
|
|
2987
2987
|
setup(e) {
|
|
2988
2988
|
const t = ge(), s = X();
|
|
2989
2989
|
Pe();
|
|
2990
|
-
const n = R(), { playSelected: r } = S(n), { brightness: a, contrast: c, saturate: d } = S(t), { filterStyle: u } =
|
|
2990
|
+
const n = R(), { playSelected: r } = S(n), { brightness: a, contrast: c, saturate: d } = S(t), { filterStyle: u } = Oo({
|
|
2991
2991
|
brightness: a,
|
|
2992
2992
|
contrast: c,
|
|
2993
2993
|
saturate: d,
|
|
@@ -3002,7 +3002,7 @@ const X = ie("pg-history", {
|
|
|
3002
3002
|
return [(_ = g.value) == null ? void 0 : _.id, (D = g.value) == null ? void 0 : D.src, (P = g.value) == null ? void 0 : P.status];
|
|
3003
3003
|
},
|
|
3004
3004
|
([_, D, P], I, b) => {
|
|
3005
|
-
if (!(P ===
|
|
3005
|
+
if (!(P === an && D)) return;
|
|
3006
3006
|
const x = _.split("."), F = _ ?? `${D}#${Date.now()}`;
|
|
3007
3007
|
v.value = [
|
|
3008
3008
|
...v.value,
|
|
@@ -4208,7 +4208,7 @@ function xi() {
|
|
|
4208
4208
|
})(Ht)), Ht.exports;
|
|
4209
4209
|
}
|
|
4210
4210
|
var xt = xi();
|
|
4211
|
-
const oe = /* @__PURE__ */
|
|
4211
|
+
const oe = /* @__PURE__ */ nr({
|
|
4212
4212
|
__proto__: null
|
|
4213
4213
|
}, [xt]), Rn = 1, Bn = 2, Zt = 4, wi = {
|
|
4214
4214
|
mousedown: Rn,
|
|
@@ -4867,7 +4867,7 @@ const ia = {
|
|
|
4867
4867
|
emits: ["click"],
|
|
4868
4868
|
setup(e, { slots: t, emit: s }) {
|
|
4869
4869
|
return () => h(
|
|
4870
|
-
|
|
4870
|
+
dn,
|
|
4871
4871
|
{ name: Me },
|
|
4872
4872
|
{
|
|
4873
4873
|
default: () => h(Ln, { center: !0 }),
|
|
@@ -4888,7 +4888,7 @@ const ia = {
|
|
|
4888
4888
|
return (a = n.value.pg) == null ? void 0 : a.buttons.advanced.title;
|
|
4889
4889
|
});
|
|
4890
4890
|
return () => h(
|
|
4891
|
-
|
|
4891
|
+
dn,
|
|
4892
4892
|
{ class: "pg-effects-drawer", name: St, label: r.value },
|
|
4893
4893
|
{
|
|
4894
4894
|
default: () => h(Un, { center: !0, playMode: !0 })
|
|
@@ -4901,7 +4901,7 @@ const ia = {
|
|
|
4901
4901
|
const n = k(), { mobileActive: r } = S(n);
|
|
4902
4902
|
function a() {
|
|
4903
4903
|
return h(
|
|
4904
|
-
|
|
4904
|
+
Yo,
|
|
4905
4905
|
{
|
|
4906
4906
|
modelValue: r.value,
|
|
4907
4907
|
"onUpdate:modelValue": (c) => r.value = c
|
|
@@ -4938,7 +4938,7 @@ const ia = {
|
|
|
4938
4938
|
B(Pi),
|
|
4939
4939
|
B(qt, { name: "fade" }, {
|
|
4940
4940
|
default: jt(() => [
|
|
4941
|
-
vt(B(A(
|
|
4941
|
+
vt(B(A(ko), { class: "loading-graphic" }, null, 512), [
|
|
4942
4942
|
[yt, A(c)]
|
|
4943
4943
|
])
|
|
4944
4944
|
]),
|
|
@@ -4976,7 +4976,7 @@ const ia = {
|
|
|
4976
4976
|
d.pause();
|
|
4977
4977
|
},
|
|
4978
4978
|
{ immediate: !0 }
|
|
4979
|
-
),
|
|
4979
|
+
), Lo(), bt(() => {
|
|
4980
4980
|
f.init(), f.fetch().then(() => {
|
|
4981
4981
|
u.loadQueue();
|
|
4982
4982
|
}).catch(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@figurosity/consumer-pose-generator",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Timed figure-drawing pose generator for the Figurosity consumer frontend",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/consumer-pose-generator.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@figurosity/consumer-controls": "^0.2.0",
|
|
34
34
|
"@figurosity/icons": "^1.0.0",
|
|
35
|
-
"@figurosity/toolbox": "^0.2.
|
|
35
|
+
"@figurosity/toolbox": "^0.2.8",
|
|
36
36
|
"lodash-es": "^4.17.0",
|
|
37
37
|
"lodash.debounce": "^4.0.8",
|
|
38
38
|
"pinia": "^3.0.1",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@eslint/js": "^9.0.0",
|
|
45
45
|
"@figurosity/consumer-controls": "^0.2.0",
|
|
46
46
|
"@figurosity/icons": "^1.0.0",
|
|
47
|
-
"@figurosity/toolbox": "^0.2.
|
|
47
|
+
"@figurosity/toolbox": "^0.2.8",
|
|
48
48
|
"@quasar/extras": "^1.16.0",
|
|
49
49
|
"@quasar/vite-plugin": "^1.7.0",
|
|
50
50
|
"@vitejs/plugin-vue": "^5.0.0",
|