@evercam/ui 0.0.45-beta.7 → 0.0.46
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/README.md +47 -47
- package/dist/attributes.json +6 -1
- package/dist/index.mjs +219 -200
- 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 +9 -3
- package/dist/src/index.d.ts +7 -3
- package/dist/style.css +1 -1
- package/dist/styles.css +3214 -3214
- package/dist/tags.json +2 -1
- package/dist/web-types.json +11 -2
- package/package.json +76 -76
|
@@ -5,6 +5,7 @@ import { TimelineAxesConfig, TimelineAxis, TimelineTicksConfig, Timestamp } from
|
|
|
5
5
|
export type TimelineBarEvent = {
|
|
6
6
|
timestamp: string | Date;
|
|
7
7
|
color?: string;
|
|
8
|
+
text?: string;
|
|
8
9
|
[key: string]: any;
|
|
9
10
|
};
|
|
10
11
|
export type TimelineRangeEvent = {
|
|
@@ -25,6 +26,7 @@ export declare enum TimelineChartType {
|
|
|
25
26
|
export type TimelineEventsGroup = {
|
|
26
27
|
label: string;
|
|
27
28
|
color: string;
|
|
29
|
+
bgColor?: string;
|
|
28
30
|
isLoading?: Boolean;
|
|
29
31
|
isHidden?: Boolean;
|
|
30
32
|
chartType?: TimelineChartType;
|
|
@@ -47,7 +49,6 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
47
49
|
zoomBehavior: d3.ZoomBehavior<SVGSVGElement, unknown>;
|
|
48
50
|
isMouseDown: boolean;
|
|
49
51
|
axisHeight: number;
|
|
50
|
-
eventGroupPadding: number;
|
|
51
52
|
isHoveringEvent: boolean;
|
|
52
53
|
hoveredEvent: TimelineEvent;
|
|
53
54
|
isHoveringTimeline: boolean;
|
|
@@ -77,6 +78,8 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
77
78
|
rightCurtainWidth: number;
|
|
78
79
|
isHoveringCurtain: boolean;
|
|
79
80
|
isDraggingCurtain: boolean;
|
|
81
|
+
characterWidth: number;
|
|
82
|
+
textPadding: number;
|
|
80
83
|
}, {
|
|
81
84
|
initTimeline(startDate?: string, endDate?: string): void;
|
|
82
85
|
initRefs(): void;
|
|
@@ -131,6 +134,7 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
131
134
|
updateLineGraphHoverZones(): void;
|
|
132
135
|
getEventRectX(d: TimelineEvent): any;
|
|
133
136
|
getEventRectWidth(d: TimelineEvent): number;
|
|
137
|
+
getEventText(e: TimelineEvent): string;
|
|
134
138
|
initCurtains(): void;
|
|
135
139
|
drawEventsGroups(): void;
|
|
136
140
|
drawLineGraphEventsGroups(): void;
|
|
@@ -171,7 +175,7 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
171
175
|
color: string;
|
|
172
176
|
label: string;
|
|
173
177
|
}): void;
|
|
174
|
-
getTextFillColor(baseColor: string): string;
|
|
178
|
+
getTextFillColor(baseColor: string, k?: number): string;
|
|
175
179
|
getLabelBackgroundColor(baseColor: string): string;
|
|
176
180
|
tzStringToDate(timestamp: Timestamp): Date;
|
|
177
181
|
dateToTzString(date: Date): string;
|
|
@@ -183,6 +187,7 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
183
187
|
fillTimeGaps(events: TimelineEvent[]): TimelineEvent[];
|
|
184
188
|
getNormalizedEvents(events: TimelineEvent[]): TimelineEvent[];
|
|
185
189
|
}, {
|
|
190
|
+
barChartHeight: number;
|
|
186
191
|
classes: Record<string, string | Record<string, boolean>>;
|
|
187
192
|
lineGraphGroups: TimelineEventsByType;
|
|
188
193
|
lineGraphChartHeight: number;
|
|
@@ -213,7 +218,8 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
213
218
|
curtains: boolean;
|
|
214
219
|
showLabels: boolean;
|
|
215
220
|
rectMinWidth: number;
|
|
216
|
-
|
|
221
|
+
barHeight: number;
|
|
222
|
+
barYPadding: number;
|
|
217
223
|
lineGraphMinHeight: number;
|
|
218
224
|
minZoom: number;
|
|
219
225
|
maxZoom: number;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -185,7 +185,6 @@ export declare const components: {
|
|
|
185
185
|
zoomBehavior: import("d3-zoom").ZoomBehavior<SVGSVGElement, unknown>;
|
|
186
186
|
isMouseDown: boolean;
|
|
187
187
|
axisHeight: number;
|
|
188
|
-
eventGroupPadding: number;
|
|
189
188
|
isHoveringEvent: boolean;
|
|
190
189
|
hoveredEvent: import('./components/ETimeline.vue').TimelineEvent;
|
|
191
190
|
isHoveringTimeline: boolean;
|
|
@@ -215,6 +214,8 @@ export declare const components: {
|
|
|
215
214
|
rightCurtainWidth: number;
|
|
216
215
|
isHoveringCurtain: boolean;
|
|
217
216
|
isDraggingCurtain: boolean;
|
|
217
|
+
characterWidth: number;
|
|
218
|
+
textPadding: number;
|
|
218
219
|
}, {
|
|
219
220
|
initTimeline(startDate?: string | undefined, endDate?: string | undefined): void;
|
|
220
221
|
initRefs(): void;
|
|
@@ -269,6 +270,7 @@ export declare const components: {
|
|
|
269
270
|
updateLineGraphHoverZones(): void;
|
|
270
271
|
getEventRectX(d: import('./components/ETimeline.vue').TimelineEvent): any;
|
|
271
272
|
getEventRectWidth(d: import('./components/ETimeline.vue').TimelineEvent): number;
|
|
273
|
+
getEventText(e: import('./components/ETimeline.vue').TimelineEvent): string;
|
|
272
274
|
initCurtains(): void;
|
|
273
275
|
drawEventsGroups(): void;
|
|
274
276
|
drawLineGraphEventsGroups(): void;
|
|
@@ -309,7 +311,7 @@ export declare const components: {
|
|
|
309
311
|
color: string;
|
|
310
312
|
label: string;
|
|
311
313
|
}): void;
|
|
312
|
-
getTextFillColor(baseColor: string): string;
|
|
314
|
+
getTextFillColor(baseColor: string, k?: number): string;
|
|
313
315
|
getLabelBackgroundColor(baseColor: string): string;
|
|
314
316
|
tzStringToDate(timestamp: import('./types').Timestamp): Date;
|
|
315
317
|
dateToTzString(date: Date): string;
|
|
@@ -321,6 +323,7 @@ export declare const components: {
|
|
|
321
323
|
fillTimeGaps(events: import('./components/ETimeline.vue').TimelineEvent[]): import('./components/ETimeline.vue').TimelineEvent[];
|
|
322
324
|
getNormalizedEvents(events: import('./components/ETimeline.vue').TimelineEvent[]): import('./components/ETimeline.vue').TimelineEvent[];
|
|
323
325
|
}, {
|
|
326
|
+
barChartHeight: number;
|
|
324
327
|
classes: Record<string, string | Record<string, boolean>>;
|
|
325
328
|
lineGraphGroups: import('./components/ETimeline.vue').TimelineEventsByType;
|
|
326
329
|
lineGraphChartHeight: number;
|
|
@@ -351,7 +354,8 @@ export declare const components: {
|
|
|
351
354
|
curtains: boolean;
|
|
352
355
|
showLabels: boolean;
|
|
353
356
|
rectMinWidth: number;
|
|
354
|
-
|
|
357
|
+
barHeight: number;
|
|
358
|
+
barYPadding: number;
|
|
355
359
|
lineGraphMinHeight: number;
|
|
356
360
|
minZoom: number;
|
|
357
361
|
maxZoom: number;
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.e-spinner[data-v-
|
|
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%}
|