-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
store fileinfoid for track items and project in redux and improve pre…
…view frame rendering
- Loading branch information
1 parent
c7c48a4
commit 697b5c9
Showing
16 changed files
with
81 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
import { IsoDateTimeString } from "../Flavors"; | ||
import { FileInfoId, IsoDateTimeString } from "../Flavors"; | ||
|
||
export interface Project { | ||
name: string; | ||
directoryName: string; | ||
projectFrameRate: number; | ||
lastSaved: IsoDateTimeString; | ||
fileInfoId: FileInfoId; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import { FrameCount, TimelineIndex, TrackGroupId, TrackItemId } from "../Flavors"; | ||
import { FileInfoId, FrameCount, TimelineIndex, TrackGroupId, TrackItemId } from "../Flavors"; | ||
|
||
export interface TrackItem { | ||
id: TrackItemId; | ||
length: FrameCount; | ||
fileName: string; | ||
fileNumber: TimelineIndex; | ||
trackGroupId: TrackGroupId; | ||
fileInfoId: FileInfoId; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
src/renderer/context/ProjectFilesContext.tsx/ProjectFilesContext.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
import { createContext } from "react"; | ||
import { TrackItemId } from "../../../common/Flavors"; | ||
import { Take } from "../../../common/project/Take"; | ||
import { TrackItem } from "../../../common/project/TrackItem"; | ||
import { FileInfo } from "../../services/fileManager/FileInfo"; | ||
|
||
interface ProjectFilesContextProps { | ||
saveTrackItemToDisk: (take: Take, trackItem: TrackItem, blob: Blob) => Promise<void>; | ||
getTrackItemFileInfo: (trackItemId: TrackItemId) => FileInfo | undefined; | ||
deleteTrackItem: (trackItemId: TrackItemId) => Promise<void>; | ||
deleteTrackItem: (trackItem: TrackItem) => Promise<void>; | ||
getTrackItemObjectURL: (trackItem: TrackItem) => string; | ||
} | ||
|
||
export const ProjectFilesContext = createContext<Partial<ProjectFilesContextProps>>({}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.