@trdrs/quickcharts 5.4.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.
- package/CHANGELOG.md +8 -0
- package/README.md +34 -9
- package/dist/feature-manifest.json +1 -1
- package/dist/index.d.ts +23 -5
- package/dist/index.js +67 -21
- package/dist/index.js.map +1 -1
- package/dist/quickcharts.css +81 -16
- package/package.json +1 -1
package/dist/quickcharts.css
CHANGED
|
@@ -5174,11 +5174,12 @@
|
|
|
5174
5174
|
height: 28px;
|
|
5175
5175
|
}
|
|
5176
5176
|
|
|
5177
|
-
/* The
|
|
5178
|
-
|
|
5179
|
-
[data-qc-theme] .qc-picker-list--
|
|
5180
|
-
[data-qc-theme] .qc-picker-list--
|
|
5181
|
-
[data-qc-theme] .qc-picker-list--
|
|
5177
|
+
/* The author and count columns stand only while a listed row fills them, so the shipped catalog is
|
|
5178
|
+
* a row of its star, its name and its actions. */
|
|
5179
|
+
[data-qc-theme] .qc-picker-list:not(.qc-picker-list--authors) .qc-picker-author,
|
|
5180
|
+
[data-qc-theme] .qc-picker-list:not(.qc-picker-list--authors) .qc-picker-headings > :nth-child(3),
|
|
5181
|
+
[data-qc-theme] .qc-picker-list:not(.qc-picker-list--counts) .qc-picker-count,
|
|
5182
|
+
[data-qc-theme] .qc-picker-list:not(.qc-picker-list--counts) .qc-picker-headings > :nth-child(4) {
|
|
5182
5183
|
display: none;
|
|
5183
5184
|
}
|
|
5184
5185
|
|
|
@@ -5191,6 +5192,49 @@
|
|
|
5191
5192
|
display: none;
|
|
5192
5193
|
}
|
|
5193
5194
|
|
|
5195
|
+
/* A collection's empty state fills the list's place, centred in the row ink: a 120px mark 12px over
|
|
5196
|
+
* an 18px title, 12px over 16px text, and its action 20px under that, a dialog footer's primary
|
|
5197
|
+
* button. */
|
|
5198
|
+
[data-qc-theme] .qc-picker-empty {
|
|
5199
|
+
display: flex;
|
|
5200
|
+
flex: 1 1 auto;
|
|
5201
|
+
flex-direction: column;
|
|
5202
|
+
align-items: center;
|
|
5203
|
+
justify-content: center;
|
|
5204
|
+
min-height: 0;
|
|
5205
|
+
padding: 0 34px 0 30px;
|
|
5206
|
+
color: var(--qc-text-secondary);
|
|
5207
|
+
text-align: center;
|
|
5208
|
+
}
|
|
5209
|
+
|
|
5210
|
+
[data-qc-theme] .qc-picker-empty-mark,
|
|
5211
|
+
[data-qc-theme] .qc-picker-empty-mark svg {
|
|
5212
|
+
display: flex;
|
|
5213
|
+
width: 120px;
|
|
5214
|
+
height: 120px;
|
|
5215
|
+
}
|
|
5216
|
+
|
|
5217
|
+
[data-qc-theme] .qc-picker-empty-mark {
|
|
5218
|
+
margin-bottom: 12px;
|
|
5219
|
+
}
|
|
5220
|
+
|
|
5221
|
+
[data-qc-theme] .qc-picker-empty-title {
|
|
5222
|
+
margin-bottom: 12px;
|
|
5223
|
+
font-size: 18px;
|
|
5224
|
+
font-weight: 600;
|
|
5225
|
+
line-height: 24px;
|
|
5226
|
+
}
|
|
5227
|
+
|
|
5228
|
+
[data-qc-theme] .qc-picker-empty-text {
|
|
5229
|
+
margin: 0 0 -4px;
|
|
5230
|
+
font-size: 16px;
|
|
5231
|
+
line-height: 24px;
|
|
5232
|
+
}
|
|
5233
|
+
|
|
5234
|
+
[data-qc-theme] .qc-picker-empty-action {
|
|
5235
|
+
margin-top: 20px;
|
|
5236
|
+
}
|
|
5237
|
+
|
|
5194
5238
|
[data-qc-theme] .qc-picker-status {
|
|
5195
5239
|
flex: 0 0 auto;
|
|
5196
5240
|
padding: 0 20px;
|
|
@@ -6725,15 +6769,15 @@
|
|
|
6725
6769
|
* places each over the scale's box as it measures it and writes `--qcd-chart-background`, the
|
|
6726
6770
|
* chart's own background, which each control stands on. */
|
|
6727
6771
|
|
|
6728
|
-
/* The auto-scale and logarithmic buttons at the foot of the scale: two 20x22 buttons
|
|
6729
|
-
* centred
|
|
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
|
|
6730
6774
|
* chart's background, lit under the pointer; on, it is a held mode, filled in the emphasis fill a
|
|
6731
6775
|
* checked box wears with its letter in the inverse ink, a step lighter under the pointer. */
|
|
6732
6776
|
[data-qc-theme] .qc-scale-modes {
|
|
6733
6777
|
position: absolute;
|
|
6734
6778
|
z-index: 4;
|
|
6735
6779
|
display: flex;
|
|
6736
|
-
gap:
|
|
6780
|
+
gap: 4px;
|
|
6737
6781
|
pointer-events: auto;
|
|
6738
6782
|
}
|
|
6739
6783
|
|
|
@@ -6773,7 +6817,8 @@
|
|
|
6773
6817
|
|
|
6774
6818
|
/* The box at the top of the scale naming what its prices are in: at least 64x26, four pixels in from
|
|
6775
6819
|
* the scale's top and its side away from the plot, on the chart's background inside a 1px border
|
|
6776
|
-
* with a radius of 4
|
|
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. */
|
|
6777
6822
|
[data-qc-theme] .qc-scale-unit {
|
|
6778
6823
|
position: absolute;
|
|
6779
6824
|
z-index: 4;
|
|
@@ -6781,9 +6826,7 @@
|
|
|
6781
6826
|
display: flex;
|
|
6782
6827
|
min-width: 64px;
|
|
6783
6828
|
height: 26px;
|
|
6784
|
-
|
|
6785
|
-
justify-content: center;
|
|
6786
|
-
padding: 0 6px;
|
|
6829
|
+
padding: 0;
|
|
6787
6830
|
font-size: 12px;
|
|
6788
6831
|
font-weight: 400;
|
|
6789
6832
|
line-height: 12px;
|
|
@@ -6795,23 +6838,45 @@
|
|
|
6795
6838
|
pointer-events: none;
|
|
6796
6839
|
}
|
|
6797
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
|
+
|
|
6798
6852
|
/* With the host's door the box is a button that opens the host's menu: it keeps the box's size, type
|
|
6799
|
-
* and outline, takes the pointer, and
|
|
6800
|
-
*
|
|
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. */
|
|
6801
6856
|
[data-qc-theme] .qc-chrome button.qc-scale-unit {
|
|
6802
6857
|
font-family: inherit;
|
|
6803
6858
|
cursor: pointer;
|
|
6804
6859
|
pointer-events: auto;
|
|
6805
6860
|
}
|
|
6806
6861
|
|
|
6807
|
-
[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 {
|
|
6808
6864
|
background: var(--qc-state-hover);
|
|
6809
6865
|
}
|
|
6810
6866
|
|
|
6811
|
-
[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 {
|
|
6812
6868
|
background: var(--qc-state-pressed);
|
|
6813
6869
|
}
|
|
6814
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
|
+
|
|
6815
6880
|
/* The plus beside the crosshair's price label is painted by the renderer with the label. Its button
|
|
6816
6881
|
* stands over the painted box, at the size the chart writes: transparent, and taking no pointer, so
|
|
6817
6882
|
* a pointer resting on the plus stays on the plot and keeps the crosshair. It carries the plus's
|
package/package.json
CHANGED