fablecut 1.14.0 → 1.16.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/paths.js CHANGED
@@ -32,6 +32,13 @@ const MEDIA_DIR = path.join(DATA_DIR, "media");
32
32
  const EXPORTS_DIR = path.join(DATA_DIR, "exports");
33
33
  const ANALYSIS_DIR = path.join(DATA_DIR, "analysis");
34
34
  const LIBRARY_DIR = path.join(DATA_DIR, "library");
35
+ /* Grabs of single frames / contact sheets (GET /api/frame). Disposable render
36
+ cache, so it lives inside analysis/ rather than becoming a fifth top-level
37
+ folder users have to think about. */
38
+ const FRAMES_DIR = path.join(ANALYSIS_DIR, "frames");
39
+ /* Proxies (light copies of heavy footage the editor plays while editing).
40
+ A regenerable cache too, so also inside analysis/. */
41
+ const PROXIES_DIR = path.join(ANALYSIS_DIR, "proxies");
35
42
  const PROJECT_FILE = path.join(DATA_DIR, "project.json");
36
43
  const LIBRARY_SUBDIRS = ["sfx", "elements", "svg", "fonts", "presets", "templates"];
37
44
 
@@ -92,7 +99,7 @@ function superseded(rel, file) {
92
99
  /* Create the writable tree. Safe to call from both servers; whoever runs first
93
100
  wins and the other no-ops. */
94
101
  function ensureDirs() {
95
- for (const d of [DATA_DIR, MEDIA_DIR, EXPORTS_DIR, ANALYSIS_DIR])
102
+ for (const d of [DATA_DIR, MEDIA_DIR, EXPORTS_DIR, ANALYSIS_DIR, FRAMES_DIR, PROXIES_DIR])
96
103
  fs.mkdirSync(d, { recursive: true });
97
104
  for (const d of LIBRARY_SUBDIRS)
98
105
  fs.mkdirSync(path.join(LIBRARY_DIR, d), { recursive: true });
@@ -125,5 +132,5 @@ function writeSaved(kind, id, data) {
125
132
  module.exports = {
126
133
  APP_DIR, DATA_DIR, SPLIT,
127
134
  MEDIA_DIR, EXPORTS_DIR, ANALYSIS_DIR, LIBRARY_DIR, PROJECT_FILE,
128
- LIBRARY_SUBDIRS, ensureDirs, readSaved, writeSaved,
135
+ LIBRARY_SUBDIRS, FRAMES_DIR, PROXIES_DIR, ensureDirs, readSaved, writeSaved,
129
136
  };