@evercam/ui 0.0.50 → 0.0.52-beta.0
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/attributes.json +6 -1
- package/dist/index.mjs +805 -731
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/ETimeline.vue.d.ts +16 -4
- package/dist/src/index.d.ts +16 -4
- package/dist/src/types.d.ts +2 -1
- package/dist/style.css +1 -1
- package/dist/tags.json +2 -1
- package/dist/web-types.json +12 -3
- package/package.json +1 -1
|
@@ -58,6 +58,7 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
58
58
|
initTimeScale(start?: string, end?: string): void;
|
|
59
59
|
initXAxes(): void;
|
|
60
60
|
initYScale(): void;
|
|
61
|
+
updateYScaleDomain(): void;
|
|
61
62
|
initZoomBehavior(): void;
|
|
62
63
|
initSelectedTimestampCursor(): void;
|
|
63
64
|
updateAndRedrawTimeline(): void;
|
|
@@ -99,7 +100,8 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
99
100
|
zoomToStartAndEndDates(): void;
|
|
100
101
|
rescaleAxis(axisName: string, newScale: d3.ScaleTime<any, any, unknown>): void;
|
|
101
102
|
translateTicksText(axisName: string): void;
|
|
102
|
-
|
|
103
|
+
updateEventsBars(): void;
|
|
104
|
+
updateBarChart(): void;
|
|
103
105
|
updateLineGraphs(): void;
|
|
104
106
|
updateLineGraphHoverZones(): void;
|
|
105
107
|
getEventRectX(d: TimelineEvent): any;
|
|
@@ -121,6 +123,7 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
121
123
|
type: string;
|
|
122
124
|
}): void;
|
|
123
125
|
drawBarEventsGroups(): void;
|
|
126
|
+
drawBarChartEventsGroups(): void;
|
|
124
127
|
drawProgressIndicator({ yPosition, type, isLoading, }: {
|
|
125
128
|
yPosition: number;
|
|
126
129
|
type: string;
|
|
@@ -139,6 +142,12 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
139
142
|
color: string;
|
|
140
143
|
type: string;
|
|
141
144
|
}): void;
|
|
145
|
+
drawBarsChart({ events, gElement, color, type, }: {
|
|
146
|
+
events: TimelineEvent[];
|
|
147
|
+
gElement: d3.Selection<SVGGElement, any, any, any>;
|
|
148
|
+
color: string;
|
|
149
|
+
type: string;
|
|
150
|
+
}): void;
|
|
142
151
|
drawTextLabel({ gElement, yPosition, color, label, }: {
|
|
143
152
|
gElement: d3.Selection<SVGGElement, any, any, any>;
|
|
144
153
|
yPosition: number;
|
|
@@ -163,9 +172,10 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
163
172
|
barChartHeight: number;
|
|
164
173
|
classes: Record<string, string | Record<string, boolean>>;
|
|
165
174
|
lineGraphGroups: TimelineEventsByType;
|
|
166
|
-
|
|
175
|
+
chartHeight: number;
|
|
167
176
|
barGroups: TimelineEventsByType;
|
|
168
|
-
|
|
177
|
+
barChartGroups: TimelineEventsByType;
|
|
178
|
+
hasChart: boolean;
|
|
169
179
|
labelRectWidth: number;
|
|
170
180
|
combinedXAxesHeight: number;
|
|
171
181
|
timelineHeight: number;
|
|
@@ -177,6 +187,7 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
177
187
|
placeholderLineChartGroup: TimelineEvent[];
|
|
178
188
|
filledGapsLineGraphGroups: TimelineEventsByType;
|
|
179
189
|
isInteractingWithCurtain: boolean;
|
|
190
|
+
flattenedCounts: TimelineCountEvent[];
|
|
180
191
|
}, {
|
|
181
192
|
eventsGroups: {};
|
|
182
193
|
xAxesConfig: TimelineAxesConfig;
|
|
@@ -193,7 +204,8 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
193
204
|
rectMinWidth: number;
|
|
194
205
|
barHeight: number;
|
|
195
206
|
barYPadding: number;
|
|
196
|
-
|
|
207
|
+
barXPadding: number;
|
|
208
|
+
chartMinHeight: number;
|
|
197
209
|
minZoom: number;
|
|
198
210
|
maxZoom: number;
|
|
199
211
|
cursorTimestamp: string | undefined;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -227,6 +227,7 @@ export declare const components: {
|
|
|
227
227
|
initTimeScale(start?: string | undefined, end?: string | undefined): void;
|
|
228
228
|
initXAxes(): void;
|
|
229
229
|
initYScale(): void;
|
|
230
|
+
updateYScaleDomain(): void;
|
|
230
231
|
initZoomBehavior(): void;
|
|
231
232
|
initSelectedTimestampCursor(): void;
|
|
232
233
|
updateAndRedrawTimeline(): void;
|
|
@@ -268,7 +269,8 @@ export declare const components: {
|
|
|
268
269
|
zoomToStartAndEndDates(): void;
|
|
269
270
|
rescaleAxis(axisName: string, newScale: import("d3-scale").ScaleTime<any, any, unknown>): void;
|
|
270
271
|
translateTicksText(axisName: string): void;
|
|
271
|
-
|
|
272
|
+
updateEventsBars(): void;
|
|
273
|
+
updateBarChart(): void;
|
|
272
274
|
updateLineGraphs(): void;
|
|
273
275
|
updateLineGraphHoverZones(): void;
|
|
274
276
|
getEventRectX(d: import('./types').TimelineEvent): any;
|
|
@@ -290,6 +292,7 @@ export declare const components: {
|
|
|
290
292
|
type: string;
|
|
291
293
|
}): void;
|
|
292
294
|
drawBarEventsGroups(): void;
|
|
295
|
+
drawBarChartEventsGroups(): void;
|
|
293
296
|
drawProgressIndicator({ yPosition, type, isLoading, }: {
|
|
294
297
|
yPosition: number;
|
|
295
298
|
type: string;
|
|
@@ -308,6 +311,12 @@ export declare const components: {
|
|
|
308
311
|
color: string;
|
|
309
312
|
type: string;
|
|
310
313
|
}): void;
|
|
314
|
+
drawBarsChart({ events, gElement, color, type, }: {
|
|
315
|
+
events: import('./types').TimelineEvent[];
|
|
316
|
+
gElement: import("d3-selection").Selection<SVGGElement, any, any, any>;
|
|
317
|
+
color: string;
|
|
318
|
+
type: string;
|
|
319
|
+
}): void;
|
|
311
320
|
drawTextLabel({ gElement, yPosition, color, label, }: {
|
|
312
321
|
gElement: import("d3-selection").Selection<SVGGElement, any, any, any>;
|
|
313
322
|
yPosition: number;
|
|
@@ -332,9 +341,10 @@ export declare const components: {
|
|
|
332
341
|
barChartHeight: number;
|
|
333
342
|
classes: Record<string, string | Record<string, boolean>>;
|
|
334
343
|
lineGraphGroups: import('./types').TimelineEventsByType;
|
|
335
|
-
|
|
344
|
+
chartHeight: number;
|
|
336
345
|
barGroups: import('./types').TimelineEventsByType;
|
|
337
|
-
|
|
346
|
+
barChartGroups: import('./types').TimelineEventsByType;
|
|
347
|
+
hasChart: boolean;
|
|
338
348
|
labelRectWidth: number;
|
|
339
349
|
combinedXAxesHeight: number;
|
|
340
350
|
timelineHeight: number;
|
|
@@ -346,6 +356,7 @@ export declare const components: {
|
|
|
346
356
|
placeholderLineChartGroup: import('./types').TimelineEvent[];
|
|
347
357
|
filledGapsLineGraphGroups: import('./types').TimelineEventsByType;
|
|
348
358
|
isInteractingWithCurtain: boolean;
|
|
359
|
+
flattenedCounts: import('./types').TimelineCountEvent[];
|
|
349
360
|
}, {
|
|
350
361
|
eventsGroups: {};
|
|
351
362
|
xAxesConfig: import('./types').TimelineAxesConfig;
|
|
@@ -362,7 +373,8 @@ export declare const components: {
|
|
|
362
373
|
rectMinWidth: number;
|
|
363
374
|
barHeight: number;
|
|
364
375
|
barYPadding: number;
|
|
365
|
-
|
|
376
|
+
barXPadding: number;
|
|
377
|
+
chartMinHeight: number;
|
|
366
378
|
minZoom: number;
|
|
367
379
|
maxZoom: number;
|
|
368
380
|
cursorTimestamp: string | undefined;
|
package/dist/src/types.d.ts
CHANGED
|
@@ -67,7 +67,8 @@ export type TimelineCountEvent = {
|
|
|
67
67
|
export type TimelineEvent = TimelineBarEvent | TimelineRangeEvent | TimelineCountEvent;
|
|
68
68
|
export declare enum TimelineChartType {
|
|
69
69
|
bars = "bars",
|
|
70
|
-
lineGraph = "lineGraph"
|
|
70
|
+
lineGraph = "lineGraph",
|
|
71
|
+
barChart = "barGraph"
|
|
71
72
|
}
|
|
72
73
|
export type TimelineEventsGroup = {
|
|
73
74
|
label: string;
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.e-spinner[data-v-29711f67]{vertical-align:center}.e-spinner__primary[data-v-29711f67],.e-spinner__secondary[data-v-29711f67]{stroke-width:0;animation:fade-29711f67;animation-iteration-count:infinite}@keyframes fade-29711f67{0%{fill-opacity:0}50%{fill-opacity:1}to{fill-opacity:0}}.e-row.e-row--no-gutters{margin:0}.e-row.e-row--no-gutters>.e-col{padding:0}.e-col{padding:.75rem}.spinner-container[data-v-dd8ff405]{position:absolute;background:linear-gradient(to top,rgba(0,0,0,.65),transparent);inset:0;display:flex;justify-content:center;align-items:center;vertical-align:middle}.video-container[data-v-dd8ff405]{position:relative;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;margin:0 auto}.video-container.full-screen[data-v-dd8ff405]{max-width:initial;width:100%;max-height:100vh}video[data-v-dd8ff405]{width:100%;height:inherit}.video-controls-container[data-v-dd8ff405]{position:absolute;bottom:0;left:0;right:0;color:#fff;z-index:100;opacity:0;transition:opacity .15s ease-in-out}.hide[data-v-dd8ff405]{display:none}.video-controls-container[data-v-dd8ff405]:before{content:"";position:absolute;bottom:0;background:linear-gradient(to top,rgba(0,0,0,.75),transparent);width:100%;aspect-ratio:6 / 1;z-index:-1;pointer-events:none}.video-container:hover .video-controls-container[data-v-dd8ff405],.video-container:focus-within .video-controls-container[data-v-dd8ff405],.video-container.paused .video-controls-container[data-v-dd8ff405]{opacity:1}.video-controls-container .controls[data-v-dd8ff405]{display:flex;gap:.5rem;padding:.75rem 1rem;align-items:center;width:100%}.video-controls-container .controls button[data-v-dd8ff405]{background:none;border:none;color:inherit;padding:0;height:32px;width:32px;font-size:1.35rem;cursor:pointer;opacity:.85;transition:opacity .15s ease-in-out}.video-controls-container .controls button[data-v-dd8ff405]:hover{opacity:1}.duration-container[data-v-dd8ff405]{display:flex;align-items:center;gap:.25rem;flex-grow:1}.video-container.captions .captions-btn[data-v-dd8ff405]{border-bottom:3px solid red}.video-controls-container .controls button.wide-btn[data-v-dd8ff405]{width:50px}.timeline-container[data-v-dd8ff405]{width:100%;height:7px;margin-inline:.5rem;cursor:pointer;display:flex;align-items:center}.timeline[data-v-dd8ff405]{background-color:#64646480;height:3px;width:100%;position:relative}.timeline[data-v-dd8ff405]:before{content:"";position:absolute;left:0;top:0;bottom:0;right:calc(100% - var(--preview-position) * 100%);background-color:#969696;display:none}.timeline[data-v-dd8ff405]:after{content:"";position:absolute;left:0;top:0;bottom:0;right:calc(100% - var(--progress-position) * 100%);background-color:red}.timeline .thumb-indicator[data-v-dd8ff405]{--scale: 0;position:absolute;transform:translate(-50%) scale(var(--scale));height:200%;top:-50%;left:calc(var(--progress-position) * 100%);background-color:red;border-radius:50%;transition:transform .15s ease-in-out;aspect-ratio:1 / 1}.video-container.scrubbing .thumbnail-img[data-v-dd8ff405]{display:block}.video-container.scrubbing .timeline[data-v-dd8ff405]:before,.timeline-container:hover .timeline[data-v-dd8ff405]:before{display:block}.video-container.scrubbing .thumb-indicator[data-v-dd8ff405],.timeline-container:hover .thumb-indicator[data-v-dd8ff405]{--scale: 1}.video-container.scrubbing .timeline[data-v-dd8ff405],.timeline-container:hover .timeline[data-v-dd8ff405]{height:100%}.e-timeline svg{display:block}.e-timeline .x-axis-overview .domain,.e-timeline .x-axis-detailed .domain,.e-timeline .x-axis-overviewBackground .domain,.e-timeline .x-axis-detailedBackground .domain{display:none}.e-timeline .x-axis-detailedBackground .domain,.e-timeline .x-axis-detailedBackground text{display:none}.e-timeline .x-axis-overview>g.tick>line{opacity:.1;stroke-width:3;stroke-linecap:round}.e-timeline .x-axis-detailed>g.tick>line{opacity:.1;stroke-linecap:round}.e-timeline .x-axis-detailedBackground>g.tick>line{opacity:.075;stroke-linecap:round}.e-timeline--dark .tick line{stroke:#fff}.e-timeline--dark .tick text{fill:#fff}@keyframes moveGradient{0%{transform:translate(-50%)}to{transform:translate(100%)}}@keyframes pulse-rect{0%{filter:saturate(3.5) drop-shadow(0 0 1px #0008)}50%{filter:saturate(.5) drop-shadow(0 0 0 #0000)}to{filter:saturate(3.5) drop-shadow(0 0 1px #0008)}}@keyframes pulse-circle{0%{r:4px}50%{r:1px}to{r:4px}}.loading-indicator{animation:moveGradient 1.5s ease-in infinite}.line-graph-dot--active{animation:pulse-circle 1s ease-in-out infinite}.event-rect--hovered{animation:pulse-rect 1s ease-in-out infinite}@keyframes dash{0%{filter:saturate(1) drop-shadow(0 0 0 #0000)}50%{stroke-width:2px;filter:saturate(2.5) drop-shadow(0 0 0 #0006)}to{filter:saturate(1) drop-shadow(0 0 0 #0000)}}.line-graph-group--highlighted path{animation:dash 1s ease-in-out infinite}.e-timeline--dragging{cursor:ew-resize}.curtain{cursor:ew-resize;fill:#3332;stroke-width:1px;stroke:#3338;transition:stroke-width .2s}.e-timeline--dragging .curtain{stroke-width:3px}.e-timeline--dark .curtain{fill:#fff3;stroke:#fff7}.video-embed[data-v-0ecf4a71]{position:relative;width:100%!important;padding-bottom:56.25%}.video-embed iframe[data-v-0ecf4a71]{position:absolute;top:0;left:0;width:100%;height:100%}
|
|
1
|
+
.e-spinner[data-v-29711f67]{vertical-align:center}.e-spinner__primary[data-v-29711f67],.e-spinner__secondary[data-v-29711f67]{stroke-width:0;animation:fade-29711f67;animation-iteration-count:infinite}@keyframes fade-29711f67{0%{fill-opacity:0}50%{fill-opacity:1}to{fill-opacity:0}}.e-row.e-row--no-gutters{margin:0}.e-row.e-row--no-gutters>.e-col{padding:0}.e-col{padding:.75rem}.spinner-container[data-v-dd8ff405]{position:absolute;background:linear-gradient(to top,rgba(0,0,0,.65),transparent);inset:0;display:flex;justify-content:center;align-items:center;vertical-align:middle}.video-container[data-v-dd8ff405]{position:relative;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;margin:0 auto}.video-container.full-screen[data-v-dd8ff405]{max-width:initial;width:100%;max-height:100vh}video[data-v-dd8ff405]{width:100%;height:inherit}.video-controls-container[data-v-dd8ff405]{position:absolute;bottom:0;left:0;right:0;color:#fff;z-index:100;opacity:0;transition:opacity .15s ease-in-out}.hide[data-v-dd8ff405]{display:none}.video-controls-container[data-v-dd8ff405]:before{content:"";position:absolute;bottom:0;background:linear-gradient(to top,rgba(0,0,0,.75),transparent);width:100%;aspect-ratio:6 / 1;z-index:-1;pointer-events:none}.video-container:hover .video-controls-container[data-v-dd8ff405],.video-container:focus-within .video-controls-container[data-v-dd8ff405],.video-container.paused .video-controls-container[data-v-dd8ff405]{opacity:1}.video-controls-container .controls[data-v-dd8ff405]{display:flex;gap:.5rem;padding:.75rem 1rem;align-items:center;width:100%}.video-controls-container .controls button[data-v-dd8ff405]{background:none;border:none;color:inherit;padding:0;height:32px;width:32px;font-size:1.35rem;cursor:pointer;opacity:.85;transition:opacity .15s ease-in-out}.video-controls-container .controls button[data-v-dd8ff405]:hover{opacity:1}.duration-container[data-v-dd8ff405]{display:flex;align-items:center;gap:.25rem;flex-grow:1}.video-container.captions .captions-btn[data-v-dd8ff405]{border-bottom:3px solid red}.video-controls-container .controls button.wide-btn[data-v-dd8ff405]{width:50px}.timeline-container[data-v-dd8ff405]{width:100%;height:7px;margin-inline:.5rem;cursor:pointer;display:flex;align-items:center}.timeline[data-v-dd8ff405]{background-color:#64646480;height:3px;width:100%;position:relative}.timeline[data-v-dd8ff405]:before{content:"";position:absolute;left:0;top:0;bottom:0;right:calc(100% - var(--preview-position) * 100%);background-color:#969696;display:none}.timeline[data-v-dd8ff405]:after{content:"";position:absolute;left:0;top:0;bottom:0;right:calc(100% - var(--progress-position) * 100%);background-color:red}.timeline .thumb-indicator[data-v-dd8ff405]{--scale: 0;position:absolute;transform:translate(-50%) scale(var(--scale));height:200%;top:-50%;left:calc(var(--progress-position) * 100%);background-color:red;border-radius:50%;transition:transform .15s ease-in-out;aspect-ratio:1 / 1}.video-container.scrubbing .thumbnail-img[data-v-dd8ff405]{display:block}.video-container.scrubbing .timeline[data-v-dd8ff405]:before,.timeline-container:hover .timeline[data-v-dd8ff405]:before{display:block}.video-container.scrubbing .thumb-indicator[data-v-dd8ff405],.timeline-container:hover .thumb-indicator[data-v-dd8ff405]{--scale: 1}.video-container.scrubbing .timeline[data-v-dd8ff405],.timeline-container:hover .timeline[data-v-dd8ff405]{height:100%}.e-timeline svg{display:block}.e-timeline .x-axis-overview .domain,.e-timeline .x-axis-detailed .domain,.e-timeline .x-axis-overviewBackground .domain,.e-timeline .x-axis-detailedBackground .domain{display:none}.e-timeline .x-axis-detailedBackground .domain,.e-timeline .x-axis-detailedBackground text{display:none}.e-timeline .x-axis-overview>g.tick>line{opacity:.1;stroke-width:3;stroke-linecap:round}.e-timeline .x-axis-detailed>g.tick>line{opacity:.1;stroke-linecap:round}.e-timeline .x-axis-detailedBackground>g.tick>line{opacity:.075;stroke-linecap:round}.e-timeline--dark .tick line{stroke:#fff}.e-timeline--dark .tick text{fill:#fff}@keyframes moveGradient{0%{transform:translate(-50%)}to{transform:translate(100%)}}@keyframes pulse-rect{0%{filter:saturate(3.5) drop-shadow(0 0 1px #0008)}50%{filter:saturate(.5) drop-shadow(0 0 0 #0000)}to{filter:saturate(3.5) drop-shadow(0 0 1px #0008)}}@keyframes pulse-circle{0%{r:4px}50%{r:1px}to{r:4px}}.loading-indicator{animation:moveGradient 1.5s ease-in infinite}.line-graph-dot--active{animation:pulse-circle 1s ease-in-out infinite}.event-rect--hovered{animation:pulse-rect 1s ease-in-out infinite}.event-bar{transition:fill-opacity .5s}@keyframes dash{0%{filter:saturate(1) drop-shadow(0 0 0 #0000)}50%{stroke-width:2px;filter:saturate(2.5) drop-shadow(0 0 0 #0006)}to{filter:saturate(1) drop-shadow(0 0 0 #0000)}}.line-graph-group--highlighted path{animation:dash 1s ease-in-out infinite}.e-timeline--dragging{cursor:ew-resize}.curtain{cursor:ew-resize;fill:#3332;stroke-width:1px;stroke:#3338;transition:stroke-width .2s}.e-timeline--dragging .curtain{stroke-width:3px}.e-timeline--dark .curtain{fill:#fff3;stroke:#fff7}.video-embed[data-v-0ecf4a71]{position:relative;width:100%!important;padding-bottom:56.25%}.video-embed iframe[data-v-0ecf4a71]{position:absolute;top:0;left:0;width:100%;height:100%}
|
package/dist/tags.json
CHANGED
package/dist/web-types.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json.schemastore.org/web-types",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "@evercam/ui",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.52-beta.0",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"types-syntax": "typescript",
|
|
@@ -535,7 +535,7 @@
|
|
|
535
535
|
{
|
|
536
536
|
"name": "x-axes-config",
|
|
537
537
|
"doc-url": "https://www.npmjs.com/package/@evercam/ui",
|
|
538
|
-
"default": "() =>
|
|
538
|
+
"default": "() => qt",
|
|
539
539
|
"value": {
|
|
540
540
|
"kind": "expression",
|
|
541
541
|
"type": "object"
|
|
@@ -659,7 +659,16 @@
|
|
|
659
659
|
}
|
|
660
660
|
},
|
|
661
661
|
{
|
|
662
|
-
"name": "
|
|
662
|
+
"name": "bar-xpadding",
|
|
663
|
+
"doc-url": "https://www.npmjs.com/package/@evercam/ui",
|
|
664
|
+
"default": "0",
|
|
665
|
+
"value": {
|
|
666
|
+
"kind": "expression",
|
|
667
|
+
"type": "number"
|
|
668
|
+
}
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
"name": "chart-min-height",
|
|
663
672
|
"doc-url": "https://www.npmjs.com/package/@evercam/ui",
|
|
664
673
|
"default": "60",
|
|
665
674
|
"value": {
|