@dawcore/components 0.0.30 → 0.0.32

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.mjs CHANGED
@@ -8394,7 +8394,7 @@ DawKeyboardShortcutsElement = __decorateClass([
8394
8394
  // src/elements/daw-spectrogram.ts
8395
8395
  import { LitElement as LitElement14, html as html13, css as css13 } from "lit";
8396
8396
  import { customElement as customElement17, property as property12 } from "lit/decorators.js";
8397
- var MAX_CANVAS_WIDTH5 = 1e3;
8397
+ import { MAX_CANVAS_WIDTH as MAX_CANVAS_WIDTH5, buildSpectrogramCanvasId } from "@waveform-playlist/core";
8398
8398
  var DawSpectrogramElement = class extends LitElement14 {
8399
8399
  constructor() {
8400
8400
  super(...arguments);
@@ -8489,7 +8489,11 @@ var DawSpectrogramElement = class extends LitElement14 {
8489
8489
  }
8490
8490
  for (let i = 0; i < this._canvases.length; i++) {
8491
8491
  const canvas = this._canvases[i];
8492
- const canvasId = this.clipId + "-ch" + this.channelIndex + "-chunk" + i;
8492
+ const canvasId = buildSpectrogramCanvasId({
8493
+ clipId: this.clipId,
8494
+ channelIndex: this.channelIndex,
8495
+ chunkIndex: i
8496
+ });
8493
8497
  let offscreen;
8494
8498
  try {
8495
8499
  offscreen = canvas.transferControlToOffscreen();