q2-tecton-elements 1.55.2 → 1.55.4
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/bundle-report.json +304 -318
- package/dist/cjs/{index-f69742cf.js → index-e0aba375.js} +1 -1
- package/dist/cjs/{index-f69742cf.js.map → index-e0aba375.js.map} +1 -1
- package/dist/cjs/q2-action-group.cjs.entry.js +1 -1
- package/dist/cjs/q2-action-sheet.cjs.entry.js +1 -1
- package/dist/cjs/q2-avatar.cjs.entry.js +1 -1
- package/dist/cjs/q2-badge_7.cjs.entry.js +1 -1
- package/dist/cjs/q2-calendar.cjs.entry.js +2 -2
- package/dist/cjs/q2-carousel-pane.cjs.entry.js +2 -2
- package/dist/cjs/q2-carousel.cjs.entry.js +1 -1
- package/dist/cjs/q2-chart-area.cjs.entry.js +1 -1
- package/dist/cjs/q2-chart-bar.cjs.entry.js +1 -1
- package/dist/cjs/q2-chart-donut.cjs.entry.js +1 -1
- package/dist/cjs/q2-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/q2-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/q2-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-currency.cjs.entry.js +1 -1
- package/dist/cjs/q2-data-table.cjs.entry.js +1 -1
- package/dist/cjs/q2-detail.cjs.entry.js +1 -1
- package/dist/cjs/q2-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/q2-editable-field.cjs.entry.js +1 -1
- package/dist/cjs/q2-example.cjs.entry.js +1 -1
- package/dist/cjs/q2-form.cjs.entry.js +2 -2
- package/dist/cjs/q2-form.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-formatted-text.cjs.entry.js +1 -1
- package/dist/cjs/q2-item_3.cjs.entry.js +2 -2
- package/dist/cjs/q2-legend.cjs.entry.js +1 -1
- package/dist/cjs/q2-loc.cjs.entry.js +0 -4
- package/dist/cjs/q2-loc.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-message.cjs.entry.js +1 -1
- package/dist/cjs/q2-modal.cjs.entry.js +1 -1
- package/dist/cjs/q2-month-picker.cjs.entry.js +2 -2
- package/dist/cjs/q2-optgroup.cjs.entry.js +1 -1
- package/dist/cjs/q2-option-list_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-pagination.cjs.entry.js +3 -3
- package/dist/cjs/q2-pill.cjs.entry.js +1 -1
- package/dist/cjs/q2-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/q2-radio.cjs.entry.js +1 -1
- package/dist/cjs/q2-relative-time.cjs.entry.js +2 -2
- package/dist/cjs/q2-resize-observer.cjs.entry.js +1 -1
- package/dist/cjs/q2-section.cjs.entry.js +2 -2
- package/dist/cjs/q2-select.cjs.entry.js +2 -2
- package/dist/cjs/q2-stepper-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-stepper.cjs.entry.js +1 -1
- package/dist/cjs/q2-textarea.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +6 -6
- package/dist/collection/components/q2-action-group/q2-action-group.js +1 -1
- package/dist/collection/components/q2-action-sheet/q2-action-sheet.js +1 -1
- package/dist/collection/components/q2-avatar/q2-avatar.js +1 -1
- package/dist/collection/components/q2-calendar/q2-calendar.js +1 -1
- package/dist/collection/components/q2-calendar/q2-month-picker.js +2 -2
- package/dist/collection/components/q2-carousel/q2-carousel.js +1 -1
- package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.js +2 -2
- package/dist/collection/components/q2-chart-area/q2-chart-area.js +1 -1
- package/dist/collection/components/q2-chart-bar/q2-chart-bar.js +1 -1
- package/dist/collection/components/q2-chart-donut/q2-chart-donut.js +1 -1
- package/dist/collection/components/q2-checkbox/q2-checkbox.css +1 -1
- package/dist/collection/components/q2-checkbox/q2-checkbox.js +1 -1
- package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.css +0 -5
- package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.js +1 -1
- package/dist/collection/components/q2-currency/q2-currency.js +1 -1
- package/dist/collection/components/q2-data-table/q2-data-table.js +8 -8
- package/dist/collection/components/q2-detail/q2-detail.js +1 -1
- package/dist/collection/components/q2-dropdown/q2-dropdown.js +1 -1
- package/dist/collection/components/q2-editable-field/q2-editable-field.js +1 -1
- package/dist/collection/components/q2-example/q2-example.js +1 -1
- package/dist/collection/components/q2-file-picker/q2-file-picker.js +5 -5
- package/dist/collection/components/q2-form/q2-form.css +0 -1
- package/dist/collection/components/q2-form/q2-form.js +1 -1
- package/dist/collection/components/q2-form/test/q2-form-test.e2e.js +24 -4
- package/dist/collection/components/q2-form/test/q2-form-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-formatted-text/q2-formatted-text.js +1 -1
- package/dist/collection/components/q2-input/q2-input.js +2 -2
- package/dist/collection/components/q2-item/q2-item.js +1 -1
- package/dist/collection/components/q2-legend/q2-legend.js +1 -1
- package/dist/collection/components/q2-list/q2-list.js +1 -1
- package/dist/collection/components/q2-loc/q2-loc.js +0 -10
- package/dist/collection/components/q2-loc/q2-loc.js.map +1 -1
- package/dist/collection/components/q2-message/q2-message.js +1 -1
- package/dist/collection/components/q2-modal/q2-modal.js +1 -1
- package/dist/collection/components/q2-optgroup/q2-optgroup.js +1 -1
- package/dist/collection/components/q2-option-list/q2-option-list.js +7 -7
- package/dist/collection/components/q2-pagination/q2-pagination.js +3 -3
- package/dist/collection/components/q2-pill/q2-pill.js +1 -1
- package/dist/collection/components/q2-popover/q2-popover.js +1 -1
- package/dist/collection/components/q2-radio/q2-radio.js +1 -1
- package/dist/collection/components/q2-radio-group/q2-radio-group.js +1 -1
- package/dist/collection/components/q2-relative-time/q2-relative-time.js +1 -1
- package/dist/collection/components/q2-resize-observer/q2-resize-observer.js +1 -1
- package/dist/collection/components/q2-section/q2-section.js +2 -2
- package/dist/collection/components/q2-select/q2-select.js +2 -2
- package/dist/collection/components/q2-stepper/q2-stepper.js +1 -1
- package/dist/collection/components/q2-stepper-pane/q2-stepper-pane.js +3 -3
- package/dist/collection/components/q2-textarea/q2-textarea.js +1 -1
- package/dist/components/q2-action-group2.js +1 -1
- package/dist/components/q2-action-sheet.js +1 -1
- package/dist/components/q2-avatar2.js +1 -1
- package/dist/components/q2-calendar.js +1 -1
- package/dist/components/q2-carousel-pane.js +2 -2
- package/dist/components/q2-carousel.js +1 -1
- package/dist/components/q2-chart-area.js +1 -1
- package/dist/components/q2-chart-bar.js +1 -1
- package/dist/components/q2-chart-donut.js +1 -1
- package/dist/components/q2-checkbox-group.js +2 -2
- package/dist/components/q2-checkbox-group.js.map +1 -1
- package/dist/components/q2-checkbox2.js +2 -2
- package/dist/components/q2-checkbox2.js.map +1 -1
- package/dist/components/q2-currency.js +1 -1
- package/dist/components/q2-data-table.js +1 -1
- package/dist/components/q2-detail.js +1 -1
- package/dist/components/q2-dropdown.js +1 -1
- package/dist/components/q2-editable-field.js +1 -1
- package/dist/components/q2-example.js +1 -1
- package/dist/components/q2-form.js +2 -2
- package/dist/components/q2-form.js.map +1 -1
- package/dist/components/q2-formatted-text.js +1 -1
- package/dist/components/q2-input2.js +1 -1
- package/dist/components/q2-item2.js +1 -1
- package/dist/components/q2-legend2.js +1 -1
- package/dist/components/q2-list2.js +1 -1
- package/dist/components/q2-loc.js +0 -4
- package/dist/components/q2-loc.js.map +1 -1
- package/dist/components/q2-message2.js +1 -1
- package/dist/components/q2-modal.js +1 -1
- package/dist/components/q2-month-picker.js +2 -2
- package/dist/components/q2-optgroup2.js +1 -1
- package/dist/components/q2-option-list2.js +1 -1
- package/dist/components/q2-pagination.js +3 -3
- package/dist/components/q2-pill.js +1 -1
- package/dist/components/q2-popover2.js +1 -1
- package/dist/components/q2-radio-group.js +1 -1
- package/dist/components/q2-radio.js +1 -1
- package/dist/components/q2-relative-time.js +1 -1
- package/dist/components/q2-resize-observer2.js +1 -1
- package/dist/components/q2-section.js +2 -2
- package/dist/components/q2-select2.js +2 -2
- package/dist/components/q2-stepper-pane.js +1 -1
- package/dist/components/q2-stepper.js +1 -1
- package/dist/components/q2-textarea.js +1 -1
- package/dist/esm/{index-3184c760.js → index-3bb7a785.js} +1 -1
- package/dist/esm/{index-3184c760.js.map → index-3bb7a785.js.map} +1 -1
- package/dist/esm/q2-action-group.entry.js +1 -1
- package/dist/esm/q2-action-sheet.entry.js +1 -1
- package/dist/esm/q2-avatar.entry.js +1 -1
- package/dist/esm/q2-badge_7.entry.js +1 -1
- package/dist/esm/q2-calendar.entry.js +2 -2
- package/dist/esm/q2-carousel-pane.entry.js +2 -2
- package/dist/esm/q2-carousel.entry.js +1 -1
- package/dist/esm/q2-chart-area.entry.js +1 -1
- package/dist/esm/q2-chart-bar.entry.js +1 -1
- package/dist/esm/q2-chart-donut.entry.js +1 -1
- package/dist/esm/q2-checkbox-group.entry.js +2 -2
- package/dist/esm/q2-checkbox-group.entry.js.map +1 -1
- package/dist/esm/q2-checkbox.entry.js +2 -2
- package/dist/esm/q2-checkbox.entry.js.map +1 -1
- package/dist/esm/q2-currency.entry.js +1 -1
- package/dist/esm/q2-data-table.entry.js +1 -1
- package/dist/esm/q2-detail.entry.js +1 -1
- package/dist/esm/q2-dropdown.entry.js +1 -1
- package/dist/esm/q2-editable-field.entry.js +1 -1
- package/dist/esm/q2-example.entry.js +1 -1
- package/dist/esm/q2-form.entry.js +2 -2
- package/dist/esm/q2-form.entry.js.map +1 -1
- package/dist/esm/q2-formatted-text.entry.js +1 -1
- package/dist/esm/q2-item_3.entry.js +2 -2
- package/dist/esm/q2-legend.entry.js +1 -1
- package/dist/esm/q2-loc.entry.js +0 -4
- package/dist/esm/q2-loc.entry.js.map +1 -1
- package/dist/esm/q2-message.entry.js +1 -1
- package/dist/esm/q2-modal.entry.js +1 -1
- package/dist/esm/q2-month-picker.entry.js +2 -2
- package/dist/esm/q2-optgroup.entry.js +1 -1
- package/dist/esm/q2-option-list_2.entry.js +2 -2
- package/dist/esm/q2-pagination.entry.js +3 -3
- package/dist/esm/q2-pill.entry.js +1 -1
- package/dist/esm/q2-radio-group.entry.js +1 -1
- package/dist/esm/q2-radio.entry.js +1 -1
- package/dist/esm/q2-relative-time.entry.js +2 -2
- package/dist/esm/q2-resize-observer.entry.js +1 -1
- package/dist/esm/q2-section.entry.js +2 -2
- package/dist/esm/q2-select.entry.js +2 -2
- package/dist/esm/q2-stepper-pane.entry.js +1 -1
- package/dist/esm/q2-stepper.entry.js +1 -1
- package/dist/esm/q2-textarea.entry.js +1 -1
- package/dist/q2-tecton-elements/{index-3184c760.js → index-3bb7a785.js} +1 -1
- package/dist/q2-tecton-elements/q2-action-group.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-action-sheet.entry.js +62 -62
- package/dist/q2-tecton-elements/q2-avatar.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-badge_7.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-calendar.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-carousel-pane.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-carousel.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-chart-area.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-chart-bar.entry.js +79 -79
- package/dist/q2-tecton-elements/q2-chart-donut.entry.js +100 -100
- package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +11 -11
- package/dist/q2-tecton-elements/q2-checkbox-group.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-checkbox.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-checkbox.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-currency.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-data-table.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-detail.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-dropdown.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-editable-field.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-example.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-form.entry.js +10 -10
- package/dist/q2-tecton-elements/q2-form.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-formatted-text.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-item_3.entry.js +21 -21
- package/dist/q2-tecton-elements/q2-legend.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-loc.entry.js +8 -14
- package/dist/q2-tecton-elements/q2-loc.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-message.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-modal.entry.js +17 -17
- package/dist/q2-tecton-elements/q2-month-picker.entry.js +30 -30
- package/dist/q2-tecton-elements/q2-optgroup.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-option-list_2.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-pagination.entry.js +33 -33
- package/dist/q2-tecton-elements/q2-pill.entry.js +13 -13
- package/dist/q2-tecton-elements/q2-radio-group.entry.js +33 -33
- package/dist/q2-tecton-elements/q2-radio.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-relative-time.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-resize-observer.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-section.entry.js +11 -11
- package/dist/q2-tecton-elements/q2-select.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +11 -11
- package/dist/q2-tecton-elements/q2-stepper.entry.js +20 -20
- package/dist/q2-tecton-elements/q2-textarea.entry.js +2 -2
- package/dist/types/components/q2-action-group/q2-action-group.d.ts +0 -1
- package/dist/types/components/q2-loading/skeleton/shapes.d.ts +0 -1
- package/dist/types/components/q2-optgroup/q2-optgroup.d.ts +1 -1
- package/dist/types/components/q2-tab-container/q2-tab-container.d.ts +2 -2
- package/package.json +3 -4
- package/dist/collection/components/q2-loc/q2-loc.css +0 -70
- package/dist/types/components/q2-action-sheet/q2-action-sheet.d.ts +0 -60
- package/dist/types/components/q2-calendar/q2-calendar.d.ts +0 -327
- package/dist/types/components/q2-carousel/q2-carousel.d.ts +0 -95
- package/dist/types/components/q2-data-table/q2-data-table.d.ts +0 -261
- package/dist/types/components/q2-dropdown/q2-dropdown.d.ts +0 -181
- package/dist/types/components/q2-editable-field/q2-editable-field.d.ts +0 -140
- package/dist/types/components/q2-option-list/q2-option-list.d.ts +0 -100
- package/dist/types/components/q2-pagination/q2-pagination.d.ts +0 -117
- package/dist/types/components/q2-pill/q2-pill.d.ts +0 -143
- package/dist/types/components/q2-select/q2-select.d.ts +0 -238
- package/dist/types/components/q2-stepper/q2-stepper.d.ts +0 -61
- package/dist/types/components/q2-stepper-vertical/q2-stepper-vertical.d.ts +0 -68
- package/dist/types/components/q2-tag/q2-tag.d.ts +0 -91
- package/dist/types/utils/action-sheet.d.ts +0 -12
- /package/dist/q2-tecton-elements/{index-3184c760.js.map → index-3bb7a785.js.map} +0 -0
- /package/dist/types/{builds/q2e/development/tecton/tecton → Users/kvanhouten/Documents/Work/tecton_extra}/packages/q2-tecton-elements/.stencil/jest.setup.d.ts +0 -0
|
@@ -2,7 +2,7 @@ import { r as e, h as r, g as a } from "./index-7a5365e2.js";
|
|
|
2
2
|
|
|
3
3
|
import { o as t, l as i } from "./index-f2a66217.js";
|
|
4
4
|
|
|
5
|
-
import { _ as s, I as n, S as o, b6 as h, P as u, b7 as l, o as
|
|
5
|
+
import { _ as s, I as n, S as o, b6 as h, P as u, b7 as l, o as c, a0 as d, h as f, i as v, u as p, s as g, H as b, b8 as m, G as w, m as S, d as B, C as A, W as y, a as x, g as M, b as k, b9 as P, t as V, z as C, ba as N, V as L, ai as D, bb as z, bc as j, a9 as U, aa as T, ab as I, ac as O, ad as R, ae as E, af as W } from "./charting-1abfb877.js";
|
|
6
6
|
|
|
7
7
|
import { c as _, j as X, g as Y, i as H, a as F, e as q, f as Z, h as G } from "./dataSample-7b62e101.js";
|
|
8
8
|
|
|
@@ -52,12 +52,12 @@ var Q = /** @class */ function(e) {
|
|
|
52
52
|
}
|
|
53
53
|
var u = void 0;
|
|
54
54
|
var l = void 0;
|
|
55
|
-
var
|
|
56
|
-
for (var
|
|
57
|
-
var f = t[
|
|
55
|
+
var c = 1;
|
|
56
|
+
for (var d = 0; d < t.length; d++) {
|
|
57
|
+
var f = t[d].coord;
|
|
58
58
|
// The last item of tickCoords doesn't contain
|
|
59
59
|
// tickValue
|
|
60
|
-
var v =
|
|
60
|
+
var v = d === t.length - 1 ? t[d - 1].tickValue + c : t[d].tickValue;
|
|
61
61
|
if (v === o) {
|
|
62
62
|
l = f;
|
|
63
63
|
break;
|
|
@@ -67,10 +67,10 @@ var Q = /** @class */ function(e) {
|
|
|
67
67
|
l = (f + u) / 2;
|
|
68
68
|
break;
|
|
69
69
|
}
|
|
70
|
-
if (
|
|
70
|
+
if (d === 1) {
|
|
71
71
|
// Here we assume the step of category axes is
|
|
72
72
|
// the same
|
|
73
|
-
|
|
73
|
+
c = v - t[0].tickValue;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
if (l == null) {
|
|
@@ -223,17 +223,17 @@ var te = /** @class */ function(e) {
|
|
|
223
223
|
var h = r.startAngle;
|
|
224
224
|
var u = r.endAngle;
|
|
225
225
|
var l = r.clockwise;
|
|
226
|
-
var
|
|
227
|
-
var
|
|
228
|
-
if (!
|
|
226
|
+
var c = Math.PI * 2;
|
|
227
|
+
var d = l ? u - h < c : h - u < c;
|
|
228
|
+
if (!d) {
|
|
229
229
|
// Normalize angles
|
|
230
|
-
h = u - (l ?
|
|
230
|
+
h = u - (l ? c : -c);
|
|
231
231
|
}
|
|
232
232
|
var f = Math.cos(h);
|
|
233
233
|
var v = Math.sin(h);
|
|
234
234
|
var p = Math.cos(u);
|
|
235
235
|
var g = Math.sin(u);
|
|
236
|
-
if (
|
|
236
|
+
if (d) {
|
|
237
237
|
e.moveTo(f * i + a, v * i + t);
|
|
238
238
|
e.arc(f * o + a, v * o + t, n, -Math.PI + h, h, !l);
|
|
239
239
|
} else {
|
|
@@ -263,81 +263,81 @@ function createSectorCalculateTextPosition(e, r) {
|
|
|
263
263
|
var o = t.distance != null ? t.distance : 5;
|
|
264
264
|
var h = this.shape;
|
|
265
265
|
var u = h.cx;
|
|
266
|
-
var
|
|
267
|
-
var
|
|
266
|
+
var c = h.cy;
|
|
267
|
+
var d = h.r;
|
|
268
268
|
var f = h.r0;
|
|
269
|
-
var v = (
|
|
269
|
+
var v = (d + f) / 2;
|
|
270
270
|
var p = h.startAngle;
|
|
271
271
|
var g = h.endAngle;
|
|
272
272
|
var b = (p + g) / 2;
|
|
273
|
-
var m = a ? Math.abs(
|
|
273
|
+
var m = a ? Math.abs(d - f) / 2 : 0;
|
|
274
274
|
var w = Math.cos;
|
|
275
275
|
var S = Math.sin;
|
|
276
276
|
// base position: top-left
|
|
277
|
-
var B = u +
|
|
278
|
-
var A =
|
|
277
|
+
var B = u + d * w(p);
|
|
278
|
+
var A = c + d * S(p);
|
|
279
279
|
var y = "left";
|
|
280
280
|
var x = "top";
|
|
281
281
|
switch (n) {
|
|
282
282
|
case "startArc":
|
|
283
283
|
B = u + (f - o) * w(b);
|
|
284
|
-
A =
|
|
284
|
+
A = c + (f - o) * S(b);
|
|
285
285
|
y = "center";
|
|
286
286
|
x = "top";
|
|
287
287
|
break;
|
|
288
288
|
|
|
289
289
|
case "insideStartArc":
|
|
290
290
|
B = u + (f + o) * w(b);
|
|
291
|
-
A =
|
|
291
|
+
A = c + (f + o) * S(b);
|
|
292
292
|
y = "center";
|
|
293
293
|
x = "bottom";
|
|
294
294
|
break;
|
|
295
295
|
|
|
296
296
|
case "startAngle":
|
|
297
297
|
B = u + v * w(p) + adjustAngleDistanceX(p, o + m, false);
|
|
298
|
-
A =
|
|
298
|
+
A = c + v * S(p) + adjustAngleDistanceY(p, o + m, false);
|
|
299
299
|
y = "right";
|
|
300
300
|
x = "middle";
|
|
301
301
|
break;
|
|
302
302
|
|
|
303
303
|
case "insideStartAngle":
|
|
304
304
|
B = u + v * w(p) + adjustAngleDistanceX(p, -o + m, false);
|
|
305
|
-
A =
|
|
305
|
+
A = c + v * S(p) + adjustAngleDistanceY(p, -o + m, false);
|
|
306
306
|
y = "left";
|
|
307
307
|
x = "middle";
|
|
308
308
|
break;
|
|
309
309
|
|
|
310
310
|
case "middle":
|
|
311
311
|
B = u + v * w(b);
|
|
312
|
-
A =
|
|
312
|
+
A = c + v * S(b);
|
|
313
313
|
y = "center";
|
|
314
314
|
x = "middle";
|
|
315
315
|
break;
|
|
316
316
|
|
|
317
317
|
case "endArc":
|
|
318
|
-
B = u + (
|
|
319
|
-
A =
|
|
318
|
+
B = u + (d + o) * w(b);
|
|
319
|
+
A = c + (d + o) * S(b);
|
|
320
320
|
y = "center";
|
|
321
321
|
x = "bottom";
|
|
322
322
|
break;
|
|
323
323
|
|
|
324
324
|
case "insideEndArc":
|
|
325
|
-
B = u + (
|
|
326
|
-
A =
|
|
325
|
+
B = u + (d - o) * w(b);
|
|
326
|
+
A = c + (d - o) * S(b);
|
|
327
327
|
y = "center";
|
|
328
328
|
x = "top";
|
|
329
329
|
break;
|
|
330
330
|
|
|
331
331
|
case "endAngle":
|
|
332
332
|
B = u + v * w(g) + adjustAngleDistanceX(g, o + m, true);
|
|
333
|
-
A =
|
|
333
|
+
A = c + v * S(g) + adjustAngleDistanceY(g, o + m, true);
|
|
334
334
|
y = "left";
|
|
335
335
|
x = "middle";
|
|
336
336
|
break;
|
|
337
337
|
|
|
338
338
|
case "insideEndAngle":
|
|
339
339
|
B = u + v * w(g) + adjustAngleDistanceX(g, -o + m, true);
|
|
340
|
-
A =
|
|
340
|
+
A = c + v * S(g) + adjustAngleDistanceY(g, -o + m, true);
|
|
341
341
|
y = "right";
|
|
342
342
|
x = "middle";
|
|
343
343
|
break;
|
|
@@ -355,13 +355,13 @@ function createSectorCalculateTextPosition(e, r) {
|
|
|
355
355
|
}
|
|
356
356
|
|
|
357
357
|
function setSectorTextRotation(e, r, a, t) {
|
|
358
|
-
if (
|
|
358
|
+
if (c(t)) {
|
|
359
359
|
// user-set rotation
|
|
360
360
|
e.setTextConfig({
|
|
361
361
|
rotation: t
|
|
362
362
|
});
|
|
363
363
|
return;
|
|
364
|
-
} else if (
|
|
364
|
+
} else if (d(r)) {
|
|
365
365
|
// user-set position, use 0 as auto rotation
|
|
366
366
|
e.setTextConfig({
|
|
367
367
|
rotation: 0
|
|
@@ -502,11 +502,11 @@ var oe = /** @class */ function(e) {
|
|
|
502
502
|
u = h.dim === "angle";
|
|
503
503
|
}
|
|
504
504
|
var l = e.isAnimationEnabled() ? e : null;
|
|
505
|
-
var
|
|
506
|
-
if (
|
|
507
|
-
this._enableRealtimeSort(
|
|
505
|
+
var c = shouldRealtimeSort(e, o);
|
|
506
|
+
if (c) {
|
|
507
|
+
this._enableRealtimeSort(c, s, a);
|
|
508
508
|
}
|
|
509
|
-
var
|
|
509
|
+
var d = e.get("clip", true) || c;
|
|
510
510
|
var f = getClipArea(o, s);
|
|
511
511
|
// If there is clipPath created in large mode. Remove it.
|
|
512
512
|
i.removeClipPath();
|
|
@@ -540,17 +540,17 @@ var oe = /** @class */ function(e) {
|
|
|
540
540
|
createBackground(r);
|
|
541
541
|
}
|
|
542
542
|
// If dataZoom in filteMode: 'empty', the baseValue can be set as NaN in "axisProxy".
|
|
543
|
-
if (!s.hasValue(r) || !
|
|
543
|
+
if (!s.hasValue(r) || !de[o.type](t)) {
|
|
544
544
|
return;
|
|
545
545
|
}
|
|
546
546
|
var n = false;
|
|
547
|
-
if (
|
|
547
|
+
if (d) {
|
|
548
548
|
// Clip will modify the layout params.
|
|
549
549
|
// And return a boolean to determine if the shape are fully clipped.
|
|
550
550
|
n = he[o.type](f, t);
|
|
551
551
|
}
|
|
552
552
|
var p = ue[o.type](e, s, r, t, u, l, h.model, false, S);
|
|
553
|
-
if (
|
|
553
|
+
if (c) {
|
|
554
554
|
/**
|
|
555
555
|
* Force label animation because even if the element is
|
|
556
556
|
* ignored because it's clipped, it may not be clipped after
|
|
@@ -566,8 +566,8 @@ var oe = /** @class */ function(e) {
|
|
|
566
566
|
p.attr({
|
|
567
567
|
shape: t
|
|
568
568
|
});
|
|
569
|
-
} else if (
|
|
570
|
-
updateRealtimeAnimation(
|
|
569
|
+
} else if (c) {
|
|
570
|
+
updateRealtimeAnimation(c, l, p, t, r, u, false, false);
|
|
571
571
|
} else {
|
|
572
572
|
v(p, {
|
|
573
573
|
shape: t
|
|
@@ -601,12 +601,12 @@ var oe = /** @class */ function(e) {
|
|
|
601
601
|
}, l, r);
|
|
602
602
|
}
|
|
603
603
|
var C = n.getItemGraphicEl(a);
|
|
604
|
-
if (!s.hasValue(r) || !
|
|
604
|
+
if (!s.hasValue(r) || !de[o.type](v)) {
|
|
605
605
|
i.remove(C);
|
|
606
606
|
return;
|
|
607
607
|
}
|
|
608
608
|
var N = false;
|
|
609
|
-
if (
|
|
609
|
+
if (d) {
|
|
610
610
|
N = he[o.type](f, v);
|
|
611
611
|
if (N) {
|
|
612
612
|
i.remove(C);
|
|
@@ -617,7 +617,7 @@ var oe = /** @class */ function(e) {
|
|
|
617
617
|
} else {
|
|
618
618
|
g(C);
|
|
619
619
|
}
|
|
620
|
-
if (
|
|
620
|
+
if (c) {
|
|
621
621
|
C.forceLabelAnimation = true;
|
|
622
622
|
}
|
|
623
623
|
if (P) {
|
|
@@ -644,8 +644,8 @@ var oe = /** @class */ function(e) {
|
|
|
644
644
|
C.attr({
|
|
645
645
|
shape: v
|
|
646
646
|
});
|
|
647
|
-
} else if (
|
|
648
|
-
updateRealtimeAnimation(
|
|
647
|
+
} else if (c) {
|
|
648
|
+
updateRealtimeAnimation(c, l, C, v, r, u, true, P);
|
|
649
649
|
} else {
|
|
650
650
|
p(C, {
|
|
651
651
|
shape: v
|
|
@@ -845,15 +845,15 @@ var he = {
|
|
|
845
845
|
var h = se(r.y, e.y);
|
|
846
846
|
var u = ne(r.y + r.height, s);
|
|
847
847
|
var l = o < n;
|
|
848
|
-
var
|
|
848
|
+
var c = u < h;
|
|
849
849
|
// When xClipped or yClipped, the element will be marked as `ignore`.
|
|
850
850
|
// But we should also place the element at the edge of the coord sys bounding rect.
|
|
851
851
|
// Because if data changed and the bar shows again, its transition animation
|
|
852
852
|
// will begin at this place.
|
|
853
853
|
r.x = l && n > i ? o : n;
|
|
854
|
-
r.y =
|
|
854
|
+
r.y = c && h > s ? u : h;
|
|
855
855
|
r.width = l ? 0 : o - n;
|
|
856
|
-
r.height =
|
|
856
|
+
r.height = c ? 0 : u - h;
|
|
857
857
|
// Reverse back
|
|
858
858
|
if (a < 0) {
|
|
859
859
|
r.x += r.width;
|
|
@@ -863,7 +863,7 @@ var he = {
|
|
|
863
863
|
r.y += r.height;
|
|
864
864
|
r.height = -r.height;
|
|
865
865
|
}
|
|
866
|
-
return l ||
|
|
866
|
+
return l || c;
|
|
867
867
|
},
|
|
868
868
|
polar: function(e, r) {
|
|
869
869
|
var a = r.r0 <= r.r ? 1 : -1;
|
|
@@ -898,8 +898,8 @@ var ue = {
|
|
|
898
898
|
u.name = "item";
|
|
899
899
|
if (s) {
|
|
900
900
|
var l = u.shape;
|
|
901
|
-
var
|
|
902
|
-
l[
|
|
901
|
+
var c = i ? "height" : "width";
|
|
902
|
+
l[c] = 0;
|
|
903
903
|
}
|
|
904
904
|
return u;
|
|
905
905
|
},
|
|
@@ -910,16 +910,16 @@ var ue = {
|
|
|
910
910
|
z2: 1
|
|
911
911
|
});
|
|
912
912
|
l.name = "item";
|
|
913
|
-
var
|
|
914
|
-
l.calculateTextPosition = createSectorCalculateTextPosition(
|
|
913
|
+
var c = createPolarPositionMapping(i);
|
|
914
|
+
l.calculateTextPosition = createSectorCalculateTextPosition(c, {
|
|
915
915
|
isRoundCap: u === ie
|
|
916
916
|
});
|
|
917
917
|
// Animation
|
|
918
918
|
if (s) {
|
|
919
|
-
var
|
|
919
|
+
var d = l.shape;
|
|
920
920
|
var f = i ? "r" : "endAngle";
|
|
921
921
|
var g = {};
|
|
922
|
-
|
|
922
|
+
d[f] = i ? t.r0 : t.startAngle;
|
|
923
923
|
g[f] = t[f];
|
|
924
924
|
(o ? p : v)(l, {
|
|
925
925
|
shape: g
|
|
@@ -986,14 +986,14 @@ function checkPropertiesNotValid(e, r) {
|
|
|
986
986
|
|
|
987
987
|
var le = [ "x", "y", "width", "height" ];
|
|
988
988
|
|
|
989
|
-
var
|
|
989
|
+
var ce = [ "cx", "cy", "r", "startAngle", "endAngle" ];
|
|
990
990
|
|
|
991
|
-
var
|
|
991
|
+
var de = {
|
|
992
992
|
cartesian2d: function(e) {
|
|
993
993
|
return !checkPropertiesNotValid(e, le);
|
|
994
994
|
},
|
|
995
995
|
polar: function(e) {
|
|
996
|
-
return !checkPropertiesNotValid(e,
|
|
996
|
+
return !checkPropertiesNotValid(e, ce);
|
|
997
997
|
}
|
|
998
998
|
};
|
|
999
999
|
|
|
@@ -1055,10 +1055,10 @@ function updateStyle(e, r, a, t, i, s, o, h) {
|
|
|
1055
1055
|
var l = t.get([ "itemStyle", "borderRadius" ]) || 0;
|
|
1056
1056
|
e.setShape("r", l);
|
|
1057
1057
|
} else if (!s.get("roundCap")) {
|
|
1058
|
-
var
|
|
1059
|
-
var
|
|
1060
|
-
x(
|
|
1061
|
-
e.setShape(
|
|
1058
|
+
var c = e.shape;
|
|
1059
|
+
var d = J(t.getModel("itemStyle"), c, true);
|
|
1060
|
+
x(c, d);
|
|
1061
|
+
e.setShape(c);
|
|
1062
1062
|
}
|
|
1063
1063
|
e.useStyle(u);
|
|
1064
1064
|
var f = t.getShallow("cursor");
|
|
@@ -1169,7 +1169,7 @@ function createLarge(e, r, a, t) {
|
|
|
1169
1169
|
r.add(l);
|
|
1170
1170
|
a && a.push(l);
|
|
1171
1171
|
}
|
|
1172
|
-
var
|
|
1172
|
+
var c = new pe({
|
|
1173
1173
|
shape: {
|
|
1174
1174
|
points: i.getLayout("largePoints")
|
|
1175
1175
|
},
|
|
@@ -1177,18 +1177,18 @@ function createLarge(e, r, a, t) {
|
|
|
1177
1177
|
ignoreCoarsePointer: true,
|
|
1178
1178
|
z2: 1
|
|
1179
1179
|
});
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
r.add(
|
|
1184
|
-
|
|
1180
|
+
c.baseDimIdx = s;
|
|
1181
|
+
c.largeDataIndices = n;
|
|
1182
|
+
c.barWidth = o;
|
|
1183
|
+
r.add(c);
|
|
1184
|
+
c.useStyle(i.getVisual("style"));
|
|
1185
1185
|
// Enable tooltip and user mouse/touch event handlers.
|
|
1186
|
-
B(
|
|
1186
|
+
B(c).seriesIndex = e.seriesIndex;
|
|
1187
1187
|
if (!e.get("silent")) {
|
|
1188
|
-
|
|
1189
|
-
|
|
1188
|
+
c.on("mousedown", ge);
|
|
1189
|
+
c.on("mousemove", ge);
|
|
1190
1190
|
}
|
|
1191
|
-
a && a.push(
|
|
1191
|
+
a && a.push(c);
|
|
1192
1192
|
}
|
|
1193
1193
|
|
|
1194
1194
|
// Use throttle to avoid frequently traverse to find dataIndex.
|
|
@@ -1206,12 +1206,12 @@ function largePathFindDataIndex(e, r, a) {
|
|
|
1206
1206
|
var o = [];
|
|
1207
1207
|
var h = [];
|
|
1208
1208
|
var u = e.barWidth;
|
|
1209
|
-
for (var l = 0,
|
|
1210
|
-
var
|
|
1209
|
+
for (var l = 0, c = s.length / 3; l < c; l++) {
|
|
1210
|
+
var d = l * 3;
|
|
1211
1211
|
h[t] = u;
|
|
1212
|
-
h[i] = s[
|
|
1213
|
-
o[t] = s[
|
|
1214
|
-
o[i] = s[
|
|
1212
|
+
h[i] = s[d + 2];
|
|
1213
|
+
o[t] = s[d + t];
|
|
1214
|
+
o[i] = s[d + i];
|
|
1215
1215
|
if (h[i] < 0) {
|
|
1216
1216
|
o[i] += h[i];
|
|
1217
1217
|
h[i] = -h[i];
|
|
@@ -1439,10 +1439,10 @@ const Se = class {
|
|
|
1439
1439
|
// #region Render Methods
|
|
1440
1440
|
render() {
|
|
1441
1441
|
return r("div", {
|
|
1442
|
-
key: "
|
|
1442
|
+
key: "3369c851ab7176a66a12694c94306780d621d764",
|
|
1443
1443
|
class: "container"
|
|
1444
1444
|
}, r("div", {
|
|
1445
|
-
key: "
|
|
1445
|
+
key: "e5a7f8e937704c9bdbc631c2151f0bd7a685155c",
|
|
1446
1446
|
ref: e => this.chartContainer = e,
|
|
1447
1447
|
class: "chart-container",
|
|
1448
1448
|
role: "img",
|