solid-pianoroll 0.0.26 → 0.0.28

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
@@ -5,8 +5,56 @@ import { createStore } from 'solid-js/store';
5
5
  var __defProp = Object.defineProperty;
6
6
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
7
 
8
- // css-module:./PianoRoll.module.css#css-module
9
- var PianoRoll_module_default = { "PianoRoll": "_PianoRoll_1v1e7_1", "PianoRollContainer": "_PianoRollContainer_1v1e7_10", "PianoRollLeftColumn": "_PianoRollLeftColumn_1v1e7_17", "showTrackList": "_showTrackList_1v1e7_24", "PianoRollRightColumn": "_PianoRollRightColumn_1v1e7_29" };
8
+ // esbuild-css-modules-plugin-namespace:/var/folders/hn/m5r9jj0x3zb28s_y23nrnhmc0000gn/T/tmp-90274-uumdjtW2RyHH/solid-pianoroll/src/PianoRoll.module.css.js
9
+ var digest = "aa6e03c5e37f26ea12d9db12cf0b54922c25d6767d24d6356119f357fec7dbc1";
10
+ var css = `._PianoRoll_1v1e7_1 {
11
+ box-sizing: border-box;
12
+ display: flex;
13
+ overflow: hidden;
14
+ flex-direction: column;
15
+ height: 100%;
16
+ user-select: none;
17
+ }
18
+
19
+ ._PianoRollContainer_1v1e7_10 {
20
+ overflow: hidden;
21
+ height: 100%;
22
+ display: flex;
23
+ flex-direction: row;
24
+ }
25
+
26
+ ._PianoRollLeftColumn_1v1e7_17 {
27
+ display: flex;
28
+ overflow: hidden;
29
+ flex-direction: column;
30
+ max-width: 250px;
31
+ margin-top: 30px;
32
+ }
33
+ ._PianoRollLeftColumn_1v1e7_17._showTrackList_1v1e7_24 {
34
+ width: 30%;
35
+ margin-top: 0;
36
+ }
37
+
38
+ ._PianoRollRightColumn_1v1e7_29 {
39
+ display: flex;
40
+ position: relative;
41
+ flex-direction: column;
42
+ flex: 1;
43
+ height: 100%;
44
+ }
45
+ `;
46
+ (function() {
47
+ if (typeof document === "undefined") {
48
+ return;
49
+ }
50
+ if (!document.getElementById(digest)) {
51
+ var el = document.createElement("style");
52
+ el.id = digest;
53
+ el.textContent = css;
54
+ document.head.appendChild(el);
55
+ }
56
+ })();
57
+ var PianoRoll_module_css_default = { "PianoRoll": "_PianoRoll_1v1e7_1", "pianoRoll": "_PianoRoll_1v1e7_1", "PianoRollContainer": "_PianoRollContainer_1v1e7_10", "pianoRollContainer": "_PianoRollContainer_1v1e7_10", "PianoRollLeftColumn": "_PianoRollLeftColumn_1v1e7_17", "pianoRollLeftColumn": "_PianoRollLeftColumn_1v1e7_17", "showTrackList": "_showTrackList_1v1e7_24", "PianoRollRightColumn": "_PianoRollRightColumn_1v1e7_29", "pianoRollRightColumn": "_PianoRollRightColumn_1v1e7_29" };
10
58
  var defaultState = {
11
59
  ppq: 0,
12
60
  mode: "keys",
@@ -148,8 +196,71 @@ var usePianoRollContext = /* @__PURE__ */ __name(() => {
148
196
  }, "usePianoRollContext");
149
197
  var splitContextProps = /* @__PURE__ */ __name((allProps) => splitProps(allProps, [...pianoRollStatePropNames, "showAllTracks", "showTrackList"]), "splitContextProps");
150
198
 
151
- // css-module:./PianoRollKeys.module.css#css-module
152
- var PianoRollKeys_module_default = { "PianoRollKeys": "_PianoRollKeys_1ne9i_1", "Key": "_Key_1ne9i_14", "black": "_black_1ne9i_29", "white": "_white_1ne9i_38", "down": "_down_1ne9i_46" };
199
+ // esbuild-css-modules-plugin-namespace:/var/folders/hn/m5r9jj0x3zb28s_y23nrnhmc0000gn/T/tmp-90274-cfesZaQQ10Ku/solid-pianoroll/src/PianoRollKeys.module.css.js
200
+ var digest2 = "b057e5d98badf1f9af4903cbc88a9fa4bb2b399c90a29d8ae6223541f92cef6d";
201
+ var css2 = `._PianoRollKeys_1ne9i_1 {
202
+ position: relative;
203
+ height: 100%;
204
+ border-width: 0;
205
+ border-color: #000;
206
+ border-style: solid;
207
+ border-right-width: 1px;
208
+ border-left-width: 1px;
209
+ background: white;
210
+ cursor: pointer;
211
+ background: black;
212
+ }
213
+
214
+ ._Key_1ne9i_14 {
215
+ transition-property: background-color, box-shadow;
216
+ transition-duration: 200ms;
217
+ transition-timing-function: ease-out;
218
+ border-width: 0px;
219
+ position: absolute;
220
+ box-sizing: border-box;
221
+ width: 120%;
222
+ left: -20%;
223
+ border-color: #000;
224
+ border-style: solid;
225
+ transform: rotateX(0deg);
226
+ perspective: 100px;
227
+ }
228
+
229
+ ._black_1ne9i_29 {
230
+ background: black;
231
+ border-top-right-radius: 12%;
232
+ border-bottom-right-radius: 12%;
233
+ margin-left: -20%;
234
+ z-index: 1;
235
+ border: 1px black outset;
236
+ }
237
+
238
+ ._white_1ne9i_38 {
239
+ background: white;
240
+ border-top-width: 0.5px;
241
+ border-bottom-width: 0.5px;
242
+ border-top-right-radius: 4%;
243
+ border-bottom-right-radius: 4%;
244
+ }
245
+
246
+ ._down_1ne9i_46 {
247
+ transition: none;
248
+ background: red;
249
+ transform: rotateX(0deg) rotateY(20deg);
250
+ }
251
+ `;
252
+ (function() {
253
+ if (typeof document === "undefined") {
254
+ return;
255
+ }
256
+ if (!document.getElementById(digest2)) {
257
+ var el = document.createElement("style");
258
+ el.id = digest2;
259
+ el.textContent = css2;
260
+ document.head.appendChild(el);
261
+ }
262
+ })();
263
+ var PianoRollKeys_module_css_default = { "PianoRollKeys": "_PianoRollKeys_1ne9i_1", "pianoRollKeys": "_PianoRollKeys_1ne9i_1", "Key": "_Key_1ne9i_14", "key": "_Key_1ne9i_14", "black": "_black_1ne9i_29", "white": "_white_1ne9i_38", "down": "_down_1ne9i_46" };
153
264
  function createViewPortDimension(getState) {
154
265
  const getStateWithFunctions = /* @__PURE__ */ __name(() => {
155
266
  const state2 = getState();
@@ -242,8 +353,26 @@ var useViewPortDimension = /* @__PURE__ */ __name((name) => {
242
353
  return viewPort;
243
354
  }, "useViewPortDimension");
244
355
 
245
- // css-module:./ScrollZoomContainer.module.css#css-module
246
- var ScrollZoomContainer_module_default = { "ScrollZoomContainer": "_ScrollZoomContainer_f395r_1" };
356
+ // esbuild-css-modules-plugin-namespace:/var/folders/hn/m5r9jj0x3zb28s_y23nrnhmc0000gn/T/tmp-90274-H3Ibj1iUgWXY/solid-pianoroll/src/viewport/ScrollZoomContainer.module.css.js
357
+ var digest3 = "dfea32918bb5e05b30aa87bb385d5d5089ce613bad8900501a889444ef672a4b";
358
+ var css3 = `._ScrollZoomContainer_f395r_1 {
359
+ height: 100%;
360
+ width: 100%;
361
+ z-index: 4;
362
+ }
363
+ `;
364
+ (function() {
365
+ if (typeof document === "undefined") {
366
+ return;
367
+ }
368
+ if (!document.getElementById(digest3)) {
369
+ var el = document.createElement("style");
370
+ el.id = digest3;
371
+ el.textContent = css3;
372
+ document.head.appendChild(el);
373
+ }
374
+ })();
375
+ var ScrollZoomContainer_module_css_default = { "ScrollZoomContainer": "_ScrollZoomContainer_f395r_1", "scrollZoomContainer": "_ScrollZoomContainer_f395r_1" };
247
376
 
248
377
  // src/viewport/ScrollZoomContainer.tsx
249
378
  var _tmpl$ = /* @__PURE__ */ template(`<div><div><div><div></div></div></div></div>`, 8);
@@ -333,7 +462,7 @@ var ScrollZoomContainer = /* @__PURE__ */ __name((props) => {
333
462
  },
334
463
  get classList() {
335
464
  return {
336
- [ScrollZoomContainer_module_default.ScrollZoomContainer]: true,
465
+ [ScrollZoomContainer_module_css_default.ScrollZoomContainer]: true,
337
466
  ...divProps.classList
338
467
  };
339
468
  }
@@ -419,10 +548,10 @@ var PianoRollKeys = /* @__PURE__ */ __name(() => {
419
548
  };
420
549
  effect((_p$) => {
421
550
  const _v$3 = {
422
- [PianoRollKeys_module_default["Key"]]: true,
423
- [PianoRollKeys_module_default["black"]]: key().isBlack,
424
- [PianoRollKeys_module_default["white"]]: !key().isBlack,
425
- [PianoRollKeys_module_default["down"]]: isDown()
551
+ [PianoRollKeys_module_css_default["Key"]]: true,
552
+ [PianoRollKeys_module_css_default["black"]]: key().isBlack,
553
+ [PianoRollKeys_module_css_default["white"]]: !key().isBlack,
554
+ [PianoRollKeys_module_css_default["down"]]: isDown()
426
555
  }, _v$4 = key().name, _v$5 = key().number % 12, _v$6 = `${virtualDimensions().offset - virtualDimensions().size * (!key().isBlack ? nextIsBlack ? 1 / 2 : 0 : 0)}px`, _v$7 = `${virtualDimensions().size + (!key().isBlack && nextIsBlack ? virtualDimensions().size / 2 : 0) + (!key().isBlack && previousIsBlack ? virtualDimensions().size / 2 : 0)}px`, _v$8 = `0px 0px ${Math.min(virtualDimensions().size / 20, 1)}px ${Math.min(virtualDimensions().size / 50, 1)}px rgba(0, 0, 0, 0.5) ${key().isBlack ? "" : "inset"}` + isDown() ? `0px 0px ${Math.min(virtualDimensions().size / 8, 2)}px ${Math.min(virtualDimensions().size / 20, 2)}px rgba(0, 0, 0, 0.5) inset` : "";
427
556
  _p$._v$3 = classList(_el$2, _v$3, _p$._v$3);
428
557
  _v$4 !== _p$._v$4 && setAttribute(_el$2, "title", _p$._v$4 = _v$4);
@@ -447,7 +576,7 @@ var PianoRollKeys = /* @__PURE__ */ __name(() => {
447
576
  }
448
577
  }));
449
578
  effect((_p$) => {
450
- const _v$ = PianoRollKeys_module_default.PianoRollKeys, _v$2 = `${horizontalViewPort().pixelSize}px`;
579
+ const _v$ = PianoRollKeys_module_css_default.PianoRollKeys, _v$2 = `${horizontalViewPort().pixelSize}px`;
451
580
  _v$ !== _p$._v$ && className(_el$, _p$._v$ = _v$);
452
581
  _v$2 !== _p$._v$2 && _el$.style.setProperty("width", _p$._v$2 = _v$2);
453
582
  return _p$;
@@ -470,8 +599,49 @@ var keys = Array.from({
470
599
  var PianoRollKeys_default = PianoRollKeys;
471
600
  delegateEvents(["mousedown", "mouseup"]);
472
601
 
473
- // css-module:./PianoRollNotes.module.css#css-module
474
- var PianoRollNotes_module_default = { "PianoRollNotes": "_PianoRollNotes_u3pew_1", "Note": "_Note_u3pew_12", "trimStart": "_trimStart_u3pew_22", "trimEnd": "_trimEnd_u3pew_26" };
602
+ // esbuild-css-modules-plugin-namespace:/var/folders/hn/m5r9jj0x3zb28s_y23nrnhmc0000gn/T/tmp-90274-nyFNvzF0L5IC/solid-pianoroll/src/PianoRollNotes.module.css.js
603
+ var digest4 = "27207eb386f7870e1e373f378e14988274f47d3ac31283faa2f5c99cf42ac809";
604
+ var css4 = `._PianoRollNotes_u3pew_1 {
605
+ position: absolute;
606
+ flex: 1;
607
+ top: 0;
608
+ left: 0;
609
+ width: 100%;
610
+ height: 100%;
611
+ z-index: 1;
612
+ cursor: grab;
613
+ }
614
+
615
+ ._Note_u3pew_12 {
616
+ position: absolute;
617
+ box-sizing: border-box;
618
+ border-width: 0.5px;
619
+ border-style: solid;
620
+ border-color: #a00;
621
+
622
+ cursor: move;
623
+ }
624
+
625
+ ._Note_u3pew_12._trimStart_u3pew_22 {
626
+ cursor: w-resize;
627
+ }
628
+
629
+ ._Note_u3pew_12._trimEnd_u3pew_26 {
630
+ cursor: e-resize;
631
+ }
632
+ `;
633
+ (function() {
634
+ if (typeof document === "undefined") {
635
+ return;
636
+ }
637
+ if (!document.getElementById(digest4)) {
638
+ var el = document.createElement("style");
639
+ el.id = digest4;
640
+ el.textContent = css4;
641
+ document.head.appendChild(el);
642
+ }
643
+ })();
644
+ var PianoRollNotes_module_css_default = { "PianoRollNotes": "_PianoRollNotes_u3pew_1", "pianoRollNotes": "_PianoRollNotes_u3pew_1", "Note": "_Note_u3pew_12", "note": "_Note_u3pew_12", "trimStart": "_trimStart_u3pew_22", "trimEnd": "_trimEnd_u3pew_26" };
475
645
 
476
646
  // src/PianoRollNotes.tsx
477
647
  var _tmpl$3 = /* @__PURE__ */ template(`<div></div>`, 2);
@@ -548,7 +718,7 @@ var PianoRollNotes = /* @__PURE__ */ __name((props) => {
548
718
  window.addEventListener("mouseup", stopDragging);
549
719
  }, "startDragging");
550
720
  const getClasses = /* @__PURE__ */ __name((noteDragMode2) => {
551
- return noteDragMode2 ? [PianoRollNotes_module_default.Note, PianoRollNotes_module_default[noteDragMode2]] : [PianoRollNotes_module_default.Note];
721
+ return noteDragMode2 ? [PianoRollNotes_module_css_default.Note, PianoRollNotes_module_css_default[noteDragMode2]] : [PianoRollNotes_module_css_default.Note];
552
722
  }, "getClasses");
553
723
  return (() => {
554
724
  const _el$ = _tmpl$3.cloneNode(true);
@@ -655,7 +825,7 @@ var PianoRollNotes = /* @__PURE__ */ __name((props) => {
655
825
  }
656
826
  }));
657
827
  effect((_$p) => classList(_el$, {
658
- [PianoRollNotes_module_default.PianoRollNotes]: true
828
+ [PianoRollNotes_module_css_default.PianoRollNotes]: true
659
829
  }, _$p));
660
830
  return _el$;
661
831
  })();
@@ -663,8 +833,64 @@ var PianoRollNotes = /* @__PURE__ */ __name((props) => {
663
833
  var PianoRollNotes_default = PianoRollNotes;
664
834
  delegateEvents(["mousedown", "mousemove", "dblclick"]);
665
835
 
666
- // css-module:./PianoRollGrid.module.css#css-module
667
- var PianoRollGrid_module_default = { "PianoRollGrid": "_PianoRollGrid_qke5f_1", "PianoRollGrid-Row": "_PianoRollGrid-Row_qke5f_7", "IsDark": "_IsDark_qke5f_14", "Key": "_Key_qke5f_18", "IsBlackAndNextIsWhite": "_IsBlackAndNextIsWhite_qke5f_21", "PianoRollGrid-Time": "_PianoRollGrid-Time_qke5f_26", "Highlighted": "_Highlighted_qke5f_37", "HighlightedBorder": "_HighlightedBorder_qke5f_41" };
836
+ // esbuild-css-modules-plugin-namespace:/var/folders/hn/m5r9jj0x3zb28s_y23nrnhmc0000gn/T/tmp-90274-JN3HXWtq8D2T/solid-pianoroll/src/PianoRollGrid.module.css.js
837
+ var digest5 = "0e6d0a14bbbc61c9b1eacfbd714d9a34533094ba18e4a1d7371a4ea65bccb58c";
838
+ var css5 = `._PianoRollGrid_qke5f_1 {
839
+ position: relative;
840
+ width: 100%;
841
+ height: 100%;
842
+ }
843
+
844
+ ._PianoRollGrid-Row_qke5f_7 {
845
+ position: absolute;
846
+ border-style: solid;
847
+ border-color: gray;
848
+ width: 100%;
849
+ border-width: 0;
850
+ }
851
+ ._PianoRollGrid-Row_qke5f_7._IsDark_qke5f_14 {
852
+ background-color: rgba(0, 0, 0, 0.2);
853
+ }
854
+
855
+ ._PianoRollGrid-Row_qke5f_7._Key_qke5f_18 {
856
+ border-width: 0px 1px 0px 0;
857
+ }
858
+ ._PianoRollGrid-Row_qke5f_7._IsBlackAndNextIsWhite_qke5f_21 {
859
+ background-color: rgba(0, 0, 0, 0.2);
860
+ border-width: 0.1px 1px 0.1px 0;
861
+ }
862
+
863
+ ._PianoRollGrid-Time_qke5f_26 {
864
+ position: absolute;
865
+ box-sizing: border-box;
866
+ top: 0px;
867
+ height: 100%;
868
+ border-left-style: solid;
869
+ border-left-width: 0.5px;
870
+ border-left-color: #bbb;
871
+ background: #ccc;
872
+ }
873
+
874
+ ._PianoRollGrid-Time_qke5f_26._Highlighted_qke5f_37 {
875
+ background: #ddd;
876
+ }
877
+
878
+ ._PianoRollGrid-Time_qke5f_26._HighlightedBorder_qke5f_41 {
879
+ border-left-color: gray;
880
+ }
881
+ `;
882
+ (function() {
883
+ if (typeof document === "undefined") {
884
+ return;
885
+ }
886
+ if (!document.getElementById(digest5)) {
887
+ var el = document.createElement("style");
888
+ el.id = digest5;
889
+ el.textContent = css5;
890
+ document.head.appendChild(el);
891
+ }
892
+ })();
893
+ var PianoRollGrid_module_css_default = { "PianoRollGrid": "_PianoRollGrid_qke5f_1", "pianoRollGrid": "_PianoRollGrid_qke5f_1", "PianoRollGrid-Row": "_PianoRollGrid-Row_qke5f_7", "pianoRollGridRow": "_PianoRollGrid-Row_qke5f_7", "IsDark": "_IsDark_qke5f_14", "isDark": "_IsDark_qke5f_14", "Key": "_Key_qke5f_18", "key": "_Key_qke5f_18", "IsBlackAndNextIsWhite": "_IsBlackAndNextIsWhite_qke5f_21", "isBlackAndNextIsWhite": "_IsBlackAndNextIsWhite_qke5f_21", "PianoRollGrid-Time": "_PianoRollGrid-Time_qke5f_26", "pianoRollGridTime": "_PianoRollGrid-Time_qke5f_26", "Highlighted": "_Highlighted_qke5f_37", "highlighted": "_Highlighted_qke5f_37", "HighlightedBorder": "_HighlightedBorder_qke5f_41", "highlightedBorder": "_HighlightedBorder_qke5f_41" };
668
894
  var usePianoRollGrid = /* @__PURE__ */ __name(() => {
669
895
  const context = usePianoRollContext();
670
896
  const horizontalViewPort = createMemo(() => useViewPortDimension("horizontal"));
@@ -735,9 +961,9 @@ var PianoRollGrid = /* @__PURE__ */ __name(() => {
735
961
  const _el$2 = _tmpl$4.cloneNode(true);
736
962
  effect((_p$) => {
737
963
  const _v$ = {
738
- [PianoRollGrid_module_default["PianoRollGrid-Time"]]: true,
739
- [PianoRollGrid_module_default["Highlighted"]]: entry().isHighlighted,
740
- [PianoRollGrid_module_default["HighlightedBorder"]]: entry().hasHighlightedBorder
964
+ [PianoRollGrid_module_css_default["PianoRollGrid-Time"]]: true,
965
+ [PianoRollGrid_module_css_default["Highlighted"]]: entry().isHighlighted,
966
+ [PianoRollGrid_module_css_default["HighlightedBorder"]]: entry().hasHighlightedBorder
741
967
  }, _v$2 = `${entry().virtualDimensions.offset}px`, _v$3 = `${entry().virtualDimensions.size}px`;
742
968
  _p$._v$ = classList(_el$2, _v$, _p$._v$);
743
969
  _v$2 !== _p$._v$2 && _el$2.style.setProperty("left", _p$._v$2 = _v$2);
@@ -770,10 +996,10 @@ var PianoRollGrid = /* @__PURE__ */ __name(() => {
770
996
  const _el$3 = _tmpl$4.cloneNode(true);
771
997
  effect((_p$) => {
772
998
  const _v$4 = {
773
- [PianoRollGrid_module_default["PianoRollGrid-Row"]]: true,
774
- [PianoRollGrid_module_default["Key"]]: true,
775
- [PianoRollGrid_module_default["IsDark"]]: key().isBlack,
776
- [PianoRollGrid_module_default["IsBlackAndNextIsWhite"]]: !key().isBlack && !blackKeys.includes((key().number + 1) % 12)
999
+ [PianoRollGrid_module_css_default["PianoRollGrid-Row"]]: true,
1000
+ [PianoRollGrid_module_css_default["Key"]]: true,
1001
+ [PianoRollGrid_module_css_default["IsDark"]]: key().isBlack,
1002
+ [PianoRollGrid_module_css_default["IsBlackAndNextIsWhite"]]: !key().isBlack && !blackKeys.includes((key().number + 1) % 12)
777
1003
  }, _v$5 = `${virtualDimensions().offset}px`, _v$6 = `${virtualDimensions().size}px`;
778
1004
  _p$._v$4 = classList(_el$3, _v$4, _p$._v$4);
779
1005
  _v$5 !== _p$._v$5 && _el$3.style.setProperty("top", _p$._v$5 = _v$5);
@@ -810,8 +1036,8 @@ var PianoRollGrid = /* @__PURE__ */ __name(() => {
810
1036
  const _el$4 = _tmpl$4.cloneNode(true);
811
1037
  effect((_p$) => {
812
1038
  const _v$7 = {
813
- [PianoRollGrid_module_default["PianoRollGrid-Row"]]: true,
814
- [PianoRollGrid_module_default["IsDark"]]: index() % 2 === 0
1039
+ [PianoRollGrid_module_css_default["PianoRollGrid-Row"]]: true,
1040
+ [PianoRollGrid_module_css_default["IsDark"]]: index() % 2 === 0
815
1041
  }, _v$8 = `${virtualDimensions().offset}px`, _v$9 = `${virtualDimensions().size}px`;
816
1042
  _p$._v$7 = classList(_el$4, _v$7, _p$._v$7);
817
1043
  _v$8 !== _p$._v$8 && _el$4.style.setProperty("top", _p$._v$8 = _v$8);
@@ -829,7 +1055,7 @@ var PianoRollGrid = /* @__PURE__ */ __name(() => {
829
1055
  });
830
1056
  }
831
1057
  }), null);
832
- effect(() => className(_el$, PianoRollGrid_module_default.PianoRollGrid));
1058
+ effect(() => className(_el$, PianoRollGrid_module_css_default.PianoRollGrid));
833
1059
  return _el$;
834
1060
  })();
835
1061
  }, "PianoRollGrid");
@@ -886,8 +1112,44 @@ var ZoomSliderControl = /* @__PURE__ */ __name((props) => {
886
1112
  }, "ZoomSliderControl");
887
1113
  var ZoomSliderControl_default = ZoomSliderControl;
888
1114
 
889
- // css-module:./PianoRollTrackList.module.css#css-module
890
- var PianoRollTrackList_module_default = { "PianoRollTrackList": "_PianoRollTrackList_11kti_1", "Track": "_Track_11kti_7", "selected": "_selected_11kti_21" };
1115
+ // esbuild-css-modules-plugin-namespace:/var/folders/hn/m5r9jj0x3zb28s_y23nrnhmc0000gn/T/tmp-90274-lR0XsUGhqfId/solid-pianoroll/src/PianoRollTrackList.module.css.js
1116
+ var digest6 = "1ede7e0b45d9e049dc7428861fa2dc18276f4d0fdaaaf4e758b0ca956db13ee6";
1117
+ var css6 = `._PianoRollTrackList_11kti_1 {
1118
+ position: relative;
1119
+ height: 100%;
1120
+ flex: 1;
1121
+ }
1122
+
1123
+ ._Track_11kti_7 {
1124
+ border-width: 0px;
1125
+ position: absolute;
1126
+ box-sizing: border-box;
1127
+ width: 100%;
1128
+ border-color: #000;
1129
+ border-style: solid;
1130
+ border-right-width: 1px;
1131
+ border-bottom-width: 1px;
1132
+ padding: 2px;
1133
+ cursor: pointer;
1134
+ background: lightgrey;
1135
+ }
1136
+
1137
+ Track._selected_11kti_21 {
1138
+ background: gray;
1139
+ }
1140
+ `;
1141
+ (function() {
1142
+ if (typeof document === "undefined") {
1143
+ return;
1144
+ }
1145
+ if (!document.getElementById(digest6)) {
1146
+ var el = document.createElement("style");
1147
+ el.id = digest6;
1148
+ el.textContent = css6;
1149
+ document.head.appendChild(el);
1150
+ }
1151
+ })();
1152
+ var PianoRollTrackList_module_css_default = { "PianoRollTrackList": "_PianoRollTrackList_11kti_1", "pianoRollTrackList": "_PianoRollTrackList_11kti_1", "Track": "_Track_11kti_7", "track": "_Track_11kti_7", "selected": "_selected_11kti_21" };
891
1153
  var _tmpl$6 = /* @__PURE__ */ template(`<div></div>`, 2);
892
1154
  var _tmpl$22 = /* @__PURE__ */ template(`<div> </div>`, 2);
893
1155
  var PianoRollTrackList = /* @__PURE__ */ __name(() => {
@@ -912,8 +1174,8 @@ var PianoRollTrackList = /* @__PURE__ */ __name(() => {
912
1174
  insert(_el$2, () => track().name || "[unnamed track]", null);
913
1175
  effect((_p$) => {
914
1176
  const _v$ = {
915
- [PianoRollTrackList_module_default["Track"]]: true,
916
- [PianoRollTrackList_module_default["selected"]]: index === context.selectedTrackIndex
1177
+ [PianoRollTrackList_module_css_default["Track"]]: true,
1178
+ [PianoRollTrackList_module_css_default["selected"]]: index === context.selectedTrackIndex
917
1179
  }, _v$2 = track().name, _v$3 = `${virtualDimensions().offset}px`, _v$4 = `${virtualDimensions().size}px`;
918
1180
  _p$._v$ = classList(_el$2, _v$, _p$._v$);
919
1181
  _v$2 !== _p$._v$2 && setAttribute(_el$2, "title", _p$._v$2 = _v$2);
@@ -931,7 +1193,7 @@ var PianoRollTrackList = /* @__PURE__ */ __name(() => {
931
1193
  });
932
1194
  }
933
1195
  }));
934
- effect(() => className(_el$, PianoRollTrackList_module_default.PianoRollTrackList));
1196
+ effect(() => className(_el$, PianoRollTrackList_module_css_default.PianoRollTrackList));
935
1197
  return _el$;
936
1198
  })();
937
1199
  }, "PianoRollTrackList");
@@ -1059,8 +1321,58 @@ var PianoRollTrackListScroller = /* @__PURE__ */ __name((props) => {
1059
1321
  }, "PianoRollTrackListScroller");
1060
1322
  var PianoRollTrackListScroller_default = PianoRollTrackListScroller;
1061
1323
 
1062
- // css-module:./PianoRollScale.module.css#css-module
1063
- var PianoRollScale_module_default = { "PianoRollScale": "_PianoRollScale_1khhn_1", "PianoRollScale-Time": "_PianoRollScale-Time_1khhn_7", "PianoRollScale-Label": "_PianoRollScale-Label_1khhn_23", "Highlighted": "_Highlighted_1khhn_31", "HighlightedBorder": "_HighlightedBorder_1khhn_35" };
1324
+ // esbuild-css-modules-plugin-namespace:/var/folders/hn/m5r9jj0x3zb28s_y23nrnhmc0000gn/T/tmp-90274-9VypJmW1g4Y2/solid-pianoroll/src/PianoRollScale.module.css.js
1325
+ var digest7 = "791bac6ee03ee2d5d4eeb634f23ab9b8202dff07a798ed2606b5cc6dfd86812e";
1326
+ var css7 = `._PianoRollScale_1khhn_1 {
1327
+ position: relative;
1328
+ width: 100%;
1329
+ height: 100%;
1330
+ }
1331
+
1332
+ ._PianoRollScale-Time_1khhn_7 {
1333
+ position: absolute;
1334
+ box-sizing: border-box;
1335
+ top: 0px;
1336
+ height: 100%;
1337
+ border-left-style: solid;
1338
+ border-left-width: 0.5px;
1339
+ border-left-color: x#666;
1340
+ border-bottom-color: #333;
1341
+ border-bottom-style: solid;
1342
+ border-bottom-width: 0.5px;
1343
+ background: #777;
1344
+ display: flex;
1345
+ align-items: center;
1346
+ }
1347
+
1348
+ ._PianoRollScale-Label_1khhn_23 {
1349
+ position: absolute;
1350
+ z-index: 1;
1351
+ color: #ccc;
1352
+ margin-left: 3px;
1353
+ font-size: 0.8em;
1354
+ }
1355
+
1356
+ ._PianoRollScale-Time_1khhn_7._Highlighted_1khhn_31 {
1357
+ background: #666;
1358
+ }
1359
+
1360
+ ._PianoRollScale-Time_1khhn_7._HighlightedBorder_1khhn_35 {
1361
+ border-left-color: #111;
1362
+ }
1363
+ `;
1364
+ (function() {
1365
+ if (typeof document === "undefined") {
1366
+ return;
1367
+ }
1368
+ if (!document.getElementById(digest7)) {
1369
+ var el = document.createElement("style");
1370
+ el.id = digest7;
1371
+ el.textContent = css7;
1372
+ document.head.appendChild(el);
1373
+ }
1374
+ })();
1375
+ var PianoRollScale_module_css_default = { "PianoRollScale": "_PianoRollScale_1khhn_1", "pianoRollScale": "_PianoRollScale_1khhn_1", "PianoRollScale-Time": "_PianoRollScale-Time_1khhn_7", "pianoRollScaleTime": "_PianoRollScale-Time_1khhn_7", "PianoRollScale-Label": "_PianoRollScale-Label_1khhn_23", "pianoRollScaleLabel": "_PianoRollScale-Label_1khhn_23", "Highlighted": "_Highlighted_1khhn_31", "highlighted": "_Highlighted_1khhn_31", "HighlightedBorder": "_HighlightedBorder_1khhn_35", "highlightedBorder": "_HighlightedBorder_1khhn_35" };
1064
1376
 
1065
1377
  // src/PianoRollScale.tsx
1066
1378
  var _tmpl$7 = /* @__PURE__ */ template(`<div></div>`, 2);
@@ -1101,15 +1413,15 @@ var PianoRollScale = /* @__PURE__ */ __name(() => {
1101
1413
  get children() {
1102
1414
  const _el$3 = _tmpl$7.cloneNode(true);
1103
1415
  insert(_el$3, () => entry().label);
1104
- effect(() => className(_el$3, PianoRollScale_module_default["PianoRollScale-Label"]));
1416
+ effect(() => className(_el$3, PianoRollScale_module_css_default["PianoRollScale-Label"]));
1105
1417
  return _el$3;
1106
1418
  }
1107
1419
  }));
1108
1420
  effect((_p$) => {
1109
1421
  const _v$ = {
1110
- [PianoRollScale_module_default["PianoRollScale-Time"]]: true,
1111
- [PianoRollScale_module_default["Highlighted"]]: entry().isHighlighted,
1112
- [PianoRollScale_module_default["HighlightedBorder"]]: entry().hasHighlightedBorder
1422
+ [PianoRollScale_module_css_default["PianoRollScale-Time"]]: true,
1423
+ [PianoRollScale_module_css_default["Highlighted"]]: entry().isHighlighted,
1424
+ [PianoRollScale_module_css_default["HighlightedBorder"]]: entry().hasHighlightedBorder
1113
1425
  }, _v$2 = `${entry().virtualDimensions.offset}px`, _v$3 = `${entry().virtualDimensions.size}px`;
1114
1426
  _p$._v$ = classList(_el$2, _v$, _p$._v$);
1115
1427
  _v$2 !== _p$._v$2 && _el$2.style.setProperty("left", _p$._v$2 = _v$2);
@@ -1125,7 +1437,7 @@ var PianoRollScale = /* @__PURE__ */ __name(() => {
1125
1437
  });
1126
1438
  }
1127
1439
  }));
1128
- effect(() => className(_el$, PianoRollScale_module_default.PianoRollScale));
1440
+ effect(() => className(_el$, PianoRollScale_module_css_default.PianoRollScale));
1129
1441
  return _el$;
1130
1442
  })();
1131
1443
  }, "PianoRollScale");
@@ -1148,7 +1460,7 @@ var PianoRoll = /* @__PURE__ */ __name((allProps) => {
1148
1460
  const _el$ = _tmpl$42.cloneNode(true);
1149
1461
  spread(_el$, mergeProps$1(divProps, {
1150
1462
  get ["class"]() {
1151
- return PianoRoll_module_default.PianoRoll;
1463
+ return PianoRoll_module_css_default.PianoRoll;
1152
1464
  }
1153
1465
  }), false, true);
1154
1466
  insert(_el$, createComponent(PianoRollScrollZoomViewPort_default, {
@@ -1227,9 +1539,9 @@ var PianoRoll = /* @__PURE__ */ __name((allProps) => {
1227
1539
  }
1228
1540
  }), null);
1229
1541
  effect((_p$) => {
1230
- const _v$ = PianoRoll_module_default.PianoRollContainer, _v$2 = {
1231
- [PianoRoll_module_default.PianoRollLeftColumn]: true,
1232
- [PianoRoll_module_default.showTrackList]: context.showTrackList
1542
+ const _v$ = PianoRoll_module_css_default.PianoRollContainer, _v$2 = {
1543
+ [PianoRoll_module_css_default.PianoRollLeftColumn]: true,
1544
+ [PianoRoll_module_css_default.showTrackList]: context.showTrackList
1233
1545
  };
1234
1546
  _v$ !== _p$._v$ && className(_el$2, _p$._v$ = _v$);
1235
1547
  _p$._v$2 = classList(_el$3, _v$2, _p$._v$2);