dockview-react 4.6.2 → 4.7.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.
@@ -9,6 +9,10 @@
9
9
  height: 4px;
10
10
  border-radius: 2px;
11
11
  background-color: transparent;
12
+ /* GPU optimizations */
13
+ will-change: background-color, transform;
14
+ transform: translate3d(0, 0, 0);
15
+ backface-visibility: hidden;
12
16
  transition-property: background-color;
13
17
  transition-timing-function: ease-in-out;
14
18
  transition-duration: 1s;
@@ -593,9 +597,14 @@
593
597
  .dv-drop-target-container .dv-drop-target-anchor {
594
598
  position: relative;
595
599
  border: var(--dv-drag-over-border);
596
- transition: opacity var(--dv-transition-duration) ease-in, top var(--dv-transition-duration) ease-out, left var(--dv-transition-duration) ease-out, width var(--dv-transition-duration) ease-out, height var(--dv-transition-duration) ease-out;
597
600
  background-color: var(--dv-drag-over-background-color);
598
601
  opacity: 1;
602
+ /* GPU optimizations */
603
+ will-change: transform, opacity;
604
+ transform: translate3d(0, 0, 0);
605
+ backface-visibility: hidden;
606
+ contain: layout paint;
607
+ transition: opacity var(--dv-transition-duration) ease-in, transform var(--dv-transition-duration) ease-out;
599
608
  }
600
609
  .dv-drop-target {
601
610
  position: relative;
@@ -636,6 +645,7 @@
636
645
  .dv-dockview {
637
646
  position: relative;
638
647
  background-color: var(--dv-group-view-background-color);
648
+ contain: layout;
639
649
  }
640
650
  .dv-dockview .dv-watermark-container {
641
651
  position: absolute;
@@ -723,12 +733,18 @@
723
733
  z-index: calc(var(--dv-overlay-z-index) - 2);
724
734
  border: 1px solid var(--dv-tab-divider-color);
725
735
  box-shadow: var(--dv-floating-box-shadow);
736
+ /* GPU optimizations for floating group movement */
737
+ will-change: transform, opacity;
738
+ transform: translate3d(0, 0, 0);
739
+ backface-visibility: hidden;
726
740
  }
727
741
  .dv-resize-container.dv-hidden {
728
742
  display: none;
729
743
  }
730
744
  .dv-resize-container.dv-resize-container-dragging {
731
745
  opacity: 0.5;
746
+ /* Enhanced GPU acceleration during drag */
747
+ will-change: transform, opacity;
732
748
  }
733
749
  .dv-resize-container .dv-resize-handle-top {
734
750
  height: 4px;
@@ -806,7 +822,14 @@
806
822
  --dv-overlay-z-index: var(--dv-overlay-z-index, 999);
807
823
  position: absolute;
808
824
  z-index: 1;
825
+ width: 100%;
809
826
  height: 100%;
827
+ contain: layout paint;
828
+ isolation: isolate;
829
+ /* GPU optimizations */
830
+ will-change: transform;
831
+ transform: translate3d(0, 0, 0);
832
+ backface-visibility: hidden;
810
833
  }
811
834
  .dv-render-overlay.dv-render-overlay-float {
812
835
  z-index: calc(var(--dv-overlay-z-index) - 1);
@@ -821,8 +844,11 @@
821
844
  width: 100%;
822
845
  }
823
846
  .dv-pane-container.dv-animated .dv-view {
824
- transition-duration: 0.15s;
825
- transition-timing-function: ease-out;
847
+ /* GPU optimizations for smooth pane animations */
848
+ will-change: transform;
849
+ transform: translate3d(0, 0, 0);
850
+ backface-visibility: hidden;
851
+ transition: transform 0.15s ease-out;
826
852
  }
827
853
  .dv-pane-container .dv-view {
828
854
  overflow: hidden;
@@ -931,8 +957,11 @@
931
957
  }
932
958
  .dv-split-view-container.dv-animation .dv-view,
933
959
  .dv-split-view-container.dv-animation .dv-sash {
934
- transition-duration: 0.15s;
935
- transition-timing-function: ease-out;
960
+ /* GPU optimizations for smooth animations */
961
+ will-change: transform;
962
+ transform: translate3d(0, 0, 0);
963
+ backface-visibility: hidden;
964
+ transition: transform 0.15s ease-out;
936
965
  }
937
966
  .dv-split-view-container.dv-horizontal {
938
967
  height: 100%;
@@ -1104,6 +1133,9 @@
1104
1133
  height: 100%;
1105
1134
  overflow: auto;
1106
1135
  scrollbar-width: thin;
1136
+ /* GPU optimizations for smooth scrolling */
1137
+ will-change: scroll-position;
1138
+ transform: translate3d(0, 0, 0);
1107
1139
  /* Track */
1108
1140
  /* Handle */
1109
1141
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dockview-react",
3
- "version": "4.6.2",
3
+ "version": "4.7.0",
4
4
  "description": "Zero dependency layout manager supporting tabs, grids and splitviews",
5
5
  "keywords": [
6
6
  "splitview",
@@ -53,6 +53,6 @@
53
53
  "test:cov": "cross-env ../../node_modules/.bin/jest --selectProjects dockview-react --coverage"
54
54
  },
55
55
  "dependencies": {
56
- "dockview": "^4.6.2"
56
+ "dockview": "^4.7.0"
57
57
  }
58
58
  }