@trdrs/quickcharts 5.5.0 → 5.6.1

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
 
@@ -6815,19 +6815,18 @@
6815
6815
  border-color: var(--qc-control-onHover);
6816
6816
  }
6817
6817
 
6818
- /* The box at the top of the scale naming what its prices are in: at least 64x26, four pixels in from
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. */
6818
+ /* The box at the top of the scale naming what its prices are in: 26px tall and as wide as the scale
6819
+ * less four pixels on each side, four pixels below the scale's top, on the chart's background inside
6820
+ * a 1px border with a radius of 4. Its words stand at the start of a 24px row inside the border, 3px
6821
+ * in from each end on a radius of 3, in 12px text, and words too long for the scale end in an
6822
+ * ellipsis. It takes no pointer, so the scale under it still drags. */
6821
6823
  [data-qc-theme] .qc-scale-unit {
6822
6824
  position: absolute;
6823
6825
  z-index: 4;
6824
6826
  box-sizing: border-box;
6825
6827
  display: flex;
6826
- 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,52 @@
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
+ min-width: 0;
6845
+ height: 24px;
6846
+ align-items: center;
6847
+ justify-content: space-between;
6848
+ gap: 2px;
6849
+ padding: 0 3px;
6850
+ border-radius: 3px;
6851
+ }
6852
+
6853
+ [data-qc-theme] .qc-scale-unit-text {
6854
+ min-width: 0;
6855
+ overflow: hidden;
6856
+ text-overflow: ellipsis;
6857
+ }
6858
+
6842
6859
  /* 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. */
6860
+ * and outline, takes the pointer, and ends its row in a 7x5 caret. The row lights under the pointer,
6861
+ * while pressed and while the menu stands open, and the caret turns over while it is open. The chrome
6862
+ * gives every button its pointer back, so these rules name the chrome as well. */
6845
6863
  [data-qc-theme] .qc-chrome button.qc-scale-unit {
6846
6864
  font-family: inherit;
6847
6865
  cursor: pointer;
6848
6866
  pointer-events: auto;
6849
6867
  }
6850
6868
 
6851
- [data-qc-theme] .qc-chrome button.qc-scale-unit:hover {
6869
+ [data-qc-theme] .qc-chrome button.qc-scale-unit:hover .qc-scale-unit-row,
6870
+ [data-qc-theme] .qc-chrome button.qc-scale-unit[aria-expanded='true'] .qc-scale-unit-row {
6852
6871
  background: var(--qc-state-hover);
6853
6872
  }
6854
6873
 
6855
- [data-qc-theme] .qc-chrome button.qc-scale-unit:active {
6874
+ [data-qc-theme] .qc-chrome button.qc-scale-unit:active .qc-scale-unit-row {
6856
6875
  background: var(--qc-state-pressed);
6857
6876
  }
6858
6877
 
6878
+ [data-qc-theme] .qc-scale-unit-arrow {
6879
+ display: flex;
6880
+ flex: 0 0 7px;
6881
+ }
6882
+
6883
+ [data-qc-theme] .qc-chrome button.qc-scale-unit[aria-expanded='true'] .qc-scale-unit-arrow {
6884
+ transform: rotate(180deg);
6885
+ }
6886
+
6859
6887
  /* The plus beside the crosshair's price label is painted by the renderer with the label. Its button
6860
6888
  * stands over the painted box, at the size the chart writes: transparent, and taking no pointer, so
6861
6889
  * 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.1",
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",