@orangelogic/design-system 2.34.0 → 2.35.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/library/components/types.js +4274 -4259
- package/library/package.json +1 -1
- package/library/packages/organisms/src/video-editor/components/video-editor-track/video-editor-track.d.ts +2 -5
- package/library/packages/organisms/src/video-editor/components/video-editor-tracks/video-editor-tracks.d.ts +5 -1
- package/library/packages/types/src/video-editor.d.ts +1 -0
- package/library/packages/utils/src/video/video.d.ts +3 -4
- package/package.json +1 -1
package/library/package.json
CHANGED
|
@@ -4,7 +4,7 @@ import { default as CxSpinner } from '../../../../../atoms/src/components/spinne
|
|
|
4
4
|
import { default as CxTooltip } from '../../../../../atoms/src/components/tooltip/tooltip.ts';
|
|
5
5
|
import { default as CxTypography } from '../../../../../atoms/src/components/typography/typography.ts';
|
|
6
6
|
import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
|
|
7
|
-
import { FrameData, SubClip } from '../../../../../types/src/video-editor';
|
|
7
|
+
import { FrameCache, FrameData, SubClip } from '../../../../../types/src/video-editor';
|
|
8
8
|
import { CSSResultGroup, TemplateResult } from 'lit';
|
|
9
9
|
|
|
10
10
|
export default class CxVideoEditorTrack extends CortexElement {
|
|
@@ -20,10 +20,7 @@ export default class CxVideoEditorTrack extends CortexElement {
|
|
|
20
20
|
data: Partial<SubClip>;
|
|
21
21
|
selected: boolean;
|
|
22
22
|
scale: number;
|
|
23
|
-
cache:
|
|
24
|
-
frames: FrameData[];
|
|
25
|
-
src: string;
|
|
26
|
-
};
|
|
23
|
+
cache: FrameCache;
|
|
27
24
|
expectedFrameCount: number;
|
|
28
25
|
frameIterator: AsyncGenerator<FrameData, void, unknown> | null;
|
|
29
26
|
interval: number;
|
|
@@ -2,7 +2,7 @@ import { default as CxIcon } from '../../../../../atoms/src/components/icon/icon
|
|
|
2
2
|
import { default as CxPopup } from '../../../../../atoms/src/components/popup/popup.ts';
|
|
3
3
|
import { default as CxResizeObserver } from '../../../../../atoms/src/components/resize-observer/resize-observer.ts';
|
|
4
4
|
import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
|
|
5
|
-
import { SubClip, Transition } from '../../../../../types/src/video-editor';
|
|
5
|
+
import { FrameCache, SubClip, Transition } from '../../../../../types/src/video-editor';
|
|
6
6
|
import { CSSResultGroup, TemplateResult } from 'lit';
|
|
7
7
|
import { default as Sortable } from 'sortablejs';
|
|
8
8
|
import { default as CxVideoEditorTrack } from '../video-editor-track/video-editor-track';
|
|
@@ -46,6 +46,10 @@ export default class CxVideoEditorTracks extends CortexElement {
|
|
|
46
46
|
sortable: Sortable | null;
|
|
47
47
|
previous: Array<ChildNode | null>;
|
|
48
48
|
isDragging: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Cache of frames, keyed by video url
|
|
51
|
+
*/
|
|
52
|
+
cache: FrameCache;
|
|
49
53
|
constructor();
|
|
50
54
|
runFirstUpdated(): void;
|
|
51
55
|
disconnectedCallback(): void;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { FrameCache } from '../../../types/src/video-editor';
|
|
2
|
+
|
|
1
3
|
type FrameData = {
|
|
2
4
|
data: string;
|
|
3
5
|
time: number;
|
|
@@ -5,10 +7,7 @@ type FrameData = {
|
|
|
5
7
|
export declare function insertFrameToCache(arr: FrameData[], newObj: FrameData): void;
|
|
6
8
|
export declare function findInRange(frames: FrameData[], min: number, max: number): FrameData;
|
|
7
9
|
export declare function extractFrames({ cache, interval, src, startPosition, stopPosition, }: {
|
|
8
|
-
cache?:
|
|
9
|
-
frames: FrameData[];
|
|
10
|
-
src: string;
|
|
11
|
-
};
|
|
10
|
+
cache?: FrameCache;
|
|
12
11
|
interval: number;
|
|
13
12
|
src: string;
|
|
14
13
|
startPosition?: number;
|