@trdrs/quickcharts 5.5.0 → 5.6.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.
@@ -6769,15 +6769,15 @@
6769
6769
  * places each over the scale's box as it measures it and writes `--qcd-chart-background`, the
6770
6770
  * chart's own background, which each control stands on. */
6771
6771
 
6772
- /* The auto-scale and logarithmic buttons at the foot of the scale: two 20x22 buttons 15px apart, each
6773
- * centred in a 35x30 cell, a 14px letter each on an 18px line. Off, a button is a 1px outline on the
6772
+ /* The auto-scale and logarithmic buttons at the foot of the scale: two 20x22 buttons 4px apart, the
6773
+ * pair centred on the scale, a 14px letter each on an 18px line. Off, a button is a 1px outline on the
6774
6774
  * chart's background, lit under the pointer; on, it is a held mode, filled in the emphasis fill a
6775
6775
  * checked box wears with its letter in the inverse ink, a step lighter under the pointer. */
6776
6776
  [data-qc-theme] .qc-scale-modes {
6777
6777
  position: absolute;
6778
6778
  z-index: 4;
6779
6779
  display: flex;
6780
- gap: 15px;
6780
+ gap: 4px;
6781
6781
  pointer-events: auto;
6782
6782
  }
6783
6783
 
@@ -6817,7 +6817,8 @@
6817
6817
 
6818
6818
  /* The box at the top of the scale naming what its prices are in: at least 64x26, four pixels in from
6819
6819
  * the scale's top and its side away from the plot, on the chart's background inside a 1px border
6820
- * with a radius of 4, in 12px text. It takes no pointer, so the scale under it still drags. */
6820
+ * with a radius of 4. Its words stand at the start of a 24px row inside the border, 3px in from
6821
+ * each end on a radius of 3, in 12px text. It takes no pointer, so the scale under it still drags. */
6821
6822
  [data-qc-theme] .qc-scale-unit {
6822
6823
  position: absolute;
6823
6824
  z-index: 4;
@@ -6825,9 +6826,7 @@
6825
6826
  display: flex;
6826
6827
  min-width: 64px;
6827
6828
  height: 26px;
6828
- align-items: center;
6829
- justify-content: center;
6830
- padding: 0 6px;
6829
+ padding: 0;
6831
6830
  font-size: 12px;
6832
6831
  font-weight: 400;
6833
6832
  line-height: 12px;
@@ -6839,23 +6838,45 @@
6839
6838
  pointer-events: none;
6840
6839
  }
6841
6840
 
6841
+ [data-qc-theme] .qc-scale-unit-row {
6842
+ display: flex;
6843
+ flex: 1 1 auto;
6844
+ height: 24px;
6845
+ align-items: center;
6846
+ justify-content: space-between;
6847
+ gap: 2px;
6848
+ padding: 0 3px;
6849
+ border-radius: 3px;
6850
+ }
6851
+
6842
6852
  /* With the host's door the box is a button that opens the host's menu: it keeps the box's size, type
6843
- * and outline, takes the pointer, and lights under it and while pressed as the scale's buttons do.
6844
- * The chrome gives every button its pointer back, so this rule names the chrome as well. */
6853
+ * and outline, takes the pointer, and ends its row in a 7x5 caret. The row lights under the pointer,
6854
+ * while pressed and while the menu stands open, and the caret turns over while it is open. The chrome
6855
+ * gives every button its pointer back, so these rules name the chrome as well. */
6845
6856
  [data-qc-theme] .qc-chrome button.qc-scale-unit {
6846
6857
  font-family: inherit;
6847
6858
  cursor: pointer;
6848
6859
  pointer-events: auto;
6849
6860
  }
6850
6861
 
6851
- [data-qc-theme] .qc-chrome button.qc-scale-unit:hover {
6862
+ [data-qc-theme] .qc-chrome button.qc-scale-unit:hover .qc-scale-unit-row,
6863
+ [data-qc-theme] .qc-chrome button.qc-scale-unit[aria-expanded='true'] .qc-scale-unit-row {
6852
6864
  background: var(--qc-state-hover);
6853
6865
  }
6854
6866
 
6855
- [data-qc-theme] .qc-chrome button.qc-scale-unit:active {
6867
+ [data-qc-theme] .qc-chrome button.qc-scale-unit:active .qc-scale-unit-row {
6856
6868
  background: var(--qc-state-pressed);
6857
6869
  }
6858
6870
 
6871
+ [data-qc-theme] .qc-scale-unit-arrow {
6872
+ display: flex;
6873
+ flex: 0 0 7px;
6874
+ }
6875
+
6876
+ [data-qc-theme] .qc-chrome button.qc-scale-unit[aria-expanded='true'] .qc-scale-unit-arrow {
6877
+ transform: rotate(180deg);
6878
+ }
6879
+
6859
6880
  /* The plus beside the crosshair's price label is painted by the renderer with the label. Its button
6860
6881
  * stands over the painted box, at the size the chart writes: transparent, and taking no pointer, so
6861
6882
  * a pointer resting on the plus stays on the plot and keeps the crosshair. It carries the plus's
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trdrs/quickcharts",
3
- "version": "5.5.0",
3
+ "version": "5.6.0",
4
4
  "description": "Quick Charts: a datafeed-driven charting library with drawings, indicators, layouts and replay over host-supplied data and storage ports.",
5
5
  "keywords": [
6
6
  "charts",