@snksergio/design-system 0.46.0 → 0.48.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-eM5txRFZ.cjs → avatar-DAmZ7fBZ.cjs} +2 -2
- package/dist-lib/chunks/{avatar-DFWEwBKu.mjs.map → avatar-DAmZ7fBZ.cjs.map} +1 -1
- package/dist-lib/chunks/{avatar-DFWEwBKu.mjs → avatar-FPbG1TRy.mjs} +43 -43
- package/dist-lib/chunks/{avatar-eM5txRFZ.cjs.map → avatar-FPbG1TRy.mjs.map} +1 -1
- package/dist-lib/chunks/{input-az2SuVXQ.cjs → input-Ci_2-5Te.cjs} +2 -2
- package/dist-lib/chunks/{input-az2SuVXQ.cjs.map → input-Ci_2-5Te.cjs.map} +1 -1
- package/dist-lib/chunks/{input-CfmzMYtd.mjs → input-tjIT8HNE.mjs} +2 -2
- package/dist-lib/chunks/{input-CfmzMYtd.mjs.map → input-tjIT8HNE.mjs.map} +1 -1
- package/dist-lib/chunks/{kpi-delta-DwQWNM-F.cjs → kpi-delta-1-gsPFvU.cjs} +3 -3
- package/dist-lib/chunks/{kpi-delta-DwQWNM-F.cjs.map → kpi-delta-1-gsPFvU.cjs.map} +1 -1
- package/dist-lib/chunks/{kpi-delta-DuxCD93G.mjs → kpi-delta-BRTgTaO1.mjs} +3 -3
- package/dist-lib/chunks/{kpi-delta-DuxCD93G.mjs.map → kpi-delta-BRTgTaO1.mjs.map} +1 -1
- package/dist-lib/chunks/{page-header--cPS_Z-a.mjs → page-header-DdWp9c-r.mjs} +2 -2
- package/dist-lib/chunks/{page-header--cPS_Z-a.mjs.map → page-header-DdWp9c-r.mjs.map} +1 -1
- package/dist-lib/chunks/{page-header-DvAJoEfb.cjs → page-header-DrKDiVFN.cjs} +2 -2
- package/dist-lib/chunks/{page-header-DvAJoEfb.cjs.map → page-header-DrKDiVFN.cjs.map} +1 -1
- package/dist-lib/chunks/{panel-DTVjD2gJ.cjs → panel-57Pt_bL9.cjs} +5 -5
- package/dist-lib/chunks/{panel-DTVjD2gJ.cjs.map → panel-57Pt_bL9.cjs.map} +1 -1
- package/dist-lib/chunks/{panel-BxYvTvlN.mjs → panel-DlZeQw7G.mjs} +5 -5
- package/dist-lib/chunks/{panel-BxYvTvlN.mjs.map → panel-DlZeQw7G.mjs.map} +1 -1
- package/dist-lib/chunks/{sheet-D1vQth7X.mjs → sheet-7v5vamnP.mjs} +2 -2
- package/dist-lib/chunks/{sheet-D1vQth7X.mjs.map → sheet-7v5vamnP.mjs.map} +1 -1
- package/dist-lib/chunks/{sheet-j-d_UX7R.cjs → sheet-BZlQ0gKA.cjs} +2 -2
- package/dist-lib/chunks/{sheet-j-d_UX7R.cjs.map → sheet-BZlQ0gKA.cjs.map} +1 -1
- package/dist-lib/chunks/{toggle-group-DPzjrk6O.mjs → toggle-group-CnAN6ZnT.mjs} +43 -15
- package/dist-lib/chunks/toggle-group-CnAN6ZnT.mjs.map +1 -0
- package/dist-lib/chunks/{toggle-group-FJHFIlJP.cjs → toggle-group-DYGba7RP.cjs} +31 -3
- package/dist-lib/chunks/toggle-group-DYGba7RP.cjs.map +1 -0
- package/dist-lib/chunks/{useTheme-CS_no6zP.mjs → useTheme-Bk8AYqLr.mjs} +2 -2
- package/dist-lib/chunks/{useTheme-CS_no6zP.mjs.map → useTheme-Bk8AYqLr.mjs.map} +1 -1
- package/dist-lib/chunks/{useTheme-BB3QhUpu.cjs → useTheme-Dh3POjCr.cjs} +2 -2
- package/dist-lib/chunks/{useTheme-BB3QhUpu.cjs.map → useTheme-Dh3POjCr.cjs.map} +1 -1
- package/dist-lib/index.cjs +114 -12
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.mjs +252 -150
- package/dist-lib/index.mjs.map +1 -1
- package/dist-lib/preview/chat.cjs +3 -3
- package/dist-lib/preview/chat.mjs +3 -3
- package/dist-lib/preview/clientes.cjs +6 -6
- package/dist-lib/preview/clientes.mjs +6 -6
- package/dist-lib/preview/dashboard.cjs +4 -4
- package/dist-lib/preview/dashboard.mjs +4 -4
- package/dist-lib/shadcn.cjs +5 -17
- 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/shadcn/slider.d.ts.map +1 -1
- package/dist-lib/src/components/shadcn/tooltip.d.ts +20 -1
- package/dist-lib/src/components/shadcn/tooltip.d.ts.map +1 -1
- package/dist-lib/src/components/ui/FileUploadField/file-upload-field.d.ts.map +1 -1
- package/dist-lib/src/components/ui/FileUploadField/file-upload-field.styles.d.ts +27 -0
- package/dist-lib/src/components/ui/FileUploadField/file-upload-field.styles.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-DlZeQw7G.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-DlZeQw7G.mjs";
|
|
3
|
+
import { C as Chip } from "./chunks/useTheme-Bk8AYqLr.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-Bk8AYqLr.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-FPbG1TRy.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-FPbG1TRy.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-7v5vamnP.mjs";
|
|
11
|
+
import { G as G2, H as H4, F as F3, O as O2 } from "./chunks/sheet-7v5vamnP.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-CnAN6ZnT.mjs";
|
|
15
|
+
import { B as B2, aI } from "./chunks/toggle-group-CnAN6ZnT.mjs";
|
|
16
|
+
import { I as Input } from "./chunks/input-tjIT8HNE.mjs";
|
|
17
|
+
import { i as i2 } from "./chunks/input-tjIT8HNE.mjs";
|
|
18
|
+
import { a as a10, b as b3, K as K2 } from "./chunks/kpi-delta-BRTgTaO1.mjs";
|
|
19
|
+
import { P as P3, p as p3 } from "./chunks/page-header-DdWp9c-r.mjs";
|
|
20
20
|
import * as RechartsPrimitive from "recharts";
|
|
21
21
|
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
22
22
|
import "@hello-pangea/dnd";
|
|
@@ -3730,7 +3730,10 @@ const fileUploadFieldStyles = tv({
|
|
|
3730
3730
|
slots: {
|
|
3731
3731
|
dropzone: [
|
|
3732
3732
|
"flex w-full flex-col items-center justify-center text-center",
|
|
3733
|
-
|
|
3733
|
+
// Vertical MAIOR que o horizontal de propósito: é uma área de soltar, não uma linha de
|
|
3734
|
+
// form. Estava `py-pad-lg` (10px) contra `px-pad-2xl` (16px) — apertado justamente no
|
|
3735
|
+
// eixo que dá a leitura de "zona", e o conteúdo ficava colado na borda tracejada.
|
|
3736
|
+
"min-h-form-xl gap-gp-xs px-pad-2xl py-pad-4xl",
|
|
3734
3737
|
"rounded-radius-xl bg-bg-muted",
|
|
3735
3738
|
"border border-dashed border-border-default",
|
|
3736
3739
|
"transition-[color,box-shadow,background-color,border-color] duration-200 ease-out",
|
|
@@ -3739,6 +3742,15 @@ const fileUploadFieldStyles = tv({
|
|
|
3739
3742
|
"focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-ring-brand"
|
|
3740
3743
|
],
|
|
3741
3744
|
dropIcon: "text-fg-subtle",
|
|
3745
|
+
/**
|
|
3746
|
+
* Título e hint num bloco próprio, com gap de 2px.
|
|
3747
|
+
*
|
|
3748
|
+
* Antes os três (ícone, título, hint) eram irmãos sob o `gap-gp-xs` (4px) do dropzone —
|
|
3749
|
+
* um gap só governando duas relações diferentes. Título↔hint são a MESMA informação em
|
|
3750
|
+
* dois níveis e querem ficar juntos; o ícone é outro elemento e quer respiro. Agrupar é o
|
|
3751
|
+
* que permite os dois valores.
|
|
3752
|
+
*/
|
|
3753
|
+
dropTexts: "flex flex-col items-center gap-gp-2xs",
|
|
3742
3754
|
dropText: "text-body-sm text-fg-muted",
|
|
3743
3755
|
dropHint: "text-caption-md text-fg-subtle",
|
|
3744
3756
|
fileRow: [
|
|
@@ -3879,8 +3891,10 @@ function FileUploadField({
|
|
|
3879
3891
|
className: styles2.dropzone(),
|
|
3880
3892
|
children: [
|
|
3881
3893
|
/* @__PURE__ */ jsx(Icon, { name: "line-cloud-upload", size: "lg", className: styles2.dropIcon() }),
|
|
3882
|
-
/* @__PURE__ */
|
|
3883
|
-
|
|
3894
|
+
/* @__PURE__ */ jsxs("span", { className: styles2.dropTexts(), children: [
|
|
3895
|
+
/* @__PURE__ */ jsx("span", { className: styles2.dropText(), children: "Clique para anexar" }),
|
|
3896
|
+
hint && /* @__PURE__ */ jsx("span", { className: styles2.dropHint(), children: hint })
|
|
3897
|
+
] })
|
|
3884
3898
|
]
|
|
3885
3899
|
}
|
|
3886
3900
|
) : /* @__PURE__ */ jsxs("div", { className: styles2.fileRow(), children: [
|
|
@@ -4941,7 +4955,7 @@ const MonthYearPicker = forwardRef(function MonthYearPicker2({
|
|
|
4941
4955
|
{
|
|
4942
4956
|
type: "button",
|
|
4943
4957
|
className: styles2.navButton(),
|
|
4944
|
-
onClick: () => setViewYear((
|
|
4958
|
+
onClick: () => setViewYear((y3) => y3 - 1),
|
|
4945
4959
|
disabled: prevYearDisabled,
|
|
4946
4960
|
"aria-label": "Ano anterior",
|
|
4947
4961
|
children: /* @__PURE__ */ jsx(ChevronLeft, { className: "size-icon-sm", "aria-hidden": "true" })
|
|
@@ -4953,7 +4967,7 @@ const MonthYearPicker = forwardRef(function MonthYearPicker2({
|
|
|
4953
4967
|
{
|
|
4954
4968
|
type: "button",
|
|
4955
4969
|
className: styles2.navButton(),
|
|
4956
|
-
onClick: () => setViewYear((
|
|
4970
|
+
onClick: () => setViewYear((y3) => y3 + 1),
|
|
4957
4971
|
disabled: nextYearDisabled,
|
|
4958
4972
|
"aria-label": "Próximo ano",
|
|
4959
4973
|
children: /* @__PURE__ */ jsx(ChevronRight, { className: "size-icon-sm", "aria-hidden": "true" })
|
|
@@ -4992,7 +5006,9 @@ const spinnerStyles = tv({
|
|
|
4992
5006
|
size: {
|
|
4993
5007
|
sm: "size-icon-sm",
|
|
4994
5008
|
md: "size-icon-md",
|
|
4995
|
-
lg: "size-icon-lg"
|
|
5009
|
+
lg: "size-icon-lg",
|
|
5010
|
+
xl: "size-icon-xl",
|
|
5011
|
+
"2xl": "size-icon-2xl"
|
|
4996
5012
|
},
|
|
4997
5013
|
color: {
|
|
4998
5014
|
current: "text-current",
|
|
@@ -5045,6 +5061,91 @@ const Spinner = forwardRef(function Spinner2({ size, color, label = "Carregando"
|
|
|
5045
5061
|
);
|
|
5046
5062
|
});
|
|
5047
5063
|
Spinner.displayName = "Spinner";
|
|
5064
|
+
const screenLoaderStyles = tv({
|
|
5065
|
+
slots: {
|
|
5066
|
+
root: "flex h-full min-h-0 w-full flex-1 flex-col",
|
|
5067
|
+
// título + descrição colados (gp-2xs = 2px); o respiro maior (gp-md do
|
|
5068
|
+
// root) fica entre o Spinner e o bloco de texto
|
|
5069
|
+
text: "flex flex-col items-center gap-gp-2xs",
|
|
5070
|
+
title: "text-fg-strong",
|
|
5071
|
+
description: "text-body-sm text-fg-muted max-w-[360px]",
|
|
5072
|
+
skeletonHeader: "flex w-full items-start justify-between gap-gp-2xl",
|
|
5073
|
+
skeletonHeaderText: "flex w-full flex-col gap-gp-md",
|
|
5074
|
+
skeletonKpis: "grid w-full grid-cols-2 gap-gp-xl lg:grid-cols-4",
|
|
5075
|
+
skeletonKpiCard: "min-h-[96px] w-full",
|
|
5076
|
+
// basis-[240px] + grow/shrink em vez de min-h: em pai SEM altura o bloco
|
|
5077
|
+
// vale 240px (fallback); em pai COM altura ele cresce/encolhe pra caber —
|
|
5078
|
+
// min-h fixo estourava o container quando header + KPIs + bloco > pai
|
|
5079
|
+
skeletonBody: "w-full grow shrink basis-[240px]"
|
|
5080
|
+
},
|
|
5081
|
+
variants: {
|
|
5082
|
+
variant: {
|
|
5083
|
+
spinner: {
|
|
5084
|
+
root: "items-center justify-center gap-gp-md text-center"
|
|
5085
|
+
},
|
|
5086
|
+
skeleton: {
|
|
5087
|
+
root: "gap-gp-2xl"
|
|
5088
|
+
}
|
|
5089
|
+
},
|
|
5090
|
+
size: {
|
|
5091
|
+
sm: { title: "text-title-sm" },
|
|
5092
|
+
md: { title: "text-title-sm" },
|
|
5093
|
+
lg: { title: "text-title-md" }
|
|
5094
|
+
}
|
|
5095
|
+
},
|
|
5096
|
+
defaultVariants: {
|
|
5097
|
+
variant: "spinner",
|
|
5098
|
+
size: "md"
|
|
5099
|
+
}
|
|
5100
|
+
});
|
|
5101
|
+
const SPINNER_SIZE = {
|
|
5102
|
+
sm: "lg",
|
|
5103
|
+
md: "xl",
|
|
5104
|
+
lg: "2xl"
|
|
5105
|
+
};
|
|
5106
|
+
const ScreenLoader = forwardRef(
|
|
5107
|
+
function ScreenLoader2({
|
|
5108
|
+
variant = "spinner",
|
|
5109
|
+
size = "md",
|
|
5110
|
+
color = "brand",
|
|
5111
|
+
title: title2 = "Carregando…",
|
|
5112
|
+
description: description2,
|
|
5113
|
+
skeletonLayout = "page",
|
|
5114
|
+
className,
|
|
5115
|
+
...rest
|
|
5116
|
+
}, ref) {
|
|
5117
|
+
const styles2 = screenLoaderStyles({ variant, size });
|
|
5118
|
+
return /* @__PURE__ */ jsx(
|
|
5119
|
+
"div",
|
|
5120
|
+
{
|
|
5121
|
+
ref,
|
|
5122
|
+
role: "status",
|
|
5123
|
+
"aria-live": "polite",
|
|
5124
|
+
className: styles2.root({ className }),
|
|
5125
|
+
...rest,
|
|
5126
|
+
children: variant === "spinner" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5127
|
+
/* @__PURE__ */ jsx(Spinner, { size: SPINNER_SIZE[size], color, "aria-hidden": true }),
|
|
5128
|
+
/* @__PURE__ */ jsxs("div", { className: styles2.text(), children: [
|
|
5129
|
+
/* @__PURE__ */ jsx("h3", { className: styles2.title(), children: title2 }),
|
|
5130
|
+
description2 && /* @__PURE__ */ jsx("p", { className: styles2.description(), children: description2 })
|
|
5131
|
+
] })
|
|
5132
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5133
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: title2 }),
|
|
5134
|
+
skeletonLayout !== "kpis" && /* @__PURE__ */ jsxs("div", { "aria-hidden": "true", className: styles2.skeletonHeader(), children: [
|
|
5135
|
+
/* @__PURE__ */ jsxs("div", { className: styles2.skeletonHeaderText(), children: [
|
|
5136
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-[20px] w-1/3 max-w-[240px]" }),
|
|
5137
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-[12px] w-1/2 max-w-[360px]" })
|
|
5138
|
+
] }),
|
|
5139
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "min-h-form-md w-[120px] shrink-0" })
|
|
5140
|
+
] }),
|
|
5141
|
+
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)) }),
|
|
5142
|
+
/* @__PURE__ */ jsx(Skeleton, { "aria-hidden": "true", className: styles2.skeletonBody() })
|
|
5143
|
+
] })
|
|
5144
|
+
}
|
|
5145
|
+
);
|
|
5146
|
+
}
|
|
5147
|
+
);
|
|
5148
|
+
ScreenLoader.displayName = "ScreenLoader";
|
|
5048
5149
|
class Adder {
|
|
5049
5150
|
constructor() {
|
|
5050
5151
|
this._partials = new Float64Array(32);
|
|
@@ -5054,7 +5155,7 @@ class Adder {
|
|
|
5054
5155
|
const p4 = this._partials;
|
|
5055
5156
|
let i3 = 0;
|
|
5056
5157
|
for (let j2 = 0; j2 < this._n && j2 < 32; j2++) {
|
|
5057
|
-
const
|
|
5158
|
+
const y3 = p4[j2], hi = x2 + y3, lo = Math.abs(x2) < Math.abs(y3) ? x2 - (hi - y3) : y3 - (hi - x2);
|
|
5058
5159
|
if (lo) p4[i3++] = lo;
|
|
5059
5160
|
x2 = hi;
|
|
5060
5161
|
}
|
|
@@ -5064,20 +5165,20 @@ class Adder {
|
|
|
5064
5165
|
}
|
|
5065
5166
|
valueOf() {
|
|
5066
5167
|
const p4 = this._partials;
|
|
5067
|
-
let n2 = this._n, x2,
|
|
5168
|
+
let n2 = this._n, x2, y3, lo, hi = 0;
|
|
5068
5169
|
if (n2 > 0) {
|
|
5069
5170
|
hi = p4[--n2];
|
|
5070
5171
|
while (n2 > 0) {
|
|
5071
5172
|
x2 = hi;
|
|
5072
|
-
|
|
5073
|
-
hi = x2 +
|
|
5074
|
-
lo =
|
|
5173
|
+
y3 = p4[--n2];
|
|
5174
|
+
hi = x2 + y3;
|
|
5175
|
+
lo = y3 - (hi - x2);
|
|
5075
5176
|
if (lo) break;
|
|
5076
5177
|
}
|
|
5077
5178
|
if (n2 > 0 && (lo < 0 && p4[n2 - 1] < 0 || lo > 0 && p4[n2 - 1] > 0)) {
|
|
5078
|
-
|
|
5079
|
-
x2 = hi +
|
|
5080
|
-
if (
|
|
5179
|
+
y3 = lo * 2;
|
|
5180
|
+
x2 = hi + y3;
|
|
5181
|
+
if (y3 == x2 - hi) hi = x2;
|
|
5081
5182
|
}
|
|
5082
5183
|
}
|
|
5083
5184
|
return hi;
|
|
@@ -5206,11 +5307,11 @@ function cartesianNormalizeInPlace(d3) {
|
|
|
5206
5307
|
d3[0] /= l2, d3[1] /= l2, d3[2] /= l2;
|
|
5207
5308
|
}
|
|
5208
5309
|
function compose(a11, b4) {
|
|
5209
|
-
function compose2(x2,
|
|
5210
|
-
return x2 = a11(x2,
|
|
5310
|
+
function compose2(x2, y3) {
|
|
5311
|
+
return x2 = a11(x2, y3), b4(x2[0], x2[1]);
|
|
5211
5312
|
}
|
|
5212
|
-
if (a11.invert && b4.invert) compose2.invert = function(x2,
|
|
5213
|
-
return x2 = b4.invert(x2,
|
|
5313
|
+
if (a11.invert && b4.invert) compose2.invert = function(x2, y3) {
|
|
5314
|
+
return x2 = b4.invert(x2, y3), x2 && a11.invert(x2[0], x2[1]);
|
|
5214
5315
|
};
|
|
5215
5316
|
return compose2;
|
|
5216
5317
|
}
|
|
@@ -5237,16 +5338,16 @@ function rotationLambda(deltaLambda) {
|
|
|
5237
5338
|
function rotationPhiGamma(deltaPhi, deltaGamma) {
|
|
5238
5339
|
var cosDeltaPhi = cos(deltaPhi), sinDeltaPhi = sin(deltaPhi), cosDeltaGamma = cos(deltaGamma), sinDeltaGamma = sin(deltaGamma);
|
|
5239
5340
|
function rotation2(lambda, phi) {
|
|
5240
|
-
var cosPhi = cos(phi), x2 = cos(lambda) * cosPhi,
|
|
5341
|
+
var cosPhi = cos(phi), x2 = cos(lambda) * cosPhi, y3 = sin(lambda) * cosPhi, z2 = sin(phi), k2 = z2 * cosDeltaPhi + x2 * sinDeltaPhi;
|
|
5241
5342
|
return [
|
|
5242
|
-
atan2(
|
|
5243
|
-
asin(k2 * cosDeltaGamma +
|
|
5343
|
+
atan2(y3 * cosDeltaGamma - k2 * sinDeltaGamma, x2 * cosDeltaPhi - z2 * sinDeltaPhi),
|
|
5344
|
+
asin(k2 * cosDeltaGamma + y3 * sinDeltaGamma)
|
|
5244
5345
|
];
|
|
5245
5346
|
}
|
|
5246
5347
|
rotation2.invert = function(lambda, phi) {
|
|
5247
|
-
var cosPhi = cos(phi), x2 = cos(lambda) * cosPhi,
|
|
5348
|
+
var cosPhi = cos(phi), x2 = cos(lambda) * cosPhi, y3 = sin(lambda) * cosPhi, z2 = sin(phi), k2 = z2 * cosDeltaGamma - y3 * sinDeltaGamma;
|
|
5248
5349
|
return [
|
|
5249
|
-
atan2(
|
|
5350
|
+
atan2(y3 * cosDeltaGamma + z2 * sinDeltaGamma, x2 * cosDeltaPhi + k2 * sinDeltaPhi),
|
|
5250
5351
|
asin(k2 * cosDeltaPhi - x2 * sinDeltaPhi)
|
|
5251
5352
|
];
|
|
5252
5353
|
};
|
|
@@ -5289,8 +5390,8 @@ function circleRadius(cosRadius, point) {
|
|
|
5289
5390
|
function clipBuffer() {
|
|
5290
5391
|
var lines = [], line;
|
|
5291
5392
|
return {
|
|
5292
|
-
point: function(x2,
|
|
5293
|
-
line.push([x2,
|
|
5393
|
+
point: function(x2, y3, m2) {
|
|
5394
|
+
line.push([x2, y3, m2]);
|
|
5294
5395
|
},
|
|
5295
5396
|
lineStart: function() {
|
|
5296
5397
|
lines.push(line = []);
|
|
@@ -5661,10 +5762,10 @@ function clipCircle(radius) {
|
|
|
5661
5762
|
cartesianAddInPlace(q2, A3);
|
|
5662
5763
|
q2 = spherical(q2);
|
|
5663
5764
|
if (!two) return q2;
|
|
5664
|
-
var lambda0 = a11[0], lambda1 = b4[0], phi0 = a11[1], phi1 = b4[1],
|
|
5665
|
-
if (lambda1 < lambda0)
|
|
5765
|
+
var lambda0 = a11[0], lambda1 = b4[0], phi0 = a11[1], phi1 = b4[1], z2;
|
|
5766
|
+
if (lambda1 < lambda0) z2 = lambda0, lambda0 = lambda1, lambda1 = z2;
|
|
5666
5767
|
var delta2 = lambda1 - lambda0, polar = abs(delta2 - pi) < epsilon, meridian = polar || delta2 < epsilon;
|
|
5667
|
-
if (!polar && phi1 < phi0)
|
|
5768
|
+
if (!polar && phi1 < phi0) z2 = phi0, phi0 = phi1, phi1 = z2;
|
|
5668
5769
|
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
5770
|
var q1 = cartesianScale(u3, (-w3 + t3) / uu);
|
|
5670
5771
|
cartesianAddInPlace(q1, A3);
|
|
@@ -5729,8 +5830,8 @@ function clipLine(a11, b4, x02, y02, x12, y12) {
|
|
|
5729
5830
|
}
|
|
5730
5831
|
var clipMax = 1e9, clipMin = -clipMax;
|
|
5731
5832
|
function clipRectangle(x02, y02, x12, y12) {
|
|
5732
|
-
function visible(x2,
|
|
5733
|
-
return x02 <= x2 && x2 <= x12 && y02 <=
|
|
5833
|
+
function visible(x2, y3) {
|
|
5834
|
+
return x02 <= x2 && x2 <= x12 && y02 <= y3 && y3 <= y12;
|
|
5734
5835
|
}
|
|
5735
5836
|
function interpolate(from, to, direction, stream) {
|
|
5736
5837
|
var a11 = 0, a12 = 0;
|
|
@@ -5761,8 +5862,8 @@ function clipRectangle(x02, y02, x12, y12) {
|
|
|
5761
5862
|
polygonStart,
|
|
5762
5863
|
polygonEnd
|
|
5763
5864
|
};
|
|
5764
|
-
function point(x2,
|
|
5765
|
-
if (visible(x2,
|
|
5865
|
+
function point(x2, y3) {
|
|
5866
|
+
if (visible(x2, y3)) activeStream.point(x2, y3);
|
|
5766
5867
|
}
|
|
5767
5868
|
function polygonInside() {
|
|
5768
5869
|
var winding = 0;
|
|
@@ -5813,20 +5914,20 @@ function clipRectangle(x02, y02, x12, y12) {
|
|
|
5813
5914
|
clipStream.point = point;
|
|
5814
5915
|
if (v_) activeStream.lineEnd();
|
|
5815
5916
|
}
|
|
5816
|
-
function linePoint(x2,
|
|
5817
|
-
var v3 = visible(x2,
|
|
5818
|
-
if (polygon) ring.push([x2,
|
|
5917
|
+
function linePoint(x2, y3) {
|
|
5918
|
+
var v3 = visible(x2, y3);
|
|
5919
|
+
if (polygon) ring.push([x2, y3]);
|
|
5819
5920
|
if (first) {
|
|
5820
|
-
x__ = x2, y__ =
|
|
5921
|
+
x__ = x2, y__ = y3, v__ = v3;
|
|
5821
5922
|
first = false;
|
|
5822
5923
|
if (v3) {
|
|
5823
5924
|
activeStream.lineStart();
|
|
5824
|
-
activeStream.point(x2,
|
|
5925
|
+
activeStream.point(x2, y3);
|
|
5825
5926
|
}
|
|
5826
5927
|
} else {
|
|
5827
|
-
if (v3 && v_) activeStream.point(x2,
|
|
5928
|
+
if (v3 && v_) activeStream.point(x2, y3);
|
|
5828
5929
|
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)),
|
|
5930
|
+
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
5931
|
if (clipLine(a11, b4, x02, y02, x12, y12)) {
|
|
5831
5932
|
if (!v_) {
|
|
5832
5933
|
activeStream.lineStart();
|
|
@@ -5837,12 +5938,12 @@ function clipRectangle(x02, y02, x12, y12) {
|
|
|
5837
5938
|
clean = false;
|
|
5838
5939
|
} else if (v3) {
|
|
5839
5940
|
activeStream.lineStart();
|
|
5840
|
-
activeStream.point(x2,
|
|
5941
|
+
activeStream.point(x2, y3);
|
|
5841
5942
|
clean = false;
|
|
5842
5943
|
}
|
|
5843
5944
|
}
|
|
5844
5945
|
}
|
|
5845
|
-
x_ = x2, y_ =
|
|
5946
|
+
x_ = x2, y_ = y3, v_ = v3;
|
|
5846
5947
|
}
|
|
5847
5948
|
return clipStream;
|
|
5848
5949
|
};
|
|
@@ -5871,13 +5972,13 @@ var areaStream = {
|
|
|
5871
5972
|
function areaRingStart() {
|
|
5872
5973
|
areaStream.point = areaPointFirst;
|
|
5873
5974
|
}
|
|
5874
|
-
function areaPointFirst(x2,
|
|
5975
|
+
function areaPointFirst(x2, y3) {
|
|
5875
5976
|
areaStream.point = areaPoint;
|
|
5876
|
-
x00$2 = x0$3 = x2, y00$2 = y0$3 =
|
|
5977
|
+
x00$2 = x0$3 = x2, y00$2 = y0$3 = y3;
|
|
5877
5978
|
}
|
|
5878
|
-
function areaPoint(x2,
|
|
5879
|
-
areaRingSum.add(y0$3 * x2 - x0$3 *
|
|
5880
|
-
x0$3 = x2, y0$3 =
|
|
5979
|
+
function areaPoint(x2, y3) {
|
|
5980
|
+
areaRingSum.add(y0$3 * x2 - x0$3 * y3);
|
|
5981
|
+
x0$3 = x2, y0$3 = y3;
|
|
5881
5982
|
}
|
|
5882
5983
|
function areaRingEnd() {
|
|
5883
5984
|
areaPoint(x00$2, y00$2);
|
|
@@ -5895,11 +5996,11 @@ var boundsStream = {
|
|
|
5895
5996
|
return bounds;
|
|
5896
5997
|
}
|
|
5897
5998
|
};
|
|
5898
|
-
function boundsPoint(x2,
|
|
5999
|
+
function boundsPoint(x2, y3) {
|
|
5899
6000
|
if (x2 < x0$2) x0$2 = x2;
|
|
5900
6001
|
if (x2 > x1) x1 = x2;
|
|
5901
|
-
if (
|
|
5902
|
-
if (
|
|
6002
|
+
if (y3 < y0$2) y0$2 = y3;
|
|
6003
|
+
if (y3 > y1) y1 = y3;
|
|
5903
6004
|
}
|
|
5904
6005
|
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
6006
|
var centroidStream = {
|
|
@@ -5921,24 +6022,24 @@ var centroidStream = {
|
|
|
5921
6022
|
return centroid;
|
|
5922
6023
|
}
|
|
5923
6024
|
};
|
|
5924
|
-
function centroidPoint(x2,
|
|
6025
|
+
function centroidPoint(x2, y3) {
|
|
5925
6026
|
X0 += x2;
|
|
5926
|
-
Y0 +=
|
|
6027
|
+
Y0 += y3;
|
|
5927
6028
|
++Z0;
|
|
5928
6029
|
}
|
|
5929
6030
|
function centroidLineStart() {
|
|
5930
6031
|
centroidStream.point = centroidPointFirstLine;
|
|
5931
6032
|
}
|
|
5932
|
-
function centroidPointFirstLine(x2,
|
|
6033
|
+
function centroidPointFirstLine(x2, y3) {
|
|
5933
6034
|
centroidStream.point = centroidPointLine;
|
|
5934
|
-
centroidPoint(x0$1 = x2, y0$1 =
|
|
6035
|
+
centroidPoint(x0$1 = x2, y0$1 = y3);
|
|
5935
6036
|
}
|
|
5936
|
-
function centroidPointLine(x2,
|
|
5937
|
-
var dx = x2 - x0$1, dy =
|
|
5938
|
-
X1 +=
|
|
5939
|
-
Y1 +=
|
|
5940
|
-
Z1 +=
|
|
5941
|
-
centroidPoint(x0$1 = x2, y0$1 =
|
|
6037
|
+
function centroidPointLine(x2, y3) {
|
|
6038
|
+
var dx = x2 - x0$1, dy = y3 - y0$1, z2 = sqrt(dx * dx + dy * dy);
|
|
6039
|
+
X1 += z2 * (x0$1 + x2) / 2;
|
|
6040
|
+
Y1 += z2 * (y0$1 + y3) / 2;
|
|
6041
|
+
Z1 += z2;
|
|
6042
|
+
centroidPoint(x0$1 = x2, y0$1 = y3);
|
|
5942
6043
|
}
|
|
5943
6044
|
function centroidLineEnd() {
|
|
5944
6045
|
centroidStream.point = centroidPoint;
|
|
@@ -5949,20 +6050,20 @@ function centroidRingStart() {
|
|
|
5949
6050
|
function centroidRingEnd() {
|
|
5950
6051
|
centroidPointRing(x00$1, y00$1);
|
|
5951
6052
|
}
|
|
5952
|
-
function centroidPointFirstRing(x2,
|
|
6053
|
+
function centroidPointFirstRing(x2, y3) {
|
|
5953
6054
|
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 =
|
|
6055
|
+
centroidPoint(x00$1 = x0$1 = x2, y00$1 = y0$1 = y3);
|
|
6056
|
+
}
|
|
6057
|
+
function centroidPointRing(x2, y3) {
|
|
6058
|
+
var dx = x2 - x0$1, dy = y3 - y0$1, z2 = sqrt(dx * dx + dy * dy);
|
|
6059
|
+
X1 += z2 * (x0$1 + x2) / 2;
|
|
6060
|
+
Y1 += z2 * (y0$1 + y3) / 2;
|
|
6061
|
+
Z1 += z2;
|
|
6062
|
+
z2 = y0$1 * x2 - x0$1 * y3;
|
|
6063
|
+
X22 += z2 * (x0$1 + x2);
|
|
6064
|
+
Y2 += z2 * (y0$1 + y3);
|
|
6065
|
+
Z2 += z2 * 3;
|
|
6066
|
+
centroidPoint(x0$1 = x2, y0$1 = y3);
|
|
5966
6067
|
}
|
|
5967
6068
|
function PathContext(context) {
|
|
5968
6069
|
this._context = context;
|
|
@@ -5985,20 +6086,20 @@ PathContext.prototype = {
|
|
|
5985
6086
|
if (this._line === 0) this._context.closePath();
|
|
5986
6087
|
this._point = NaN;
|
|
5987
6088
|
},
|
|
5988
|
-
point: function(x2,
|
|
6089
|
+
point: function(x2, y3) {
|
|
5989
6090
|
switch (this._point) {
|
|
5990
6091
|
case 0: {
|
|
5991
|
-
this._context.moveTo(x2,
|
|
6092
|
+
this._context.moveTo(x2, y3);
|
|
5992
6093
|
this._point = 1;
|
|
5993
6094
|
break;
|
|
5994
6095
|
}
|
|
5995
6096
|
case 1: {
|
|
5996
|
-
this._context.lineTo(x2,
|
|
6097
|
+
this._context.lineTo(x2, y3);
|
|
5997
6098
|
break;
|
|
5998
6099
|
}
|
|
5999
6100
|
default: {
|
|
6000
|
-
this._context.moveTo(x2 + this._radius,
|
|
6001
|
-
this._context.arc(x2,
|
|
6101
|
+
this._context.moveTo(x2 + this._radius, y3);
|
|
6102
|
+
this._context.arc(x2, y3, this._radius, 0, tau);
|
|
6002
6103
|
break;
|
|
6003
6104
|
}
|
|
6004
6105
|
}
|
|
@@ -6027,14 +6128,14 @@ var lengthStream = {
|
|
|
6027
6128
|
return length;
|
|
6028
6129
|
}
|
|
6029
6130
|
};
|
|
6030
|
-
function lengthPointFirst(x2,
|
|
6131
|
+
function lengthPointFirst(x2, y3) {
|
|
6031
6132
|
lengthStream.point = lengthPoint;
|
|
6032
|
-
x00 = x0 = x2, y00 = y0 =
|
|
6133
|
+
x00 = x0 = x2, y00 = y0 = y3;
|
|
6033
6134
|
}
|
|
6034
|
-
function lengthPoint(x2,
|
|
6035
|
-
x0 -= x2, y0 -=
|
|
6135
|
+
function lengthPoint(x2, y3) {
|
|
6136
|
+
x0 -= x2, y0 -= y3;
|
|
6036
6137
|
lengthSum.add(sqrt(x0 * x0 + y0 * y0));
|
|
6037
|
-
x0 = x2, y0 =
|
|
6138
|
+
x0 = x2, y0 = y3;
|
|
6038
6139
|
}
|
|
6039
6140
|
let cacheDigits, cacheAppend, cacheRadius, cacheCircle;
|
|
6040
6141
|
class PathString {
|
|
@@ -6060,19 +6161,19 @@ class PathString {
|
|
|
6060
6161
|
if (this._line === 0) this._ += "Z";
|
|
6061
6162
|
this._point = NaN;
|
|
6062
6163
|
}
|
|
6063
|
-
point(x2,
|
|
6164
|
+
point(x2, y3) {
|
|
6064
6165
|
switch (this._point) {
|
|
6065
6166
|
case 0: {
|
|
6066
|
-
this._append`M${x2},${
|
|
6167
|
+
this._append`M${x2},${y3}`;
|
|
6067
6168
|
this._point = 1;
|
|
6068
6169
|
break;
|
|
6069
6170
|
}
|
|
6070
6171
|
case 1: {
|
|
6071
|
-
this._append`L${x2},${
|
|
6172
|
+
this._append`L${x2},${y3}`;
|
|
6072
6173
|
break;
|
|
6073
6174
|
}
|
|
6074
6175
|
default: {
|
|
6075
|
-
this._append`M${x2},${
|
|
6176
|
+
this._append`M${x2},${y3}`;
|
|
6076
6177
|
if (this._radius !== cacheRadius || this._append !== cacheAppend) {
|
|
6077
6178
|
const r2 = this._radius;
|
|
6078
6179
|
const s2 = this._;
|
|
@@ -6184,8 +6285,8 @@ function TransformStream() {
|
|
|
6184
6285
|
}
|
|
6185
6286
|
TransformStream.prototype = {
|
|
6186
6287
|
constructor: TransformStream,
|
|
6187
|
-
point: function(x2,
|
|
6188
|
-
this.stream.point(x2,
|
|
6288
|
+
point: function(x2, y3) {
|
|
6289
|
+
this.stream.point(x2, y3);
|
|
6189
6290
|
},
|
|
6190
6291
|
sphere: function() {
|
|
6191
6292
|
this.stream.sphere();
|
|
@@ -6214,8 +6315,8 @@ function fit(projection2, fitBounds, object2) {
|
|
|
6214
6315
|
}
|
|
6215
6316
|
function fitExtent(projection2, extent, object2) {
|
|
6216
6317
|
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,
|
|
6318
|
+
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;
|
|
6319
|
+
projection2.scale(150 * k2).translate([x2, y3]);
|
|
6219
6320
|
}, object2);
|
|
6220
6321
|
}
|
|
6221
6322
|
function fitSize(projection2, size, object2) {
|
|
@@ -6223,14 +6324,14 @@ function fitSize(projection2, size, object2) {
|
|
|
6223
6324
|
}
|
|
6224
6325
|
function fitWidth(projection2, width, object2) {
|
|
6225
6326
|
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,
|
|
6327
|
+
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];
|
|
6328
|
+
projection2.scale(150 * k2).translate([x2, y3]);
|
|
6228
6329
|
}, object2);
|
|
6229
6330
|
}
|
|
6230
6331
|
function fitHeight(projection2, height, object2) {
|
|
6231
6332
|
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,
|
|
6333
|
+
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;
|
|
6334
|
+
projection2.scale(150 * k2).translate([x2, y3]);
|
|
6234
6335
|
}, object2);
|
|
6235
6336
|
}
|
|
6236
6337
|
var maxDepth = 16, cosMinDistance = cos(30 * radians);
|
|
@@ -6239,8 +6340,8 @@ function resample(project, delta2) {
|
|
|
6239
6340
|
}
|
|
6240
6341
|
function resampleNone(project) {
|
|
6241
6342
|
return transformer({
|
|
6242
|
-
point: function(x2,
|
|
6243
|
-
x2 = project(x2,
|
|
6343
|
+
point: function(x2, y3) {
|
|
6344
|
+
x2 = project(x2, y3);
|
|
6244
6345
|
this.stream.point(x2[0], x2[1]);
|
|
6245
6346
|
}
|
|
6246
6347
|
});
|
|
@@ -6249,11 +6350,11 @@ function resample$1(project, delta2) {
|
|
|
6249
6350
|
function resampleLineTo(x02, y02, lambda0, a02, b0, c0, x12, y12, lambda1, a12, b1, c1, depth, stream) {
|
|
6250
6351
|
var dx = x12 - x02, dy = y12 - y02, d22 = dx * dx + dy * dy;
|
|
6251
6352
|
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],
|
|
6353
|
+
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
6354
|
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,
|
|
6355
|
+
resampleLineTo(x02, y02, lambda0, a02, b0, c0, x2, y22, lambda2, a11 /= m2, b4 /= m2, c3, depth, stream);
|
|
6356
|
+
stream.point(x2, y22);
|
|
6357
|
+
resampleLineTo(x2, y22, lambda2, a11, b4, c3, x12, y12, lambda1, a12, b1, c1, depth, stream);
|
|
6257
6358
|
}
|
|
6258
6359
|
}
|
|
6259
6360
|
}
|
|
@@ -6272,8 +6373,8 @@ function resample$1(project, delta2) {
|
|
|
6272
6373
|
resampleStream.lineStart = lineStart;
|
|
6273
6374
|
}
|
|
6274
6375
|
};
|
|
6275
|
-
function point(x2,
|
|
6276
|
-
x2 = project(x2,
|
|
6376
|
+
function point(x2, y3) {
|
|
6377
|
+
x2 = project(x2, y3);
|
|
6277
6378
|
stream.point(x2[0], x2[1]);
|
|
6278
6379
|
}
|
|
6279
6380
|
function lineStart() {
|
|
@@ -6308,39 +6409,39 @@ function resample$1(project, delta2) {
|
|
|
6308
6409
|
};
|
|
6309
6410
|
}
|
|
6310
6411
|
var transformRadians = transformer({
|
|
6311
|
-
point: function(x2,
|
|
6312
|
-
this.stream.point(x2 * radians,
|
|
6412
|
+
point: function(x2, y3) {
|
|
6413
|
+
this.stream.point(x2 * radians, y3 * radians);
|
|
6313
6414
|
}
|
|
6314
6415
|
});
|
|
6315
6416
|
function transformRotate(rotate) {
|
|
6316
6417
|
return transformer({
|
|
6317
|
-
point: function(x2,
|
|
6318
|
-
var r2 = rotate(x2,
|
|
6418
|
+
point: function(x2, y3) {
|
|
6419
|
+
var r2 = rotate(x2, y3);
|
|
6319
6420
|
return this.stream.point(r2[0], r2[1]);
|
|
6320
6421
|
}
|
|
6321
6422
|
});
|
|
6322
6423
|
}
|
|
6323
6424
|
function scaleTranslate(k2, dx, dy, sx, sy) {
|
|
6324
|
-
function transform2(x2,
|
|
6425
|
+
function transform2(x2, y3) {
|
|
6325
6426
|
x2 *= sx;
|
|
6326
|
-
|
|
6327
|
-
return [dx + k2 * x2, dy - k2 *
|
|
6427
|
+
y3 *= sy;
|
|
6428
|
+
return [dx + k2 * x2, dy - k2 * y3];
|
|
6328
6429
|
}
|
|
6329
|
-
transform2.invert = function(x2,
|
|
6330
|
-
return [(x2 - dx) / k2 * sx, (dy -
|
|
6430
|
+
transform2.invert = function(x2, y3) {
|
|
6431
|
+
return [(x2 - dx) / k2 * sx, (dy - y3) / k2 * sy];
|
|
6331
6432
|
};
|
|
6332
6433
|
return transform2;
|
|
6333
6434
|
}
|
|
6334
6435
|
function scaleTranslateRotate(k2, dx, dy, sx, sy, alpha) {
|
|
6335
6436
|
if (!alpha) return scaleTranslate(k2, dx, dy, sx, sy);
|
|
6336
6437
|
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,
|
|
6438
|
+
function transform2(x2, y3) {
|
|
6338
6439
|
x2 *= sx;
|
|
6339
|
-
|
|
6340
|
-
return [a11 * x2 - b4 *
|
|
6440
|
+
y3 *= sy;
|
|
6441
|
+
return [a11 * x2 - b4 * y3 + dx, dy - b4 * x2 - a11 * y3];
|
|
6341
6442
|
}
|
|
6342
|
-
transform2.invert = function(x2,
|
|
6343
|
-
return [sx * (ai2 * x2 - bi *
|
|
6443
|
+
transform2.invert = function(x2, y3) {
|
|
6444
|
+
return [sx * (ai2 * x2 - bi * y3 + ci), sy * (fi - bi * x2 - ai2 * y3)];
|
|
6344
6445
|
};
|
|
6345
6446
|
return transform2;
|
|
6346
6447
|
}
|
|
@@ -6350,7 +6451,7 @@ function projection(project) {
|
|
|
6350
6451
|
})();
|
|
6351
6452
|
}
|
|
6352
6453
|
function projectionMutator(projectAt) {
|
|
6353
|
-
var project, k2 = 150, x2 = 480,
|
|
6454
|
+
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
6455
|
function projection2(point) {
|
|
6355
6456
|
return projectRotateTransform(point[0] * radians, point[1] * radians);
|
|
6356
6457
|
}
|
|
@@ -6377,7 +6478,7 @@ function projectionMutator(projectAt) {
|
|
|
6377
6478
|
return arguments.length ? (k2 = +_2, recenter()) : k2;
|
|
6378
6479
|
};
|
|
6379
6480
|
projection2.translate = function(_2) {
|
|
6380
|
-
return arguments.length ? (x2 = +_2[0],
|
|
6481
|
+
return arguments.length ? (x2 = +_2[0], y3 = +_2[1], recenter()) : [x2, y3];
|
|
6381
6482
|
};
|
|
6382
6483
|
projection2.center = function(_2) {
|
|
6383
6484
|
return arguments.length ? (lambda = _2[0] % 360 * radians, phi = _2[1] % 360 * radians, recenter()) : [lambda * degrees, phi * degrees];
|
|
@@ -6410,7 +6511,7 @@ function projectionMutator(projectAt) {
|
|
|
6410
6511
|
return fitHeight(projection2, height, object2);
|
|
6411
6512
|
};
|
|
6412
6513
|
function recenter() {
|
|
6413
|
-
var center = scaleTranslateRotate(k2, 0, 0, sx, sy, alpha).apply(null, project(lambda, phi)), transform2 = scaleTranslateRotate(k2, x2 - center[0],
|
|
6514
|
+
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
6515
|
rotate = rotateRadians(deltaLambda, deltaPhi, deltaGamma);
|
|
6415
6516
|
projectTransform = compose(project, transform2);
|
|
6416
6517
|
projectRotateTransform = compose(rotate, projectTransform);
|
|
@@ -6430,8 +6531,8 @@ function projectionMutator(projectAt) {
|
|
|
6430
6531
|
function mercatorRaw(lambda, phi) {
|
|
6431
6532
|
return [lambda, log(tan((halfPi + phi) / 2))];
|
|
6432
6533
|
}
|
|
6433
|
-
mercatorRaw.invert = function(x2,
|
|
6434
|
-
return [x2, 2 * atan(exp(
|
|
6534
|
+
mercatorRaw.invert = function(x2, y3) {
|
|
6535
|
+
return [x2, 2 * atan(exp(y3)) - halfPi];
|
|
6435
6536
|
};
|
|
6436
6537
|
function geoMercator() {
|
|
6437
6538
|
return mercatorProjection(mercatorRaw).scale(961 / tau);
|
|
@@ -8000,16 +8101,16 @@ export {
|
|
|
8000
8101
|
g as HeaderThemeSwitcher,
|
|
8001
8102
|
Icon,
|
|
8002
8103
|
Input,
|
|
8003
|
-
|
|
8004
|
-
|
|
8005
|
-
|
|
8006
|
-
|
|
8007
|
-
|
|
8008
|
-
|
|
8104
|
+
P2 as InputGroup,
|
|
8105
|
+
Q2 as InputGroupAddon,
|
|
8106
|
+
R2 as InputGroupButton,
|
|
8107
|
+
S3 as InputGroupInput,
|
|
8108
|
+
T as InputGroupText,
|
|
8109
|
+
U3 as InputGroupTextarea,
|
|
8009
8110
|
V as Kanban,
|
|
8010
8111
|
a10 as Kpi,
|
|
8011
8112
|
b3 as KpiDelta,
|
|
8012
|
-
|
|
8113
|
+
K2 as KpiGroup,
|
|
8013
8114
|
List,
|
|
8014
8115
|
ListItem,
|
|
8015
8116
|
MarkdownText,
|
|
@@ -8022,22 +8123,23 @@ export {
|
|
|
8022
8123
|
Modal,
|
|
8023
8124
|
MonthYearPicker,
|
|
8024
8125
|
W as MoreMenu,
|
|
8025
|
-
|
|
8126
|
+
y2 as MoreMenuCheckboxItem,
|
|
8026
8127
|
DropdownMenuItem as MoreMenuItem,
|
|
8027
|
-
|
|
8028
|
-
|
|
8029
|
-
|
|
8128
|
+
F2 as MoreMenuLabel,
|
|
8129
|
+
H3 as MoreMenuRadioGroup,
|
|
8130
|
+
I2 as MoreMenuRadioItem,
|
|
8030
8131
|
DropdownMenuSeparator as MoreMenuSeparator,
|
|
8031
|
-
|
|
8132
|
+
P3 as PageHeader,
|
|
8032
8133
|
P as Panel,
|
|
8033
8134
|
X as PanelBody,
|
|
8034
8135
|
G2 as PanelCloseAction,
|
|
8035
8136
|
H4 as PanelContent,
|
|
8036
8137
|
Y as PanelFooter,
|
|
8037
8138
|
Z as PanelHeader,
|
|
8038
|
-
|
|
8139
|
+
F3 as PanelRoot,
|
|
8039
8140
|
O2 as PanelTrigger,
|
|
8040
8141
|
_ as SELECTION_COLUMN_WIDTH,
|
|
8142
|
+
ScreenLoader,
|
|
8041
8143
|
S2 as SidebarBrandIcon,
|
|
8042
8144
|
h as SidebarItem,
|
|
8043
8145
|
i as SidebarPanel,
|
|
@@ -8077,7 +8179,7 @@ export {
|
|
|
8077
8179
|
ae as ViewsPopover,
|
|
8078
8180
|
actionColumn,
|
|
8079
8181
|
af as avatarVariants,
|
|
8080
|
-
|
|
8182
|
+
aI as badgeVariants,
|
|
8081
8183
|
a92 as buttonVariants,
|
|
8082
8184
|
cardCheckbox,
|
|
8083
8185
|
o as chipCount,
|
|
@@ -8094,7 +8196,7 @@ export {
|
|
|
8094
8196
|
ag as floatingPanelStyles,
|
|
8095
8197
|
iconStyles,
|
|
8096
8198
|
icons,
|
|
8097
|
-
|
|
8199
|
+
a62 as inputGroupVariants,
|
|
8098
8200
|
i2 as inputVariants,
|
|
8099
8201
|
q as isExternalHref,
|
|
8100
8202
|
isFilterEntryActive,
|