@orderly.network/hooks 2.11.1 → 2.11.2-alpha.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/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -10
package/dist/index.mjs
CHANGED
|
@@ -38,9 +38,9 @@ var __export = (target, all) => {
|
|
|
38
38
|
// src/version.ts
|
|
39
39
|
if (typeof window !== "undefined") {
|
|
40
40
|
window.__ORDERLY_VERSION__ = window.__ORDERLY_VERSION__ || {};
|
|
41
|
-
window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "2.11.
|
|
41
|
+
window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "2.11.2-alpha.0";
|
|
42
42
|
}
|
|
43
|
-
var version_default = "2.11.
|
|
43
|
+
var version_default = "2.11.2-alpha.0";
|
|
44
44
|
var fetcher = (url, init2 = {}, queryOptions) => get(url, init2, queryOptions?.formatter);
|
|
45
45
|
var noCacheConfig = {
|
|
46
46
|
dedupingInterval: 0,
|
|
@@ -12679,6 +12679,9 @@ var DataPaint = class extends BasePaint {
|
|
|
12679
12679
|
this.transformTop = 0;
|
|
12680
12680
|
this.QRCODE_SIZE = 56;
|
|
12681
12681
|
}
|
|
12682
|
+
formatMarginMode(marginMode) {
|
|
12683
|
+
return marginMode === MarginMode.ISOLATED ? "Isolated" : "Cross";
|
|
12684
|
+
}
|
|
12682
12685
|
async draw(options) {
|
|
12683
12686
|
const needDrawDetails = Array.isArray(options.data?.position?.informations) && (options.data?.position?.informations?.length ?? 0) > 0;
|
|
12684
12687
|
const hasReferral = this.hasReferral(options);
|
|
@@ -12778,7 +12781,7 @@ var DataPaint = class extends BasePaint {
|
|
|
12778
12781
|
});
|
|
12779
12782
|
}
|
|
12780
12783
|
left += (prevElementBoundingBox.width ?? 0) + this._ratio(7);
|
|
12781
|
-
const marginModeText =
|
|
12784
|
+
const marginModeText = this.formatMarginMode(marginMode);
|
|
12782
12785
|
prevElementBoundingBox = this._drawText(marginModeText, {
|
|
12783
12786
|
color: layout.color,
|
|
12784
12787
|
left,
|