@trdrs/quickcharts 5.6.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.
- package/CHANGELOG.md +4 -0
- package/dist/feature-manifest.json +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/quickcharts.css +12 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 5.6.1
|
|
6
|
+
|
|
7
|
+
The currency and unit box spans its price scale, as wide as the scale less four pixels on each side, so it stays inside a scale of any width, and words too long for it end in an ellipsis.
|
|
8
|
+
|
|
5
9
|
## 5.6.0
|
|
6
10
|
|
|
7
11
|
The currency and unit box holds its words in a 24px row inside its outline, at the row's start, 3px in from each end on a radius of 3. With `scaleUnitMenu` the row ends in a 7 by 5 caret and lights under the pointer, and `ScaleUnitMenuRequest.expanded(open)` lets the host say its menu stands open, which keeps the row lit and turns the caret up. The auto-scale and logarithmic buttons stand 4px apart, the pair centred on the scale.
|
package/dist/index.js
CHANGED
|
@@ -20449,7 +20449,7 @@ function mountScaleControls(deps) {
|
|
|
20449
20449
|
stopPointer(modes);
|
|
20450
20450
|
const door = deps.openUnitMenu;
|
|
20451
20451
|
const unit = door ? h("button", { type: "button", class: "qc-scale-unit", "data-role": "scale-unit", "aria-haspopup": "menu", "aria-expanded": "false" }) : h("div", { class: "qc-scale-unit", "data-role": "scale-unit" });
|
|
20452
|
-
const unitText = h("span", {});
|
|
20452
|
+
const unitText = h("span", { class: "qc-scale-unit-text" });
|
|
20453
20453
|
unit.append(h("span", { class: "qc-scale-unit-row" }, unitText, door ? deps.icons.glyph(ICONS.scaleUnitArrow, { size: 7, height: 5, className: "qc-scale-unit-arrow" }) : null));
|
|
20454
20454
|
if (door) {
|
|
20455
20455
|
stopPointer(unit);
|
|
@@ -20579,8 +20579,8 @@ function mountScaleControls(deps) {
|
|
|
20579
20579
|
unit.dataset.qcVisibility = visibility;
|
|
20580
20580
|
unit.hidden = text2 === "" || visibility === "never" || visibility === "hover" && !overScale && !overControls;
|
|
20581
20581
|
unit.style.top = `${Math.round(box2.top + UNIT_BOX.inset)}px`;
|
|
20582
|
-
unit.style.left =
|
|
20583
|
-
unit.style.
|
|
20582
|
+
unit.style.left = `${Math.round(box2.left + UNIT_BOX.inset)}px`;
|
|
20583
|
+
unit.style.width = `${Math.max(0, Math.round(box2.width - UNIT_BOX.inset * 2))}px`;
|
|
20584
20584
|
};
|
|
20585
20585
|
const within = (event) => {
|
|
20586
20586
|
const box2 = deps.box();
|