@vosjs/studio-core 0.26.0 → 0.27.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/index.js CHANGED
@@ -8322,6 +8322,10 @@ var STYLE_FIELDS = [
8322
8322
  "cam",
8323
8323
  "export"
8324
8324
  ];
8325
+ var STYLE_EXPORT_KEYS = [
8326
+ "fps",
8327
+ "format"
8328
+ ];
8325
8329
  function pickStyle(doc) {
8326
8330
  const out = {};
8327
8331
  for (const k of STYLE_FIELDS) {
@@ -8334,9 +8338,18 @@ function copyStyle(from, to, opts = {}) {
8334
8338
  const next = structuredClone(to);
8335
8339
  const style = pickStyle(from);
8336
8340
  for (const k of STYLE_FIELDS) {
8341
+ if (k === "export") continue;
8337
8342
  if (k in style) next[k] = style[k];
8338
8343
  else delete next[k];
8339
8344
  }
8345
+ const fromExport = style.export;
8346
+ if (fromExport) {
8347
+ const merged = { ...next.export ?? {} };
8348
+ for (const k of STYLE_EXPORT_KEYS) {
8349
+ if (fromExport[k] !== void 0) merged[k] = fromExport[k];
8350
+ }
8351
+ next.export = merged;
8352
+ }
8340
8353
  const styled = next;
8341
8354
  return opts.layout ? copyLayout(from, styled, { keys: opts.keys }).doc : styled;
8342
8355
  }