@snksergio/design-system 0.46.0 → 0.47.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-lib/chunks/{avatar-DFWEwBKu.mjs → avatar-Cj_m-wJy.mjs} +42 -42
- package/dist-lib/chunks/{avatar-DFWEwBKu.mjs.map → avatar-Cj_m-wJy.mjs.map} +1 -1
- package/dist-lib/chunks/{input-CfmzMYtd.mjs → input-CwRzwVPt.mjs} +2 -2
- package/dist-lib/chunks/{input-CfmzMYtd.mjs.map → input-CwRzwVPt.mjs.map} +1 -1
- package/dist-lib/chunks/{kpi-delta-DuxCD93G.mjs → kpi-delta-D9p1xD4T.mjs} +3 -3
- package/dist-lib/chunks/{kpi-delta-DuxCD93G.mjs.map → kpi-delta-D9p1xD4T.mjs.map} +1 -1
- package/dist-lib/chunks/{page-header--cPS_Z-a.mjs → page-header-DUxZjGdR.mjs} +2 -2
- package/dist-lib/chunks/{page-header--cPS_Z-a.mjs.map → page-header-DUxZjGdR.mjs.map} +1 -1
- package/dist-lib/chunks/{panel-BxYvTvlN.mjs → panel-BlMiCA9Z.mjs} +5 -5
- package/dist-lib/chunks/{panel-BxYvTvlN.mjs.map → panel-BlMiCA9Z.mjs.map} +1 -1
- package/dist-lib/chunks/{sheet-D1vQth7X.mjs → sheet-Bc-LMBDF.mjs} +2 -2
- package/dist-lib/chunks/{sheet-D1vQth7X.mjs.map → sheet-Bc-LMBDF.mjs.map} +1 -1
- package/dist-lib/chunks/{toggle-group-DPzjrk6O.mjs → toggle-group-Bol3G73g.mjs} +27 -14
- package/dist-lib/chunks/toggle-group-Bol3G73g.mjs.map +1 -0
- package/dist-lib/chunks/{toggle-group-FJHFIlJP.cjs → toggle-group-sXg1B2wN.cjs} +14 -1
- package/dist-lib/chunks/toggle-group-sXg1B2wN.cjs.map +1 -0
- package/dist-lib/chunks/{useTheme-CS_no6zP.mjs → useTheme-DNqHuA6o.mjs} +2 -2
- package/dist-lib/chunks/{useTheme-CS_no6zP.mjs.map → useTheme-DNqHuA6o.mjs.map} +1 -1
- package/dist-lib/index.cjs +90 -2
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.mjs +235 -147
- package/dist-lib/index.mjs.map +1 -1
- package/dist-lib/preview/chat.mjs +3 -3
- package/dist-lib/preview/clientes.mjs +6 -6
- package/dist-lib/preview/dashboard.mjs +4 -4
- package/dist-lib/shadcn.cjs +2 -14
- package/dist-lib/shadcn.cjs.map +1 -1
- package/dist-lib/shadcn.mjs +56 -69
- package/dist-lib/shadcn.mjs.map +1 -1
- package/dist-lib/src/components/index.d.ts +1 -0
- package/dist-lib/src/components/index.d.ts.map +1 -1
- package/dist-lib/src/components/ui/ScreenLoader/index.d.ts +3 -0
- package/dist-lib/src/components/ui/ScreenLoader/index.d.ts.map +1 -0
- package/dist-lib/src/components/ui/ScreenLoader/screen-loader.d.ts +21 -0
- package/dist-lib/src/components/ui/ScreenLoader/screen-loader.d.ts.map +1 -0
- package/dist-lib/src/components/ui/ScreenLoader/screen-loader.styles.d.ts +111 -0
- package/dist-lib/src/components/ui/ScreenLoader/screen-loader.styles.d.ts.map +1 -0
- package/dist-lib/src/components/ui/ScreenLoader/screen-loader.types.d.ts +26 -0
- package/dist-lib/src/components/ui/ScreenLoader/screen-loader.types.d.ts.map +1 -0
- package/dist-lib/src/components/ui/Spinner/spinner.styles.d.ts +9 -0
- package/dist-lib/src/components/ui/Spinner/spinner.styles.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist-lib/chunks/toggle-group-DPzjrk6O.mjs.map +0 -1
- package/dist-lib/chunks/toggle-group-FJHFIlJP.cjs.map +0 -1
package/dist-lib/index.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { g as getContrastTextColor, a as FormField, e as Avatar, i as isFilterEntryActive, f as FilterPopover, T as ToolbarToolButton, h as ButtonGroup, j as ToolbarSimpleFilterDrawer, k as TableToolbar, l as ToolbarActions, m as ToolbarFilterButton, n as ToolbarSearch, o as ToolbarApplied, q as ToolbarTabs, r as columnTypeRegistry, L as ListItem, s as List } from "./chunks/panel-
|
|
2
|
-
import { t, A, B, u, C, v, w, x, D, y, z, E, G, H, I, J, K, M, d, N, O, Q, R, S, F, b, U, c, V, W, P, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, p, ai, aj, ak, al, am } from "./chunks/panel-
|
|
3
|
-
import { C as Chip } from "./chunks/useTheme-
|
|
4
|
-
import { A as A2, a, b as b2, H as H2, c as c2, d as d2, e, f, g, M as M2, S as S2, h, i, j, k, l, m, n, U as U2, o, p as p2, q, r, s, t as t2, v as v2, w as w2, u as u2 } from "./chunks/useTheme-
|
|
5
|
-
import {
|
|
6
|
-
import { R as R2, S as S3, T, U as U3,
|
|
1
|
+
import { g as getContrastTextColor, a as FormField, e as Avatar, i as isFilterEntryActive, f as FilterPopover, T as ToolbarToolButton, h as ButtonGroup, j as ToolbarSimpleFilterDrawer, k as TableToolbar, l as ToolbarActions, m as ToolbarFilterButton, n as ToolbarSearch, o as ToolbarApplied, q as ToolbarTabs, r as columnTypeRegistry, L as ListItem, s as List } from "./chunks/panel-BlMiCA9Z.mjs";
|
|
2
|
+
import { t, A, B, u, C, v, w, x, D, y, z, E, G, H, I, J, K, M, d, N, O, Q, R, S, F, b, U, c, V, W, P, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, p, ai, aj, ak, al, am } from "./chunks/panel-BlMiCA9Z.mjs";
|
|
3
|
+
import { C as Chip } from "./chunks/useTheme-DNqHuA6o.mjs";
|
|
4
|
+
import { A as A2, a, b as b2, H as H2, c as c2, d as d2, e, f, g, M as M2, S as S2, h, i, j, k, l, m, n, U as U2, o, p as p2, q, r, s, t as t2, v as v2, w as w2, u as u2 } from "./chunks/useTheme-DNqHuA6o.mjs";
|
|
5
|
+
import { a8 as tv, V as Popover, Z as PopoverTrigger, Y as PopoverContent, a7 as Button, D as Dialog, w as DialogTrigger, c as cn, p as DialogContent, v as DialogTitle, W as PopoverAnchor, o as DialogClose, q as DialogDescription, x as DropdownMenu, O as DropdownMenuTrigger, z as DropdownMenuContent, J as DropdownMenuSeparator, E as DropdownMenuItem } from "./chunks/avatar-Cj_m-wJy.mjs";
|
|
6
|
+
import { P as P2, Q as Q2, R as R2, S as S3, T, U as U3, y as y2, F as F2, H as H3, I as I2, a9 as a92, a6 as a62 } from "./chunks/avatar-Cj_m-wJy.mjs";
|
|
7
7
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
8
8
|
import * as React from "react";
|
|
9
9
|
import { forwardRef, useId, useState, Fragment as Fragment$1, isValidElement, useCallback, useMemo, createElement, useRef, useEffect, useLayoutEffect } from "react";
|
|
10
|
-
import { l as Checkbox, C as Calendar, T as Textarea } from "./chunks/sheet-
|
|
11
|
-
import { G as G2, H as H4, F as
|
|
10
|
+
import { l as Checkbox, C as Calendar, T as Textarea } from "./chunks/sheet-Bc-LMBDF.mjs";
|
|
11
|
+
import { G as G2, H as H4, F as F3, O as O2 } from "./chunks/sheet-Bc-LMBDF.mjs";
|
|
12
12
|
import { Check, MoreHorizontal, SlidersHorizontal, Calendar as Calendar$1, AlertCircle, CheckCheck, Clock, MoreVertical, Ban, X as X2, CalendarDays, ChevronDown, ChevronLeft, ChevronRight, RefreshCw, OctagonX, TriangleAlert, CircleCheck, Info, Bell } from "lucide-react";
|
|
13
13
|
import { Reply } from "lucide-react";
|
|
14
|
-
import { ay as Separator } from "./chunks/toggle-group-
|
|
15
|
-
import { B as B2,
|
|
16
|
-
import { I as Input } from "./chunks/input-
|
|
17
|
-
import { i as i2 } from "./chunks/input-
|
|
18
|
-
import { a as a10, b as b3, K as
|
|
19
|
-
import { P as
|
|
14
|
+
import { ay as Separator, az as Skeleton } from "./chunks/toggle-group-Bol3G73g.mjs";
|
|
15
|
+
import { B as B2, aI } from "./chunks/toggle-group-Bol3G73g.mjs";
|
|
16
|
+
import { I as Input } from "./chunks/input-CwRzwVPt.mjs";
|
|
17
|
+
import { i as i2 } from "./chunks/input-CwRzwVPt.mjs";
|
|
18
|
+
import { a as a10, b as b3, K as K2 } from "./chunks/kpi-delta-D9p1xD4T.mjs";
|
|
19
|
+
import { P as P3, p as p3 } from "./chunks/page-header-DUxZjGdR.mjs";
|
|
20
20
|
import * as RechartsPrimitive from "recharts";
|
|
21
21
|
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
22
22
|
import "@hello-pangea/dnd";
|
|
@@ -4941,7 +4941,7 @@ const MonthYearPicker = forwardRef(function MonthYearPicker2({
|
|
|
4941
4941
|
{
|
|
4942
4942
|
type: "button",
|
|
4943
4943
|
className: styles2.navButton(),
|
|
4944
|
-
onClick: () => setViewYear((
|
|
4944
|
+
onClick: () => setViewYear((y3) => y3 - 1),
|
|
4945
4945
|
disabled: prevYearDisabled,
|
|
4946
4946
|
"aria-label": "Ano anterior",
|
|
4947
4947
|
children: /* @__PURE__ */ jsx(ChevronLeft, { className: "size-icon-sm", "aria-hidden": "true" })
|
|
@@ -4953,7 +4953,7 @@ const MonthYearPicker = forwardRef(function MonthYearPicker2({
|
|
|
4953
4953
|
{
|
|
4954
4954
|
type: "button",
|
|
4955
4955
|
className: styles2.navButton(),
|
|
4956
|
-
onClick: () => setViewYear((
|
|
4956
|
+
onClick: () => setViewYear((y3) => y3 + 1),
|
|
4957
4957
|
disabled: nextYearDisabled,
|
|
4958
4958
|
"aria-label": "Próximo ano",
|
|
4959
4959
|
children: /* @__PURE__ */ jsx(ChevronRight, { className: "size-icon-sm", "aria-hidden": "true" })
|
|
@@ -4992,7 +4992,9 @@ const spinnerStyles = tv({
|
|
|
4992
4992
|
size: {
|
|
4993
4993
|
sm: "size-icon-sm",
|
|
4994
4994
|
md: "size-icon-md",
|
|
4995
|
-
lg: "size-icon-lg"
|
|
4995
|
+
lg: "size-icon-lg",
|
|
4996
|
+
xl: "size-icon-xl",
|
|
4997
|
+
"2xl": "size-icon-2xl"
|
|
4996
4998
|
},
|
|
4997
4999
|
color: {
|
|
4998
5000
|
current: "text-current",
|
|
@@ -5045,6 +5047,91 @@ const Spinner = forwardRef(function Spinner2({ size, color, label = "Carregando"
|
|
|
5045
5047
|
);
|
|
5046
5048
|
});
|
|
5047
5049
|
Spinner.displayName = "Spinner";
|
|
5050
|
+
const screenLoaderStyles = tv({
|
|
5051
|
+
slots: {
|
|
5052
|
+
root: "flex h-full min-h-0 w-full flex-1 flex-col",
|
|
5053
|
+
// título + descrição colados (gp-2xs = 2px); o respiro maior (gp-md do
|
|
5054
|
+
// root) fica entre o Spinner e o bloco de texto
|
|
5055
|
+
text: "flex flex-col items-center gap-gp-2xs",
|
|
5056
|
+
title: "text-fg-strong",
|
|
5057
|
+
description: "text-body-sm text-fg-muted max-w-[360px]",
|
|
5058
|
+
skeletonHeader: "flex w-full items-start justify-between gap-gp-2xl",
|
|
5059
|
+
skeletonHeaderText: "flex w-full flex-col gap-gp-md",
|
|
5060
|
+
skeletonKpis: "grid w-full grid-cols-2 gap-gp-xl lg:grid-cols-4",
|
|
5061
|
+
skeletonKpiCard: "min-h-[96px] w-full",
|
|
5062
|
+
// basis-[240px] + grow/shrink em vez de min-h: em pai SEM altura o bloco
|
|
5063
|
+
// vale 240px (fallback); em pai COM altura ele cresce/encolhe pra caber —
|
|
5064
|
+
// min-h fixo estourava o container quando header + KPIs + bloco > pai
|
|
5065
|
+
skeletonBody: "w-full grow shrink basis-[240px]"
|
|
5066
|
+
},
|
|
5067
|
+
variants: {
|
|
5068
|
+
variant: {
|
|
5069
|
+
spinner: {
|
|
5070
|
+
root: "items-center justify-center gap-gp-md text-center"
|
|
5071
|
+
},
|
|
5072
|
+
skeleton: {
|
|
5073
|
+
root: "gap-gp-2xl"
|
|
5074
|
+
}
|
|
5075
|
+
},
|
|
5076
|
+
size: {
|
|
5077
|
+
sm: { title: "text-title-sm" },
|
|
5078
|
+
md: { title: "text-title-sm" },
|
|
5079
|
+
lg: { title: "text-title-md" }
|
|
5080
|
+
}
|
|
5081
|
+
},
|
|
5082
|
+
defaultVariants: {
|
|
5083
|
+
variant: "spinner",
|
|
5084
|
+
size: "md"
|
|
5085
|
+
}
|
|
5086
|
+
});
|
|
5087
|
+
const SPINNER_SIZE = {
|
|
5088
|
+
sm: "lg",
|
|
5089
|
+
md: "xl",
|
|
5090
|
+
lg: "2xl"
|
|
5091
|
+
};
|
|
5092
|
+
const ScreenLoader = forwardRef(
|
|
5093
|
+
function ScreenLoader2({
|
|
5094
|
+
variant = "spinner",
|
|
5095
|
+
size = "md",
|
|
5096
|
+
color = "brand",
|
|
5097
|
+
title: title2 = "Carregando…",
|
|
5098
|
+
description: description2,
|
|
5099
|
+
skeletonLayout = "page",
|
|
5100
|
+
className,
|
|
5101
|
+
...rest
|
|
5102
|
+
}, ref) {
|
|
5103
|
+
const styles2 = screenLoaderStyles({ variant, size });
|
|
5104
|
+
return /* @__PURE__ */ jsx(
|
|
5105
|
+
"div",
|
|
5106
|
+
{
|
|
5107
|
+
ref,
|
|
5108
|
+
role: "status",
|
|
5109
|
+
"aria-live": "polite",
|
|
5110
|
+
className: styles2.root({ className }),
|
|
5111
|
+
...rest,
|
|
5112
|
+
children: variant === "spinner" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5113
|
+
/* @__PURE__ */ jsx(Spinner, { size: SPINNER_SIZE[size], color, "aria-hidden": true }),
|
|
5114
|
+
/* @__PURE__ */ jsxs("div", { className: styles2.text(), children: [
|
|
5115
|
+
/* @__PURE__ */ jsx("h3", { className: styles2.title(), children: title2 }),
|
|
5116
|
+
description2 && /* @__PURE__ */ jsx("p", { className: styles2.description(), children: description2 })
|
|
5117
|
+
] })
|
|
5118
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5119
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: title2 }),
|
|
5120
|
+
skeletonLayout !== "kpis" && /* @__PURE__ */ jsxs("div", { "aria-hidden": "true", className: styles2.skeletonHeader(), children: [
|
|
5121
|
+
/* @__PURE__ */ jsxs("div", { className: styles2.skeletonHeaderText(), children: [
|
|
5122
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-[20px] w-1/3 max-w-[240px]" }),
|
|
5123
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-[12px] w-1/2 max-w-[360px]" })
|
|
5124
|
+
] }),
|
|
5125
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "min-h-form-md w-[120px] shrink-0" })
|
|
5126
|
+
] }),
|
|
5127
|
+
skeletonLayout !== "page" && /* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: styles2.skeletonKpis(), children: Array.from({ length: 4 }, (_2, i3) => /* @__PURE__ */ jsx(Skeleton, { className: styles2.skeletonKpiCard() }, i3)) }),
|
|
5128
|
+
/* @__PURE__ */ jsx(Skeleton, { "aria-hidden": "true", className: styles2.skeletonBody() })
|
|
5129
|
+
] })
|
|
5130
|
+
}
|
|
5131
|
+
);
|
|
5132
|
+
}
|
|
5133
|
+
);
|
|
5134
|
+
ScreenLoader.displayName = "ScreenLoader";
|
|
5048
5135
|
class Adder {
|
|
5049
5136
|
constructor() {
|
|
5050
5137
|
this._partials = new Float64Array(32);
|
|
@@ -5054,7 +5141,7 @@ class Adder {
|
|
|
5054
5141
|
const p4 = this._partials;
|
|
5055
5142
|
let i3 = 0;
|
|
5056
5143
|
for (let j2 = 0; j2 < this._n && j2 < 32; j2++) {
|
|
5057
|
-
const
|
|
5144
|
+
const y3 = p4[j2], hi = x2 + y3, lo = Math.abs(x2) < Math.abs(y3) ? x2 - (hi - y3) : y3 - (hi - x2);
|
|
5058
5145
|
if (lo) p4[i3++] = lo;
|
|
5059
5146
|
x2 = hi;
|
|
5060
5147
|
}
|
|
@@ -5064,20 +5151,20 @@ class Adder {
|
|
|
5064
5151
|
}
|
|
5065
5152
|
valueOf() {
|
|
5066
5153
|
const p4 = this._partials;
|
|
5067
|
-
let n2 = this._n, x2,
|
|
5154
|
+
let n2 = this._n, x2, y3, lo, hi = 0;
|
|
5068
5155
|
if (n2 > 0) {
|
|
5069
5156
|
hi = p4[--n2];
|
|
5070
5157
|
while (n2 > 0) {
|
|
5071
5158
|
x2 = hi;
|
|
5072
|
-
|
|
5073
|
-
hi = x2 +
|
|
5074
|
-
lo =
|
|
5159
|
+
y3 = p4[--n2];
|
|
5160
|
+
hi = x2 + y3;
|
|
5161
|
+
lo = y3 - (hi - x2);
|
|
5075
5162
|
if (lo) break;
|
|
5076
5163
|
}
|
|
5077
5164
|
if (n2 > 0 && (lo < 0 && p4[n2 - 1] < 0 || lo > 0 && p4[n2 - 1] > 0)) {
|
|
5078
|
-
|
|
5079
|
-
x2 = hi +
|
|
5080
|
-
if (
|
|
5165
|
+
y3 = lo * 2;
|
|
5166
|
+
x2 = hi + y3;
|
|
5167
|
+
if (y3 == x2 - hi) hi = x2;
|
|
5081
5168
|
}
|
|
5082
5169
|
}
|
|
5083
5170
|
return hi;
|
|
@@ -5206,11 +5293,11 @@ function cartesianNormalizeInPlace(d3) {
|
|
|
5206
5293
|
d3[0] /= l2, d3[1] /= l2, d3[2] /= l2;
|
|
5207
5294
|
}
|
|
5208
5295
|
function compose(a11, b4) {
|
|
5209
|
-
function compose2(x2,
|
|
5210
|
-
return x2 = a11(x2,
|
|
5296
|
+
function compose2(x2, y3) {
|
|
5297
|
+
return x2 = a11(x2, y3), b4(x2[0], x2[1]);
|
|
5211
5298
|
}
|
|
5212
|
-
if (a11.invert && b4.invert) compose2.invert = function(x2,
|
|
5213
|
-
return x2 = b4.invert(x2,
|
|
5299
|
+
if (a11.invert && b4.invert) compose2.invert = function(x2, y3) {
|
|
5300
|
+
return x2 = b4.invert(x2, y3), x2 && a11.invert(x2[0], x2[1]);
|
|
5214
5301
|
};
|
|
5215
5302
|
return compose2;
|
|
5216
5303
|
}
|
|
@@ -5237,16 +5324,16 @@ function rotationLambda(deltaLambda) {
|
|
|
5237
5324
|
function rotationPhiGamma(deltaPhi, deltaGamma) {
|
|
5238
5325
|
var cosDeltaPhi = cos(deltaPhi), sinDeltaPhi = sin(deltaPhi), cosDeltaGamma = cos(deltaGamma), sinDeltaGamma = sin(deltaGamma);
|
|
5239
5326
|
function rotation2(lambda, phi) {
|
|
5240
|
-
var cosPhi = cos(phi), x2 = cos(lambda) * cosPhi,
|
|
5327
|
+
var cosPhi = cos(phi), x2 = cos(lambda) * cosPhi, y3 = sin(lambda) * cosPhi, z2 = sin(phi), k2 = z2 * cosDeltaPhi + x2 * sinDeltaPhi;
|
|
5241
5328
|
return [
|
|
5242
|
-
atan2(
|
|
5243
|
-
asin(k2 * cosDeltaGamma +
|
|
5329
|
+
atan2(y3 * cosDeltaGamma - k2 * sinDeltaGamma, x2 * cosDeltaPhi - z2 * sinDeltaPhi),
|
|
5330
|
+
asin(k2 * cosDeltaGamma + y3 * sinDeltaGamma)
|
|
5244
5331
|
];
|
|
5245
5332
|
}
|
|
5246
5333
|
rotation2.invert = function(lambda, phi) {
|
|
5247
|
-
var cosPhi = cos(phi), x2 = cos(lambda) * cosPhi,
|
|
5334
|
+
var cosPhi = cos(phi), x2 = cos(lambda) * cosPhi, y3 = sin(lambda) * cosPhi, z2 = sin(phi), k2 = z2 * cosDeltaGamma - y3 * sinDeltaGamma;
|
|
5248
5335
|
return [
|
|
5249
|
-
atan2(
|
|
5336
|
+
atan2(y3 * cosDeltaGamma + z2 * sinDeltaGamma, x2 * cosDeltaPhi + k2 * sinDeltaPhi),
|
|
5250
5337
|
asin(k2 * cosDeltaPhi - x2 * sinDeltaPhi)
|
|
5251
5338
|
];
|
|
5252
5339
|
};
|
|
@@ -5289,8 +5376,8 @@ function circleRadius(cosRadius, point) {
|
|
|
5289
5376
|
function clipBuffer() {
|
|
5290
5377
|
var lines = [], line;
|
|
5291
5378
|
return {
|
|
5292
|
-
point: function(x2,
|
|
5293
|
-
line.push([x2,
|
|
5379
|
+
point: function(x2, y3, m2) {
|
|
5380
|
+
line.push([x2, y3, m2]);
|
|
5294
5381
|
},
|
|
5295
5382
|
lineStart: function() {
|
|
5296
5383
|
lines.push(line = []);
|
|
@@ -5661,10 +5748,10 @@ function clipCircle(radius) {
|
|
|
5661
5748
|
cartesianAddInPlace(q2, A3);
|
|
5662
5749
|
q2 = spherical(q2);
|
|
5663
5750
|
if (!two) return q2;
|
|
5664
|
-
var lambda0 = a11[0], lambda1 = b4[0], phi0 = a11[1], phi1 = b4[1],
|
|
5665
|
-
if (lambda1 < lambda0)
|
|
5751
|
+
var lambda0 = a11[0], lambda1 = b4[0], phi0 = a11[1], phi1 = b4[1], z2;
|
|
5752
|
+
if (lambda1 < lambda0) z2 = lambda0, lambda0 = lambda1, lambda1 = z2;
|
|
5666
5753
|
var delta2 = lambda1 - lambda0, polar = abs(delta2 - pi) < epsilon, meridian = polar || delta2 < epsilon;
|
|
5667
|
-
if (!polar && phi1 < phi0)
|
|
5754
|
+
if (!polar && phi1 < phi0) z2 = phi0, phi0 = phi1, phi1 = z2;
|
|
5668
5755
|
if (meridian ? polar ? phi0 + phi1 > 0 ^ q2[1] < (abs(q2[0] - lambda0) < epsilon ? phi0 : phi1) : phi0 <= q2[1] && q2[1] <= phi1 : delta2 > pi ^ (lambda0 <= q2[0] && q2[0] <= lambda1)) {
|
|
5669
5756
|
var q1 = cartesianScale(u3, (-w3 + t3) / uu);
|
|
5670
5757
|
cartesianAddInPlace(q1, A3);
|
|
@@ -5729,8 +5816,8 @@ function clipLine(a11, b4, x02, y02, x12, y12) {
|
|
|
5729
5816
|
}
|
|
5730
5817
|
var clipMax = 1e9, clipMin = -clipMax;
|
|
5731
5818
|
function clipRectangle(x02, y02, x12, y12) {
|
|
5732
|
-
function visible(x2,
|
|
5733
|
-
return x02 <= x2 && x2 <= x12 && y02 <=
|
|
5819
|
+
function visible(x2, y3) {
|
|
5820
|
+
return x02 <= x2 && x2 <= x12 && y02 <= y3 && y3 <= y12;
|
|
5734
5821
|
}
|
|
5735
5822
|
function interpolate(from, to, direction, stream) {
|
|
5736
5823
|
var a11 = 0, a12 = 0;
|
|
@@ -5761,8 +5848,8 @@ function clipRectangle(x02, y02, x12, y12) {
|
|
|
5761
5848
|
polygonStart,
|
|
5762
5849
|
polygonEnd
|
|
5763
5850
|
};
|
|
5764
|
-
function point(x2,
|
|
5765
|
-
if (visible(x2,
|
|
5851
|
+
function point(x2, y3) {
|
|
5852
|
+
if (visible(x2, y3)) activeStream.point(x2, y3);
|
|
5766
5853
|
}
|
|
5767
5854
|
function polygonInside() {
|
|
5768
5855
|
var winding = 0;
|
|
@@ -5813,20 +5900,20 @@ function clipRectangle(x02, y02, x12, y12) {
|
|
|
5813
5900
|
clipStream.point = point;
|
|
5814
5901
|
if (v_) activeStream.lineEnd();
|
|
5815
5902
|
}
|
|
5816
|
-
function linePoint(x2,
|
|
5817
|
-
var v3 = visible(x2,
|
|
5818
|
-
if (polygon) ring.push([x2,
|
|
5903
|
+
function linePoint(x2, y3) {
|
|
5904
|
+
var v3 = visible(x2, y3);
|
|
5905
|
+
if (polygon) ring.push([x2, y3]);
|
|
5819
5906
|
if (first) {
|
|
5820
|
-
x__ = x2, y__ =
|
|
5907
|
+
x__ = x2, y__ = y3, v__ = v3;
|
|
5821
5908
|
first = false;
|
|
5822
5909
|
if (v3) {
|
|
5823
5910
|
activeStream.lineStart();
|
|
5824
|
-
activeStream.point(x2,
|
|
5911
|
+
activeStream.point(x2, y3);
|
|
5825
5912
|
}
|
|
5826
5913
|
} else {
|
|
5827
|
-
if (v3 && v_) activeStream.point(x2,
|
|
5914
|
+
if (v3 && v_) activeStream.point(x2, y3);
|
|
5828
5915
|
else {
|
|
5829
|
-
var a11 = [x_ = Math.max(clipMin, Math.min(clipMax, x_)), y_ = Math.max(clipMin, Math.min(clipMax, y_))], b4 = [x2 = Math.max(clipMin, Math.min(clipMax, x2)),
|
|
5916
|
+
var a11 = [x_ = Math.max(clipMin, Math.min(clipMax, x_)), y_ = Math.max(clipMin, Math.min(clipMax, y_))], b4 = [x2 = Math.max(clipMin, Math.min(clipMax, x2)), y3 = Math.max(clipMin, Math.min(clipMax, y3))];
|
|
5830
5917
|
if (clipLine(a11, b4, x02, y02, x12, y12)) {
|
|
5831
5918
|
if (!v_) {
|
|
5832
5919
|
activeStream.lineStart();
|
|
@@ -5837,12 +5924,12 @@ function clipRectangle(x02, y02, x12, y12) {
|
|
|
5837
5924
|
clean = false;
|
|
5838
5925
|
} else if (v3) {
|
|
5839
5926
|
activeStream.lineStart();
|
|
5840
|
-
activeStream.point(x2,
|
|
5927
|
+
activeStream.point(x2, y3);
|
|
5841
5928
|
clean = false;
|
|
5842
5929
|
}
|
|
5843
5930
|
}
|
|
5844
5931
|
}
|
|
5845
|
-
x_ = x2, y_ =
|
|
5932
|
+
x_ = x2, y_ = y3, v_ = v3;
|
|
5846
5933
|
}
|
|
5847
5934
|
return clipStream;
|
|
5848
5935
|
};
|
|
@@ -5871,13 +5958,13 @@ var areaStream = {
|
|
|
5871
5958
|
function areaRingStart() {
|
|
5872
5959
|
areaStream.point = areaPointFirst;
|
|
5873
5960
|
}
|
|
5874
|
-
function areaPointFirst(x2,
|
|
5961
|
+
function areaPointFirst(x2, y3) {
|
|
5875
5962
|
areaStream.point = areaPoint;
|
|
5876
|
-
x00$2 = x0$3 = x2, y00$2 = y0$3 =
|
|
5963
|
+
x00$2 = x0$3 = x2, y00$2 = y0$3 = y3;
|
|
5877
5964
|
}
|
|
5878
|
-
function areaPoint(x2,
|
|
5879
|
-
areaRingSum.add(y0$3 * x2 - x0$3 *
|
|
5880
|
-
x0$3 = x2, y0$3 =
|
|
5965
|
+
function areaPoint(x2, y3) {
|
|
5966
|
+
areaRingSum.add(y0$3 * x2 - x0$3 * y3);
|
|
5967
|
+
x0$3 = x2, y0$3 = y3;
|
|
5881
5968
|
}
|
|
5882
5969
|
function areaRingEnd() {
|
|
5883
5970
|
areaPoint(x00$2, y00$2);
|
|
@@ -5895,11 +5982,11 @@ var boundsStream = {
|
|
|
5895
5982
|
return bounds;
|
|
5896
5983
|
}
|
|
5897
5984
|
};
|
|
5898
|
-
function boundsPoint(x2,
|
|
5985
|
+
function boundsPoint(x2, y3) {
|
|
5899
5986
|
if (x2 < x0$2) x0$2 = x2;
|
|
5900
5987
|
if (x2 > x1) x1 = x2;
|
|
5901
|
-
if (
|
|
5902
|
-
if (
|
|
5988
|
+
if (y3 < y0$2) y0$2 = y3;
|
|
5989
|
+
if (y3 > y1) y1 = y3;
|
|
5903
5990
|
}
|
|
5904
5991
|
var X0 = 0, Y0 = 0, Z0 = 0, X1 = 0, Y1 = 0, Z1 = 0, X22 = 0, Y2 = 0, Z2 = 0, x00$1, y00$1, x0$1, y0$1;
|
|
5905
5992
|
var centroidStream = {
|
|
@@ -5921,24 +6008,24 @@ var centroidStream = {
|
|
|
5921
6008
|
return centroid;
|
|
5922
6009
|
}
|
|
5923
6010
|
};
|
|
5924
|
-
function centroidPoint(x2,
|
|
6011
|
+
function centroidPoint(x2, y3) {
|
|
5925
6012
|
X0 += x2;
|
|
5926
|
-
Y0 +=
|
|
6013
|
+
Y0 += y3;
|
|
5927
6014
|
++Z0;
|
|
5928
6015
|
}
|
|
5929
6016
|
function centroidLineStart() {
|
|
5930
6017
|
centroidStream.point = centroidPointFirstLine;
|
|
5931
6018
|
}
|
|
5932
|
-
function centroidPointFirstLine(x2,
|
|
6019
|
+
function centroidPointFirstLine(x2, y3) {
|
|
5933
6020
|
centroidStream.point = centroidPointLine;
|
|
5934
|
-
centroidPoint(x0$1 = x2, y0$1 =
|
|
6021
|
+
centroidPoint(x0$1 = x2, y0$1 = y3);
|
|
5935
6022
|
}
|
|
5936
|
-
function centroidPointLine(x2,
|
|
5937
|
-
var dx = x2 - x0$1, dy =
|
|
5938
|
-
X1 +=
|
|
5939
|
-
Y1 +=
|
|
5940
|
-
Z1 +=
|
|
5941
|
-
centroidPoint(x0$1 = x2, y0$1 =
|
|
6023
|
+
function centroidPointLine(x2, y3) {
|
|
6024
|
+
var dx = x2 - x0$1, dy = y3 - y0$1, z2 = sqrt(dx * dx + dy * dy);
|
|
6025
|
+
X1 += z2 * (x0$1 + x2) / 2;
|
|
6026
|
+
Y1 += z2 * (y0$1 + y3) / 2;
|
|
6027
|
+
Z1 += z2;
|
|
6028
|
+
centroidPoint(x0$1 = x2, y0$1 = y3);
|
|
5942
6029
|
}
|
|
5943
6030
|
function centroidLineEnd() {
|
|
5944
6031
|
centroidStream.point = centroidPoint;
|
|
@@ -5949,20 +6036,20 @@ function centroidRingStart() {
|
|
|
5949
6036
|
function centroidRingEnd() {
|
|
5950
6037
|
centroidPointRing(x00$1, y00$1);
|
|
5951
6038
|
}
|
|
5952
|
-
function centroidPointFirstRing(x2,
|
|
6039
|
+
function centroidPointFirstRing(x2, y3) {
|
|
5953
6040
|
centroidStream.point = centroidPointRing;
|
|
5954
|
-
centroidPoint(x00$1 = x0$1 = x2, y00$1 = y0$1 =
|
|
5955
|
-
}
|
|
5956
|
-
function centroidPointRing(x2,
|
|
5957
|
-
var dx = x2 - x0$1, dy =
|
|
5958
|
-
X1 +=
|
|
5959
|
-
Y1 +=
|
|
5960
|
-
Z1 +=
|
|
5961
|
-
|
|
5962
|
-
X22 +=
|
|
5963
|
-
Y2 +=
|
|
5964
|
-
Z2 +=
|
|
5965
|
-
centroidPoint(x0$1 = x2, y0$1 =
|
|
6041
|
+
centroidPoint(x00$1 = x0$1 = x2, y00$1 = y0$1 = y3);
|
|
6042
|
+
}
|
|
6043
|
+
function centroidPointRing(x2, y3) {
|
|
6044
|
+
var dx = x2 - x0$1, dy = y3 - y0$1, z2 = sqrt(dx * dx + dy * dy);
|
|
6045
|
+
X1 += z2 * (x0$1 + x2) / 2;
|
|
6046
|
+
Y1 += z2 * (y0$1 + y3) / 2;
|
|
6047
|
+
Z1 += z2;
|
|
6048
|
+
z2 = y0$1 * x2 - x0$1 * y3;
|
|
6049
|
+
X22 += z2 * (x0$1 + x2);
|
|
6050
|
+
Y2 += z2 * (y0$1 + y3);
|
|
6051
|
+
Z2 += z2 * 3;
|
|
6052
|
+
centroidPoint(x0$1 = x2, y0$1 = y3);
|
|
5966
6053
|
}
|
|
5967
6054
|
function PathContext(context) {
|
|
5968
6055
|
this._context = context;
|
|
@@ -5985,20 +6072,20 @@ PathContext.prototype = {
|
|
|
5985
6072
|
if (this._line === 0) this._context.closePath();
|
|
5986
6073
|
this._point = NaN;
|
|
5987
6074
|
},
|
|
5988
|
-
point: function(x2,
|
|
6075
|
+
point: function(x2, y3) {
|
|
5989
6076
|
switch (this._point) {
|
|
5990
6077
|
case 0: {
|
|
5991
|
-
this._context.moveTo(x2,
|
|
6078
|
+
this._context.moveTo(x2, y3);
|
|
5992
6079
|
this._point = 1;
|
|
5993
6080
|
break;
|
|
5994
6081
|
}
|
|
5995
6082
|
case 1: {
|
|
5996
|
-
this._context.lineTo(x2,
|
|
6083
|
+
this._context.lineTo(x2, y3);
|
|
5997
6084
|
break;
|
|
5998
6085
|
}
|
|
5999
6086
|
default: {
|
|
6000
|
-
this._context.moveTo(x2 + this._radius,
|
|
6001
|
-
this._context.arc(x2,
|
|
6087
|
+
this._context.moveTo(x2 + this._radius, y3);
|
|
6088
|
+
this._context.arc(x2, y3, this._radius, 0, tau);
|
|
6002
6089
|
break;
|
|
6003
6090
|
}
|
|
6004
6091
|
}
|
|
@@ -6027,14 +6114,14 @@ var lengthStream = {
|
|
|
6027
6114
|
return length;
|
|
6028
6115
|
}
|
|
6029
6116
|
};
|
|
6030
|
-
function lengthPointFirst(x2,
|
|
6117
|
+
function lengthPointFirst(x2, y3) {
|
|
6031
6118
|
lengthStream.point = lengthPoint;
|
|
6032
|
-
x00 = x0 = x2, y00 = y0 =
|
|
6119
|
+
x00 = x0 = x2, y00 = y0 = y3;
|
|
6033
6120
|
}
|
|
6034
|
-
function lengthPoint(x2,
|
|
6035
|
-
x0 -= x2, y0 -=
|
|
6121
|
+
function lengthPoint(x2, y3) {
|
|
6122
|
+
x0 -= x2, y0 -= y3;
|
|
6036
6123
|
lengthSum.add(sqrt(x0 * x0 + y0 * y0));
|
|
6037
|
-
x0 = x2, y0 =
|
|
6124
|
+
x0 = x2, y0 = y3;
|
|
6038
6125
|
}
|
|
6039
6126
|
let cacheDigits, cacheAppend, cacheRadius, cacheCircle;
|
|
6040
6127
|
class PathString {
|
|
@@ -6060,19 +6147,19 @@ class PathString {
|
|
|
6060
6147
|
if (this._line === 0) this._ += "Z";
|
|
6061
6148
|
this._point = NaN;
|
|
6062
6149
|
}
|
|
6063
|
-
point(x2,
|
|
6150
|
+
point(x2, y3) {
|
|
6064
6151
|
switch (this._point) {
|
|
6065
6152
|
case 0: {
|
|
6066
|
-
this._append`M${x2},${
|
|
6153
|
+
this._append`M${x2},${y3}`;
|
|
6067
6154
|
this._point = 1;
|
|
6068
6155
|
break;
|
|
6069
6156
|
}
|
|
6070
6157
|
case 1: {
|
|
6071
|
-
this._append`L${x2},${
|
|
6158
|
+
this._append`L${x2},${y3}`;
|
|
6072
6159
|
break;
|
|
6073
6160
|
}
|
|
6074
6161
|
default: {
|
|
6075
|
-
this._append`M${x2},${
|
|
6162
|
+
this._append`M${x2},${y3}`;
|
|
6076
6163
|
if (this._radius !== cacheRadius || this._append !== cacheAppend) {
|
|
6077
6164
|
const r2 = this._radius;
|
|
6078
6165
|
const s2 = this._;
|
|
@@ -6184,8 +6271,8 @@ function TransformStream() {
|
|
|
6184
6271
|
}
|
|
6185
6272
|
TransformStream.prototype = {
|
|
6186
6273
|
constructor: TransformStream,
|
|
6187
|
-
point: function(x2,
|
|
6188
|
-
this.stream.point(x2,
|
|
6274
|
+
point: function(x2, y3) {
|
|
6275
|
+
this.stream.point(x2, y3);
|
|
6189
6276
|
},
|
|
6190
6277
|
sphere: function() {
|
|
6191
6278
|
this.stream.sphere();
|
|
@@ -6214,8 +6301,8 @@ function fit(projection2, fitBounds, object2) {
|
|
|
6214
6301
|
}
|
|
6215
6302
|
function fitExtent(projection2, extent, object2) {
|
|
6216
6303
|
return fit(projection2, function(b4) {
|
|
6217
|
-
var w3 = extent[1][0] - extent[0][0], h2 = extent[1][1] - extent[0][1], k2 = Math.min(w3 / (b4[1][0] - b4[0][0]), h2 / (b4[1][1] - b4[0][1])), x2 = +extent[0][0] + (w3 - k2 * (b4[1][0] + b4[0][0])) / 2,
|
|
6218
|
-
projection2.scale(150 * k2).translate([x2,
|
|
6304
|
+
var w3 = extent[1][0] - extent[0][0], h2 = extent[1][1] - extent[0][1], k2 = Math.min(w3 / (b4[1][0] - b4[0][0]), h2 / (b4[1][1] - b4[0][1])), x2 = +extent[0][0] + (w3 - k2 * (b4[1][0] + b4[0][0])) / 2, y3 = +extent[0][1] + (h2 - k2 * (b4[1][1] + b4[0][1])) / 2;
|
|
6305
|
+
projection2.scale(150 * k2).translate([x2, y3]);
|
|
6219
6306
|
}, object2);
|
|
6220
6307
|
}
|
|
6221
6308
|
function fitSize(projection2, size, object2) {
|
|
@@ -6223,14 +6310,14 @@ function fitSize(projection2, size, object2) {
|
|
|
6223
6310
|
}
|
|
6224
6311
|
function fitWidth(projection2, width, object2) {
|
|
6225
6312
|
return fit(projection2, function(b4) {
|
|
6226
|
-
var w3 = +width, k2 = w3 / (b4[1][0] - b4[0][0]), x2 = (w3 - k2 * (b4[1][0] + b4[0][0])) / 2,
|
|
6227
|
-
projection2.scale(150 * k2).translate([x2,
|
|
6313
|
+
var w3 = +width, k2 = w3 / (b4[1][0] - b4[0][0]), x2 = (w3 - k2 * (b4[1][0] + b4[0][0])) / 2, y3 = -k2 * b4[0][1];
|
|
6314
|
+
projection2.scale(150 * k2).translate([x2, y3]);
|
|
6228
6315
|
}, object2);
|
|
6229
6316
|
}
|
|
6230
6317
|
function fitHeight(projection2, height, object2) {
|
|
6231
6318
|
return fit(projection2, function(b4) {
|
|
6232
|
-
var h2 = +height, k2 = h2 / (b4[1][1] - b4[0][1]), x2 = -k2 * b4[0][0],
|
|
6233
|
-
projection2.scale(150 * k2).translate([x2,
|
|
6319
|
+
var h2 = +height, k2 = h2 / (b4[1][1] - b4[0][1]), x2 = -k2 * b4[0][0], y3 = (h2 - k2 * (b4[1][1] + b4[0][1])) / 2;
|
|
6320
|
+
projection2.scale(150 * k2).translate([x2, y3]);
|
|
6234
6321
|
}, object2);
|
|
6235
6322
|
}
|
|
6236
6323
|
var maxDepth = 16, cosMinDistance = cos(30 * radians);
|
|
@@ -6239,8 +6326,8 @@ function resample(project, delta2) {
|
|
|
6239
6326
|
}
|
|
6240
6327
|
function resampleNone(project) {
|
|
6241
6328
|
return transformer({
|
|
6242
|
-
point: function(x2,
|
|
6243
|
-
x2 = project(x2,
|
|
6329
|
+
point: function(x2, y3) {
|
|
6330
|
+
x2 = project(x2, y3);
|
|
6244
6331
|
this.stream.point(x2[0], x2[1]);
|
|
6245
6332
|
}
|
|
6246
6333
|
});
|
|
@@ -6249,11 +6336,11 @@ function resample$1(project, delta2) {
|
|
|
6249
6336
|
function resampleLineTo(x02, y02, lambda0, a02, b0, c0, x12, y12, lambda1, a12, b1, c1, depth, stream) {
|
|
6250
6337
|
var dx = x12 - x02, dy = y12 - y02, d22 = dx * dx + dy * dy;
|
|
6251
6338
|
if (d22 > 4 * delta2 && depth--) {
|
|
6252
|
-
var a11 = a02 + a12, b4 = b0 + b1, c3 = c0 + c1, m2 = sqrt(a11 * a11 + b4 * b4 + c3 * c3), phi2 = asin(c3 /= m2), lambda2 = abs(abs(c3) - 1) < epsilon || abs(lambda0 - lambda1) < epsilon ? (lambda0 + lambda1) / 2 : atan2(b4, a11), p4 = project(lambda2, phi2), x2 = p4[0],
|
|
6339
|
+
var a11 = a02 + a12, b4 = b0 + b1, c3 = c0 + c1, m2 = sqrt(a11 * a11 + b4 * b4 + c3 * c3), phi2 = asin(c3 /= m2), lambda2 = abs(abs(c3) - 1) < epsilon || abs(lambda0 - lambda1) < epsilon ? (lambda0 + lambda1) / 2 : atan2(b4, a11), p4 = project(lambda2, phi2), x2 = p4[0], y22 = p4[1], dx2 = x2 - x02, dy2 = y22 - y02, dz = dy * dx2 - dx * dy2;
|
|
6253
6340
|
if (dz * dz / d22 > delta2 || abs((dx * dx2 + dy * dy2) / d22 - 0.5) > 0.3 || a02 * a12 + b0 * b1 + c0 * c1 < cosMinDistance) {
|
|
6254
|
-
resampleLineTo(x02, y02, lambda0, a02, b0, c0, x2,
|
|
6255
|
-
stream.point(x2,
|
|
6256
|
-
resampleLineTo(x2,
|
|
6341
|
+
resampleLineTo(x02, y02, lambda0, a02, b0, c0, x2, y22, lambda2, a11 /= m2, b4 /= m2, c3, depth, stream);
|
|
6342
|
+
stream.point(x2, y22);
|
|
6343
|
+
resampleLineTo(x2, y22, lambda2, a11, b4, c3, x12, y12, lambda1, a12, b1, c1, depth, stream);
|
|
6257
6344
|
}
|
|
6258
6345
|
}
|
|
6259
6346
|
}
|
|
@@ -6272,8 +6359,8 @@ function resample$1(project, delta2) {
|
|
|
6272
6359
|
resampleStream.lineStart = lineStart;
|
|
6273
6360
|
}
|
|
6274
6361
|
};
|
|
6275
|
-
function point(x2,
|
|
6276
|
-
x2 = project(x2,
|
|
6362
|
+
function point(x2, y3) {
|
|
6363
|
+
x2 = project(x2, y3);
|
|
6277
6364
|
stream.point(x2[0], x2[1]);
|
|
6278
6365
|
}
|
|
6279
6366
|
function lineStart() {
|
|
@@ -6308,39 +6395,39 @@ function resample$1(project, delta2) {
|
|
|
6308
6395
|
};
|
|
6309
6396
|
}
|
|
6310
6397
|
var transformRadians = transformer({
|
|
6311
|
-
point: function(x2,
|
|
6312
|
-
this.stream.point(x2 * radians,
|
|
6398
|
+
point: function(x2, y3) {
|
|
6399
|
+
this.stream.point(x2 * radians, y3 * radians);
|
|
6313
6400
|
}
|
|
6314
6401
|
});
|
|
6315
6402
|
function transformRotate(rotate) {
|
|
6316
6403
|
return transformer({
|
|
6317
|
-
point: function(x2,
|
|
6318
|
-
var r2 = rotate(x2,
|
|
6404
|
+
point: function(x2, y3) {
|
|
6405
|
+
var r2 = rotate(x2, y3);
|
|
6319
6406
|
return this.stream.point(r2[0], r2[1]);
|
|
6320
6407
|
}
|
|
6321
6408
|
});
|
|
6322
6409
|
}
|
|
6323
6410
|
function scaleTranslate(k2, dx, dy, sx, sy) {
|
|
6324
|
-
function transform2(x2,
|
|
6411
|
+
function transform2(x2, y3) {
|
|
6325
6412
|
x2 *= sx;
|
|
6326
|
-
|
|
6327
|
-
return [dx + k2 * x2, dy - k2 *
|
|
6413
|
+
y3 *= sy;
|
|
6414
|
+
return [dx + k2 * x2, dy - k2 * y3];
|
|
6328
6415
|
}
|
|
6329
|
-
transform2.invert = function(x2,
|
|
6330
|
-
return [(x2 - dx) / k2 * sx, (dy -
|
|
6416
|
+
transform2.invert = function(x2, y3) {
|
|
6417
|
+
return [(x2 - dx) / k2 * sx, (dy - y3) / k2 * sy];
|
|
6331
6418
|
};
|
|
6332
6419
|
return transform2;
|
|
6333
6420
|
}
|
|
6334
6421
|
function scaleTranslateRotate(k2, dx, dy, sx, sy, alpha) {
|
|
6335
6422
|
if (!alpha) return scaleTranslate(k2, dx, dy, sx, sy);
|
|
6336
6423
|
var cosAlpha = cos(alpha), sinAlpha = sin(alpha), a11 = cosAlpha * k2, b4 = sinAlpha * k2, ai2 = cosAlpha / k2, bi = sinAlpha / k2, ci = (sinAlpha * dy - cosAlpha * dx) / k2, fi = (sinAlpha * dx + cosAlpha * dy) / k2;
|
|
6337
|
-
function transform2(x2,
|
|
6424
|
+
function transform2(x2, y3) {
|
|
6338
6425
|
x2 *= sx;
|
|
6339
|
-
|
|
6340
|
-
return [a11 * x2 - b4 *
|
|
6426
|
+
y3 *= sy;
|
|
6427
|
+
return [a11 * x2 - b4 * y3 + dx, dy - b4 * x2 - a11 * y3];
|
|
6341
6428
|
}
|
|
6342
|
-
transform2.invert = function(x2,
|
|
6343
|
-
return [sx * (ai2 * x2 - bi *
|
|
6429
|
+
transform2.invert = function(x2, y3) {
|
|
6430
|
+
return [sx * (ai2 * x2 - bi * y3 + ci), sy * (fi - bi * x2 - ai2 * y3)];
|
|
6344
6431
|
};
|
|
6345
6432
|
return transform2;
|
|
6346
6433
|
}
|
|
@@ -6350,7 +6437,7 @@ function projection(project) {
|
|
|
6350
6437
|
})();
|
|
6351
6438
|
}
|
|
6352
6439
|
function projectionMutator(projectAt) {
|
|
6353
|
-
var project, k2 = 150, x2 = 480,
|
|
6440
|
+
var project, k2 = 150, x2 = 480, y3 = 250, lambda = 0, phi = 0, deltaLambda = 0, deltaPhi = 0, deltaGamma = 0, rotate, alpha = 0, sx = 1, sy = 1, theta = null, preclip = clipAntimeridian, x02 = null, y02, x12, y12, postclip = identity$1, delta2 = 0.5, projectResample, projectTransform, projectRotateTransform, cache, cacheStream;
|
|
6354
6441
|
function projection2(point) {
|
|
6355
6442
|
return projectRotateTransform(point[0] * radians, point[1] * radians);
|
|
6356
6443
|
}
|
|
@@ -6377,7 +6464,7 @@ function projectionMutator(projectAt) {
|
|
|
6377
6464
|
return arguments.length ? (k2 = +_2, recenter()) : k2;
|
|
6378
6465
|
};
|
|
6379
6466
|
projection2.translate = function(_2) {
|
|
6380
|
-
return arguments.length ? (x2 = +_2[0],
|
|
6467
|
+
return arguments.length ? (x2 = +_2[0], y3 = +_2[1], recenter()) : [x2, y3];
|
|
6381
6468
|
};
|
|
6382
6469
|
projection2.center = function(_2) {
|
|
6383
6470
|
return arguments.length ? (lambda = _2[0] % 360 * radians, phi = _2[1] % 360 * radians, recenter()) : [lambda * degrees, phi * degrees];
|
|
@@ -6410,7 +6497,7 @@ function projectionMutator(projectAt) {
|
|
|
6410
6497
|
return fitHeight(projection2, height, object2);
|
|
6411
6498
|
};
|
|
6412
6499
|
function recenter() {
|
|
6413
|
-
var center = scaleTranslateRotate(k2, 0, 0, sx, sy, alpha).apply(null, project(lambda, phi)), transform2 = scaleTranslateRotate(k2, x2 - center[0],
|
|
6500
|
+
var center = scaleTranslateRotate(k2, 0, 0, sx, sy, alpha).apply(null, project(lambda, phi)), transform2 = scaleTranslateRotate(k2, x2 - center[0], y3 - center[1], sx, sy, alpha);
|
|
6414
6501
|
rotate = rotateRadians(deltaLambda, deltaPhi, deltaGamma);
|
|
6415
6502
|
projectTransform = compose(project, transform2);
|
|
6416
6503
|
projectRotateTransform = compose(rotate, projectTransform);
|
|
@@ -6430,8 +6517,8 @@ function projectionMutator(projectAt) {
|
|
|
6430
6517
|
function mercatorRaw(lambda, phi) {
|
|
6431
6518
|
return [lambda, log(tan((halfPi + phi) / 2))];
|
|
6432
6519
|
}
|
|
6433
|
-
mercatorRaw.invert = function(x2,
|
|
6434
|
-
return [x2, 2 * atan(exp(
|
|
6520
|
+
mercatorRaw.invert = function(x2, y3) {
|
|
6521
|
+
return [x2, 2 * atan(exp(y3)) - halfPi];
|
|
6435
6522
|
};
|
|
6436
6523
|
function geoMercator() {
|
|
6437
6524
|
return mercatorProjection(mercatorRaw).scale(961 / tau);
|
|
@@ -8000,16 +8087,16 @@ export {
|
|
|
8000
8087
|
g as HeaderThemeSwitcher,
|
|
8001
8088
|
Icon,
|
|
8002
8089
|
Input,
|
|
8003
|
-
|
|
8004
|
-
|
|
8005
|
-
|
|
8006
|
-
|
|
8007
|
-
|
|
8008
|
-
|
|
8090
|
+
P2 as InputGroup,
|
|
8091
|
+
Q2 as InputGroupAddon,
|
|
8092
|
+
R2 as InputGroupButton,
|
|
8093
|
+
S3 as InputGroupInput,
|
|
8094
|
+
T as InputGroupText,
|
|
8095
|
+
U3 as InputGroupTextarea,
|
|
8009
8096
|
V as Kanban,
|
|
8010
8097
|
a10 as Kpi,
|
|
8011
8098
|
b3 as KpiDelta,
|
|
8012
|
-
|
|
8099
|
+
K2 as KpiGroup,
|
|
8013
8100
|
List,
|
|
8014
8101
|
ListItem,
|
|
8015
8102
|
MarkdownText,
|
|
@@ -8022,22 +8109,23 @@ export {
|
|
|
8022
8109
|
Modal,
|
|
8023
8110
|
MonthYearPicker,
|
|
8024
8111
|
W as MoreMenu,
|
|
8025
|
-
|
|
8112
|
+
y2 as MoreMenuCheckboxItem,
|
|
8026
8113
|
DropdownMenuItem as MoreMenuItem,
|
|
8027
|
-
|
|
8028
|
-
|
|
8029
|
-
|
|
8114
|
+
F2 as MoreMenuLabel,
|
|
8115
|
+
H3 as MoreMenuRadioGroup,
|
|
8116
|
+
I2 as MoreMenuRadioItem,
|
|
8030
8117
|
DropdownMenuSeparator as MoreMenuSeparator,
|
|
8031
|
-
|
|
8118
|
+
P3 as PageHeader,
|
|
8032
8119
|
P as Panel,
|
|
8033
8120
|
X as PanelBody,
|
|
8034
8121
|
G2 as PanelCloseAction,
|
|
8035
8122
|
H4 as PanelContent,
|
|
8036
8123
|
Y as PanelFooter,
|
|
8037
8124
|
Z as PanelHeader,
|
|
8038
|
-
|
|
8125
|
+
F3 as PanelRoot,
|
|
8039
8126
|
O2 as PanelTrigger,
|
|
8040
8127
|
_ as SELECTION_COLUMN_WIDTH,
|
|
8128
|
+
ScreenLoader,
|
|
8041
8129
|
S2 as SidebarBrandIcon,
|
|
8042
8130
|
h as SidebarItem,
|
|
8043
8131
|
i as SidebarPanel,
|
|
@@ -8077,7 +8165,7 @@ export {
|
|
|
8077
8165
|
ae as ViewsPopover,
|
|
8078
8166
|
actionColumn,
|
|
8079
8167
|
af as avatarVariants,
|
|
8080
|
-
|
|
8168
|
+
aI as badgeVariants,
|
|
8081
8169
|
a92 as buttonVariants,
|
|
8082
8170
|
cardCheckbox,
|
|
8083
8171
|
o as chipCount,
|
|
@@ -8094,7 +8182,7 @@ export {
|
|
|
8094
8182
|
ag as floatingPanelStyles,
|
|
8095
8183
|
iconStyles,
|
|
8096
8184
|
icons,
|
|
8097
|
-
|
|
8185
|
+
a62 as inputGroupVariants,
|
|
8098
8186
|
i2 as inputVariants,
|
|
8099
8187
|
q as isExternalHref,
|
|
8100
8188
|
isFilterEntryActive,
|