@iqworksai/common-components 0.1.21 → 0.1.23
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/_virtual/_commonjsHelpers.mjs +8 -0
- package/dist/_virtual/dayjs.min.mjs +4 -0
- package/dist/_virtual/index.mjs +4 -0
- package/dist/_virtual/index2.mjs +4 -0
- package/dist/_virtual/jquery.mjs +4 -0
- package/dist/_virtual/jstree.mjs +4 -0
- package/dist/_virtual/papaparse.min.mjs +4 -0
- package/dist/_virtual/react-is.development.mjs +4 -0
- package/dist/_virtual/react-is.production.min.mjs +4 -0
- package/dist/_virtual/use-sync-external-store-shim.development.mjs +4 -0
- package/dist/_virtual/use-sync-external-store-shim.production.mjs +4 -0
- package/dist/_virtual/use-sync-external-store-with-selector.development.mjs +4 -0
- package/dist/_virtual/use-sync-external-store-with-selector.production.mjs +4 -0
- package/dist/_virtual/utc.mjs +4 -0
- package/dist/_virtual/with-selector.development.mjs +4 -0
- package/dist/_virtual/with-selector.mjs +4 -0
- package/dist/_virtual/with-selector.production.mjs +4 -0
- package/dist/_virtual/with-selector2.mjs +4 -0
- package/dist/assets/integrations/athena.svg.mjs +4 -0
- package/dist/assets/integrations/awsS3.svg.mjs +4 -0
- package/dist/assets/integrations/azureBlob.svg.mjs +4 -0
- package/dist/assets/integrations/bigquery.svg.mjs +4 -0
- package/dist/assets/integrations/box.svg.mjs +4 -0
- package/dist/assets/integrations/confluence.svg.mjs +4 -0
- package/dist/assets/integrations/databricks.svg.mjs +4 -0
- package/dist/assets/integrations/drive.svg.mjs +4 -0
- package/dist/assets/integrations/dropbox.svg.mjs +4 -0
- package/dist/assets/integrations/dynamics365.svg.mjs +4 -0
- package/dist/assets/integrations/dynamodb.svg.mjs +4 -0
- package/dist/assets/integrations/endpoints.svg.mjs +4 -0
- package/dist/assets/integrations/exchange.svg.mjs +4 -0
- package/dist/assets/integrations/github.svg.mjs +4 -0
- package/dist/assets/integrations/gitlab.svg.mjs +4 -0
- package/dist/assets/integrations/gmail.svg.mjs +4 -0
- package/dist/assets/integrations/googleCloudStorage.svg.mjs +4 -0
- package/dist/assets/integrations/hubspot.svg.mjs +4 -0
- package/dist/assets/integrations/jira.svg.mjs +4 -0
- package/dist/assets/integrations/mssql.svg.mjs +4 -0
- package/dist/assets/integrations/mysql.svg.mjs +4 -0
- package/dist/assets/integrations/netsuite.svg.mjs +4 -0
- package/dist/assets/integrations/oneDrive.svg.mjs +4 -0
- package/dist/assets/integrations/outlook.svg.mjs +4 -0
- package/dist/assets/integrations/postgres.svg.mjs +4 -0
- package/dist/assets/integrations/redshift.svg.mjs +4 -0
- package/dist/assets/integrations/salesforce.svg.mjs +4 -0
- package/dist/assets/integrations/sap.svg.mjs +4 -0
- package/dist/assets/integrations/servicenow.svg.mjs +4 -0
- package/dist/assets/integrations/sharedDrive.svg.mjs +4 -0
- package/dist/assets/integrations/sharepoint.svg.mjs +4 -0
- package/dist/assets/integrations/slack.svg.mjs +4 -0
- package/dist/assets/integrations/snowflake.svg.mjs +4 -0
- package/dist/assets/integrations/teams.svg.mjs +4 -0
- package/dist/assets/integrations/workday.svg.mjs +4 -0
- package/dist/assets/integrations/zendesk.svg.mjs +4 -0
- package/dist/assets/logos/aiq-logo.svg.mjs +4 -0
- package/dist/assets/logos/classify-iq-logo.svg.mjs +4 -0
- package/dist/assets/logos/comply-iq-logo.svg.mjs +4 -0
- package/dist/assets/logos/consent-iq-logo.svg.mjs +4 -0
- package/dist/assets/logos/discover-iq-logo.svg.mjs +4 -0
- package/dist/assets/logos/iqagent-logo.svg.mjs +4 -0
- package/dist/assets/logos/iqworks-icon.png.mjs +4 -0
- package/dist/assets/logos/iqworks-icon.svg.mjs +10 -0
- package/dist/assets/logos/iqworks-icon.svg2.mjs +4 -0
- package/dist/assets/logos/iqworks-logo.svg.mjs +4 -0
- package/dist/assets/logos/light/aiq-logo-light.svg.mjs +4 -0
- package/dist/assets/logos/light/classify-iq-logo-light.svg.mjs +4 -0
- package/dist/assets/logos/light/comply-iq-logo-light.svg.mjs +4 -0
- package/dist/assets/logos/light/consent-iq-logo-light.svg.mjs +4 -0
- package/dist/assets/logos/light/discover-iq-logo-light.svg.mjs +4 -0
- package/dist/assets/logos/light/iqagent-logo.svg.mjs +4 -0
- package/dist/assets/logos/light/iqworks-icon-light.png.mjs +4 -0
- package/dist/assets/logos/light/iqworks-icon-light.svg.mjs +10 -0
- package/dist/assets/logos/light/iqworks-icon-light.svg2.mjs +4 -0
- package/dist/assets/logos/light/iqworks-logo-light.svg.mjs +4 -0
- package/dist/assets/logos/light/protect-iq-logo-light.svg.mjs +4 -0
- package/dist/assets/logos/light/retain-iq-logo-light.svg.mjs +4 -0
- package/dist/assets/logos/light/search-iq-logo-light.svg.mjs +4 -0
- package/dist/assets/logos/protect-iq-logo.svg.mjs +4 -0
- package/dist/assets/logos/retain-iq-logo.svg.mjs +4 -0
- package/dist/assets/logos/search-iq-logo.svg.mjs +4 -0
- package/dist/components/Alert/index.mjs +34 -0
- package/dist/components/CSVImporter/helpers.mjs +82 -0
- package/dist/components/CSVImporter/index.mjs +156 -0
- package/dist/components/Charts/ChartHeader/index.mjs +15 -0
- package/dist/components/Charts/CustomLegends/index.mjs +72 -0
- package/dist/components/Charts/DonutChart/index.mjs +120 -0
- package/dist/components/Charts/GaugeChart/index.mjs +229 -0
- package/dist/components/Charts/GeoChart/index.mjs +85 -0
- package/dist/components/Charts/HorizontalBarChart/index.mjs +118 -0
- package/dist/components/Charts/NoDataChart/index.mjs +19 -0
- package/dist/components/Charts/PieChart/index.mjs +120 -0
- package/dist/components/Charts/StorageChart/index.mjs +44 -0
- package/dist/components/Charts/VerticalBarChart/index.mjs +130 -0
- package/dist/components/ConfidenceScoreTooltip/index.mjs +113 -0
- package/dist/components/ConfirmationModal/index.mjs +96 -0
- package/dist/components/CountryBox/index.mjs +18 -0
- package/dist/components/DbSchemaBrowser/index.mjs +750 -0
- package/dist/components/Dropdown/index.mjs +59 -0
- package/dist/components/ErrorBoundary/ComponentErrorBoundary.mjs +43 -0
- package/dist/components/ErrorBoundary/index.mjs +184 -0
- package/dist/components/Favicons/index.d.ts +83 -0
- package/dist/components/Favicons/index.d.ts.map +1 -0
- package/dist/components/Favicons/index.mjs +67 -0
- package/dist/components/FileBrowser/index.mjs +706 -0
- package/dist/components/FileTypeIcon/index.mjs +12 -0
- package/dist/components/ImagePreviewModal/index.mjs +101 -0
- package/dist/components/InstallUpdateLoader/index.mjs +99 -0
- package/dist/components/IntegrationLogos/index.mjs +146 -0
- package/dist/components/Loader/index.mjs +30 -0
- package/dist/components/Logos/index.mjs +121 -0
- package/dist/components/Modal/index.mjs +126 -0
- package/dist/components/MultiSelect/index.mjs +236 -0
- package/dist/components/NoActiveAttributeWarning/index.mjs +9 -0
- package/dist/components/ResourceUsageBadge/index.mjs +47 -0
- package/dist/components/RiskScoreLabel/index.mjs +10 -0
- package/dist/components/ShowMultiData/index.mjs +32 -0
- package/dist/components/StatusBadge/index.mjs +39 -0
- package/dist/components/Table/index.mjs +732 -0
- package/dist/components/TaskResult/index.mjs +157 -0
- package/dist/components/Timer/index.mjs +33 -0
- package/dist/components/Toast/index.mjs +31 -0
- package/dist/components/ToggleSwitch/index.mjs +26 -0
- package/dist/components/ToolTip/index.mjs +63 -0
- package/dist/constants/browserConstants.mjs +9 -0
- package/dist/constants/enums.mjs +9 -0
- package/dist/constants/statusBadgeClasses.mjs +15 -0
- package/dist/context/ContextProvider.mjs +21 -0
- package/dist/context/LoaderContext.mjs +15 -0
- package/dist/context/ThemeContext.mjs +201 -0
- package/dist/context/ToastContext.mjs +24 -0
- package/dist/hooks/useApiCache.mjs +47 -0
- package/dist/hooks/useAssetPath.mjs +16 -0
- package/dist/hooks/useBodyScrollLock.mjs +13 -0
- package/dist/hooks/useClickOutside.mjs +21 -0
- package/dist/hooks/useDebounce.mjs +15 -0
- package/dist/hooks/useFilterCache.mjs +22 -0
- package/dist/hooks/useReduxHook.mjs +17 -0
- package/dist/{index-DuYopz3l.cjs → index-CUUuCzyM.cjs} +44 -32
- package/dist/{index-CM7jFsCE.cjs → index-DtVOjJk3.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +166 -100
- package/dist/jquery-BKuE7Afe.cjs +13 -0
- package/dist/{jstree-CXGKFWK1.cjs → jstree-CtrCtuMv.cjs} +3 -3
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.mjs +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.mjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.mjs +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createClass.mjs +15 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createSuper.mjs +17 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.mjs +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.mjs +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/inherits.mjs +16 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.mjs +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.mjs +24 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.mjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.mjs +25 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.mjs +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.mjs +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.mjs +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.mjs +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +14 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.mjs +11 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +11 -0
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.mjs +245 -0
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.mjs +22 -0
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.mjs +9 -0
- package/dist/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.mjs +56 -0
- package/dist/node_modules/@emotion/react/dist/emotion-react.browser.esm.mjs +43 -0
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.mjs +127 -0
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.mjs +44 -0
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.mjs +53 -0
- package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.mjs +7 -0
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.mjs +34 -0
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +392 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +400 -0
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.mjs +365 -0
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.mjs +13 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +176 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +136 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +129 -0
- package/dist/node_modules/@headlessui/react/dist/components/description/description.mjs +39 -0
- package/dist/node_modules/@headlessui/react/dist/components/keyboard.mjs +4 -0
- package/dist/node_modules/@headlessui/react/dist/components/label/label.mjs +61 -0
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine-glue.mjs +21 -0
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine.mjs +120 -0
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu.mjs +205 -0
- package/dist/node_modules/@headlessui/react/dist/components/mouse.mjs +4 -0
- package/dist/node_modules/@headlessui/react/dist/components/portal/portal.mjs +51 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.mjs +14 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.mjs +52 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.mjs +38 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.mjs +8 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.mjs +12 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-active-press.mjs +33 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.mjs +9 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-document-event.mjs +15 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-element-size.mjs +26 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-event.mjs +9 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.mjs +8 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-handle-toggle.mjs +15 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-inert-others.mjs +41 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-is-top-layer.mjs +13 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.mjs +8 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.mjs +11 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-on-disappear.mjs +28 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-on-unmount.mjs +14 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-outside-click.mjs +38 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.mjs +8 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-quick-release.mjs +32 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.mjs +12 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-scroll-lock.mjs +12 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-slot.mjs +7 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-store.mjs +7 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.mjs +20 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-text-value.mjs +17 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.mjs +16 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.mjs +73 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.mjs +18 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-window-event.mjs +15 -0
- package/dist/node_modules/@headlessui/react/dist/internal/disabled.mjs +8 -0
- package/dist/node_modules/@headlessui/react/dist/internal/floating.mjs +154 -0
- package/dist/node_modules/@headlessui/react/dist/internal/id.mjs +8 -0
- package/dist/node_modules/@headlessui/react/dist/internal/open-closed.mjs +15 -0
- package/dist/node_modules/@headlessui/react/dist/internal/portal-force-root.mjs +8 -0
- package/dist/node_modules/@headlessui/react/dist/machine.mjs +74 -0
- package/dist/node_modules/@headlessui/react/dist/machines/stack-machine.mjs +33 -0
- package/dist/node_modules/@headlessui/react/dist/react-glue.mjs +12 -0
- package/dist/node_modules/@headlessui/react/dist/utils/bugs.mjs +19 -0
- package/dist/node_modules/@headlessui/react/dist/utils/calculate-active-index.mjs +40 -0
- package/dist/node_modules/@headlessui/react/dist/utils/class-names.mjs +6 -0
- package/dist/node_modules/@headlessui/react/dist/utils/default-map.mjs +12 -0
- package/dist/node_modules/@headlessui/react/dist/utils/disposables.mjs +40 -0
- package/dist/node_modules/@headlessui/react/dist/utils/dom.mjs +46 -0
- package/dist/node_modules/@headlessui/react/dist/utils/element-movement.mjs +21 -0
- package/dist/node_modules/@headlessui/react/dist/utils/env.mjs +34 -0
- package/dist/node_modules/@headlessui/react/dist/utils/focus-management.mjs +97 -0
- package/dist/node_modules/@headlessui/react/dist/utils/get-text-value.mjs +31 -0
- package/dist/node_modules/@headlessui/react/dist/utils/match.mjs +11 -0
- package/dist/node_modules/@headlessui/react/dist/utils/micro-task.mjs +8 -0
- package/dist/node_modules/@headlessui/react/dist/utils/owner.mjs +22 -0
- package/dist/node_modules/@headlessui/react/dist/utils/platform.mjs +14 -0
- package/dist/node_modules/@headlessui/react/dist/utils/render.mjs +126 -0
- package/dist/node_modules/@headlessui/react/dist/utils/store.mjs +14 -0
- package/dist/node_modules/@kurkle/color/dist/color.esm.mjs +448 -0
- package/dist/node_modules/@react-aria/focus/dist/useFocusRing.mjs +34 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocus.mjs +30 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.mjs +93 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.mjs +57 -0
- package/dist/node_modules/@react-aria/interactions/dist/useHover.mjs +86 -0
- package/dist/node_modules/@react-aria/interactions/dist/utils.mjs +66 -0
- package/dist/node_modules/@react-aria/utils/dist/DOMFunctions.mjs +27 -0
- package/dist/node_modules/@react-aria/utils/dist/domHelpers.mjs +15 -0
- package/dist/node_modules/@react-aria/utils/dist/focusWithoutScrolling.mjs +45 -0
- package/dist/node_modules/@react-aria/utils/dist/isVirtualEvent.mjs +7 -0
- package/dist/node_modules/@react-aria/utils/dist/openLink.mjs +28 -0
- package/dist/node_modules/@react-aria/utils/dist/platform.mjs +47 -0
- package/dist/node_modules/@react-aria/utils/dist/useGlobalListeners.mjs +34 -0
- package/dist/node_modules/@react-aria/utils/dist/useLayoutEffect.mjs +6 -0
- package/dist/node_modules/@react-stately/flags/dist/import.mjs +7 -0
- package/dist/node_modules/@reactflow/background/dist/esm/index.mjs +57 -0
- package/dist/node_modules/@reactflow/controls/dist/esm/index.mjs +96 -0
- package/dist/node_modules/@reactflow/core/dist/esm/index.mjs +2666 -0
- package/dist/node_modules/@reactflow/minimap/dist/esm/index.mjs +122 -0
- package/dist/node_modules/@reactflow/node-resizer/dist/esm/index.mjs +130 -0
- package/dist/node_modules/@reactflow/node-toolbar/dist/esm/index.mjs +72 -0
- package/dist/node_modules/@tanstack/react-table/build/lib/index.mjs +100 -0
- package/dist/node_modules/@tanstack/table-core/build/lib/index.mjs +1721 -0
- package/dist/node_modules/chart.js/auto/auto.mjs +51 -0
- package/dist/node_modules/chart.js/dist/chart.mjs +7174 -0
- package/dist/node_modules/chart.js/dist/chunks/helpers.dataset.mjs +1734 -0
- package/dist/node_modules/chartjs-chart-geo/build/index.mjs +874 -0
- package/dist/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.mjs +613 -0
- package/dist/node_modules/classcat/index.mjs +14 -0
- package/dist/node_modules/d3-array/src/fsum.mjs +27 -0
- package/dist/node_modules/d3-array/src/merge.mjs +10 -0
- package/dist/node_modules/d3-array/src/range.mjs +9 -0
- package/dist/node_modules/d3-color/src/color.mjs +305 -0
- package/dist/node_modules/d3-color/src/cubehelix.mjs +37 -0
- package/dist/node_modules/d3-color/src/define.mjs +12 -0
- package/dist/node_modules/d3-color/src/math.mjs +5 -0
- package/dist/node_modules/d3-dispatch/src/dispatch.mjs +64 -0
- package/dist/node_modules/d3-drag/src/constant.mjs +4 -0
- package/dist/node_modules/d3-drag/src/drag.mjs +121 -0
- package/dist/node_modules/d3-drag/src/event.mjs +33 -0
- package/dist/node_modules/d3-drag/src/nodrag.mjs +16 -0
- package/dist/node_modules/d3-drag/src/noevent.mjs +13 -0
- package/dist/node_modules/d3-ease/src/cubic.mjs +6 -0
- package/dist/node_modules/d3-geo/src/cartesian.mjs +33 -0
- package/dist/node_modules/d3-geo/src/circle.mjs +18 -0
- package/dist/node_modules/d3-geo/src/clip/antimeridian.mjs +45 -0
- package/dist/node_modules/d3-geo/src/clip/buffer.mjs +23 -0
- package/dist/node_modules/d3-geo/src/clip/circle.mjs +66 -0
- package/dist/node_modules/d3-geo/src/clip/index.mjs +67 -0
- package/dist/node_modules/d3-geo/src/clip/line.mjs +43 -0
- package/dist/node_modules/d3-geo/src/clip/rectangle.mjs +76 -0
- package/dist/node_modules/d3-geo/src/clip/rejoin.mjs +56 -0
- package/dist/node_modules/d3-geo/src/compose.mjs +11 -0
- package/dist/node_modules/d3-geo/src/contains.mjs +70 -0
- package/dist/node_modules/d3-geo/src/distance.mjs +8 -0
- package/dist/node_modules/d3-geo/src/graticule.mjs +68 -0
- package/dist/node_modules/d3-geo/src/identity.mjs +4 -0
- package/dist/node_modules/d3-geo/src/length.mjs +32 -0
- package/dist/node_modules/d3-geo/src/math.mjs +33 -0
- package/dist/node_modules/d3-geo/src/noop.mjs +5 -0
- package/dist/node_modules/d3-geo/src/path/area.mjs +33 -0
- package/dist/node_modules/d3-geo/src/path/bounds.mjs +18 -0
- package/dist/node_modules/d3-geo/src/path/centroid.mjs +48 -0
- package/dist/node_modules/d3-geo/src/path/context.mjs +43 -0
- package/dist/node_modules/d3-geo/src/path/index.mjs +41 -0
- package/dist/node_modules/d3-geo/src/path/measure.mjs +31 -0
- package/dist/node_modules/d3-geo/src/path/string.mjs +69 -0
- package/dist/node_modules/d3-geo/src/pointEqual.mjs +7 -0
- package/dist/node_modules/d3-geo/src/polygonContains.mjs +27 -0
- package/dist/node_modules/d3-geo/src/projection/albers.mjs +7 -0
- package/dist/node_modules/d3-geo/src/projection/albersUsa.mjs +65 -0
- package/dist/node_modules/d3-geo/src/projection/azimuthal.mjs +23 -0
- package/dist/node_modules/d3-geo/src/projection/azimuthalEqualArea.mjs +16 -0
- package/dist/node_modules/d3-geo/src/projection/azimuthalEquidistant.mjs +16 -0
- package/dist/node_modules/d3-geo/src/projection/conic.mjs +11 -0
- package/dist/node_modules/d3-geo/src/projection/conicConformal.mjs +26 -0
- package/dist/node_modules/d3-geo/src/projection/conicEqualArea.mjs +23 -0
- package/dist/node_modules/d3-geo/src/projection/conicEquidistant.mjs +22 -0
- package/dist/node_modules/d3-geo/src/projection/cylindricalEqualArea.mjs +13 -0
- package/dist/node_modules/d3-geo/src/projection/equalEarth.mjs +25 -0
- package/dist/node_modules/d3-geo/src/projection/equirectangular.mjs +12 -0
- package/dist/node_modules/d3-geo/src/projection/fit.mjs +33 -0
- package/dist/node_modules/d3-geo/src/projection/gnomonic.mjs +15 -0
- package/dist/node_modules/d3-geo/src/projection/index.mjs +104 -0
- package/dist/node_modules/d3-geo/src/projection/mercator.mjs +34 -0
- package/dist/node_modules/d3-geo/src/projection/naturalEarth1.mjs +27 -0
- package/dist/node_modules/d3-geo/src/projection/orthographic.mjs +14 -0
- package/dist/node_modules/d3-geo/src/projection/resample.mjs +62 -0
- package/dist/node_modules/d3-geo/src/projection/stereographic.mjs +17 -0
- package/dist/node_modules/d3-geo/src/projection/transverseMercator.mjs +20 -0
- package/dist/node_modules/d3-geo/src/rotation.mjs +48 -0
- package/dist/node_modules/d3-geo/src/stream.mjs +52 -0
- package/dist/node_modules/d3-geo/src/transform.mjs +33 -0
- package/dist/node_modules/d3-interpolate/src/basis.mjs +15 -0
- package/dist/node_modules/d3-interpolate/src/color.mjs +29 -0
- package/dist/node_modules/d3-interpolate/src/constant.mjs +4 -0
- package/dist/node_modules/d3-interpolate/src/cubehelix.mjs +19 -0
- package/dist/node_modules/d3-interpolate/src/number.mjs +8 -0
- package/dist/node_modules/d3-interpolate/src/rgb.mjs +28 -0
- package/dist/node_modules/d3-interpolate/src/string.mjs +24 -0
- package/dist/node_modules/d3-interpolate/src/transform/decompose.mjs +23 -0
- package/dist/node_modules/d3-interpolate/src/transform/index.mjs +37 -0
- package/dist/node_modules/d3-interpolate/src/transform/parse.mjs +13 -0
- package/dist/node_modules/d3-interpolate/src/zoom.mjs +42 -0
- package/dist/node_modules/d3-scale-chromatic/src/colors.mjs +7 -0
- package/dist/node_modules/d3-scale-chromatic/src/diverging/BrBG.mjs +18 -0
- package/dist/node_modules/d3-scale-chromatic/src/diverging/PRGn.mjs +18 -0
- package/dist/node_modules/d3-scale-chromatic/src/diverging/PiYG.mjs +18 -0
- package/dist/node_modules/d3-scale-chromatic/src/diverging/PuOr.mjs +18 -0
- package/dist/node_modules/d3-scale-chromatic/src/diverging/RdBu.mjs +18 -0
- package/dist/node_modules/d3-scale-chromatic/src/diverging/RdGy.mjs +18 -0
- package/dist/node_modules/d3-scale-chromatic/src/diverging/RdYlBu.mjs +18 -0
- package/dist/node_modules/d3-scale-chromatic/src/diverging/RdYlGn.mjs +18 -0
- package/dist/node_modules/d3-scale-chromatic/src/diverging/Spectral.mjs +18 -0
- package/dist/node_modules/d3-scale-chromatic/src/ramp.mjs +5 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/cividis.mjs +6 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.mjs +6 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.mjs +13 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.mjs +9 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/turbo.mjs +6 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/viridis.mjs +15 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-single/Blues.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-single/Greens.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-single/Greys.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-single/Oranges.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-single/Purples.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-single/Reds.mjs +16 -0
- package/dist/node_modules/d3-selection/src/array.mjs +6 -0
- package/dist/node_modules/d3-selection/src/constant.mjs +8 -0
- package/dist/node_modules/d3-selection/src/creator.mjs +20 -0
- package/dist/node_modules/d3-selection/src/matcher.mjs +14 -0
- package/dist/node_modules/d3-selection/src/namespace.mjs +8 -0
- package/dist/node_modules/d3-selection/src/namespaces.mjs +12 -0
- package/dist/node_modules/d3-selection/src/pointer.mjs +18 -0
- package/dist/node_modules/d3-selection/src/select.mjs +7 -0
- package/dist/node_modules/d3-selection/src/selection/append.mjs +10 -0
- package/dist/node_modules/d3-selection/src/selection/attr.mjs +44 -0
- package/dist/node_modules/d3-selection/src/selection/call.mjs +7 -0
- package/dist/node_modules/d3-selection/src/selection/classed.mjs +54 -0
- package/dist/node_modules/d3-selection/src/selection/clone.mjs +14 -0
- package/dist/node_modules/d3-selection/src/selection/data.mjs +42 -0
- package/dist/node_modules/d3-selection/src/selection/datum.mjs +6 -0
- package/dist/node_modules/d3-selection/src/selection/dispatch.mjs +21 -0
- package/dist/node_modules/d3-selection/src/selection/each.mjs +9 -0
- package/dist/node_modules/d3-selection/src/selection/empty.mjs +6 -0
- package/dist/node_modules/d3-selection/src/selection/enter.mjs +27 -0
- package/dist/node_modules/d3-selection/src/selection/exit.mjs +8 -0
- package/dist/node_modules/d3-selection/src/selection/filter.mjs +12 -0
- package/dist/node_modules/d3-selection/src/selection/html.mjs +20 -0
- package/dist/node_modules/d3-selection/src/selection/index.mjs +87 -0
- package/dist/node_modules/d3-selection/src/selection/insert.mjs +14 -0
- package/dist/node_modules/d3-selection/src/selection/iterator.mjs +8 -0
- package/dist/node_modules/d3-selection/src/selection/join.mjs +7 -0
- package/dist/node_modules/d3-selection/src/selection/lower.mjs +9 -0
- package/dist/node_modules/d3-selection/src/selection/merge.mjs +12 -0
- package/dist/node_modules/d3-selection/src/selection/node.mjs +11 -0
- package/dist/node_modules/d3-selection/src/selection/nodes.mjs +6 -0
- package/dist/node_modules/d3-selection/src/selection/on.mjs +52 -0
- package/dist/node_modules/d3-selection/src/selection/order.mjs +9 -0
- package/dist/node_modules/d3-selection/src/selection/property.mjs +22 -0
- package/dist/node_modules/d3-selection/src/selection/raise.mjs +9 -0
- package/dist/node_modules/d3-selection/src/selection/remove.mjs +10 -0
- package/dist/node_modules/d3-selection/src/selection/select.mjs +12 -0
- package/dist/node_modules/d3-selection/src/selection/selectAll.mjs +18 -0
- package/dist/node_modules/d3-selection/src/selection/selectChild.mjs +16 -0
- package/dist/node_modules/d3-selection/src/selection/selectChildren.mjs +16 -0
- package/dist/node_modules/d3-selection/src/selection/size.mjs +8 -0
- package/dist/node_modules/d3-selection/src/selection/sort.mjs +19 -0
- package/dist/node_modules/d3-selection/src/selection/sparse.mjs +6 -0
- package/dist/node_modules/d3-selection/src/selection/style.mjs +27 -0
- package/dist/node_modules/d3-selection/src/selection/text.mjs +20 -0
- package/dist/node_modules/d3-selection/src/selector.mjs +10 -0
- package/dist/node_modules/d3-selection/src/selectorAll.mjs +11 -0
- package/dist/node_modules/d3-selection/src/sourceEvent.mjs +8 -0
- package/dist/node_modules/d3-selection/src/window.mjs +6 -0
- package/dist/node_modules/d3-timer/src/timeout.mjs +10 -0
- package/dist/node_modules/d3-timer/src/timer.mjs +62 -0
- package/dist/node_modules/d3-transition/src/interrupt.mjs +18 -0
- package/dist/node_modules/d3-transition/src/selection/index.mjs +5 -0
- package/dist/node_modules/d3-transition/src/selection/interrupt.mjs +9 -0
- package/dist/node_modules/d3-transition/src/selection/transition.mjs +28 -0
- package/dist/node_modules/d3-transition/src/transition/attr.mjs +49 -0
- package/dist/node_modules/d3-transition/src/transition/attrTween.mjs +38 -0
- package/dist/node_modules/d3-transition/src/transition/delay.mjs +18 -0
- package/dist/node_modules/d3-transition/src/transition/duration.mjs +18 -0
- package/dist/node_modules/d3-transition/src/transition/ease.mjs +14 -0
- package/dist/node_modules/d3-transition/src/transition/easeVarying.mjs +15 -0
- package/dist/node_modules/d3-transition/src/transition/end.mjs +16 -0
- package/dist/node_modules/d3-transition/src/transition/filter.mjs +12 -0
- package/dist/node_modules/d3-transition/src/transition/index.mjs +65 -0
- package/dist/node_modules/d3-transition/src/transition/interpolate.mjs +11 -0
- package/dist/node_modules/d3-transition/src/transition/merge.mjs +13 -0
- package/dist/node_modules/d3-transition/src/transition/on.mjs +21 -0
- package/dist/node_modules/d3-transition/src/transition/remove.mjs +13 -0
- package/dist/node_modules/d3-transition/src/transition/schedule.mjs +85 -0
- package/dist/node_modules/d3-transition/src/transition/select.mjs +14 -0
- package/dist/node_modules/d3-transition/src/transition/selectAll.mjs +18 -0
- package/dist/node_modules/d3-transition/src/transition/selection.mjs +8 -0
- package/dist/node_modules/d3-transition/src/transition/style.mjs +45 -0
- package/dist/node_modules/d3-transition/src/transition/styleTween.mjs +23 -0
- package/dist/node_modules/d3-transition/src/transition/text.mjs +18 -0
- package/dist/node_modules/d3-transition/src/transition/textTween.mjs +23 -0
- package/dist/node_modules/d3-transition/src/transition/transition.mjs +19 -0
- package/dist/node_modules/d3-transition/src/transition/tween.mjs +56 -0
- package/dist/node_modules/d3-zoom/src/constant.mjs +4 -0
- package/dist/node_modules/d3-zoom/src/event.mjs +17 -0
- package/dist/node_modules/d3-zoom/src/noevent.mjs +10 -0
- package/dist/node_modules/d3-zoom/src/transform.mjs +45 -0
- package/dist/node_modules/d3-zoom/src/zoom.mjs +233 -0
- package/dist/node_modules/dayjs/dayjs.min.mjs +282 -0
- package/dist/node_modules/dayjs/plugin/utc.mjs +79 -0
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.mjs +17 -0
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.mjs +95 -0
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.mjs +78 -0
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.mjs +8 -0
- package/dist/node_modules/jquery/dist/jquery.mjs +3642 -0
- package/dist/{jstree-ETZgxxT1.js → node_modules/jstree/dist/jstree.mjs} +17 -17
- package/dist/node_modules/memoize-one/dist/memoize-one.esm.mjs +36 -0
- package/dist/node_modules/papaparse/papaparse.min.mjs +421 -0
- package/dist/node_modules/react-chartjs-2/dist/index.mjs +94 -0
- package/dist/node_modules/react-icons/ai/index.mjs +20 -0
- package/dist/node_modules/react-icons/fa/index.mjs +64 -0
- package/dist/node_modules/react-icons/fi/index.mjs +48 -0
- package/dist/node_modules/react-icons/go/index.mjs +8 -0
- package/dist/node_modules/react-icons/io/index.mjs +8 -0
- package/dist/node_modules/react-icons/io5/index.mjs +20 -0
- package/dist/node_modules/react-icons/lib/iconBase.mjs +108 -0
- package/dist/node_modules/react-icons/lib/iconContext.mjs +12 -0
- package/dist/node_modules/react-icons/md/index.mjs +56 -0
- package/dist/node_modules/react-select/creatable/dist/react-select-creatable.esm.mjs +17 -0
- package/dist/node_modules/react-select/dist/Select-ef7c0426.esm.mjs +1763 -0
- package/dist/node_modules/react-select/dist/index-641ee5b8.esm.mjs +867 -0
- package/dist/node_modules/react-select/dist/react-select.esm.mjs +19 -0
- package/dist/node_modules/react-select/dist/useCreatable-09aaeb9a.esm.mjs +62 -0
- package/dist/node_modules/react-select/dist/useStateManager-7e1e8489.esm.mjs +29 -0
- package/dist/node_modules/reactflow/dist/esm/index.mjs +77 -0
- package/dist/node_modules/stylis/src/Enum.mjs +12 -0
- package/dist/node_modules/stylis/src/Middleware.mjs +18 -0
- package/dist/node_modules/stylis/src/Parser.mjs +114 -0
- package/dist/node_modules/stylis/src/Serializer.mjs +27 -0
- package/dist/node_modules/stylis/src/Tokenizer.mjs +131 -0
- package/dist/node_modules/stylis/src/Utility.mjs +50 -0
- package/dist/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.mjs +5 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +67 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs +66 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +67 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs +55 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.mjs +66 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.mjs +65 -0
- package/dist/node_modules/use-sync-external-store/shim/index.mjs +10 -0
- package/dist/node_modules/use-sync-external-store/shim/with-selector.mjs +10 -0
- package/dist/node_modules/use-sync-external-store/with-selector.mjs +8 -0
- package/dist/node_modules/zustand/esm/shallow.mjs +30 -0
- package/dist/node_modules/zustand/esm/traditional.mjs +22 -0
- package/dist/node_modules/zustand/esm/vanilla.mjs +18 -0
- package/dist/types/table.mjs +14 -0
- package/dist/utils/classNames.mjs +26 -0
- package/dist/utils/dbSchemaBrowserUtils.mjs +86 -0
- package/dist/utils/fileBrowserUtils.mjs +66 -0
- package/dist/utils/formatBytes.mjs +8 -0
- package/dist/utils/memoUtils.mjs +29 -0
- package/dist/utils/riskScore.mjs +42 -0
- package/dist/utils/statusConfig.mjs +72 -0
- package/package.json +5 -1
- package/dist/index--e0eFmJz.js +0 -28717
- package/dist/index-Bsibz5yn.js +0 -5204
- package/dist/jquery-B5k82Ft4.js +0 -3622
- package/dist/jquery-DJhgA209.cjs +0 -13
- package/dist/jquery-DXFsjw95.js +0 -26
- package/dist/jquery-DeHtnyTt.cjs +0 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import L from "./index.mjs";
|
|
2
|
+
import { pi as f, halfPi as A, abs as N, epsilon as l, atan as P, sin as v, cos as S } from "../math.mjs";
|
|
3
|
+
const j = L(
|
|
4
|
+
function() {
|
|
5
|
+
return !0;
|
|
6
|
+
},
|
|
7
|
+
d,
|
|
8
|
+
r,
|
|
9
|
+
[-f, -A]
|
|
10
|
+
);
|
|
11
|
+
function d(i) {
|
|
12
|
+
var p = NaN, t = NaN, n = NaN, o;
|
|
13
|
+
return {
|
|
14
|
+
lineStart: function() {
|
|
15
|
+
i.lineStart(), o = 1;
|
|
16
|
+
},
|
|
17
|
+
point: function(c, u) {
|
|
18
|
+
var e = c > 0 ? f : -f, E = N(c - p);
|
|
19
|
+
N(E - f) < l ? (i.point(p, t = (t + u) / 2 > 0 ? A : -A), i.point(n, t), i.lineEnd(), i.lineStart(), i.point(e, t), i.point(c, t), o = 0) : n !== e && E >= f && (N(p - n) < l && (p -= n * l), N(c - e) < l && (c -= e * l), t = g(p, t, c, u), i.point(n, t), i.lineEnd(), i.lineStart(), i.point(e, t), o = 0), i.point(p = c, t = u), n = e;
|
|
20
|
+
},
|
|
21
|
+
lineEnd: function() {
|
|
22
|
+
i.lineEnd(), p = t = NaN;
|
|
23
|
+
},
|
|
24
|
+
clean: function() {
|
|
25
|
+
return 2 - o;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function g(i, p, t, n) {
|
|
30
|
+
var o, c, u = v(i - t);
|
|
31
|
+
return N(u) > l ? P((v(p) * (c = S(n)) * v(t) - v(n) * (o = S(p)) * v(i)) / (o * c * u)) : (p + n) / 2;
|
|
32
|
+
}
|
|
33
|
+
function r(i, p, t, n) {
|
|
34
|
+
var o;
|
|
35
|
+
if (i == null)
|
|
36
|
+
o = t * A, n.point(-f, o), n.point(0, o), n.point(f, o), n.point(f, 0), n.point(f, -o), n.point(0, -o), n.point(-f, -o), n.point(-f, 0), n.point(-f, o);
|
|
37
|
+
else if (N(i[0] - p[0]) > l) {
|
|
38
|
+
var c = i[0] < p[0] ? f : -f;
|
|
39
|
+
o = t * c / 2, n.point(-c, o), n.point(0, o), n.point(c, o);
|
|
40
|
+
} else
|
|
41
|
+
n.point(p[0], p[1]);
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
j as default
|
|
45
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import r from "../noop.mjs";
|
|
2
|
+
function f() {
|
|
3
|
+
var n = [], t;
|
|
4
|
+
return {
|
|
5
|
+
point: function(i, u, o) {
|
|
6
|
+
t.push([i, u, o]);
|
|
7
|
+
},
|
|
8
|
+
lineStart: function() {
|
|
9
|
+
n.push(t = []);
|
|
10
|
+
},
|
|
11
|
+
lineEnd: r,
|
|
12
|
+
rejoin: function() {
|
|
13
|
+
n.length > 1 && n.push(n.pop().concat(n.shift()));
|
|
14
|
+
},
|
|
15
|
+
result: function() {
|
|
16
|
+
var i = n;
|
|
17
|
+
return n = [], t = null, i;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
f as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { cartesian as Q, cartesianCross as T, cartesianDot as P, cartesianScale as R, cartesianAddInPlace as w, spherical as U } from "../cartesian.mjs";
|
|
2
|
+
import { circleStream as $ } from "../circle.mjs";
|
|
3
|
+
import { pi as v, cos as y, abs as F, epsilon as g, sqrt as b, radians as m } from "../math.mjs";
|
|
4
|
+
import G from "../pointEqual.mjs";
|
|
5
|
+
import nn from "./index.mjs";
|
|
6
|
+
function cn(d) {
|
|
7
|
+
var x = y(d), V = 2 * m, A = x > 0, W = F(x) > g;
|
|
8
|
+
function X(n, i, o, e) {
|
|
9
|
+
$(e, d, V, o, n, i);
|
|
10
|
+
}
|
|
11
|
+
function J(n, i) {
|
|
12
|
+
return y(n) * y(i) > x;
|
|
13
|
+
}
|
|
14
|
+
function Y(n) {
|
|
15
|
+
var i, o, e, C, a;
|
|
16
|
+
return {
|
|
17
|
+
lineStart: function() {
|
|
18
|
+
C = e = !1, a = 1;
|
|
19
|
+
},
|
|
20
|
+
point: function(f, u) {
|
|
21
|
+
var t = [f, u], r, c = J(f, u), H = A ? c ? 0 : K(f, u) : c ? K(f + (f < 0 ? v : -v), u) : 0;
|
|
22
|
+
if (!i && (C = e = c) && n.lineStart(), c !== e && (r = D(i, t), (!r || G(i, r) || G(t, r)) && (t[2] = 1)), c !== e)
|
|
23
|
+
a = 0, c ? (n.lineStart(), r = D(t, i), n.point(r[0], r[1])) : (r = D(i, t), n.point(r[0], r[1], 2), n.lineEnd()), i = r;
|
|
24
|
+
else if (W && i && A ^ c) {
|
|
25
|
+
var l;
|
|
26
|
+
!(H & o) && (l = D(t, i, !0)) && (a = 0, A ? (n.lineStart(), n.point(l[0][0], l[0][1]), n.point(l[1][0], l[1][1]), n.lineEnd()) : (n.point(l[1][0], l[1][1]), n.lineEnd(), n.lineStart(), n.point(l[0][0], l[0][1], 3)));
|
|
27
|
+
}
|
|
28
|
+
c && (!i || !G(i, t)) && n.point(t[0], t[1]), i = t, e = c, o = H;
|
|
29
|
+
},
|
|
30
|
+
lineEnd: function() {
|
|
31
|
+
e && n.lineEnd(), i = null;
|
|
32
|
+
},
|
|
33
|
+
// Rejoin first and last segments if there were intersections and the first
|
|
34
|
+
// and last points were visible.
|
|
35
|
+
clean: function() {
|
|
36
|
+
return a | (C && e) << 1;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function D(n, i, o) {
|
|
41
|
+
var e = Q(n), C = Q(i), a = [1, 0, 0], f = T(e, C), u = P(f, f), t = f[0], r = u - t * t;
|
|
42
|
+
if (!r) return !o && n;
|
|
43
|
+
var c = x * u / r, H = -x * t / r, l = T(a, f), S = R(a, c), Z = R(f, H);
|
|
44
|
+
w(S, Z);
|
|
45
|
+
var z = l, I = P(S, z), h = P(z, z), M = I * I - h * (P(S, S) - 1);
|
|
46
|
+
if (!(M < 0)) {
|
|
47
|
+
var N = b(M), p = R(z, (-I - N) / h);
|
|
48
|
+
if (w(p, S), p = U(p), !o) return p;
|
|
49
|
+
var s = n[0], B = i[0], E = n[1], q = i[1], L;
|
|
50
|
+
B < s && (L = s, s = B, B = L);
|
|
51
|
+
var j = B - s, k = F(j - v) < g, _ = k || j < g;
|
|
52
|
+
if (!k && q < E && (L = E, E = q, q = L), _ ? k ? E + q > 0 ^ p[1] < (F(p[0] - s) < g ? E : q) : E <= p[1] && p[1] <= q : j > v ^ (s <= p[0] && p[0] <= B)) {
|
|
53
|
+
var O = R(z, (-I + N) / h);
|
|
54
|
+
return w(O, S), [p, U(O)];
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function K(n, i) {
|
|
59
|
+
var o = A ? d : v - d, e = 0;
|
|
60
|
+
return n < -o ? e |= 1 : n > o && (e |= 2), i < -o ? e |= 4 : i > o && (e |= 8), e;
|
|
61
|
+
}
|
|
62
|
+
return nn(J, Y, X, A ? [0, -d] : [-v, d - v]);
|
|
63
|
+
}
|
|
64
|
+
export {
|
|
65
|
+
cn as default
|
|
66
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import w from "./buffer.mjs";
|
|
2
|
+
import z from "./rejoin.mjs";
|
|
3
|
+
import { halfPi as c, epsilon as R } from "../math.mjs";
|
|
4
|
+
import A from "../polygonContains.mjs";
|
|
5
|
+
import D from "../../../d3-array/src/merge.mjs";
|
|
6
|
+
function N(r, l, S, j) {
|
|
7
|
+
return function(n) {
|
|
8
|
+
var d = l(n), y = w(), u = l(y), e = !1, g, f, p, i = {
|
|
9
|
+
point: m,
|
|
10
|
+
lineStart: h,
|
|
11
|
+
lineEnd: v,
|
|
12
|
+
polygonStart: function() {
|
|
13
|
+
i.point = s, i.lineStart = P, i.lineEnd = q, f = [], g = [];
|
|
14
|
+
},
|
|
15
|
+
polygonEnd: function() {
|
|
16
|
+
i.point = m, i.lineStart = h, i.lineEnd = v, f = D(f);
|
|
17
|
+
var o = A(g, j);
|
|
18
|
+
f.length ? (e || (n.polygonStart(), e = !0), z(f, G, o, S, n)) : o && (e || (n.polygonStart(), e = !0), n.lineStart(), S(null, null, 1, n), n.lineEnd()), e && (n.polygonEnd(), e = !1), f = g = null;
|
|
19
|
+
},
|
|
20
|
+
sphere: function() {
|
|
21
|
+
n.polygonStart(), n.lineStart(), S(null, null, 1, n), n.lineEnd(), n.polygonEnd();
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
function m(o, t) {
|
|
25
|
+
r(o, t) && n.point(o, t);
|
|
26
|
+
}
|
|
27
|
+
function C(o, t) {
|
|
28
|
+
d.point(o, t);
|
|
29
|
+
}
|
|
30
|
+
function h() {
|
|
31
|
+
i.point = C, d.lineStart();
|
|
32
|
+
}
|
|
33
|
+
function v() {
|
|
34
|
+
i.point = m, d.lineEnd();
|
|
35
|
+
}
|
|
36
|
+
function s(o, t) {
|
|
37
|
+
p.push([o, t]), u.point(o, t);
|
|
38
|
+
}
|
|
39
|
+
function P() {
|
|
40
|
+
u.lineStart(), p = [];
|
|
41
|
+
}
|
|
42
|
+
function q() {
|
|
43
|
+
s(p[0][0], p[0][1]), u.lineEnd();
|
|
44
|
+
var o = u.clean(), t = y.result(), a, x = t.length, B, E, I;
|
|
45
|
+
if (p.pop(), g.push(p), p = null, !!x) {
|
|
46
|
+
if (o & 1) {
|
|
47
|
+
if (E = t[0], (B = E.length - 1) > 0) {
|
|
48
|
+
for (e || (n.polygonStart(), e = !0), n.lineStart(), a = 0; a < B; ++a) n.point((I = E[a])[0], I[1]);
|
|
49
|
+
n.lineEnd();
|
|
50
|
+
}
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
x > 1 && o & 2 && t.push(t.pop().concat(t.shift())), f.push(t.filter(F));
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return i;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function F(r) {
|
|
60
|
+
return r.length > 1;
|
|
61
|
+
}
|
|
62
|
+
function G(r, l) {
|
|
63
|
+
return ((r = r.x)[0] < 0 ? r[1] - c - R : c - r[1]) - ((l = l.x)[0] < 0 ? l[1] - c - R : c - l[1]);
|
|
64
|
+
}
|
|
65
|
+
export {
|
|
66
|
+
N as default
|
|
67
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
function p(l, s, x, d, y, a) {
|
|
2
|
+
var n = l[0], u = l[1], c = s[0], o = s[1], f = 0, r = 1, e = c - n, t = o - u, i;
|
|
3
|
+
if (i = x - n, !(!e && i > 0)) {
|
|
4
|
+
if (i /= e, e < 0) {
|
|
5
|
+
if (i < f) return;
|
|
6
|
+
i < r && (r = i);
|
|
7
|
+
} else if (e > 0) {
|
|
8
|
+
if (i > r) return;
|
|
9
|
+
i > f && (f = i);
|
|
10
|
+
}
|
|
11
|
+
if (i = y - n, !(!e && i < 0)) {
|
|
12
|
+
if (i /= e, e < 0) {
|
|
13
|
+
if (i > r) return;
|
|
14
|
+
i > f && (f = i);
|
|
15
|
+
} else if (e > 0) {
|
|
16
|
+
if (i < f) return;
|
|
17
|
+
i < r && (r = i);
|
|
18
|
+
}
|
|
19
|
+
if (i = d - u, !(!t && i > 0)) {
|
|
20
|
+
if (i /= t, t < 0) {
|
|
21
|
+
if (i < f) return;
|
|
22
|
+
i < r && (r = i);
|
|
23
|
+
} else if (t > 0) {
|
|
24
|
+
if (i > r) return;
|
|
25
|
+
i > f && (f = i);
|
|
26
|
+
}
|
|
27
|
+
if (i = a - u, !(!t && i < 0)) {
|
|
28
|
+
if (i /= t, t < 0) {
|
|
29
|
+
if (i > r) return;
|
|
30
|
+
i > f && (f = i);
|
|
31
|
+
} else if (t > 0) {
|
|
32
|
+
if (i < f) return;
|
|
33
|
+
i < r && (r = i);
|
|
34
|
+
}
|
|
35
|
+
return f > 0 && (l[0] = n + f * e, l[1] = u + f * t), r < 1 && (s[0] = n + r * e, s[1] = u + r * t), !0;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
p as default
|
|
43
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { abs as j, epsilon as k } from "../math.mjs";
|
|
2
|
+
import W from "./buffer.mjs";
|
|
3
|
+
import X from "./line.mjs";
|
|
4
|
+
import Y from "./rejoin.mjs";
|
|
5
|
+
import Z from "../../../d3-array/src/merge.mjs";
|
|
6
|
+
var M = 1e9, R = -M;
|
|
7
|
+
function tn(c, _, d, p) {
|
|
8
|
+
function q(i, n) {
|
|
9
|
+
return c <= i && i <= d && _ <= n && n <= p;
|
|
10
|
+
}
|
|
11
|
+
function z(i, n, l, f) {
|
|
12
|
+
var o = 0, s = 0;
|
|
13
|
+
if (i == null || (o = E(i, l)) !== (s = E(n, l)) || A(i, n) < 0 ^ l > 0)
|
|
14
|
+
do
|
|
15
|
+
f.point(o === 0 || o === 3 ? c : d, o > 1 ? p : _);
|
|
16
|
+
while ((o = (o + l + 4) % 4) !== s);
|
|
17
|
+
else
|
|
18
|
+
f.point(n[0], n[1]);
|
|
19
|
+
}
|
|
20
|
+
function E(i, n) {
|
|
21
|
+
return j(i[0] - c) < k ? n > 0 ? 0 : 3 : j(i[0] - d) < k ? n > 0 ? 2 : 1 : j(i[1] - _) < k ? n > 0 ? 1 : 0 : n > 0 ? 3 : 2;
|
|
22
|
+
}
|
|
23
|
+
function J(i, n) {
|
|
24
|
+
return A(i.x, n.x);
|
|
25
|
+
}
|
|
26
|
+
function A(i, n) {
|
|
27
|
+
var l = E(i, 1), f = E(n, 1);
|
|
28
|
+
return l !== f ? l - f : l === 0 ? n[1] - i[1] : l === 1 ? i[0] - n[0] : l === 2 ? i[1] - n[1] : n[0] - i[0];
|
|
29
|
+
}
|
|
30
|
+
return function(i) {
|
|
31
|
+
var n = i, l = W(), f, o, s, C, D, F, I, w, v, B, N, L = {
|
|
32
|
+
point: G,
|
|
33
|
+
lineStart: T,
|
|
34
|
+
lineEnd: U,
|
|
35
|
+
polygonStart: O,
|
|
36
|
+
polygonEnd: Q
|
|
37
|
+
};
|
|
38
|
+
function G(t, e) {
|
|
39
|
+
q(t, e) && n.point(t, e);
|
|
40
|
+
}
|
|
41
|
+
function K() {
|
|
42
|
+
for (var t = 0, e = 0, r = o.length; e < r; ++e)
|
|
43
|
+
for (var u = o[e], a = 1, V = u.length, g = u[0], S, h, P = g[0], m = g[1]; a < V; ++a)
|
|
44
|
+
S = P, h = m, g = u[a], P = g[0], m = g[1], h <= p ? m > p && (P - S) * (p - h) > (m - h) * (c - S) && ++t : m <= p && (P - S) * (p - h) < (m - h) * (c - S) && --t;
|
|
45
|
+
return t;
|
|
46
|
+
}
|
|
47
|
+
function O() {
|
|
48
|
+
n = l, f = [], o = [], N = !0;
|
|
49
|
+
}
|
|
50
|
+
function Q() {
|
|
51
|
+
var t = K(), e = N && t, r = (f = Z(f)).length;
|
|
52
|
+
(e || r) && (i.polygonStart(), e && (i.lineStart(), z(null, null, 1, i), i.lineEnd()), r && Y(f, J, t, z, i), i.polygonEnd()), n = i, f = o = s = null;
|
|
53
|
+
}
|
|
54
|
+
function T() {
|
|
55
|
+
L.point = H, o && o.push(s = []), B = !0, v = !1, I = w = NaN;
|
|
56
|
+
}
|
|
57
|
+
function U() {
|
|
58
|
+
f && (H(C, D), F && v && l.rejoin(), f.push(l.result())), L.point = G, v && n.lineEnd();
|
|
59
|
+
}
|
|
60
|
+
function H(t, e) {
|
|
61
|
+
var r = q(t, e);
|
|
62
|
+
if (o && s.push([t, e]), B)
|
|
63
|
+
C = t, D = e, F = r, B = !1, r && (n.lineStart(), n.point(t, e));
|
|
64
|
+
else if (r && v) n.point(t, e);
|
|
65
|
+
else {
|
|
66
|
+
var u = [I = Math.max(R, Math.min(M, I)), w = Math.max(R, Math.min(M, w))], a = [t = Math.max(R, Math.min(M, t)), e = Math.max(R, Math.min(M, e))];
|
|
67
|
+
X(u, a, c, _, d, p) ? (v || (n.lineStart(), n.point(u[0], u[1])), n.point(a[0], a[1]), r || n.lineEnd(), N = !1) : r && (n.lineStart(), n.point(t, e), N = !1);
|
|
68
|
+
}
|
|
69
|
+
I = t, w = e, v = r;
|
|
70
|
+
}
|
|
71
|
+
return L;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
export {
|
|
75
|
+
tn as default
|
|
76
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import a from "../pointEqual.mjs";
|
|
2
|
+
import { epsilon as A } from "../math.mjs";
|
|
3
|
+
function g(f, v, p, n) {
|
|
4
|
+
this.x = f, this.z = v, this.o = p, this.e = n, this.v = !1, this.n = this.p = null;
|
|
5
|
+
}
|
|
6
|
+
function D(f, v, p, n, o) {
|
|
7
|
+
var z = [], w = [], l, d;
|
|
8
|
+
if (f.forEach(function(t) {
|
|
9
|
+
if (!((k = t.length - 1) <= 0)) {
|
|
10
|
+
var k, x = t[0], E = t[k], s;
|
|
11
|
+
if (a(x, E)) {
|
|
12
|
+
if (!x[2] && !E[2]) {
|
|
13
|
+
for (o.lineStart(), l = 0; l < k; ++l) o.point((x = t[l])[0], x[1]);
|
|
14
|
+
o.lineEnd();
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
E[0] += 2 * A;
|
|
18
|
+
}
|
|
19
|
+
z.push(s = new g(x, t, null, !0)), w.push(s.o = new g(x, null, s, !1)), z.push(s = new g(E, t, null, !1)), w.push(s.o = new g(E, null, s, !0));
|
|
20
|
+
}
|
|
21
|
+
}), !!z.length) {
|
|
22
|
+
for (w.sort(v), R(z), R(w), l = 0, d = w.length; l < d; ++l)
|
|
23
|
+
w[l].e = p = !p;
|
|
24
|
+
for (var q = z[0], h, e; ; ) {
|
|
25
|
+
for (var i = q, u = !0; i.v; ) if ((i = i.n) === q) return;
|
|
26
|
+
h = i.z, o.lineStart();
|
|
27
|
+
do {
|
|
28
|
+
if (i.v = i.o.v = !0, i.e) {
|
|
29
|
+
if (u)
|
|
30
|
+
for (l = 0, d = h.length; l < d; ++l) o.point((e = h[l])[0], e[1]);
|
|
31
|
+
else
|
|
32
|
+
n(i.x, i.n.x, 1, o);
|
|
33
|
+
i = i.n;
|
|
34
|
+
} else {
|
|
35
|
+
if (u)
|
|
36
|
+
for (h = i.p.z, l = h.length - 1; l >= 0; --l) o.point((e = h[l])[0], e[1]);
|
|
37
|
+
else
|
|
38
|
+
n(i.x, i.p.x, -1, o);
|
|
39
|
+
i = i.p;
|
|
40
|
+
}
|
|
41
|
+
i = i.o, h = i.z, u = !u;
|
|
42
|
+
} while (!i.v);
|
|
43
|
+
o.lineEnd();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
function R(f) {
|
|
48
|
+
if (v = f.length) {
|
|
49
|
+
for (var v, p = 0, n = f[0], o; ++p < v; )
|
|
50
|
+
n.n = o = f[p], o.p = n, n = o;
|
|
51
|
+
n.n = o = f[0], o.p = n;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
export {
|
|
55
|
+
D as default
|
|
56
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import m from "./polygonContains.mjs";
|
|
2
|
+
import a from "./distance.mjs";
|
|
3
|
+
import { epsilon2 as d, radians as f } from "./math.mjs";
|
|
4
|
+
var s = {
|
|
5
|
+
Feature: function(n, t) {
|
|
6
|
+
return u(n.geometry, t);
|
|
7
|
+
},
|
|
8
|
+
FeatureCollection: function(n, t) {
|
|
9
|
+
for (var e = n.features, r = -1, o = e.length; ++r < o; ) if (u(e[r].geometry, t)) return !0;
|
|
10
|
+
return !1;
|
|
11
|
+
}
|
|
12
|
+
}, l = {
|
|
13
|
+
Sphere: function() {
|
|
14
|
+
return !0;
|
|
15
|
+
},
|
|
16
|
+
Point: function(n, t) {
|
|
17
|
+
return c(n.coordinates, t);
|
|
18
|
+
},
|
|
19
|
+
MultiPoint: function(n, t) {
|
|
20
|
+
for (var e = n.coordinates, r = -1, o = e.length; ++r < o; ) if (c(e[r], t)) return !0;
|
|
21
|
+
return !1;
|
|
22
|
+
},
|
|
23
|
+
LineString: function(n, t) {
|
|
24
|
+
return p(n.coordinates, t);
|
|
25
|
+
},
|
|
26
|
+
MultiLineString: function(n, t) {
|
|
27
|
+
for (var e = n.coordinates, r = -1, o = e.length; ++r < o; ) if (p(e[r], t)) return !0;
|
|
28
|
+
return !1;
|
|
29
|
+
},
|
|
30
|
+
Polygon: function(n, t) {
|
|
31
|
+
return h(n.coordinates, t);
|
|
32
|
+
},
|
|
33
|
+
MultiPolygon: function(n, t) {
|
|
34
|
+
for (var e = n.coordinates, r = -1, o = e.length; ++r < o; ) if (h(e[r], t)) return !0;
|
|
35
|
+
return !1;
|
|
36
|
+
},
|
|
37
|
+
GeometryCollection: function(n, t) {
|
|
38
|
+
for (var e = n.geometries, r = -1, o = e.length; ++r < o; ) if (u(e[r], t)) return !0;
|
|
39
|
+
return !1;
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
function u(n, t) {
|
|
43
|
+
return n && l.hasOwnProperty(n.type) ? l[n.type](n, t) : !1;
|
|
44
|
+
}
|
|
45
|
+
function c(n, t) {
|
|
46
|
+
return a(n, t) === 0;
|
|
47
|
+
}
|
|
48
|
+
function p(n, t) {
|
|
49
|
+
for (var e, r, o, i = 0, g = n.length; i < g; i++) {
|
|
50
|
+
if (r = a(n[i], t), r === 0 || i > 0 && (o = a(n[i], n[i - 1]), o > 0 && e <= o && r <= o && (e + r - o) * (1 - Math.pow((e - r) / o, 2)) < d * o))
|
|
51
|
+
return !0;
|
|
52
|
+
e = r;
|
|
53
|
+
}
|
|
54
|
+
return !1;
|
|
55
|
+
}
|
|
56
|
+
function h(n, t) {
|
|
57
|
+
return !!m(n.map(v), y(t));
|
|
58
|
+
}
|
|
59
|
+
function v(n) {
|
|
60
|
+
return n = n.map(y), n.pop(), n;
|
|
61
|
+
}
|
|
62
|
+
function y(n) {
|
|
63
|
+
return [n[0] * f, n[1] * f];
|
|
64
|
+
}
|
|
65
|
+
function M(n, t) {
|
|
66
|
+
return (n && s.hasOwnProperty(n.type) ? s[n.type] : u)(n, t);
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
M as default
|
|
70
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { epsilon as s, ceil as d, abs as Y } from "./math.mjs";
|
|
2
|
+
import x from "../../d3-array/src/range.mjs";
|
|
3
|
+
function D(u, r, e) {
|
|
4
|
+
var i = x(u, r - s, e).concat(r);
|
|
5
|
+
return function(o) {
|
|
6
|
+
return i.map(function(c) {
|
|
7
|
+
return [o, c];
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
function L(u, r, e) {
|
|
12
|
+
var i = x(u, r - s, e).concat(r);
|
|
13
|
+
return function(o) {
|
|
14
|
+
return i.map(function(c) {
|
|
15
|
+
return [c, o];
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function S() {
|
|
20
|
+
var u, r, e, i, o, c, a, f, l = 10, M = l, p = 90, g = 360, j, v, y, h, m = 2.5;
|
|
21
|
+
function t() {
|
|
22
|
+
return { type: "MultiLineString", coordinates: X() };
|
|
23
|
+
}
|
|
24
|
+
function X() {
|
|
25
|
+
return x(d(i / p) * p, e, p).map(y).concat(x(d(f / g) * g, a, g).map(h)).concat(x(d(r / l) * l, u, l).filter(function(n) {
|
|
26
|
+
return Y(n % p) > s;
|
|
27
|
+
}).map(j)).concat(x(d(c / M) * M, o, M).filter(function(n) {
|
|
28
|
+
return Y(n % g) > s;
|
|
29
|
+
}).map(v));
|
|
30
|
+
}
|
|
31
|
+
return t.lines = function() {
|
|
32
|
+
return X().map(function(n) {
|
|
33
|
+
return { type: "LineString", coordinates: n };
|
|
34
|
+
});
|
|
35
|
+
}, t.outline = function() {
|
|
36
|
+
return {
|
|
37
|
+
type: "Polygon",
|
|
38
|
+
coordinates: [
|
|
39
|
+
y(i).concat(
|
|
40
|
+
h(a).slice(1),
|
|
41
|
+
y(e).reverse().slice(1),
|
|
42
|
+
h(f).reverse().slice(1)
|
|
43
|
+
)
|
|
44
|
+
]
|
|
45
|
+
};
|
|
46
|
+
}, t.extent = function(n) {
|
|
47
|
+
return arguments.length ? t.extentMajor(n).extentMinor(n) : t.extentMinor();
|
|
48
|
+
}, t.extentMajor = function(n) {
|
|
49
|
+
return arguments.length ? (i = +n[0][0], e = +n[1][0], f = +n[0][1], a = +n[1][1], i > e && (n = i, i = e, e = n), f > a && (n = f, f = a, a = n), t.precision(m)) : [[i, f], [e, a]];
|
|
50
|
+
}, t.extentMinor = function(n) {
|
|
51
|
+
return arguments.length ? (r = +n[0][0], u = +n[1][0], c = +n[0][1], o = +n[1][1], r > u && (n = r, r = u, u = n), c > o && (n = c, c = o, o = n), t.precision(m)) : [[r, c], [u, o]];
|
|
52
|
+
}, t.step = function(n) {
|
|
53
|
+
return arguments.length ? t.stepMajor(n).stepMinor(n) : t.stepMinor();
|
|
54
|
+
}, t.stepMajor = function(n) {
|
|
55
|
+
return arguments.length ? (p = +n[0], g = +n[1], t) : [p, g];
|
|
56
|
+
}, t.stepMinor = function(n) {
|
|
57
|
+
return arguments.length ? (l = +n[0], M = +n[1], t) : [l, M];
|
|
58
|
+
}, t.precision = function(n) {
|
|
59
|
+
return arguments.length ? (m = +n, j = D(c, o, 90), v = L(r, u, m), y = D(f, a, 90), h = L(i, e, m), t) : m;
|
|
60
|
+
}, t.extentMajor([[-180, -90 + s], [180, 90 - s]]).extentMinor([[-180, -80 - s], [180, 80 + s]]);
|
|
61
|
+
}
|
|
62
|
+
function k() {
|
|
63
|
+
return S()();
|
|
64
|
+
}
|
|
65
|
+
export {
|
|
66
|
+
S as default,
|
|
67
|
+
k as graticule10
|
|
68
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { atan2 as E, sqrt as v, cos as d, sin as f, abs as y, radians as l } from "./math.mjs";
|
|
2
|
+
import o from "./noop.mjs";
|
|
3
|
+
import x from "./stream.mjs";
|
|
4
|
+
import { Adder as D } from "../../d3-array/src/fsum.mjs";
|
|
5
|
+
var g, c, r, a, i = {
|
|
6
|
+
sphere: o,
|
|
7
|
+
point: o,
|
|
8
|
+
lineStart: L,
|
|
9
|
+
lineEnd: o,
|
|
10
|
+
polygonStart: o,
|
|
11
|
+
polygonEnd: o
|
|
12
|
+
};
|
|
13
|
+
function L() {
|
|
14
|
+
i.point = w, i.lineEnd = q;
|
|
15
|
+
}
|
|
16
|
+
function q() {
|
|
17
|
+
i.point = i.lineEnd = o;
|
|
18
|
+
}
|
|
19
|
+
function w(n, t) {
|
|
20
|
+
n *= l, t *= l, c = n, r = f(t), a = d(t), i.point = z;
|
|
21
|
+
}
|
|
22
|
+
function z(n, t) {
|
|
23
|
+
n *= l, t *= l;
|
|
24
|
+
var s = f(t), e = d(t), m = y(n - c), p = d(m), P = f(m), h = e * P, u = a * s - r * e * p, S = r * s + a * e * p;
|
|
25
|
+
g.add(E(v(h * h + u * u), S)), c = n, r = s, a = e;
|
|
26
|
+
}
|
|
27
|
+
function B(n) {
|
|
28
|
+
return g = new D(), x(n, i), +g;
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
B as default
|
|
32
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var n = 1e-6, v = 1e-12, r = Math.PI, t = r / 2, s = r / 4, i = r * 2, e = 180 / r, h = r / 180, M = Math.abs, o = Math.atan, c = Math.atan2, p = Math.cos, u = Math.ceil, l = Math.exp, g = Math.log, f = Math.pow, q = Math.sin, P = Math.sign || function(a) {
|
|
2
|
+
return a > 0 ? 1 : a < 0 ? -1 : 0;
|
|
3
|
+
}, b = Math.sqrt, d = Math.tan;
|
|
4
|
+
function w(a) {
|
|
5
|
+
return a > 1 ? 0 : a < -1 ? r : Math.acos(a);
|
|
6
|
+
}
|
|
7
|
+
function I(a) {
|
|
8
|
+
return a > 1 ? t : a < -1 ? -t : Math.asin(a);
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
M as abs,
|
|
12
|
+
w as acos,
|
|
13
|
+
I as asin,
|
|
14
|
+
o as atan,
|
|
15
|
+
c as atan2,
|
|
16
|
+
u as ceil,
|
|
17
|
+
p as cos,
|
|
18
|
+
e as degrees,
|
|
19
|
+
n as epsilon,
|
|
20
|
+
v as epsilon2,
|
|
21
|
+
l as exp,
|
|
22
|
+
t as halfPi,
|
|
23
|
+
g as log,
|
|
24
|
+
r as pi,
|
|
25
|
+
f as pow,
|
|
26
|
+
s as quarterPi,
|
|
27
|
+
h as radians,
|
|
28
|
+
P as sign,
|
|
29
|
+
q as sin,
|
|
30
|
+
b as sqrt,
|
|
31
|
+
d as tan,
|
|
32
|
+
i as tau
|
|
33
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { abs as m } from "../math.mjs";
|
|
2
|
+
import r from "../noop.mjs";
|
|
3
|
+
import { Adder as i } from "../../../d3-array/src/fsum.mjs";
|
|
4
|
+
var o = new i(), e = new i(), f, p, d, u, n = {
|
|
5
|
+
point: r,
|
|
6
|
+
lineStart: r,
|
|
7
|
+
lineEnd: r,
|
|
8
|
+
polygonStart: function() {
|
|
9
|
+
n.lineStart = S, n.lineEnd = g;
|
|
10
|
+
},
|
|
11
|
+
polygonEnd: function() {
|
|
12
|
+
n.lineStart = n.lineEnd = n.point = r, o.add(m(e)), e = new i();
|
|
13
|
+
},
|
|
14
|
+
result: function() {
|
|
15
|
+
var t = o / 2;
|
|
16
|
+
return o = new i(), t;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
function S() {
|
|
20
|
+
n.point = c;
|
|
21
|
+
}
|
|
22
|
+
function c(t, a) {
|
|
23
|
+
n.point = l, f = d = t, p = u = a;
|
|
24
|
+
}
|
|
25
|
+
function l(t, a) {
|
|
26
|
+
e.add(u * t - d * a), d = t, u = a;
|
|
27
|
+
}
|
|
28
|
+
function g() {
|
|
29
|
+
l(f, p);
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
n as default
|
|
33
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import r from "../noop.mjs";
|
|
2
|
+
var o = 1 / 0, f = o, t = -o, a = t, d = {
|
|
3
|
+
point: u,
|
|
4
|
+
lineStart: r,
|
|
5
|
+
lineEnd: r,
|
|
6
|
+
polygonStart: r,
|
|
7
|
+
polygonEnd: r,
|
|
8
|
+
result: function() {
|
|
9
|
+
var n = [[o, f], [t, a]];
|
|
10
|
+
return t = a = -(f = o = 1 / 0), n;
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
function u(n, i) {
|
|
14
|
+
n < o && (o = n), n > t && (t = n), i < f && (f = i), i > a && (a = i);
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
d as default
|
|
18
|
+
};
|