solid-pianoroll 0.0.26 → 0.0.27

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/dev.jsx CHANGED
@@ -1,8 +1,56 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
 
4
- // css-module:./PianoRoll.module.css#css-module
5
- var PianoRoll_module_default = { "PianoRoll": "_PianoRoll_1v1e7_1", "PianoRollContainer": "_PianoRollContainer_1v1e7_10", "PianoRollLeftColumn": "_PianoRollLeftColumn_1v1e7_17", "showTrackList": "_showTrackList_1v1e7_24", "PianoRollRightColumn": "_PianoRollRightColumn_1v1e7_29" };
4
+ // esbuild-css-modules-plugin-namespace:/var/folders/hn/m5r9jj0x3zb28s_y23nrnhmc0000gn/T/tmp-88608-4lSEurKZS4xC/solid-pianoroll/src/PianoRoll.module.css.js
5
+ var digest = "1768455784e6754f5fb57107bf43cc8478bbe0ec2ced0bc6aeb796949dcc4906";
6
+ var css = `._PianoRoll_1v1e7_1 {
7
+ box-sizing: border-box;
8
+ display: flex;
9
+ overflow: hidden;
10
+ flex-direction: column;
11
+ height: 100%;
12
+ user-select: none;
13
+ }
14
+
15
+ ._PianoRollContainer_1v1e7_10 {
16
+ overflow: hidden;
17
+ height: 100%;
18
+ display: flex;
19
+ flex-direction: row;
20
+ }
21
+
22
+ ._PianoRollLeftColumn_1v1e7_17 {
23
+ display: flex;
24
+ overflow: hidden;
25
+ flex-direction: column;
26
+ max-width: 250px;
27
+ margin-top: 30px;
28
+ }
29
+ ._PianoRollLeftColumn_1v1e7_17._showTrackList_1v1e7_24 {
30
+ width: 30%;
31
+ margin-top: 0;
32
+ }
33
+
34
+ ._PianoRollRightColumn_1v1e7_29 {
35
+ display: flex;
36
+ position: relative;
37
+ flex-direction: column;
38
+ flex: 1;
39
+ height: 100%;
40
+ }
41
+ `;
42
+ (function() {
43
+ if (typeof document === "undefined") {
44
+ return;
45
+ }
46
+ if (!document.getElementById(digest)) {
47
+ var el = document.createElement("style");
48
+ el.id = digest;
49
+ el.textContent = css;
50
+ document.head.appendChild(el);
51
+ }
52
+ })();
53
+ var PianoRoll_module_css_default = { "pianoRoll": "_PianoRoll_1v1e7_1", "pianoRollContainer": "_PianoRollContainer_1v1e7_10", "pianoRollLeftColumn": "_PianoRollLeftColumn_1v1e7_17", "showTrackList": "_showTrackList_1v1e7_24", "pianoRollRightColumn": "_PianoRollRightColumn_1v1e7_29" };
6
54
 
7
55
  // src/PianoRoll.tsx
8
56
  import { Show as Show6, mergeProps as mergeProps4 } from "solid-js";
@@ -154,8 +202,71 @@ var usePianoRollContext = /* @__PURE__ */ __name(() => {
154
202
  }, "usePianoRollContext");
155
203
  var splitContextProps = /* @__PURE__ */ __name((allProps) => splitProps(allProps, [...pianoRollStatePropNames, "showAllTracks", "showTrackList"]), "splitContextProps");
156
204
 
157
- // css-module:./PianoRollKeys.module.css#css-module
158
- var PianoRollKeys_module_default = { "PianoRollKeys": "_PianoRollKeys_1ne9i_1", "Key": "_Key_1ne9i_14", "black": "_black_1ne9i_29", "white": "_white_1ne9i_38", "down": "_down_1ne9i_46" };
205
+ // esbuild-css-modules-plugin-namespace:/var/folders/hn/m5r9jj0x3zb28s_y23nrnhmc0000gn/T/tmp-88608-giqIfMskMsUC/solid-pianoroll/src/PianoRollKeys.module.css.js
206
+ var digest2 = "a2160cefc96d2c57ab5bc57c0dfc1f009ceabf6981d7bd2c88f333621de2e52f";
207
+ var css2 = `._PianoRollKeys_1ne9i_1 {
208
+ position: relative;
209
+ height: 100%;
210
+ border-width: 0;
211
+ border-color: #000;
212
+ border-style: solid;
213
+ border-right-width: 1px;
214
+ border-left-width: 1px;
215
+ background: white;
216
+ cursor: pointer;
217
+ background: black;
218
+ }
219
+
220
+ ._Key_1ne9i_14 {
221
+ transition-property: background-color, box-shadow;
222
+ transition-duration: 200ms;
223
+ transition-timing-function: ease-out;
224
+ border-width: 0px;
225
+ position: absolute;
226
+ box-sizing: border-box;
227
+ width: 120%;
228
+ left: -20%;
229
+ border-color: #000;
230
+ border-style: solid;
231
+ transform: rotateX(0deg);
232
+ perspective: 100px;
233
+ }
234
+
235
+ ._black_1ne9i_29 {
236
+ background: black;
237
+ border-top-right-radius: 12%;
238
+ border-bottom-right-radius: 12%;
239
+ margin-left: -20%;
240
+ z-index: 1;
241
+ border: 1px black outset;
242
+ }
243
+
244
+ ._white_1ne9i_38 {
245
+ background: white;
246
+ border-top-width: 0.5px;
247
+ border-bottom-width: 0.5px;
248
+ border-top-right-radius: 4%;
249
+ border-bottom-right-radius: 4%;
250
+ }
251
+
252
+ ._down_1ne9i_46 {
253
+ transition: none;
254
+ background: red;
255
+ transform: rotateX(0deg) rotateY(20deg);
256
+ }
257
+ `;
258
+ (function() {
259
+ if (typeof document === "undefined") {
260
+ return;
261
+ }
262
+ if (!document.getElementById(digest2)) {
263
+ var el = document.createElement("style");
264
+ el.id = digest2;
265
+ el.textContent = css2;
266
+ document.head.appendChild(el);
267
+ }
268
+ })();
269
+ var PianoRollKeys_module_css_default = { "pianoRollKeys": "_PianoRollKeys_1ne9i_1", "key": "_Key_1ne9i_14", "black": "_black_1ne9i_29", "white": "_white_1ne9i_38", "down": "_down_1ne9i_46" };
159
270
 
160
271
  // src/PianoRollKeys.tsx
161
272
  import { createEffect as createEffect3, createMemo as createMemo2, createSignal, Index, Show } from "solid-js";
@@ -256,8 +367,26 @@ var useViewPortDimension = /* @__PURE__ */ __name((name) => {
256
367
  // src/viewport/ScrollZoomContainer.tsx
257
368
  import { createEffect as createEffect2, createMemo, mergeProps as mergeProps2, splitProps as splitProps2 } from "solid-js";
258
369
 
259
- // css-module:./ScrollZoomContainer.module.css#css-module
260
- var ScrollZoomContainer_module_default = { "ScrollZoomContainer": "_ScrollZoomContainer_f395r_1" };
370
+ // esbuild-css-modules-plugin-namespace:/var/folders/hn/m5r9jj0x3zb28s_y23nrnhmc0000gn/T/tmp-88608-DACyjAWFEZua/solid-pianoroll/src/viewport/ScrollZoomContainer.module.css.js
371
+ var digest3 = "da87d2f74ba194d0dab11eb617c56efea90f00f122f089820383ed1269e10936";
372
+ var css3 = `._ScrollZoomContainer_f395r_1 {
373
+ height: 100%;
374
+ width: 100%;
375
+ z-index: 4;
376
+ }
377
+ `;
378
+ (function() {
379
+ if (typeof document === "undefined") {
380
+ return;
381
+ }
382
+ if (!document.getElementById(digest3)) {
383
+ var el = document.createElement("style");
384
+ el.id = digest3;
385
+ el.textContent = css3;
386
+ document.head.appendChild(el);
387
+ }
388
+ })();
389
+ var ScrollZoomContainer_module_css_default = { "scrollZoomContainer": "_ScrollZoomContainer_f395r_1" };
261
390
 
262
391
  // src/viewport/ScrollZoomContainer.tsx
263
392
  var ScrollZoomContainer = /* @__PURE__ */ __name((props) => {
@@ -356,7 +485,7 @@ var ScrollZoomContainer = /* @__PURE__ */ __name((props) => {
356
485
  ...typeof divProps.style === "object" && divProps.style
357
486
  }}
358
487
  classList={{
359
- [ScrollZoomContainer_module_default.ScrollZoomContainer]: true,
488
+ [ScrollZoomContainer_module_css_default.ScrollZoomContainer]: true,
360
489
  ...divProps.classList
361
490
  }}
362
491
  ><div ref={scrollContentRef}><div
@@ -394,7 +523,7 @@ var PianoRollKeys = /* @__PURE__ */ __name(() => {
394
523
  window.removeEventListener("mouseup", handleMouseUp);
395
524
  }
396
525
  });
397
- return <div class={PianoRollKeys_module_default.PianoRollKeys} style={{ width: `${horizontalViewPort().pixelSize}px` }}><ScrollZoomContainer_default horizontalDimensionName="horizontalKeys" showScrollbar={false}><Index each={keys}>{(key) => {
526
+ return <div class={PianoRollKeys_module_css_default.PianoRollKeys} style={{ width: `${horizontalViewPort().pixelSize}px` }}><ScrollZoomContainer_default horizontalDimensionName="horizontalKeys" showScrollbar={false}><Index each={keys}>{(key) => {
398
527
  const isDown = createMemo2(
399
528
  () => context.isKeyDown(context.selectedTrackIndex, key().number)
400
529
  );
@@ -405,10 +534,10 @@ var PianoRollKeys = /* @__PURE__ */ __name(() => {
405
534
  const nextIsBlack = blackKeys.includes((key().number + 1) % 12);
406
535
  return <Show when={verticalViewPort().isVisible(virtualDimensions())}><div
407
536
  classList={{
408
- [PianoRollKeys_module_default["Key"]]: true,
409
- [PianoRollKeys_module_default["black"]]: key().isBlack,
410
- [PianoRollKeys_module_default["white"]]: !key().isBlack,
411
- [PianoRollKeys_module_default["down"]]: isDown()
537
+ [PianoRollKeys_module_css_default["Key"]]: true,
538
+ [PianoRollKeys_module_css_default["black"]]: key().isBlack,
539
+ [PianoRollKeys_module_css_default["white"]]: !key().isBlack,
540
+ [PianoRollKeys_module_css_default["down"]]: isDown()
412
541
  }}
413
542
  onMouseDown={() => {
414
543
  setIsMouseDown(true);
@@ -455,8 +584,49 @@ var PianoRollKeys_default = PianoRollKeys;
455
584
  // src/PianoRollNotes.tsx
456
585
  import { createMemo as createMemo3, createSignal as createSignal2, For, Show as Show2 } from "solid-js";
457
586
 
458
- // css-module:./PianoRollNotes.module.css#css-module
459
- var PianoRollNotes_module_default = { "PianoRollNotes": "_PianoRollNotes_u3pew_1", "Note": "_Note_u3pew_12", "trimStart": "_trimStart_u3pew_22", "trimEnd": "_trimEnd_u3pew_26" };
587
+ // esbuild-css-modules-plugin-namespace:/var/folders/hn/m5r9jj0x3zb28s_y23nrnhmc0000gn/T/tmp-88608-H6bkIm6VjhJs/solid-pianoroll/src/PianoRollNotes.module.css.js
588
+ var digest4 = "fb03dfb9f9735042f035cb3dc6f116588f2ff84bccb7b1eaafbf1e04d0d357c2";
589
+ var css4 = `._PianoRollNotes_u3pew_1 {
590
+ position: absolute;
591
+ flex: 1;
592
+ top: 0;
593
+ left: 0;
594
+ width: 100%;
595
+ height: 100%;
596
+ z-index: 1;
597
+ cursor: grab;
598
+ }
599
+
600
+ ._Note_u3pew_12 {
601
+ position: absolute;
602
+ box-sizing: border-box;
603
+ border-width: 0.5px;
604
+ border-style: solid;
605
+ border-color: #a00;
606
+
607
+ cursor: move;
608
+ }
609
+
610
+ ._Note_u3pew_12._trimStart_u3pew_22 {
611
+ cursor: w-resize;
612
+ }
613
+
614
+ ._Note_u3pew_12._trimEnd_u3pew_26 {
615
+ cursor: e-resize;
616
+ }
617
+ `;
618
+ (function() {
619
+ if (typeof document === "undefined") {
620
+ return;
621
+ }
622
+ if (!document.getElementById(digest4)) {
623
+ var el = document.createElement("style");
624
+ el.id = digest4;
625
+ el.textContent = css4;
626
+ document.head.appendChild(el);
627
+ }
628
+ })();
629
+ var PianoRollNotes_module_css_default = { "pianoRollNotes": "_PianoRollNotes_u3pew_1", "note": "_Note_u3pew_12", "trimStart": "_trimStart_u3pew_22", "trimEnd": "_trimEnd_u3pew_26" };
460
630
 
461
631
  // src/PianoRollNotes.tsx
462
632
  var PianoRollNotes = /* @__PURE__ */ __name((props) => {
@@ -541,10 +711,10 @@ var PianoRollNotes = /* @__PURE__ */ __name((props) => {
541
711
  window.addEventListener("mouseup", stopDragging);
542
712
  }, "startDragging");
543
713
  const getClasses = /* @__PURE__ */ __name((noteDragMode2) => {
544
- return noteDragMode2 ? [PianoRollNotes_module_default.Note, PianoRollNotes_module_default[noteDragMode2]] : [PianoRollNotes_module_default.Note];
714
+ return noteDragMode2 ? [PianoRollNotes_module_css_default.Note, PianoRollNotes_module_css_default[noteDragMode2]] : [PianoRollNotes_module_css_default.Note];
545
715
  }, "getClasses");
546
716
  return <div
547
- classList={{ [PianoRollNotes_module_default.PianoRollNotes]: true }}
717
+ classList={{ [PianoRollNotes_module_css_default.PianoRollNotes]: true }}
548
718
  ref={props.ref}
549
719
  onMouseDown={(mouseDownEvent) => {
550
720
  mouseDownEvent.preventDefault();
@@ -639,8 +809,64 @@ var PianoRollNotes_default = PianoRollNotes;
639
809
  // src/PianoRollGrid.tsx
640
810
  import { createMemo as createMemo5, For as For2, Index as Index2, Show as Show3 } from "solid-js";
641
811
 
642
- // css-module:./PianoRollGrid.module.css#css-module
643
- 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" };
812
+ // esbuild-css-modules-plugin-namespace:/var/folders/hn/m5r9jj0x3zb28s_y23nrnhmc0000gn/T/tmp-88608-6elOn94vcLry/solid-pianoroll/src/PianoRollGrid.module.css.js
813
+ var digest5 = "b0952315b4fe36c31ed82062cb6cba74437c761ac8863b381025d697a4c4b98e";
814
+ var css5 = `._PianoRollGrid_qke5f_1 {
815
+ position: relative;
816
+ width: 100%;
817
+ height: 100%;
818
+ }
819
+
820
+ ._PianoRollGrid-Row_qke5f_7 {
821
+ position: absolute;
822
+ border-style: solid;
823
+ border-color: gray;
824
+ width: 100%;
825
+ border-width: 0;
826
+ }
827
+ ._PianoRollGrid-Row_qke5f_7._IsDark_qke5f_14 {
828
+ background-color: rgba(0, 0, 0, 0.2);
829
+ }
830
+
831
+ ._PianoRollGrid-Row_qke5f_7._Key_qke5f_18 {
832
+ border-width: 0px 1px 0px 0;
833
+ }
834
+ ._PianoRollGrid-Row_qke5f_7._IsBlackAndNextIsWhite_qke5f_21 {
835
+ background-color: rgba(0, 0, 0, 0.2);
836
+ border-width: 0.1px 1px 0.1px 0;
837
+ }
838
+
839
+ ._PianoRollGrid-Time_qke5f_26 {
840
+ position: absolute;
841
+ box-sizing: border-box;
842
+ top: 0px;
843
+ height: 100%;
844
+ border-left-style: solid;
845
+ border-left-width: 0.5px;
846
+ border-left-color: #bbb;
847
+ background: #ccc;
848
+ }
849
+
850
+ ._PianoRollGrid-Time_qke5f_26._Highlighted_qke5f_37 {
851
+ background: #ddd;
852
+ }
853
+
854
+ ._PianoRollGrid-Time_qke5f_26._HighlightedBorder_qke5f_41 {
855
+ border-left-color: gray;
856
+ }
857
+ `;
858
+ (function() {
859
+ if (typeof document === "undefined") {
860
+ return;
861
+ }
862
+ if (!document.getElementById(digest5)) {
863
+ var el = document.createElement("style");
864
+ el.id = digest5;
865
+ el.textContent = css5;
866
+ document.head.appendChild(el);
867
+ }
868
+ })();
869
+ var PianoRollGrid_module_css_default = { "pianoRollGrid": "_PianoRollGrid_qke5f_1", "pianoRollGridRow": "_PianoRollGrid-Row_qke5f_7", "isDark": "_IsDark_qke5f_14", "key": "_Key_qke5f_18", "isBlackAndNextIsWhite": "_IsBlackAndNextIsWhite_qke5f_21", "pianoRollGridTime": "_PianoRollGrid-Time_qke5f_26", "highlighted": "_Highlighted_qke5f_37", "highlightedBorder": "_HighlightedBorder_qke5f_41" };
644
870
 
645
871
  // src/usePianoRollGrid.ts
646
872
  import { createMemo as createMemo4 } from "solid-js";
@@ -700,13 +926,13 @@ var PianoRollGrid = /* @__PURE__ */ __name(() => {
700
926
  );
701
927
  const horizontalViewPort = createMemo5(() => useViewPortDimension("horizontal"));
702
928
  const gridArray = usePianoRollGrid_default();
703
- return <div class={PianoRollGrid_module_default.PianoRollGrid}>
929
+ return <div class={PianoRollGrid_module_css_default.PianoRollGrid}>
704
930
  <Index2 each={gridArray()}>{(entry) => {
705
931
  return <Show3 when={horizontalViewPort().isVisible(entry().virtualDimensions)}><div
706
932
  classList={{
707
- [PianoRollGrid_module_default["PianoRollGrid-Time"]]: true,
708
- [PianoRollGrid_module_default["Highlighted"]]: entry().isHighlighted,
709
- [PianoRollGrid_module_default["HighlightedBorder"]]: entry().hasHighlightedBorder
933
+ [PianoRollGrid_module_css_default["PianoRollGrid-Time"]]: true,
934
+ [PianoRollGrid_module_css_default["Highlighted"]]: entry().isHighlighted,
935
+ [PianoRollGrid_module_css_default["HighlightedBorder"]]: entry().hasHighlightedBorder
710
936
  }}
711
937
  style={{
712
938
  left: `${entry().virtualDimensions.offset}px`,
@@ -720,10 +946,10 @@ var PianoRollGrid = /* @__PURE__ */ __name(() => {
720
946
  );
721
947
  return <Show3 when={verticalViewPort().isVisible(virtualDimensions())}><div
722
948
  classList={{
723
- [PianoRollGrid_module_default["PianoRollGrid-Row"]]: true,
724
- [PianoRollGrid_module_default["Key"]]: true,
725
- [PianoRollGrid_module_default["IsDark"]]: key().isBlack,
726
- [PianoRollGrid_module_default["IsBlackAndNextIsWhite"]]: !key().isBlack && !blackKeys.includes((key().number + 1) % 12)
949
+ [PianoRollGrid_module_css_default["PianoRollGrid-Row"]]: true,
950
+ [PianoRollGrid_module_css_default["Key"]]: true,
951
+ [PianoRollGrid_module_css_default["IsDark"]]: key().isBlack,
952
+ [PianoRollGrid_module_css_default["IsBlackAndNextIsWhite"]]: !key().isBlack && !blackKeys.includes((key().number + 1) % 12)
727
953
  }}
728
954
  style={{
729
955
  top: `${virtualDimensions().offset}px`,
@@ -737,8 +963,8 @@ var PianoRollGrid = /* @__PURE__ */ __name(() => {
737
963
  );
738
964
  return <Show3 when={verticalViewPort().isVisible(virtualDimensions())}><div
739
965
  classList={{
740
- [PianoRollGrid_module_default["PianoRollGrid-Row"]]: true,
741
- [PianoRollGrid_module_default["IsDark"]]: index() % 2 === 0
966
+ [PianoRollGrid_module_css_default["PianoRollGrid-Row"]]: true,
967
+ [PianoRollGrid_module_css_default["IsDark"]]: index() % 2 === 0
742
968
  }}
743
969
  style={{
744
970
  top: `${virtualDimensions().offset}px`,
@@ -790,20 +1016,56 @@ var ZoomSliderControl = /* @__PURE__ */ __name((props) => {
790
1016
  }, "ZoomSliderControl");
791
1017
  var ZoomSliderControl_default = ZoomSliderControl;
792
1018
 
793
- // css-module:./PianoRollTrackList.module.css#css-module
794
- var PianoRollTrackList_module_default = { "PianoRollTrackList": "_PianoRollTrackList_11kti_1", "Track": "_Track_11kti_7", "selected": "_selected_11kti_21" };
1019
+ // esbuild-css-modules-plugin-namespace:/var/folders/hn/m5r9jj0x3zb28s_y23nrnhmc0000gn/T/tmp-88608-s5a7xEDYct3c/solid-pianoroll/src/PianoRollTrackList.module.css.js
1020
+ var digest6 = "77f61e2e770dc69815f8561e41ee5519ceb2eb971ed938593e2695d0b0edc716";
1021
+ var css6 = `._PianoRollTrackList_11kti_1 {
1022
+ position: relative;
1023
+ height: 100%;
1024
+ flex: 1;
1025
+ }
1026
+
1027
+ ._Track_11kti_7 {
1028
+ border-width: 0px;
1029
+ position: absolute;
1030
+ box-sizing: border-box;
1031
+ width: 100%;
1032
+ border-color: #000;
1033
+ border-style: solid;
1034
+ border-right-width: 1px;
1035
+ border-bottom-width: 1px;
1036
+ padding: 2px;
1037
+ cursor: pointer;
1038
+ background: lightgrey;
1039
+ }
1040
+
1041
+ Track._selected_11kti_21 {
1042
+ background: gray;
1043
+ }
1044
+ `;
1045
+ (function() {
1046
+ if (typeof document === "undefined") {
1047
+ return;
1048
+ }
1049
+ if (!document.getElementById(digest6)) {
1050
+ var el = document.createElement("style");
1051
+ el.id = digest6;
1052
+ el.textContent = css6;
1053
+ document.head.appendChild(el);
1054
+ }
1055
+ })();
1056
+ var PianoRollTrackList_module_css_default = { "pianoRollTrackList": "_PianoRollTrackList_11kti_1", "track": "_Track_11kti_7", "selected": "_selected_11kti_21" };
795
1057
 
796
1058
  // src/PianoRollTrackList.tsx
797
1059
  import { createMemo as createMemo7, Index as Index3, Show as Show4 } from "solid-js";
798
1060
  var PianoRollTrackList = /* @__PURE__ */ __name(() => {
799
1061
  const viewPort = createMemo7(() => useViewPortDimension("verticalTracks"));
800
1062
  const context = usePianoRollContext();
801
- return <div class={PianoRollTrackList_module_default.PianoRollTrackList}><Index3 each={context.tracks}>{(track, index) => {
1063
+ return <div class={PianoRollTrackList_module_css_default.PianoRollTrackList}><Index3 each={context.tracks}>{(track, index) => {
802
1064
  const virtualDimensions = createMemo7(() => viewPort().calculatePixelDimensions(index, 1));
803
1065
  return <Show4 when={virtualDimensions().size > 0}><div
804
1066
  classList={{
805
- [PianoRollTrackList_module_default["Track"]]: true,
806
- [PianoRollTrackList_module_default["selected"]]: index === context.selectedTrackIndex
1067
+ [PianoRollTrackList_module_css_default["Track"]]: true,
1068
+ [PianoRollTrackList_module_css_default["selected"]]: index === context.selectedTrackIndex
807
1069
  }}
808
1070
  title={track().name}
809
1071
  style={{
@@ -944,8 +1206,58 @@ var PianoRollTrackListScroller_default = PianoRollTrackListScroller;
944
1206
  // src/PianoRollScale.tsx
945
1207
  import { createMemo as createMemo8, Index as Index4, Show as Show5 } from "solid-js";
946
1208
 
947
- // css-module:./PianoRollScale.module.css#css-module
948
- 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" };
1209
+ // esbuild-css-modules-plugin-namespace:/var/folders/hn/m5r9jj0x3zb28s_y23nrnhmc0000gn/T/tmp-88608-ZNE7lRttL9wJ/solid-pianoroll/src/PianoRollScale.module.css.js
1210
+ var digest7 = "cb997b7e12c7761253708bd6ddeeafac5c949397b9c43741d4bdf2d93d534714";
1211
+ var css7 = `._PianoRollScale_1khhn_1 {
1212
+ position: relative;
1213
+ width: 100%;
1214
+ height: 100%;
1215
+ }
1216
+
1217
+ ._PianoRollScale-Time_1khhn_7 {
1218
+ position: absolute;
1219
+ box-sizing: border-box;
1220
+ top: 0px;
1221
+ height: 100%;
1222
+ border-left-style: solid;
1223
+ border-left-width: 0.5px;
1224
+ border-left-color: x#666;
1225
+ border-bottom-color: #333;
1226
+ border-bottom-style: solid;
1227
+ border-bottom-width: 0.5px;
1228
+ background: #777;
1229
+ display: flex;
1230
+ align-items: center;
1231
+ }
1232
+
1233
+ ._PianoRollScale-Label_1khhn_23 {
1234
+ position: absolute;
1235
+ z-index: 1;
1236
+ color: #ccc;
1237
+ margin-left: 3px;
1238
+ font-size: 0.8em;
1239
+ }
1240
+
1241
+ ._PianoRollScale-Time_1khhn_7._Highlighted_1khhn_31 {
1242
+ background: #666;
1243
+ }
1244
+
1245
+ ._PianoRollScale-Time_1khhn_7._HighlightedBorder_1khhn_35 {
1246
+ border-left-color: #111;
1247
+ }
1248
+ `;
1249
+ (function() {
1250
+ if (typeof document === "undefined") {
1251
+ return;
1252
+ }
1253
+ if (!document.getElementById(digest7)) {
1254
+ var el = document.createElement("style");
1255
+ el.id = digest7;
1256
+ el.textContent = css7;
1257
+ document.head.appendChild(el);
1258
+ }
1259
+ })();
1260
+ var PianoRollScale_module_css_default = { "pianoRollScale": "_PianoRollScale_1khhn_1", "pianoRollScaleTime": "_PianoRollScale-Time_1khhn_7", "pianoRollScaleLabel": "_PianoRollScale-Label_1khhn_23", "highlighted": "_Highlighted_1khhn_31", "highlightedBorder": "_HighlightedBorder_1khhn_35" };
949
1261
 
950
1262
  // src/PianoRollScale.tsx
951
1263
  var PianoRollScale = /* @__PURE__ */ __name(() => {
@@ -957,7 +1269,7 @@ var PianoRollScale = /* @__PURE__ */ __name(() => {
957
1269
  context.onPlayHeadPositionChange(position, event);
958
1270
  }, "updatePlayheadPosition");
959
1271
  return <div
960
- class={PianoRollScale_module_default.PianoRollScale}
1272
+ class={PianoRollScale_module_css_default.PianoRollScale}
961
1273
  onMouseDown={(event) => {
962
1274
  updatePlayheadPosition(event);
963
1275
  const handleMouseUp = /* @__PURE__ */ __name(() => {
@@ -970,15 +1282,15 @@ var PianoRollScale = /* @__PURE__ */ __name(() => {
970
1282
  ><Index4 each={grid()}>{(entry) => {
971
1283
  return <Show5 when={horizontalViewPort().isVisible(entry().virtualDimensions)}><div
972
1284
  classList={{
973
- [PianoRollScale_module_default["PianoRollScale-Time"]]: true,
974
- [PianoRollScale_module_default["Highlighted"]]: entry().isHighlighted,
975
- [PianoRollScale_module_default["HighlightedBorder"]]: entry().hasHighlightedBorder
1285
+ [PianoRollScale_module_css_default["PianoRollScale-Time"]]: true,
1286
+ [PianoRollScale_module_css_default["Highlighted"]]: entry().isHighlighted,
1287
+ [PianoRollScale_module_css_default["HighlightedBorder"]]: entry().hasHighlightedBorder
976
1288
  }}
977
1289
  style={{
978
1290
  left: `${entry().virtualDimensions.offset}px`,
979
1291
  width: `${entry().virtualDimensions.size}px`
980
1292
  }}
981
- ><Show5 when={entry().showLabel}><div class={PianoRollScale_module_default["PianoRollScale-Label"]}>{entry().label}</div></Show5></div></Show5>;
1293
+ ><Show5 when={entry().showLabel}><div class={PianoRollScale_module_css_default["PianoRollScale-Label"]}>{entry().label}</div></Show5></div></Show5>;
982
1294
  }}</Index4></div>;
983
1295
  }, "PianoRollScale");
984
1296
  var PianoRollScale_default = PianoRollScale;
@@ -987,13 +1299,13 @@ var PianoRollScale_default = PianoRollScale;
987
1299
  var PianoRoll = /* @__PURE__ */ __name((allProps) => {
988
1300
  const propsWithDefaults = mergeProps4({ showAllTracks: false }, allProps);
989
1301
  const [context, divProps] = splitContextProps(propsWithDefaults);
990
- return <PianoRollContextProvider value={context}><div {...divProps} class={PianoRoll_module_default.PianoRoll}><PianoRollScrollZoomViewPort_default>
991
- <div class={PianoRoll_module_default.PianoRollContainer}>
1302
+ return <PianoRollContextProvider value={context}><div {...divProps} class={PianoRoll_module_css_default.PianoRoll}><PianoRollScrollZoomViewPort_default>
1303
+ <div class={PianoRoll_module_css_default.PianoRollContainer}>
992
1304
  <ZoomSliderControl_default orientation="vertical" dimensionName="verticalTracks" />
993
1305
  <div
994
1306
  classList={{
995
- [PianoRoll_module_default.PianoRollLeftColumn]: true,
996
- [PianoRoll_module_default.showTrackList]: context.showTrackList
1307
+ [PianoRoll_module_css_default.PianoRollLeftColumn]: true,
1308
+ [PianoRoll_module_css_default.showTrackList]: context.showTrackList
997
1309
  }}
998
1310
  >
999
1311
  <Show6 when={context.showTrackList}><div