@erpsquad/common 1.8.7 → 1.8.9
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/ArrowDropDown/index.esm.js +5 -0
- package/dist/_virtual/ArrowDropDown/index.esm.js.map +1 -0
- package/dist/_virtual/ArrowDropDown/index.js +2 -0
- package/dist/_virtual/ArrowDropDown/index.js.map +1 -0
- package/dist/_virtual/ArrowDropUp/index.esm.js +5 -0
- package/dist/_virtual/ArrowDropUp/index.esm.js.map +1 -0
- package/dist/_virtual/ArrowDropUp/index.js +2 -0
- package/dist/_virtual/ArrowDropUp/index.js.map +1 -0
- package/dist/components/Dashboard/dashboard-card/index.esm.js +17 -0
- package/dist/components/Dashboard/dashboard-card/index.esm.js.map +1 -0
- package/dist/components/Dashboard/dashboard-card/index.js +6 -0
- package/dist/components/Dashboard/dashboard-card/index.js.map +1 -0
- package/dist/components/Dashboard/dashboard-header/index.esm.js +68 -0
- package/dist/components/Dashboard/dashboard-header/index.esm.js.map +1 -0
- package/dist/components/Dashboard/dashboard-header/index.js +7 -0
- package/dist/components/Dashboard/dashboard-header/index.js.map +1 -0
- package/dist/components/activityLog/activity-log/index.esm.js +104 -0
- package/dist/components/activityLog/activity-log/index.esm.js.map +1 -0
- package/dist/components/activityLog/activity-log/index.js +14 -0
- package/dist/components/activityLog/activity-log/index.js.map +1 -0
- package/dist/components/charts/ChartLegends/index.esm.js +31 -0
- package/dist/components/charts/ChartLegends/index.esm.js.map +1 -0
- package/dist/components/charts/ChartLegends/index.js +5 -0
- package/dist/components/charts/ChartLegends/index.js.map +1 -0
- package/dist/components/charts/areaLinerChart/index.esm.js +110 -0
- package/dist/components/charts/areaLinerChart/index.esm.js.map +1 -0
- package/dist/components/charts/areaLinerChart/index.js +4 -0
- package/dist/components/charts/areaLinerChart/index.js.map +1 -0
- package/dist/components/charts/bar-chart/bar-chart/index.esm.js +85 -0
- package/dist/components/charts/bar-chart/bar-chart/index.esm.js.map +1 -0
- package/dist/components/charts/bar-chart/bar-chart/index.js +2 -0
- package/dist/components/charts/bar-chart/bar-chart/index.js.map +1 -0
- package/dist/components/charts/barChart/barChart/index.esm.js +147 -0
- package/dist/components/charts/barChart/barChart/index.esm.js.map +1 -0
- package/dist/components/charts/barChart/barChart/index.js +2 -0
- package/dist/components/charts/barChart/barChart/index.js.map +1 -0
- package/dist/components/charts/barLineChart/barLinechart/index.esm.js +193 -0
- package/dist/components/charts/barLineChart/barLinechart/index.esm.js.map +1 -0
- package/dist/components/charts/barLineChart/barLinechart/index.js +11 -0
- package/dist/components/charts/barLineChart/barLinechart/index.js.map +1 -0
- package/dist/components/charts/donut-chart/donut-chart/index.esm.js +85 -0
- package/dist/components/charts/donut-chart/donut-chart/index.esm.js.map +1 -0
- package/dist/components/charts/donut-chart/donut-chart/index.js +6 -0
- package/dist/components/charts/donut-chart/donut-chart/index.js.map +1 -0
- package/dist/components/charts/donutChart/DonutChart/index.esm.js +96 -0
- package/dist/components/charts/donutChart/DonutChart/index.esm.js.map +1 -0
- package/dist/components/charts/donutChart/DonutChart/index.js +5 -0
- package/dist/components/charts/donutChart/DonutChart/index.js.map +1 -0
- package/dist/components/charts/groupBarChart/GroupBarChart/index.esm.js +92 -0
- package/dist/components/charts/groupBarChart/GroupBarChart/index.esm.js.map +1 -0
- package/dist/components/charts/groupBarChart/GroupBarChart/index.js +2 -0
- package/dist/components/charts/groupBarChart/GroupBarChart/index.js.map +1 -0
- package/dist/components/charts/line-chart/area-lineChart/index.esm.js +55 -0
- package/dist/components/charts/line-chart/area-lineChart/index.esm.js.map +1 -0
- package/dist/components/charts/line-chart/area-lineChart/index.js +2 -0
- package/dist/components/charts/line-chart/area-lineChart/index.js.map +1 -0
- package/dist/components/charts/line-chart/line-chart/index.esm.js +108 -0
- package/dist/components/charts/line-chart/line-chart/index.esm.js.map +1 -0
- package/dist/components/charts/line-chart/line-chart/index.js +2 -0
- package/dist/components/charts/line-chart/line-chart/index.js.map +1 -0
- package/dist/components/charts/multiLineChart/multi-line-chart/index.esm.js +100 -0
- package/dist/components/charts/multiLineChart/multi-line-chart/index.esm.js.map +1 -0
- package/dist/components/charts/multiLineChart/multi-line-chart/index.js +2 -0
- package/dist/components/charts/multiLineChart/multi-line-chart/index.js.map +1 -0
- package/dist/components/filter/filter/index.esm.js +1 -1
- package/dist/components/filter/filter/index.js +6 -6
- package/dist/components/grid/custom-grid-card/custom-grid-card/index.esm.js +131 -0
- package/dist/components/grid/custom-grid-card/custom-grid-card/index.esm.js.map +1 -0
- package/dist/components/grid/custom-grid-card/custom-grid-card/index.js +11 -0
- package/dist/components/grid/custom-grid-card/custom-grid-card/index.js.map +1 -0
- package/dist/components/grid/grid-card/grid-card/index.esm.js +102 -0
- package/dist/components/grid/grid-card/grid-card/index.esm.js.map +1 -0
- package/dist/components/grid/grid-card/grid-card/index.js +12 -0
- package/dist/components/grid/grid-card/grid-card/index.js.map +1 -0
- package/dist/components/grid/grid-wrapper/grid-wrapper/index.esm.js +17 -0
- package/dist/components/grid/grid-wrapper/grid-wrapper/index.esm.js.map +1 -0
- package/dist/components/grid/grid-wrapper/grid-wrapper/index.js +5 -0
- package/dist/components/grid/grid-wrapper/grid-wrapper/index.js.map +1 -0
- package/dist/components/index.d.ts +54 -12
- package/dist/components/index.esm.js +479 -431
- package/dist/components/index.esm.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/material-table/material-table/index.esm.js +2 -2
- package/dist/components/material-table/material-table/index.js +4 -4
- package/dist/components/mulitline/multiline/index.esm.js +62 -0
- package/dist/components/mulitline/multiline/index.esm.js.map +1 -0
- package/dist/components/mulitline/multiline/index.js +13 -0
- package/dist/components/mulitline/multiline/index.js.map +1 -0
- package/dist/components/reports/dynamic-report/dynamic-report/index.esm.js +472 -0
- package/dist/components/reports/dynamic-report/dynamic-report/index.esm.js.map +1 -0
- package/dist/components/reports/dynamic-report/dynamic-report/index.js +8 -0
- package/dist/components/reports/dynamic-report/dynamic-report/index.js.map +1 -0
- package/dist/components/reports/dynamic-report/dynamic-rows/index.esm.js +201 -0
- package/dist/components/reports/dynamic-report/dynamic-rows/index.esm.js.map +1 -0
- package/dist/components/reports/dynamic-report/dynamic-rows/index.js +6 -0
- package/dist/components/reports/dynamic-report/dynamic-rows/index.js.map +1 -0
- package/dist/components/rfq-response/item-response-details/index.esm.js +91 -0
- package/dist/components/rfq-response/item-response-details/index.esm.js.map +1 -0
- package/dist/components/rfq-response/item-response-details/index.js +9 -0
- package/dist/components/rfq-response/item-response-details/index.js.map +1 -0
- package/dist/constants/index.d.ts +4 -1
- package/dist/constants/index.esm.js +2 -0
- package/dist/constants/index.esm.js.map +1 -1
- package/dist/constants/index.js +1 -1
- package/dist/index.esm.js +571 -523
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/node_modules/@mui/icons-material/ArrowDropDown/index.esm.js +18 -0
- package/dist/node_modules/@mui/icons-material/ArrowDropDown/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/icons-material/ArrowDropDown/index.js +2 -0
- package/dist/node_modules/@mui/icons-material/ArrowDropDown/index.js.map +1 -0
- package/dist/node_modules/@mui/icons-material/ArrowDropUp/index.esm.js +18 -0
- package/dist/node_modules/@mui/icons-material/ArrowDropUp/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/icons-material/ArrowDropUp/index.js +2 -0
- package/dist/node_modules/@mui/icons-material/ArrowDropUp/index.js.map +1 -0
- package/dist/node_modules/d3-array/src/ascending/index.esm.js +7 -0
- package/dist/node_modules/d3-array/src/ascending/index.esm.js.map +1 -0
- package/dist/node_modules/d3-array/src/ascending/index.js +2 -0
- package/dist/node_modules/d3-array/src/ascending/index.js.map +1 -0
- package/dist/node_modules/d3-array/src/bisect/index.esm.js +11 -0
- package/dist/node_modules/d3-array/src/bisect/index.esm.js.map +1 -0
- package/dist/node_modules/d3-array/src/bisect/index.js +2 -0
- package/dist/node_modules/d3-array/src/bisect/index.js.map +1 -0
- package/dist/node_modules/d3-array/src/bisector/index.esm.js +48 -0
- package/dist/node_modules/d3-array/src/bisector/index.esm.js.map +1 -0
- package/dist/node_modules/d3-array/src/bisector/index.js +2 -0
- package/dist/node_modules/d3-array/src/bisector/index.js.map +1 -0
- package/dist/node_modules/d3-array/src/descending/index.esm.js +7 -0
- package/dist/node_modules/d3-array/src/descending/index.esm.js.map +1 -0
- package/dist/node_modules/d3-array/src/descending/index.js +2 -0
- package/dist/node_modules/d3-array/src/descending/index.js.map +1 -0
- package/dist/node_modules/d3-array/src/max/index.esm.js +22 -0
- package/dist/node_modules/d3-array/src/max/index.esm.js.map +1 -0
- package/dist/node_modules/d3-array/src/max/index.js +2 -0
- package/dist/node_modules/d3-array/src/max/index.js.map +1 -0
- package/dist/node_modules/d3-array/src/min/index.esm.js +22 -0
- package/dist/node_modules/d3-array/src/min/index.esm.js.map +1 -0
- package/dist/node_modules/d3-array/src/min/index.js +2 -0
- package/dist/node_modules/d3-array/src/min/index.js.map +1 -0
- package/dist/node_modules/d3-array/src/number/index.esm.js +7 -0
- package/dist/node_modules/d3-array/src/number/index.esm.js.map +1 -0
- package/dist/node_modules/d3-array/src/number/index.js +2 -0
- package/dist/node_modules/d3-array/src/number/index.js.map +1 -0
- package/dist/node_modules/d3-array/src/range/index.esm.js +12 -0
- package/dist/node_modules/d3-array/src/range/index.esm.js.map +1 -0
- package/dist/node_modules/d3-array/src/range/index.js +2 -0
- package/dist/node_modules/d3-array/src/range/index.js.map +1 -0
- package/dist/node_modules/d3-array/src/ticks/index.esm.js +52 -0
- package/dist/node_modules/d3-array/src/ticks/index.esm.js.map +1 -0
- package/dist/node_modules/d3-array/src/ticks/index.js +2 -0
- package/dist/node_modules/d3-array/src/ticks/index.js.map +1 -0
- package/dist/node_modules/d3-axis/src/axis/index.esm.js +99 -0
- package/dist/node_modules/d3-axis/src/axis/index.esm.js.map +1 -0
- package/dist/node_modules/d3-axis/src/axis/index.js +2 -0
- package/dist/node_modules/d3-axis/src/axis/index.js.map +1 -0
- package/dist/node_modules/d3-axis/src/identity/index.esm.js +7 -0
- package/dist/node_modules/d3-axis/src/identity/index.esm.js.map +1 -0
- package/dist/node_modules/d3-axis/src/identity/index.js +2 -0
- package/dist/node_modules/d3-axis/src/identity/index.js.map +1 -0
- package/dist/node_modules/d3-color/src/color/index.esm.js +339 -0
- package/dist/node_modules/d3-color/src/color/index.esm.js.map +1 -0
- package/dist/node_modules/d3-color/src/color/index.js +2 -0
- package/dist/node_modules/d3-color/src/color/index.js.map +1 -0
- package/dist/node_modules/d3-color/src/define/index.esm.js +14 -0
- package/dist/node_modules/d3-color/src/define/index.esm.js.map +1 -0
- package/dist/node_modules/d3-color/src/define/index.js +2 -0
- package/dist/node_modules/d3-color/src/define/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/defaultLocale/index.esm.js +21 -0
- package/dist/node_modules/d3-format/src/defaultLocale/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/defaultLocale/index.js +2 -0
- package/dist/node_modules/d3-format/src/defaultLocale/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/exponent/index.esm.js +8 -0
- package/dist/node_modules/d3-format/src/exponent/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/exponent/index.js +2 -0
- package/dist/node_modules/d3-format/src/exponent/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatDecimal/index.esm.js +16 -0
- package/dist/node_modules/d3-format/src/formatDecimal/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatDecimal/index.js +2 -0
- package/dist/node_modules/d3-format/src/formatDecimal/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatGroup/index.esm.js +16 -0
- package/dist/node_modules/d3-format/src/formatGroup/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatGroup/index.js +2 -0
- package/dist/node_modules/d3-format/src/formatGroup/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatNumerals/index.esm.js +11 -0
- package/dist/node_modules/d3-format/src/formatNumerals/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatNumerals/index.js +2 -0
- package/dist/node_modules/d3-format/src/formatNumerals/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatPrefixAuto/index.esm.js +13 -0
- package/dist/node_modules/d3-format/src/formatPrefixAuto/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatPrefixAuto/index.js +2 -0
- package/dist/node_modules/d3-format/src/formatPrefixAuto/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatRounded/index.esm.js +11 -0
- package/dist/node_modules/d3-format/src/formatRounded/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatRounded/index.js +2 -0
- package/dist/node_modules/d3-format/src/formatRounded/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatSpecifier/index.esm.js +38 -0
- package/dist/node_modules/d3-format/src/formatSpecifier/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatSpecifier/index.js +2 -0
- package/dist/node_modules/d3-format/src/formatSpecifier/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatTrim/index.esm.js +22 -0
- package/dist/node_modules/d3-format/src/formatTrim/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatTrim/index.js +2 -0
- package/dist/node_modules/d3-format/src/formatTrim/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatTypes/index.esm.js +22 -0
- package/dist/node_modules/d3-format/src/formatTypes/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatTypes/index.js +2 -0
- package/dist/node_modules/d3-format/src/formatTypes/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/identity/index.esm.js +7 -0
- package/dist/node_modules/d3-format/src/identity/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/identity/index.js +2 -0
- package/dist/node_modules/d3-format/src/identity/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/locale/index.esm.js +83 -0
- package/dist/node_modules/d3-format/src/locale/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/locale/index.js +2 -0
- package/dist/node_modules/d3-format/src/locale/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/precisionFixed/index.esm.js +8 -0
- package/dist/node_modules/d3-format/src/precisionFixed/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/precisionFixed/index.js +2 -0
- package/dist/node_modules/d3-format/src/precisionFixed/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/precisionPrefix/index.esm.js +8 -0
- package/dist/node_modules/d3-format/src/precisionPrefix/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/precisionPrefix/index.js +2 -0
- package/dist/node_modules/d3-format/src/precisionPrefix/index.js.map +1 -0
- package/dist/node_modules/d3-format/src/precisionRound/index.esm.js +9 -0
- package/dist/node_modules/d3-format/src/precisionRound/index.esm.js.map +1 -0
- package/dist/node_modules/d3-format/src/precisionRound/index.js +2 -0
- package/dist/node_modules/d3-format/src/precisionRound/index.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/array/index.esm.js +14 -0
- package/dist/node_modules/d3-interpolate/src/array/index.esm.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/array/index.js +2 -0
- package/dist/node_modules/d3-interpolate/src/array/index.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/color/index.esm.js +25 -0
- package/dist/node_modules/d3-interpolate/src/color/index.esm.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/color/index.js +2 -0
- package/dist/node_modules/d3-interpolate/src/color/index.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/constant/index.esm.js +5 -0
- package/dist/node_modules/d3-interpolate/src/constant/index.esm.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/constant/index.js +2 -0
- package/dist/node_modules/d3-interpolate/src/constant/index.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/date/index.esm.js +10 -0
- package/dist/node_modules/d3-interpolate/src/date/index.esm.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/date/index.js +2 -0
- package/dist/node_modules/d3-interpolate/src/date/index.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/number/index.esm.js +9 -0
- package/dist/node_modules/d3-interpolate/src/number/index.esm.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/number/index.js +2 -0
- package/dist/node_modules/d3-interpolate/src/number/index.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/numberArray/index.esm.js +16 -0
- package/dist/node_modules/d3-interpolate/src/numberArray/index.esm.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/numberArray/index.js +2 -0
- package/dist/node_modules/d3-interpolate/src/numberArray/index.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/object/index.esm.js +21 -0
- package/dist/node_modules/d3-interpolate/src/object/index.esm.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/object/index.js +2 -0
- package/dist/node_modules/d3-interpolate/src/object/index.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/rgb/index.esm.js +21 -0
- package/dist/node_modules/d3-interpolate/src/rgb/index.esm.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/rgb/index.js +2 -0
- package/dist/node_modules/d3-interpolate/src/rgb/index.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/round/index.esm.js +9 -0
- package/dist/node_modules/d3-interpolate/src/round/index.esm.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/round/index.js +2 -0
- package/dist/node_modules/d3-interpolate/src/round/index.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/string/index.esm.js +44 -0
- package/dist/node_modules/d3-interpolate/src/string/index.esm.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/string/index.js +2 -0
- package/dist/node_modules/d3-interpolate/src/string/index.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/value/index.esm.js +17 -0
- package/dist/node_modules/d3-interpolate/src/value/index.esm.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/value/index.js +2 -0
- package/dist/node_modules/d3-interpolate/src/value/index.js.map +1 -0
- package/dist/node_modules/d3-path/src/path/index.esm.js +89 -0
- package/dist/node_modules/d3-path/src/path/index.esm.js.map +1 -0
- package/dist/node_modules/d3-path/src/path/index.js +2 -0
- package/dist/node_modules/d3-path/src/path/index.js.map +1 -0
- package/dist/node_modules/d3-scale/src/band/index.esm.js +71 -0
- package/dist/node_modules/d3-scale/src/band/index.esm.js.map +1 -0
- package/dist/node_modules/d3-scale/src/band/index.js +2 -0
- package/dist/node_modules/d3-scale/src/band/index.js.map +1 -0
- package/dist/node_modules/d3-scale/src/constant/index.esm.js +9 -0
- package/dist/node_modules/d3-scale/src/constant/index.esm.js.map +1 -0
- package/dist/node_modules/d3-scale/src/constant/index.js +2 -0
- package/dist/node_modules/d3-scale/src/constant/index.js.map +1 -0
- package/dist/node_modules/d3-scale/src/continuous/index.esm.js +96 -0
- package/dist/node_modules/d3-scale/src/continuous/index.esm.js.map +1 -0
- package/dist/node_modules/d3-scale/src/continuous/index.js +2 -0
- package/dist/node_modules/d3-scale/src/continuous/index.js.map +1 -0
- package/dist/node_modules/d3-scale/src/init/index.esm.js +17 -0
- package/dist/node_modules/d3-scale/src/init/index.esm.js.map +1 -0
- package/dist/node_modules/d3-scale/src/init/index.js +2 -0
- package/dist/node_modules/d3-scale/src/init/index.js.map +1 -0
- package/dist/node_modules/d3-scale/src/linear/index.esm.js +62 -0
- package/dist/node_modules/d3-scale/src/linear/index.esm.js.map +1 -0
- package/dist/node_modules/d3-scale/src/linear/index.js +2 -0
- package/dist/node_modules/d3-scale/src/linear/index.js.map +1 -0
- package/dist/node_modules/d3-scale/src/number/index.esm.js +7 -0
- package/dist/node_modules/d3-scale/src/number/index.esm.js.map +1 -0
- package/dist/node_modules/d3-scale/src/number/index.js +2 -0
- package/dist/node_modules/d3-scale/src/number/index.js.map +1 -0
- package/dist/node_modules/d3-scale/src/ordinal/index.esm.js +39 -0
- package/dist/node_modules/d3-scale/src/ordinal/index.esm.js.map +1 -0
- package/dist/node_modules/d3-scale/src/ordinal/index.js +2 -0
- package/dist/node_modules/d3-scale/src/ordinal/index.js.map +1 -0
- package/dist/node_modules/d3-scale/src/tickFormat/index.esm.js +35 -0
- package/dist/node_modules/d3-scale/src/tickFormat/index.esm.js.map +1 -0
- package/dist/node_modules/d3-scale/src/tickFormat/index.js +2 -0
- package/dist/node_modules/d3-scale/src/tickFormat/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/array/index.esm.js +7 -0
- package/dist/node_modules/d3-selection/src/array/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/array/index.js +2 -0
- package/dist/node_modules/d3-selection/src/array/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/constant/index.esm.js +9 -0
- package/dist/node_modules/d3-selection/src/constant/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/constant/index.js +2 -0
- package/dist/node_modules/d3-selection/src/constant/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/creator/index.esm.js +21 -0
- package/dist/node_modules/d3-selection/src/creator/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/creator/index.js +2 -0
- package/dist/node_modules/d3-selection/src/creator/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/matcher/index.esm.js +15 -0
- package/dist/node_modules/d3-selection/src/matcher/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/matcher/index.js +2 -0
- package/dist/node_modules/d3-selection/src/matcher/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/namespace/index.esm.js +10 -0
- package/dist/node_modules/d3-selection/src/namespace/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/namespace/index.js +2 -0
- package/dist/node_modules/d3-selection/src/namespace/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/namespaces/index.esm.js +13 -0
- package/dist/node_modules/d3-selection/src/namespaces/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/namespaces/index.js +2 -0
- package/dist/node_modules/d3-selection/src/namespaces/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/pointer/index.esm.js +23 -0
- package/dist/node_modules/d3-selection/src/pointer/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/pointer/index.js +2 -0
- package/dist/node_modules/d3-selection/src/pointer/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/select/index.esm.js +8 -0
- package/dist/node_modules/d3-selection/src/select/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/select/index.js +2 -0
- package/dist/node_modules/d3-selection/src/select/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/append/index.esm.js +11 -0
- package/dist/node_modules/d3-selection/src/selection/append/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/append/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/append/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/attr/index.esm.js +47 -0
- package/dist/node_modules/d3-selection/src/selection/attr/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/attr/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/attr/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/call/index.esm.js +10 -0
- package/dist/node_modules/d3-selection/src/selection/call/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/call/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/call/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/classed/index.esm.js +65 -0
- package/dist/node_modules/d3-selection/src/selection/classed/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/classed/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/classed/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/clone/index.esm.js +15 -0
- package/dist/node_modules/d3-selection/src/selection/clone/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/clone/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/clone/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/data/index.esm.js +77 -0
- package/dist/node_modules/d3-selection/src/selection/data/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/data/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/data/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/datum/index.esm.js +7 -0
- package/dist/node_modules/d3-selection/src/selection/datum/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/datum/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/datum/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/dispatch/index.esm.js +29 -0
- package/dist/node_modules/d3-selection/src/selection/dispatch/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/dispatch/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/dispatch/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/each/index.esm.js +12 -0
- package/dist/node_modules/d3-selection/src/selection/each/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/each/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/each/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/empty/index.esm.js +7 -0
- package/dist/node_modules/d3-selection/src/selection/empty/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/empty/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/empty/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/enter/index.esm.js +32 -0
- package/dist/node_modules/d3-selection/src/selection/enter/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/enter/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/enter/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/exit/index.esm.js +9 -0
- package/dist/node_modules/d3-selection/src/selection/exit/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/exit/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/exit/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/filter/index.esm.js +17 -0
- package/dist/node_modules/d3-selection/src/selection/filter/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/filter/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/filter/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/html/index.esm.js +21 -0
- package/dist/node_modules/d3-selection/src/selection/html/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/html/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/html/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/index/index.esm.js +85 -0
- package/dist/node_modules/d3-selection/src/selection/index/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/index/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/index/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/insert/index.esm.js +15 -0
- package/dist/node_modules/d3-selection/src/selection/insert/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/insert/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/insert/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/iterator/index.esm.js +11 -0
- package/dist/node_modules/d3-selection/src/selection/iterator/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/iterator/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/iterator/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/join/index.esm.js +20 -0
- package/dist/node_modules/d3-selection/src/selection/join/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/join/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/join/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/lower/index.esm.js +10 -0
- package/dist/node_modules/d3-selection/src/selection/lower/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/lower/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/lower/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/merge/index.esm.js +19 -0
- package/dist/node_modules/d3-selection/src/selection/merge/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/merge/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/merge/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/node/index.esm.js +13 -0
- package/dist/node_modules/d3-selection/src/selection/node/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/node/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/node/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/nodes/index.esm.js +7 -0
- package/dist/node_modules/d3-selection/src/selection/nodes/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/nodes/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/nodes/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/on/index.esm.js +65 -0
- package/dist/node_modules/d3-selection/src/selection/on/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/on/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/on/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/order/index.esm.js +15 -0
- package/dist/node_modules/d3-selection/src/selection/order/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/order/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/order/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/property/index.esm.js +24 -0
- package/dist/node_modules/d3-selection/src/selection/property/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/property/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/property/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/raise/index.esm.js +10 -0
- package/dist/node_modules/d3-selection/src/selection/raise/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/raise/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/raise/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/remove/index.esm.js +11 -0
- package/dist/node_modules/d3-selection/src/selection/remove/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/remove/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/remove/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/select/index.esm.js +18 -0
- package/dist/node_modules/d3-selection/src/selection/select/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/select/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/select/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/selectAll/index.esm.js +25 -0
- package/dist/node_modules/d3-selection/src/selection/selectAll/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/selectAll/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/selectAll/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/selectChild/index.esm.js +17 -0
- package/dist/node_modules/d3-selection/src/selection/selectChild/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/selectChild/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/selectChild/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/selectChildren/index.esm.js +17 -0
- package/dist/node_modules/d3-selection/src/selection/selectChildren/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/selectChildren/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/selectChildren/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/size/index.esm.js +9 -0
- package/dist/node_modules/d3-selection/src/selection/size/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/size/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/size/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/sort/index.esm.js +23 -0
- package/dist/node_modules/d3-selection/src/selection/sort/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/sort/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/sort/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/sparse/index.esm.js +7 -0
- package/dist/node_modules/d3-selection/src/selection/sparse/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/sparse/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/sparse/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/style/index.esm.js +29 -0
- package/dist/node_modules/d3-selection/src/selection/style/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/style/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/style/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/text/index.esm.js +21 -0
- package/dist/node_modules/d3-selection/src/selection/text/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selection/text/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selection/text/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selector/index.esm.js +11 -0
- package/dist/node_modules/d3-selection/src/selector/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selector/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selector/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selectorAll/index.esm.js +12 -0
- package/dist/node_modules/d3-selection/src/selectorAll/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/selectorAll/index.js +2 -0
- package/dist/node_modules/d3-selection/src/selectorAll/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/sourceEvent/index.esm.js +9 -0
- package/dist/node_modules/d3-selection/src/sourceEvent/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/sourceEvent/index.js +2 -0
- package/dist/node_modules/d3-selection/src/sourceEvent/index.js.map +1 -0
- package/dist/node_modules/d3-selection/src/window/index.esm.js +7 -0
- package/dist/node_modules/d3-selection/src/window/index.esm.js.map +1 -0
- package/dist/node_modules/d3-selection/src/window/index.js +2 -0
- package/dist/node_modules/d3-selection/src/window/index.js.map +1 -0
- package/dist/node_modules/d3-shape/src/arc/index.esm.js +134 -0
- package/dist/node_modules/d3-shape/src/arc/index.esm.js.map +1 -0
- package/dist/node_modules/d3-shape/src/arc/index.js +2 -0
- package/dist/node_modules/d3-shape/src/arc/index.js.map +1 -0
- package/dist/node_modules/d3-shape/src/area/index.esm.js +82 -0
- package/dist/node_modules/d3-shape/src/area/index.esm.js.map +1 -0
- package/dist/node_modules/d3-shape/src/area/index.js +2 -0
- package/dist/node_modules/d3-shape/src/area/index.js.map +1 -0
- package/dist/node_modules/d3-shape/src/array/index.esm.js +7 -0
- package/dist/node_modules/d3-shape/src/array/index.esm.js.map +1 -0
- package/dist/node_modules/d3-shape/src/array/index.js +2 -0
- package/dist/node_modules/d3-shape/src/array/index.js.map +1 -0
- package/dist/node_modules/d3-shape/src/constant/index.esm.js +9 -0
- package/dist/node_modules/d3-shape/src/constant/index.esm.js.map +1 -0
- package/dist/node_modules/d3-shape/src/constant/index.js +2 -0
- package/dist/node_modules/d3-shape/src/constant/index.js.map +1 -0
- package/dist/node_modules/d3-shape/src/curve/linear/index.esm.js +39 -0
- package/dist/node_modules/d3-shape/src/curve/linear/index.esm.js.map +1 -0
- package/dist/node_modules/d3-shape/src/curve/linear/index.js +2 -0
- package/dist/node_modules/d3-shape/src/curve/linear/index.js.map +1 -0
- package/dist/node_modules/d3-shape/src/curve/monotone/index.esm.js +76 -0
- package/dist/node_modules/d3-shape/src/curve/monotone/index.esm.js.map +1 -0
- package/dist/node_modules/d3-shape/src/curve/monotone/index.js +2 -0
- package/dist/node_modules/d3-shape/src/curve/monotone/index.js.map +1 -0
- package/dist/node_modules/d3-shape/src/descending/index.esm.js +7 -0
- package/dist/node_modules/d3-shape/src/descending/index.esm.js.map +1 -0
- package/dist/node_modules/d3-shape/src/descending/index.js +2 -0
- package/dist/node_modules/d3-shape/src/descending/index.js.map +1 -0
- package/dist/node_modules/d3-shape/src/identity/index.esm.js +7 -0
- package/dist/node_modules/d3-shape/src/identity/index.esm.js.map +1 -0
- package/dist/node_modules/d3-shape/src/identity/index.js +2 -0
- package/dist/node_modules/d3-shape/src/identity/index.js.map +1 -0
- package/dist/node_modules/d3-shape/src/line/index.esm.js +42 -0
- package/dist/node_modules/d3-shape/src/line/index.esm.js.map +1 -0
- package/dist/node_modules/d3-shape/src/line/index.js +2 -0
- package/dist/node_modules/d3-shape/src/line/index.js.map +1 -0
- package/dist/node_modules/d3-shape/src/math/index.esm.js +33 -0
- package/dist/node_modules/d3-shape/src/math/index.esm.js.map +1 -0
- package/dist/node_modules/d3-shape/src/math/index.js +2 -0
- package/dist/node_modules/d3-shape/src/math/index.js.map +1 -0
- package/dist/node_modules/d3-shape/src/path/index.esm.js +20 -0
- package/dist/node_modules/d3-shape/src/path/index.esm.js.map +1 -0
- package/dist/node_modules/d3-shape/src/path/index.js +2 -0
- package/dist/node_modules/d3-shape/src/path/index.js.map +1 -0
- package/dist/node_modules/d3-shape/src/pie/index.esm.js +56 -0
- package/dist/node_modules/d3-shape/src/pie/index.esm.js.map +1 -0
- package/dist/node_modules/d3-shape/src/pie/index.js +2 -0
- package/dist/node_modules/d3-shape/src/pie/index.js.map +1 -0
- package/dist/node_modules/d3-shape/src/point/index.esm.js +11 -0
- package/dist/node_modules/d3-shape/src/point/index.esm.js.map +1 -0
- package/dist/node_modules/d3-shape/src/point/index.js +2 -0
- package/dist/node_modules/d3-shape/src/point/index.js.map +1 -0
- package/dist/node_modules/internmap/src/index/index.esm.js +44 -0
- package/dist/node_modules/internmap/src/index/index.esm.js.map +1 -0
- package/dist/node_modules/internmap/src/index/index.js +2 -0
- package/dist/node_modules/internmap/src/index/index.js.map +1 -0
- package/dist/style.css +2 -2
- package/dist/views/template-editor/components/EditorHeader/index.esm.js +1 -1
- package/dist/views/template-editor/components/EditorHeader/index.js +3 -3
- package/dist/views/template-editor/utils/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../../node_modules/d3-shape/src/arc.js"],"sourcesContent":["import constant from \"./constant.js\";\nimport {abs, acos, asin, atan2, cos, epsilon, halfPi, max, min, pi, sin, sqrt, tau} from \"./math.js\";\nimport {withPath} from \"./path.js\";\n\nfunction arcInnerRadius(d) {\n return d.innerRadius;\n}\n\nfunction arcOuterRadius(d) {\n return d.outerRadius;\n}\n\nfunction arcStartAngle(d) {\n return d.startAngle;\n}\n\nfunction arcEndAngle(d) {\n return d.endAngle;\n}\n\nfunction arcPadAngle(d) {\n return d && d.padAngle; // Note: optional!\n}\n\nfunction intersect(x0, y0, x1, y1, x2, y2, x3, y3) {\n var x10 = x1 - x0, y10 = y1 - y0,\n x32 = x3 - x2, y32 = y3 - y2,\n t = y32 * x10 - x32 * y10;\n if (t * t < epsilon) return;\n t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / t;\n return [x0 + t * x10, y0 + t * y10];\n}\n\n// Compute perpendicular offset line of length rc.\n// http://mathworld.wolfram.com/Circle-LineIntersection.html\nfunction cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}\n\nexport default function() {\n var innerRadius = arcInnerRadius,\n outerRadius = arcOuterRadius,\n cornerRadius = constant(0),\n padRadius = null,\n startAngle = arcStartAngle,\n endAngle = arcEndAngle,\n padAngle = arcPadAngle,\n context = null,\n path = withPath(arc);\n\n function arc() {\n var buffer,\n r,\n r0 = +innerRadius.apply(this, arguments),\n r1 = +outerRadius.apply(this, arguments),\n a0 = startAngle.apply(this, arguments) - halfPi,\n a1 = endAngle.apply(this, arguments) - halfPi,\n da = abs(a1 - a0),\n cw = a1 > a0;\n\n if (!context) context = buffer = path();\n\n // Ensure that the outer radius is always larger than the inner radius.\n if (r1 < r0) r = r1, r1 = r0, r0 = r;\n\n // Is it a point?\n if (!(r1 > epsilon)) context.moveTo(0, 0);\n\n // Or is it a circle or annulus?\n else if (da > tau - epsilon) {\n context.moveTo(r1 * cos(a0), r1 * sin(a0));\n context.arc(0, 0, r1, a0, a1, !cw);\n if (r0 > epsilon) {\n context.moveTo(r0 * cos(a1), r0 * sin(a1));\n context.arc(0, 0, r0, a1, a0, cw);\n }\n }\n\n // Or is it a circular or annular sector?\n else {\n var a01 = a0,\n a11 = a1,\n a00 = a0,\n a10 = a1,\n da0 = da,\n da1 = da,\n ap = padAngle.apply(this, arguments) / 2,\n rp = (ap > epsilon) && (padRadius ? +padRadius.apply(this, arguments) : sqrt(r0 * r0 + r1 * r1)),\n rc = min(abs(r1 - r0) / 2, +cornerRadius.apply(this, arguments)),\n rc0 = rc,\n rc1 = rc,\n t0,\n t1;\n\n // Apply padding? Note that since r1 ≥ r0, da1 ≥ da0.\n if (rp > epsilon) {\n var p0 = asin(rp / r0 * sin(ap)),\n p1 = asin(rp / r1 * sin(ap));\n if ((da0 -= p0 * 2) > epsilon) p0 *= (cw ? 1 : -1), a00 += p0, a10 -= p0;\n else da0 = 0, a00 = a10 = (a0 + a1) / 2;\n if ((da1 -= p1 * 2) > epsilon) p1 *= (cw ? 1 : -1), a01 += p1, a11 -= p1;\n else da1 = 0, a01 = a11 = (a0 + a1) / 2;\n }\n\n var x01 = r1 * cos(a01),\n y01 = r1 * sin(a01),\n x10 = r0 * cos(a10),\n y10 = r0 * sin(a10);\n\n // Apply rounded corners?\n if (rc > epsilon) {\n var x11 = r1 * cos(a11),\n y11 = r1 * sin(a11),\n x00 = r0 * cos(a00),\n y00 = r0 * sin(a00),\n oc;\n\n // Restrict the corner radius according to the sector angle. If this\n // intersection fails, it’s probably because the arc is too small, so\n // disable the corner radius entirely.\n if (da < pi) {\n if (oc = intersect(x01, y01, x00, y00, x11, y11, x10, y10)) {\n var ax = x01 - oc[0],\n ay = y01 - oc[1],\n bx = x11 - oc[0],\n by = y11 - oc[1],\n kc = 1 / sin(acos((ax * bx + ay * by) / (sqrt(ax * ax + ay * ay) * sqrt(bx * bx + by * by))) / 2),\n lc = sqrt(oc[0] * oc[0] + oc[1] * oc[1]);\n rc0 = min(rc, (r0 - lc) / (kc - 1));\n rc1 = min(rc, (r1 - lc) / (kc + 1));\n } else {\n rc0 = rc1 = 0;\n }\n }\n }\n\n // Is the sector collapsed to a line?\n if (!(da1 > epsilon)) context.moveTo(x01, y01);\n\n // Does the sector’s outer ring have rounded corners?\n else if (rc1 > epsilon) {\n t0 = cornerTangents(x00, y00, x01, y01, r1, rc1, cw);\n t1 = cornerTangents(x11, y11, x10, y10, r1, rc1, cw);\n\n context.moveTo(t0.cx + t0.x01, t0.cy + t0.y01);\n\n // Have the corners merged?\n if (rc1 < rc) context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);\n\n // Otherwise, draw the two corners and the ring.\n else {\n context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);\n context.arc(0, 0, r1, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), !cw);\n context.arc(t1.cx, t1.cy, rc1, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);\n }\n }\n\n // Or is the outer ring just a circular arc?\n else context.moveTo(x01, y01), context.arc(0, 0, r1, a01, a11, !cw);\n\n // Is there no inner ring, and it’s a circular sector?\n // Or perhaps it’s an annular sector collapsed due to padding?\n if (!(r0 > epsilon) || !(da0 > epsilon)) context.lineTo(x10, y10);\n\n // Does the sector’s inner ring (or point) have rounded corners?\n else if (rc0 > epsilon) {\n t0 = cornerTangents(x10, y10, x11, y11, r0, -rc0, cw);\n t1 = cornerTangents(x01, y01, x00, y00, r0, -rc0, cw);\n\n context.lineTo(t0.cx + t0.x01, t0.cy + t0.y01);\n\n // Have the corners merged?\n if (rc0 < rc) context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);\n\n // Otherwise, draw the two corners and the ring.\n else {\n context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);\n context.arc(0, 0, r0, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), cw);\n context.arc(t1.cx, t1.cy, rc0, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);\n }\n }\n\n // Or is the inner ring just a circular arc?\n else context.arc(0, 0, r0, a10, a00, cw);\n }\n\n context.closePath();\n\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n arc.centroid = function() {\n var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2,\n a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - pi / 2;\n return [cos(a) * r, sin(a) * r];\n };\n\n arc.innerRadius = function(_) {\n return arguments.length ? (innerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : innerRadius;\n };\n\n arc.outerRadius = function(_) {\n return arguments.length ? (outerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : outerRadius;\n };\n\n arc.cornerRadius = function(_) {\n return arguments.length ? (cornerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : cornerRadius;\n };\n\n arc.padRadius = function(_) {\n return arguments.length ? (padRadius = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), arc) : padRadius;\n };\n\n arc.startAngle = function(_) {\n return arguments.length ? (startAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : startAngle;\n };\n\n arc.endAngle = function(_) {\n return arguments.length ? (endAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : endAngle;\n };\n\n arc.padAngle = function(_) {\n return arguments.length ? (padAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : padAngle;\n };\n\n arc.context = function(_) {\n return arguments.length ? ((context = _ == null ? null : _), arc) : context;\n };\n\n return arc;\n}\n"],"names":["arc"],"mappings":";;;AAIA,SAAS,eAAe,GAAG;AACzB,SAAO,EAAE;AACX;AAEA,SAAS,eAAe,GAAG;AACzB,SAAO,EAAE;AACX;AAEA,SAAS,cAAc,GAAG;AACxB,SAAO,EAAE;AACX;AAEA,SAAS,YAAY,GAAG;AACtB,SAAO,EAAE;AACX;AAEA,SAAS,YAAY,GAAG;AACtB,SAAO,KAAK,EAAE;AAChB;AAEA,SAAS,UAAU,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI;AACjD,MAAI,MAAM,KAAK,IAAI,MAAM,KAAK,IAC1B,MAAM,KAAK,IAAI,MAAM,KAAK,IAC1B,IAAI,MAAM,MAAM,MAAM;AAC1B,MAAI,IAAI,IAAI,QAAS;AACrB,OAAK,OAAO,KAAK,MAAM,OAAO,KAAK,OAAO;AAC1C,SAAO,CAAC,KAAK,IAAI,KAAK,KAAK,IAAI,GAAG;AACpC;AAIA,SAAS,eAAe,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI;AAClD,MAAI,MAAM,KAAK,IACX,MAAM,KAAK,IACX,MAAM,KAAK,KAAK,CAAC,MAAM,KAAK,MAAM,MAAM,MAAM,GAAG,GACjD,KAAK,KAAK,KACV,KAAK,C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1B,WAAO,UAAU,UAAU,YAAY,KAAK,OAAO,OAAO,OAAO,MAAM,aAAa,IAAI,SAAS,CAAC,CAAC,GAAGA,QAAO;AAAA,EAC/G;AAEA,EAAAA,KAAI,aAAa,SAAS,GAAG;AAC3B,WAAO,UAAU,UAAU,aAAa,OAAO,MAAM,aAAa,IAAI,SAAS,CAAC,CAAC,GAAGA,QAAO;AAAA,EAC7F;AAEA,EAAAA,KAAI,WAAW,SAAS,GAAG;AACzB,WAAO,UAAU,UAAU,WAAW,OAAO,MAAM,aAAa,IAAI,SAAS,CAAC,CAAC,GAAGA,QAAO;AAAA,EAC3F;AAEA,EAAAA,KAAI,WAAW,SAAS,GAAG;AACzB,WAAO,UAAU,UAAU,WAAW,OAAO,MAAM,aAAa,IAAI,SAAS,CAAC,CAAC,GAAGA,QAAO;AAAA,EAC3F;AAEA,EAAAA,KAAI,UAAU,SAAS,GAAG;AACxB,WAAO,UAAU,UAAW,UAAU,KAAK,OAAO,OAAO,GAAIA,QAAO;AAAA,EACtE;AAEA,SAAOA;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("../constant/index.js"),t=require("../math/index.js"),e=require("../path/index.js");function a(n){return n.innerRadius}function i(n){return n.outerRadius}function r(n){return n.startAngle}function o(n){return n.endAngle}function c(n){return n&&n.padAngle}function u(n,e,a,i,r,o,c){var u=n-a,l=e-i,s=(c?o:-o)/t.sqrt(u*u+l*l),f=s*l,p=-s*u,y=n+f,x=e+p,d=a+f,h=i+p,v=(y+d)/2,g=(x+h)/2,m=d-y,q=h-x,T=m*m+q*q,A=r-o,R=y*h-d*x,P=(q<0?-1:1)*t.sqrt(t.max(0,A*A*T-R*R)),j=(R*q-m*P)/T,b=(-R*m-q*P)/T,_=(R*q+m*P)/T,w=(-R*m+q*P)/T,M=j-v,O=b-g,k=_-v,z=w-g;return M*M+O*O>k*k+z*z&&(j=_,b=w),{cx:j,cy:b,x01:-f,y01:-p,x11:j*(r/A-1),y11:b*(r/A-1)}}exports.default=function(){var l=a,s=i,f=n.default(0),p=null,y=r,x=o,d=c,h=null,v=e.withPath(g);function g(){var n,e,a=+l.apply(this,arguments),i=+s.apply(this,arguments),r=y.apply(this,arguments)-t.halfPi,o=x.apply(this,arguments)-t.halfPi,c=t.abs(o-r),g=o>r;if(h||(h=n=v()),i<a&&(e=i,i=a,a=e),i>t.epsilon)if(c>t.tau-t.epsilon)h.moveTo(i*t.cos(r),i*t.sin(r)),h.arc(0,0,i,r,o,!g),a>t.epsilon&&(h.moveTo(a*t.cos(o),a*t.sin(o)),h.arc(0,0,a,o,r,g));else{var m,q,T=r,A=o,R=r,P=o,j=c,b=c,_=d.apply(this,arguments)/2,w=_>t.epsilon&&(p?+p.apply(this,arguments):t.sqrt(a*a+i*i)),M=t.min(t.abs(i-a)/2,+f.apply(this,arguments)),O=M,k=M;if(w>t.epsilon){var z=t.asin(w/a*t.sin(_)),B=t.asin(w/i*t.sin(_));(j-=2*z)>t.epsilon?(R+=z*=g?1:-1,P-=z):(j=0,R=P=(r+o)/2),(b-=2*B)>t.epsilon?(T+=B*=g?1:-1,A-=B):(b=0,T=A=(r+o)/2)}var C=i*t.cos(T),D=i*t.sin(T),E=a*t.cos(P),F=a*t.sin(P);if(M>t.epsilon){var G,H=i*t.cos(A),I=i*t.sin(A),J=a*t.cos(R),K=a*t.sin(R);if(c<t.pi)if(G=function(n,e,a,i,r,o,c,u){var l=a-n,s=i-e,f=c-r,p=u-o,y=p*l-f*s;if(!(y*y<t.epsilon))return[n+(y=(f*(e-o)-p*(n-r))/y)*l,e+y*s]}(C,D,J,K,H,I,E,F)){var L=C-G[0],N=D-G[1],Q=H-G[0],S=I-G[1],U=1/t.sin(t.acos((L*Q+N*S)/(t.sqrt(L*L+N*N)*t.sqrt(Q*Q+S*S)))/2),V=t.sqrt(G[0]*G[0]+G[1]*G[1]);O=t.min(M,(a-V)/(U-1)),k=t.min(M,(i-V)/(U+1))}else O=k=0}b>t.epsilon?k>t.epsilon?(m=u(J,K,C,D,i,k,g),q=u(H,I,E,F,i,k,g),h.moveTo(m.cx+m.x01,m.cy+m.y01),k<M?h.arc(m.cx,m.cy,k,t.atan2(m.y01,m.x01),t.atan2(q.y01,q.x01),!g):(h.arc(m.cx,m.cy,k,t.atan2(m.y01,m.x01),t.atan2(m.y11,m.x11),!g),h.arc(0,0,i,t.atan2(m.cy+m.y11,m.cx+m.x11),t.atan2(q.cy+q.y11,q.cx+q.x11),!g),h.arc(q.cx,q.cy,k,t.atan2(q.y11,q.x11),t.atan2(q.y01,q.x01),!g))):(h.moveTo(C,D),h.arc(0,0,i,T,A,!g)):h.moveTo(C,D),a>t.epsilon&&j>t.epsilon?O>t.epsilon?(m=u(E,F,H,I,a,-O,g),q=u(C,D,J,K,a,-O,g),h.lineTo(m.cx+m.x01,m.cy+m.y01),O<M?h.arc(m.cx,m.cy,O,t.atan2(m.y01,m.x01),t.atan2(q.y01,q.x01),!g):(h.arc(m.cx,m.cy,O,t.atan2(m.y01,m.x01),t.atan2(m.y11,m.x11),!g),h.arc(0,0,a,t.atan2(m.cy+m.y11,m.cx+m.x11),t.atan2(q.cy+q.y11,q.cx+q.x11),g),h.arc(q.cx,q.cy,O,t.atan2(q.y11,q.x11),t.atan2(q.y01,q.x01),!g))):h.arc(0,0,a,P,R,g):h.lineTo(E,F)}else h.moveTo(0,0);if(h.closePath(),n)return h=null,n+""||null}return g.centroid=function(){var n=(+l.apply(this,arguments)+ +s.apply(this,arguments))/2,e=(+y.apply(this,arguments)+ +x.apply(this,arguments))/2-t.pi/2;return[t.cos(e)*n,t.sin(e)*n]},g.innerRadius=function(t){return arguments.length?(l="function"==typeof t?t:n.default(+t),g):l},g.outerRadius=function(t){return arguments.length?(s="function"==typeof t?t:n.default(+t),g):s},g.cornerRadius=function(t){return arguments.length?(f="function"==typeof t?t:n.default(+t),g):f},g.padRadius=function(t){return arguments.length?(p=null==t?null:"function"==typeof t?t:n.default(+t),g):p},g.startAngle=function(t){return arguments.length?(y="function"==typeof t?t:n.default(+t),g):y},g.endAngle=function(t){return arguments.length?(x="function"==typeof t?t:n.default(+t),g):x},g.padAngle=function(t){return arguments.length?(d="function"==typeof t?t:n.default(+t),g):d},g.context=function(n){return arguments.length?(h=null==n?null:n,g):h},g};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/d3-shape/src/arc.js"],"sourcesContent":["import constant from \"./constant.js\";\nimport {abs, acos, asin, atan2, cos, epsilon, halfPi, max, min, pi, sin, sqrt, tau} from \"./math.js\";\nimport {withPath} from \"./path.js\";\n\nfunction arcInnerRadius(d) {\n return d.innerRadius;\n}\n\nfunction arcOuterRadius(d) {\n return d.outerRadius;\n}\n\nfunction arcStartAngle(d) {\n return d.startAngle;\n}\n\nfunction arcEndAngle(d) {\n return d.endAngle;\n}\n\nfunction arcPadAngle(d) {\n return d && d.padAngle; // Note: optional!\n}\n\nfunction intersect(x0, y0, x1, y1, x2, y2, x3, y3) {\n var x10 = x1 - x0, y10 = y1 - y0,\n x32 = x3 - x2, y32 = y3 - y2,\n t = y32 * x10 - x32 * y10;\n if (t * t < epsilon) return;\n t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / t;\n return [x0 + t * x10, y0 + t * y10];\n}\n\n// Compute perpendicular offset line of length rc.\n// http://mathworld.wolfram.com/Circle-LineIntersection.html\nfunction cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}\n\nexport default function() {\n var innerRadius = arcInnerRadius,\n outerRadius = arcOuterRadius,\n cornerRadius = constant(0),\n padRadius = null,\n startAngle = arcStartAngle,\n endAngle = arcEndAngle,\n padAngle = arcPadAngle,\n context = null,\n path = withPath(arc);\n\n function arc() {\n var buffer,\n r,\n r0 = +innerRadius.apply(this, arguments),\n r1 = +outerRadius.apply(this, arguments),\n a0 = startAngle.apply(this, arguments) - halfPi,\n a1 = endAngle.apply(this, arguments) - halfPi,\n da = abs(a1 - a0),\n cw = a1 > a0;\n\n if (!context) context = buffer = path();\n\n // Ensure that the outer radius is always larger than the inner radius.\n if (r1 < r0) r = r1, r1 = r0, r0 = r;\n\n // Is it a point?\n if (!(r1 > epsilon)) context.moveTo(0, 0);\n\n // Or is it a circle or annulus?\n else if (da > tau - epsilon) {\n context.moveTo(r1 * cos(a0), r1 * sin(a0));\n context.arc(0, 0, r1, a0, a1, !cw);\n if (r0 > epsilon) {\n context.moveTo(r0 * cos(a1), r0 * sin(a1));\n context.arc(0, 0, r0, a1, a0, cw);\n }\n }\n\n // Or is it a circular or annular sector?\n else {\n var a01 = a0,\n a11 = a1,\n a00 = a0,\n a10 = a1,\n da0 = da,\n da1 = da,\n ap = padAngle.apply(this, arguments) / 2,\n rp = (ap > epsilon) && (padRadius ? +padRadius.apply(this, arguments) : sqrt(r0 * r0 + r1 * r1)),\n rc = min(abs(r1 - r0) / 2, +cornerRadius.apply(this, arguments)),\n rc0 = rc,\n rc1 = rc,\n t0,\n t1;\n\n // Apply padding? Note that since r1 ≥ r0, da1 ≥ da0.\n if (rp > epsilon) {\n var p0 = asin(rp / r0 * sin(ap)),\n p1 = asin(rp / r1 * sin(ap));\n if ((da0 -= p0 * 2) > epsilon) p0 *= (cw ? 1 : -1), a00 += p0, a10 -= p0;\n else da0 = 0, a00 = a10 = (a0 + a1) / 2;\n if ((da1 -= p1 * 2) > epsilon) p1 *= (cw ? 1 : -1), a01 += p1, a11 -= p1;\n else da1 = 0, a01 = a11 = (a0 + a1) / 2;\n }\n\n var x01 = r1 * cos(a01),\n y01 = r1 * sin(a01),\n x10 = r0 * cos(a10),\n y10 = r0 * sin(a10);\n\n // Apply rounded corners?\n if (rc > epsilon) {\n var x11 = r1 * cos(a11),\n y11 = r1 * sin(a11),\n x00 = r0 * cos(a00),\n y00 = r0 * sin(a00),\n oc;\n\n // Restrict the corner radius according to the sector angle. If this\n // intersection fails, it’s probably because the arc is too small, so\n // disable the corner radius entirely.\n if (da < pi) {\n if (oc = intersect(x01, y01, x00, y00, x11, y11, x10, y10)) {\n var ax = x01 - oc[0],\n ay = y01 - oc[1],\n bx = x11 - oc[0],\n by = y11 - oc[1],\n kc = 1 / sin(acos((ax * bx + ay * by) / (sqrt(ax * ax + ay * ay) * sqrt(bx * bx + by * by))) / 2),\n lc = sqrt(oc[0] * oc[0] + oc[1] * oc[1]);\n rc0 = min(rc, (r0 - lc) / (kc - 1));\n rc1 = min(rc, (r1 - lc) / (kc + 1));\n } else {\n rc0 = rc1 = 0;\n }\n }\n }\n\n // Is the sector collapsed to a line?\n if (!(da1 > epsilon)) context.moveTo(x01, y01);\n\n // Does the sector’s outer ring have rounded corners?\n else if (rc1 > epsilon) {\n t0 = cornerTangents(x00, y00, x01, y01, r1, rc1, cw);\n t1 = cornerTangents(x11, y11, x10, y10, r1, rc1, cw);\n\n context.moveTo(t0.cx + t0.x01, t0.cy + t0.y01);\n\n // Have the corners merged?\n if (rc1 < rc) context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);\n\n // Otherwise, draw the two corners and the ring.\n else {\n context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);\n context.arc(0, 0, r1, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), !cw);\n context.arc(t1.cx, t1.cy, rc1, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);\n }\n }\n\n // Or is the outer ring just a circular arc?\n else context.moveTo(x01, y01), context.arc(0, 0, r1, a01, a11, !cw);\n\n // Is there no inner ring, and it’s a circular sector?\n // Or perhaps it’s an annular sector collapsed due to padding?\n if (!(r0 > epsilon) || !(da0 > epsilon)) context.lineTo(x10, y10);\n\n // Does the sector’s inner ring (or point) have rounded corners?\n else if (rc0 > epsilon) {\n t0 = cornerTangents(x10, y10, x11, y11, r0, -rc0, cw);\n t1 = cornerTangents(x01, y01, x00, y00, r0, -rc0, cw);\n\n context.lineTo(t0.cx + t0.x01, t0.cy + t0.y01);\n\n // Have the corners merged?\n if (rc0 < rc) context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);\n\n // Otherwise, draw the two corners and the ring.\n else {\n context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);\n context.arc(0, 0, r0, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), cw);\n context.arc(t1.cx, t1.cy, rc0, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);\n }\n }\n\n // Or is the inner ring just a circular arc?\n else context.arc(0, 0, r0, a10, a00, cw);\n }\n\n context.closePath();\n\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n arc.centroid = function() {\n var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2,\n a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - pi / 2;\n return [cos(a) * r, sin(a) * r];\n };\n\n arc.innerRadius = function(_) {\n return arguments.length ? (innerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : innerRadius;\n };\n\n arc.outerRadius = function(_) {\n return arguments.length ? (outerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : outerRadius;\n };\n\n arc.cornerRadius = function(_) {\n return arguments.length ? (cornerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : cornerRadius;\n };\n\n arc.padRadius = function(_) {\n return arguments.length ? (padRadius = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), arc) : padRadius;\n };\n\n arc.startAngle = function(_) {\n return arguments.length ? (startAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : startAngle;\n };\n\n arc.endAngle = function(_) {\n return arguments.length ? (endAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : endAngle;\n };\n\n arc.padAngle = function(_) {\n return arguments.length ? (padAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : padAngle;\n };\n\n arc.context = function(_) {\n return arguments.length ? ((context = _ == null ? null : _), arc) : context;\n };\n\n return arc;\n}\n"],"names":["arcInnerRadius","d","innerRadius","arcOuterRadius","outerRadius","arcStartAngle","startAngle","arcEndAngle","endAngle","arcPadAngle","padAngle","cornerTangents","x0","y0","x1","y1","r1","rc","cw","x01","y01","lo","sqrt","ox","oy","x11","y11","x10","y10","x00","y00","dx","dy","d2","r","D","max","cx0","cy0","cx1","cy1","dx0","dy0","dx1","dy1","cx","cy","cornerRadius","constant","padRadius","context","path","withPath","arc","buffer","r0","apply","this","arguments","a0","halfPi","a1","da","abs","epsilon","tau","moveTo","cos","sin","t0","t1","a01","a11","a00","a10","da0","da1","ap","rp","min","rc0","rc1","p0","asin","p1","oc","pi","x2","y2","x3","y3","x32","y32","t","intersect","ax","ay","bx","by","kc","acos","lc","atan2","lineTo","closePath","centroid","a","_","length"],"mappings":"sKAIA,SAASA,EAAeC,GACtB,OAAOA,EAAEC,WACX,CAEA,SAASC,EAAeF,GACtB,OAAOA,EAAEG,WACX,CAEA,SAASC,EAAcJ,GACrB,OAAOA,EAAEK,UACX,CAEA,SAASC,EAAYN,GACnB,OAAOA,EAAEO,QACX,CAEA,SAASC,EAAYR,GACnB,OAAOA,GAAKA,EAAES,QAChB,CAaA,SAASC,EAAeC,EAAIC,EAAIC,EAAIC,EAAIC,EAAIC,EAAIC,GAC9C,IAAIC,EAAMP,EAAKE,EACXM,EAAMP,EAAKE,EACXM,GAAMH,EAAKD,GAAMA,GAAMK,EAAAA,KAAKH,EAAMA,EAAMC,EAAMA,GAC9CG,EAAKF,EAAKD,EACVI,GAAMH,EAAKF,EACXM,EAAMb,EAAKW,EACXG,EAAMb,EAAKW,EACXG,EAAMb,EAAKS,EACXK,EAAMb,EAAKS,EACXK,GAAOJ,EAAME,GAAO,EACpBG,GAAOJ,EAAME,GAAO,EACpBG,EAAKJ,EAAMF,EACXO,EAAKJ,EAAMF,EACXO,EAAKF,EAAKA,EAAKC,EAAKA,EACpBE,EAAIlB,EAAKC,EACTkB,EAAIV,EAAMG,EAAMD,EAAMD,EACtBzB,GAAK+B,EAAK,GAAI,EAAK,GAAKV,EAAAA,KAAKc,EAAAA,IAAI,EAAGF,EAAIA,EAAID,EAAKE,EAAIA,IACrDE,GAAOF,EAAIH,EAAKD,EAAK9B,GAAKgC,EAC1BK,IAAQH,EAAIJ,EAAKC,EAAK/B,GAAKgC,EAC3BM,GAAOJ,EAAIH,EAAKD,EAAK9B,GAAKgC,EAC1BO,IAAQL,EAAIJ,EAAKC,EAAK/B,GAAKgC,EAC3BQ,EAAMJ,EAAMR,EACZa,EAAMJ,EA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N,aAAe,SAAS4D,GAC1B,OAAOjD,UAAUkD,QAAU7D,EAA4B,mBAAN4D,EAAmBA,EAAI3D,WAAU2D,GAAItD,GAAON,CAC/F,EAEAM,EAAIJ,UAAY,SAAS0D,GACvB,OAAOjD,UAAUkD,QAAU3D,EAAiB,MAAL0D,EAAY,KAAoB,mBAANA,EAAmBA,EAAI3D,EAAAA,SAAU2D,GAAItD,GAAOJ,CAC/G,EAEAI,EAAI/C,WAAa,SAASqG,GACxB,OAAOjD,UAAUkD,QAAUtG,EAA0B,mBAANqG,EAAmBA,EAAI3D,WAAU2D,GAAItD,GAAO/C,CAC7F,EAEA+C,EAAI7C,SAAW,SAASmG,GACtB,OAAOjD,UAAUkD,QAAUpG,EAAwB,mBAANmG,EAAmBA,EAAI3D,WAAU2D,GAAItD,GAAO7C,CAC3F,EAEA6C,EAAI3C,SAAW,SAASiG,GACtB,OAAOjD,UAAUkD,QAAUlG,EAAwB,mBAANiG,EAAmBA,EAAI3D,WAAU2D,GAAItD,GAAO3C,CAC3F,EAEA2C,EAAIH,QAAU,SAASyD,GACrB,OAAOjD,UAAUkD,QAAW1D,EAAe,MAALyD,EAAY,KAAOA,EAAItD,GAAOH,CACtE,EAEOG,CACT","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import array from "../array/index.esm.js";
|
|
2
|
+
import constant from "../constant/index.esm.js";
|
|
3
|
+
import curveLinear from "../curve/linear/index.esm.js";
|
|
4
|
+
import line from "../line/index.esm.js";
|
|
5
|
+
import { withPath } from "../path/index.esm.js";
|
|
6
|
+
import { x, y } from "../point/index.esm.js";
|
|
7
|
+
function area(x0, y0, y1) {
|
|
8
|
+
var x1 = null, defined = constant(true), context = null, curve = curveLinear, output = null, path = withPath(area2);
|
|
9
|
+
x0 = typeof x0 === "function" ? x0 : x0 === void 0 ? x : constant(+x0);
|
|
10
|
+
y0 = typeof y0 === "function" ? y0 : y0 === void 0 ? constant(0) : constant(+y0);
|
|
11
|
+
y1 = typeof y1 === "function" ? y1 : y1 === void 0 ? y : constant(+y1);
|
|
12
|
+
function area2(data) {
|
|
13
|
+
var i, j, k, n = (data = array(data)).length, d, defined0 = false, buffer, x0z = new Array(n), y0z = new Array(n);
|
|
14
|
+
if (context == null) output = curve(buffer = path());
|
|
15
|
+
for (i = 0; i <= n; ++i) {
|
|
16
|
+
if (!(i < n && defined(d = data[i], i, data)) === defined0) {
|
|
17
|
+
if (defined0 = !defined0) {
|
|
18
|
+
j = i;
|
|
19
|
+
output.areaStart();
|
|
20
|
+
output.lineStart();
|
|
21
|
+
} else {
|
|
22
|
+
output.lineEnd();
|
|
23
|
+
output.lineStart();
|
|
24
|
+
for (k = i - 1; k >= j; --k) {
|
|
25
|
+
output.point(x0z[k], y0z[k]);
|
|
26
|
+
}
|
|
27
|
+
output.lineEnd();
|
|
28
|
+
output.areaEnd();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
if (defined0) {
|
|
32
|
+
x0z[i] = +x0(d, i, data), y0z[i] = +y0(d, i, data);
|
|
33
|
+
output.point(x1 ? +x1(d, i, data) : x0z[i], y1 ? +y1(d, i, data) : y0z[i]);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
if (buffer) return output = null, buffer + "" || null;
|
|
37
|
+
}
|
|
38
|
+
function arealine() {
|
|
39
|
+
return line().defined(defined).curve(curve).context(context);
|
|
40
|
+
}
|
|
41
|
+
area2.x = function(_) {
|
|
42
|
+
return arguments.length ? (x0 = typeof _ === "function" ? _ : constant(+_), x1 = null, area2) : x0;
|
|
43
|
+
};
|
|
44
|
+
area2.x0 = function(_) {
|
|
45
|
+
return arguments.length ? (x0 = typeof _ === "function" ? _ : constant(+_), area2) : x0;
|
|
46
|
+
};
|
|
47
|
+
area2.x1 = function(_) {
|
|
48
|
+
return arguments.length ? (x1 = _ == null ? null : typeof _ === "function" ? _ : constant(+_), area2) : x1;
|
|
49
|
+
};
|
|
50
|
+
area2.y = function(_) {
|
|
51
|
+
return arguments.length ? (y0 = typeof _ === "function" ? _ : constant(+_), y1 = null, area2) : y0;
|
|
52
|
+
};
|
|
53
|
+
area2.y0 = function(_) {
|
|
54
|
+
return arguments.length ? (y0 = typeof _ === "function" ? _ : constant(+_), area2) : y0;
|
|
55
|
+
};
|
|
56
|
+
area2.y1 = function(_) {
|
|
57
|
+
return arguments.length ? (y1 = _ == null ? null : typeof _ === "function" ? _ : constant(+_), area2) : y1;
|
|
58
|
+
};
|
|
59
|
+
area2.lineX0 = area2.lineY0 = function() {
|
|
60
|
+
return arealine().x(x0).y(y0);
|
|
61
|
+
};
|
|
62
|
+
area2.lineY1 = function() {
|
|
63
|
+
return arealine().x(x0).y(y1);
|
|
64
|
+
};
|
|
65
|
+
area2.lineX1 = function() {
|
|
66
|
+
return arealine().x(x1).y(y0);
|
|
67
|
+
};
|
|
68
|
+
area2.defined = function(_) {
|
|
69
|
+
return arguments.length ? (defined = typeof _ === "function" ? _ : constant(!!_), area2) : defined;
|
|
70
|
+
};
|
|
71
|
+
area2.curve = function(_) {
|
|
72
|
+
return arguments.length ? (curve = _, context != null && (output = curve(context)), area2) : curve;
|
|
73
|
+
};
|
|
74
|
+
area2.context = function(_) {
|
|
75
|
+
return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), area2) : context;
|
|
76
|
+
};
|
|
77
|
+
return area2;
|
|
78
|
+
}
|
|
79
|
+
export {
|
|
80
|
+
area as default
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../../node_modules/d3-shape/src/area.js"],"sourcesContent":["import array from \"./array.js\";\nimport constant from \"./constant.js\";\nimport curveLinear from \"./curve/linear.js\";\nimport line from \"./line.js\";\nimport {withPath} from \"./path.js\";\nimport {x as pointX, y as pointY} from \"./point.js\";\n\nexport default function(x0, y0, y1) {\n var x1 = null,\n defined = constant(true),\n context = null,\n curve = curveLinear,\n output = null,\n path = withPath(area);\n\n x0 = typeof x0 === \"function\" ? x0 : (x0 === undefined) ? pointX : constant(+x0);\n y0 = typeof y0 === \"function\" ? y0 : (y0 === undefined) ? constant(0) : constant(+y0);\n y1 = typeof y1 === \"function\" ? y1 : (y1 === undefined) ? pointY : constant(+y1);\n\n function area(data) {\n var i,\n j,\n k,\n n = (data = array(data)).length,\n d,\n defined0 = false,\n buffer,\n x0z = new Array(n),\n y0z = new Array(n);\n\n if (context == null) output = curve(buffer = path());\n\n for (i = 0; i <= n; ++i) {\n if (!(i < n && defined(d = data[i], i, data)) === defined0) {\n if (defined0 = !defined0) {\n j = i;\n output.areaStart();\n output.lineStart();\n } else {\n output.lineEnd();\n output.lineStart();\n for (k = i - 1; k >= j; --k) {\n output.point(x0z[k], y0z[k]);\n }\n output.lineEnd();\n output.areaEnd();\n }\n }\n if (defined0) {\n x0z[i] = +x0(d, i, data), y0z[i] = +y0(d, i, data);\n output.point(x1 ? +x1(d, i, data) : x0z[i], y1 ? +y1(d, i, data) : y0z[i]);\n }\n }\n\n if (buffer) return output = null, buffer + \"\" || null;\n }\n\n function arealine() {\n return line().defined(defined).curve(curve).context(context);\n }\n\n area.x = function(_) {\n return arguments.length ? (x0 = typeof _ === \"function\" ? _ : constant(+_), x1 = null, area) : x0;\n };\n\n area.x0 = function(_) {\n return arguments.length ? (x0 = typeof _ === \"function\" ? _ : constant(+_), area) : x0;\n };\n\n area.x1 = function(_) {\n return arguments.length ? (x1 = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), area) : x1;\n };\n\n area.y = function(_) {\n return arguments.length ? (y0 = typeof _ === \"function\" ? _ : constant(+_), y1 = null, area) : y0;\n };\n\n area.y0 = function(_) {\n return arguments.length ? (y0 = typeof _ === \"function\" ? _ : constant(+_), area) : y0;\n };\n\n area.y1 = function(_) {\n return arguments.length ? (y1 = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), area) : y1;\n };\n\n area.lineX0 =\n area.lineY0 = function() {\n return arealine().x(x0).y(y0);\n };\n\n area.lineY1 = function() {\n return arealine().x(x0).y(y1);\n };\n\n area.lineX1 = function() {\n return arealine().x(x1).y(y0);\n };\n\n area.defined = function(_) {\n return arguments.length ? (defined = typeof _ === \"function\" ? _ : constant(!!_), area) : defined;\n };\n\n area.curve = function(_) {\n return arguments.length ? (curve = _, context != null && (output = curve(context)), area) : curve;\n };\n\n area.context = function(_) {\n return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), area) : context;\n };\n\n return area;\n}\n"],"names":["area","pointX","pointY"],"mappings":";;;;;;AAOe,SAAA,KAAS,IAAI,IAAI,IAAI;AAClC,MAAI,KAAK,MACL,UAAU,SAAS,IAAI,GACvB,UAAU,MACV,QAAQ,aACR,SAAS,MACT,OAAO,SAASA,KAAI;AAExB,OAAK,OAAO,OAAO,aAAa,KAAM,OAAO,SAAaC,IAAS,SAAS,CAAC,EAAE;AAC/E,OAAK,OAAO,OAAO,aAAa,KAAM,OAAO,SAAa,SAAS,CAAC,IAAI,SAAS,CAAC,EAAE;AACpF,OAAK,OAAO,OAAO,aAAa,KAAM,OAAO,SAAaC,IAAS,SAAS,CAAC,EAAE;AAE/E,WAASF,MAAK,MAAM;AAClB,QAAI,GACA,GACA,GACA,KAAK,OAAO,MAAM,IAAI,GAAG,QACzB,GACA,WAAW,OACX,QACA,MAAM,IAAI,MAAM,CAAC,GACjB,MAAM,IAAI,MAAM,CAAC;AAErB,QAAI,WAAW,KAAM,UAAS,MAAM,SAAS,MAAM;AAEnD,SAAK,IAAI,GAAG,KAAK,GAAG,EAAE,GAAG;AACvB,UAAI,EAAE,IAAI,KAAK,QAAQ,IAAI,KAAK,CAAC,GAAG,GAAG,IAAI,OAAO,UAAU;AAC1D,YAAI,WAAW,CAAC,UAAU;AACxB,cAAI;AACJ,iBAAO,UAAS;AAChB,iBAAO,UAAS;AAAA,QAClB,OAAO;AACL,iBAAO,QAAO;AACd,iBAAO,UAAS;AAChB,eAAK,IAAI,IAAI,GAAG,KAAK,GAAG,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AAU,UAAU,KAAK,OAAO,MAAM,aAAa,IAAI,SAAS,CAAC,CAAC,GAAGA,SAAQ;AAAA,EACtF;AAEA,EAAAA,MAAK,KAAK,SAAS,GAAG;AACpB,WAAO,UAAU,UAAU,KAAK,KAAK,OAAO,OAAO,OAAO,MAAM,aAAa,IAAI,SAAS,CAAC,CAAC,GAAGA,SAAQ;AAAA,EACzG;AAEA,EAAAA,MAAK,SACLA,MAAK,SAAS,WAAW;AACvB,WAAO,SAAQ,EAAG,EAAE,EAAE,EAAE,EAAE,EAAE;AAAA,EAC9B;AAEA,EAAAA,MAAK,SAAS,WAAW;AACvB,WAAO,SAAQ,EAAG,EAAE,EAAE,EAAE,EAAE,EAAE;AAAA,EAC9B;AAEA,EAAAA,MAAK,SAAS,WAAW;AACvB,WAAO,SAAQ,EAAG,EAAE,EAAE,EAAE,EAAE,EAAE;AAAA,EAC9B;AAEA,EAAAA,MAAK,UAAU,SAAS,GAAG;AACzB,WAAO,UAAU,UAAU,UAAU,OAAO,MAAM,aAAa,IAAI,SAAS,CAAC,CAAC,CAAC,GAAGA,SAAQ;AAAA,EAC5F;AAEA,EAAAA,MAAK,QAAQ,SAAS,GAAG;AACvB,WAAO,UAAU,UAAU,QAAQ,GAAG,WAAW,SAAS,SAAS,MAAM,OAAO,IAAIA,SAAQ;AAAA,EAC9F;AAEA,EAAAA,MAAK,UAAU,SAAS,GAAG;AACzB,WAAO,UAAU,UAAU,KAAK,OAAO,UAAU,SAAS,OAAO,SAAS,MAAM,UAAU,CAAC,GAAGA,SAAQ;AAAA,EACxG;AAEA,SAAOA;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("../array/index.js"),e=require("../constant/index.js"),t=require("../curve/linear/index.js"),u=require("../line/index.js"),l=require("../path/index.js"),r=require("../point/index.js");exports.default=function(i,f,o){var a=null,d=e.default(!0),c=null,y=t.default,p=null,x=l.withPath(h);function h(e){var t,u,l,r,h,s=(e=n.default(e)).length,g=!1,v=new Array(s),j=new Array(s);for(null==c&&(p=y(h=x())),t=0;t<=s;++t){if(!(t<s&&d(r=e[t],t,e))===g)if(g=!g)u=t,p.areaStart(),p.lineStart();else{for(p.lineEnd(),p.lineStart(),l=t-1;l>=u;--l)p.point(v[l],j[l]);p.lineEnd(),p.areaEnd()}g&&(v[t]=+i(r,t,e),j[t]=+f(r,t,e),p.point(a?+a(r,t,e):v[t],o?+o(r,t,e):j[t]))}if(h)return p=null,h+""||null}function s(){return u.default().defined(d).curve(y).context(c)}return i="function"==typeof i?i:void 0===i?r.x:e.default(+i),f="function"==typeof f?f:void 0===f?e.default(0):e.default(+f),o="function"==typeof o?o:void 0===o?r.y:e.default(+o),h.x=function(n){return arguments.length?(i="function"==typeof n?n:e.default(+n),a=null,h):i},h.x0=function(n){return arguments.length?(i="function"==typeof n?n:e.default(+n),h):i},h.x1=function(n){return arguments.length?(a=null==n?null:"function"==typeof n?n:e.default(+n),h):a},h.y=function(n){return arguments.length?(f="function"==typeof n?n:e.default(+n),o=null,h):f},h.y0=function(n){return arguments.length?(f="function"==typeof n?n:e.default(+n),h):f},h.y1=function(n){return arguments.length?(o=null==n?null:"function"==typeof n?n:e.default(+n),h):o},h.lineX0=h.lineY0=function(){return s().x(i).y(f)},h.lineY1=function(){return s().x(i).y(o)},h.lineX1=function(){return s().x(a).y(f)},h.defined=function(n){return arguments.length?(d="function"==typeof n?n:e.default(!!n),h):d},h.curve=function(n){return arguments.length?(y=n,null!=c&&(p=y(c)),h):y},h.context=function(n){return arguments.length?(null==n?c=p=null:p=y(c=n),h):c},h};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/d3-shape/src/area.js"],"sourcesContent":["import array from \"./array.js\";\nimport constant from \"./constant.js\";\nimport curveLinear from \"./curve/linear.js\";\nimport line from \"./line.js\";\nimport {withPath} from \"./path.js\";\nimport {x as pointX, y as pointY} from \"./point.js\";\n\nexport default function(x0, y0, y1) {\n var x1 = null,\n defined = constant(true),\n context = null,\n curve = curveLinear,\n output = null,\n path = withPath(area);\n\n x0 = typeof x0 === \"function\" ? x0 : (x0 === undefined) ? pointX : constant(+x0);\n y0 = typeof y0 === \"function\" ? y0 : (y0 === undefined) ? constant(0) : constant(+y0);\n y1 = typeof y1 === \"function\" ? y1 : (y1 === undefined) ? pointY : constant(+y1);\n\n function area(data) {\n var i,\n j,\n k,\n n = (data = array(data)).length,\n d,\n defined0 = false,\n buffer,\n x0z = new Array(n),\n y0z = new Array(n);\n\n if (context == null) output = curve(buffer = path());\n\n for (i = 0; i <= n; ++i) {\n if (!(i < n && defined(d = data[i], i, data)) === defined0) {\n if (defined0 = !defined0) {\n j = i;\n output.areaStart();\n output.lineStart();\n } else {\n output.lineEnd();\n output.lineStart();\n for (k = i - 1; k >= j; --k) {\n output.point(x0z[k], y0z[k]);\n }\n output.lineEnd();\n output.areaEnd();\n }\n }\n if (defined0) {\n x0z[i] = +x0(d, i, data), y0z[i] = +y0(d, i, data);\n output.point(x1 ? +x1(d, i, data) : x0z[i], y1 ? +y1(d, i, data) : y0z[i]);\n }\n }\n\n if (buffer) return output = null, buffer + \"\" || null;\n }\n\n function arealine() {\n return line().defined(defined).curve(curve).context(context);\n }\n\n area.x = function(_) {\n return arguments.length ? (x0 = typeof _ === \"function\" ? _ : constant(+_), x1 = null, area) : x0;\n };\n\n area.x0 = function(_) {\n return arguments.length ? (x0 = typeof _ === \"function\" ? _ : constant(+_), area) : x0;\n };\n\n area.x1 = function(_) {\n return arguments.length ? (x1 = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), area) : x1;\n };\n\n area.y = function(_) {\n return arguments.length ? (y0 = typeof _ === \"function\" ? _ : constant(+_), y1 = null, area) : y0;\n };\n\n area.y0 = function(_) {\n return arguments.length ? (y0 = typeof _ === \"function\" ? _ : constant(+_), area) : y0;\n };\n\n area.y1 = function(_) {\n return arguments.length ? (y1 = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), area) : y1;\n };\n\n area.lineX0 =\n area.lineY0 = function() {\n return arealine().x(x0).y(y0);\n };\n\n area.lineY1 = function() {\n return arealine().x(x0).y(y1);\n };\n\n area.lineX1 = function() {\n return arealine().x(x1).y(y0);\n };\n\n area.defined = function(_) {\n return arguments.length ? (defined = typeof _ === \"function\" ? _ : constant(!!_), area) : defined;\n };\n\n area.curve = function(_) {\n return arguments.length ? (curve = _, context != null && (output = curve(context)), area) : curve;\n };\n\n area.context = function(_) {\n return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), area) : context;\n };\n\n return area;\n}\n"],"names":["x0","y0","y1","x1","defined","constant","context","curve","curveLinear","output","path","withPath","area","data","i","j","k","d","buffer","n","array","length","defined0","x0z","Array","y0z","areaStart","lineStart","lineEnd","point","areaEnd","arealine","line","pointX","pointY","x","_","arguments","y","lineX0","lineY0","lineY1","lineX1"],"mappings":"0RAOe,SAASA,EAAIC,EAAIC,GAC9B,IAAIC,EAAK,KACLC,EAAUC,EAAAA,SAAS,GACnBC,EAAU,KACVC,EAAQC,EAAAA,QACRC,EAAS,KACTC,EAAOC,EAAAA,SAASC,GAMpB,SAASA,EAAKC,GACZ,IAAIC,EACAC,EACAC,EAEAC,EAEAC,EAHAC,GAAKN,EAAOO,UAAMP,IAAOQ,OAEzBC,GAAW,EAEXC,EAAM,IAAIC,MAAML,GAChBM,EAAM,IAAID,MAAML,GAIpB,IAFe,MAAXb,IAAiBG,EAASF,EAAMW,EAASR,MAExCI,EAAI,EAAGA,GAAKK,IAAKL,EAAG,CACvB,KAAMA,EAAIK,GAAKf,EAAQa,EAAIJ,EAAKC,GAAIA,EAAGD,MAAWS,EAChD,GAAIA,GAAYA,EACdP,EAAID,EACJL,EAAOiB,YACPjB,EAAOkB,gBACF,CAGL,IAFAlB,EAAOmB,UACPnB,EAAOkB,YACFX,EAAIF,EAAI,EAAGE,GAAKD,IA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,KAAMU,GAAQX,CACjG,EAEAW,EAAKX,GAAK,SAASmC,GACjB,OAAOC,UAAUhB,QAAUpB,EAAkB,mBAANmC,EAAmBA,EAAI/B,WAAU+B,GAAIxB,GAAQX,CACtF,EAEAW,EAAKV,GAAK,SAASkC,GACjB,OAAOC,UAAUhB,QAAUnB,EAAU,MAALkC,EAAY,KAAoB,mBAANA,EAAmBA,EAAI/B,EAAAA,SAAU+B,GAAIxB,GAAQV,CACzG,EAEAU,EAAK2B,OACL3B,EAAK4B,OAAS,WACZ,OAAOT,IAAWI,EAAEnC,GAAIsC,EAAErC,EAC5B,EAEAW,EAAK6B,OAAS,WACZ,OAAOV,IAAWI,EAAEnC,GAAIsC,EAAEpC,EAC5B,EAEAU,EAAK8B,OAAS,WACZ,OAAOX,IAAWI,EAAEhC,GAAImC,EAAErC,EAC5B,EAEAW,EAAKR,QAAU,SAASgC,GACtB,OAAOC,UAAUhB,QAAUjB,EAAuB,mBAANgC,EAAmBA,EAAI/B,EAAAA,UAAW+B,GAAIxB,GAAQR,CAC5F,EAEAQ,EAAKL,MAAQ,SAAS6B,GACpB,OAAOC,UAAUhB,QAAUd,EAAQ6B,EAAc,MAAX9B,IAAoBG,EAASF,EAAMD,IAAWM,GAAQL,CAC9F,EAEAK,EAAKN,QAAU,SAAS8B,GACtB,OAAOC,UAAUhB,QAAe,MAALe,EAAY9B,EAAUG,EAAS,KAAOA,EAASF,EAAMD,EAAU8B,GAAIxB,GAAQN,CACxG,EAEOM,CACT","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../../node_modules/d3-shape/src/array.js"],"sourcesContent":["export var slice = Array.prototype.slice;\n\nexport default function(x) {\n return typeof x === \"object\" && \"length\" in x\n ? x // Array, TypedArray, NodeList, array-like\n : Array.from(x); // Map, Set, iterable, string, or anything else\n}\n"],"names":[],"mappings":"AAEe,SAAA,MAAS,GAAG;AACzB,SAAO,OAAO,MAAM,YAAY,YAAY,IACxC,IACA,MAAM,KAAK,CAAC;AAClB;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/d3-shape/src/array.js"],"sourcesContent":["export var slice = Array.prototype.slice;\n\nexport default function(x) {\n return typeof x === \"object\" && \"length\" in x\n ? x // Array, TypedArray, NodeList, array-like\n : Array.from(x); // Map, Set, iterable, string, or anything else\n}\n"],"names":["x","Array","from"],"mappings":"oFAEe,SAASA,GACtB,MAAoB,iBAANA,GAAkB,WAAYA,EACxCA,EACAC,MAAMC,KAAKF,EACjB","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../../node_modules/d3-shape/src/constant.js"],"sourcesContent":["export default function(x) {\n return function constant() {\n return x;\n };\n}\n"],"names":["constant"],"mappings":"AAAe,SAAA,SAAS,GAAG;AACzB,SAAO,SAASA,YAAW;AACzB,WAAO;AAAA,EACT;AACF;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/d3-shape/src/constant.js"],"sourcesContent":["export default function(x) {\n return function constant() {\n return x;\n };\n}\n"],"names":["x"],"mappings":"oFAAe,SAASA,GACtB,OAAO,WACL,OAAOA,CACT,CACF","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
function Linear(context) {
|
|
2
|
+
this._context = context;
|
|
3
|
+
}
|
|
4
|
+
Linear.prototype = {
|
|
5
|
+
areaStart: function() {
|
|
6
|
+
this._line = 0;
|
|
7
|
+
},
|
|
8
|
+
areaEnd: function() {
|
|
9
|
+
this._line = NaN;
|
|
10
|
+
},
|
|
11
|
+
lineStart: function() {
|
|
12
|
+
this._point = 0;
|
|
13
|
+
},
|
|
14
|
+
lineEnd: function() {
|
|
15
|
+
if (this._line || this._line !== 0 && this._point === 1) this._context.closePath();
|
|
16
|
+
this._line = 1 - this._line;
|
|
17
|
+
},
|
|
18
|
+
point: function(x, y) {
|
|
19
|
+
x = +x, y = +y;
|
|
20
|
+
switch (this._point) {
|
|
21
|
+
case 0:
|
|
22
|
+
this._point = 1;
|
|
23
|
+
this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y);
|
|
24
|
+
break;
|
|
25
|
+
case 1:
|
|
26
|
+
this._point = 2;
|
|
27
|
+
default:
|
|
28
|
+
this._context.lineTo(x, y);
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
function curveLinear(context) {
|
|
34
|
+
return new Linear(context);
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
curveLinear as default
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../../../node_modules/d3-shape/src/curve/linear.js"],"sourcesContent":["function Linear(context) {\n this._context = context;\n}\n\nLinear.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; // falls through\n default: this._context.lineTo(x, y); break;\n }\n }\n};\n\nexport default function(context) {\n return new Linear(context);\n}\n"],"names":[],"mappings":"AAAA,SAAS,OAAO,SAAS;AACvB,OAAK,WAAW;AAClB;AAEA,OAAO,YAAY;AAAA,EACjB,WAAW,WAAW;AACpB,SAAK,QAAQ;AAAA,EACf;AAAA,EACA,SAAS,WAAW;AAClB,SAAK,QAAQ;AAAA,EACf;AAAA,EACA,WAAW,WAAW;AACpB,SAAK,SAAS;AAAA,EAChB;AAAA,EACA,SAAS,WAAW;AAClB,QAAI,KAAK,SAAU,KAAK,UAAU,KAAK,KAAK,WAAW,EAAI,MAAK,SAAS,UAAS;AAClF,SAAK,QAAQ,IAAI,KAAK;AAAA,EACxB;AAAA,EACA,OAAO,SAAS,GAAG,GAAG;AACpB,QAAI,CAAC,GAAG,IAAI,CAAC;AACb,YAAQ,KAAK,QAAM;AAAA,MACjB,KAAK;AAAG,aAAK,SAAS;AAAG,aAAK,QAAQ,KAAK,SAAS,OAAO,GAAG,CAAC,IAAI,KAAK,SAAS,OAAO,GAAG,CAAC;AAAG;AAAA,MAC/F,KAAK;AAAG,aAAK,SAAS;AAAA,MACtB;AAAS,aAAK,SAAS,OAAO,GAAG,CAAC;AAAG;AAAA,IAC3C;AAAA,EACE;AACF;AAEe,SAAA,YAAS,SAAS;AAC/B,SAAO,IAAI,OAAO,OAAO;AAC3B;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";function t(t){this._context=t}Object.defineProperty(exports,"__esModule",{value:!0}),t.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:this._context.lineTo(t,i)}}},exports.default=function(i){return new t(i)};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/d3-shape/src/curve/linear.js"],"sourcesContent":["function Linear(context) {\n this._context = context;\n}\n\nLinear.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; // falls through\n default: this._context.lineTo(x, y); break;\n }\n }\n};\n\nexport default function(context) {\n return new Linear(context);\n}\n"],"names":["Linear","context","this","_context","prototype","areaStart","_line","areaEnd","NaN","lineStart","_point","lineEnd","closePath","point","x","y","lineTo","moveTo"],"mappings":"aAAA,SAASA,EAAOC,GACdC,KAAKC,SAAWF,CAClB,wDAEAD,EAAOI,UAAY,CACjBC,UAAW,WACTH,KAAKI,MAAQ,CACf,EACAC,QAAS,WACPL,KAAKI,MAAQE,GACf,EACAC,UAAW,WACTP,KAAKQ,OAAS,CAChB,EACAC,QAAS,YACHT,KAAKI,OAAyB,IAAfJ,KAAKI,OAA+B,IAAhBJ,KAAKQ,SAAeR,KAAKC,SAASS,YACzEV,KAAKI,MAAQ,EAAIJ,KAAKI,KACxB,EACAO,MAAO,SAASC,EAAGC,GAEjB,OADAD,GAAKA,EAAGC,GAAKA,EACLb,KAAKQ,QACX,KAAK,EAAGR,KAAKQ,OAAS,EAAGR,KAAKI,MAAQJ,KAAKC,SAASa,OAAOF,EAAGC,GAAKb,KAAKC,SAASc,OAAOH,EAAGC,GAAI,MAC/F,KAAK,EAAGb,KAAKQ,OAAS,EACtB,QAASR,KAAKC,SAASa,OAAOF,EAAGC,GAErC,mBAGa,SAASd,GACtB,OAAO,IAAID,EAAOC,EACpB","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
function sign(x) {
|
|
2
|
+
return x < 0 ? -1 : 1;
|
|
3
|
+
}
|
|
4
|
+
function slope3(that, x2, y2) {
|
|
5
|
+
var h0 = that._x1 - that._x0, h1 = x2 - that._x1, s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0), s1 = (y2 - that._y1) / (h1 || h0 < 0 && -0), p = (s0 * h1 + s1 * h0) / (h0 + h1);
|
|
6
|
+
return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), 0.5 * Math.abs(p)) || 0;
|
|
7
|
+
}
|
|
8
|
+
function slope2(that, t) {
|
|
9
|
+
var h = that._x1 - that._x0;
|
|
10
|
+
return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t;
|
|
11
|
+
}
|
|
12
|
+
function point(that, t0, t1) {
|
|
13
|
+
var x0 = that._x0, y0 = that._y0, x1 = that._x1, y1 = that._y1, dx = (x1 - x0) / 3;
|
|
14
|
+
that._context.bezierCurveTo(x0 + dx, y0 + dx * t0, x1 - dx, y1 - dx * t1, x1, y1);
|
|
15
|
+
}
|
|
16
|
+
function MonotoneX(context) {
|
|
17
|
+
this._context = context;
|
|
18
|
+
}
|
|
19
|
+
MonotoneX.prototype = {
|
|
20
|
+
areaStart: function() {
|
|
21
|
+
this._line = 0;
|
|
22
|
+
},
|
|
23
|
+
areaEnd: function() {
|
|
24
|
+
this._line = NaN;
|
|
25
|
+
},
|
|
26
|
+
lineStart: function() {
|
|
27
|
+
this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN;
|
|
28
|
+
this._point = 0;
|
|
29
|
+
},
|
|
30
|
+
lineEnd: function() {
|
|
31
|
+
switch (this._point) {
|
|
32
|
+
case 2:
|
|
33
|
+
this._context.lineTo(this._x1, this._y1);
|
|
34
|
+
break;
|
|
35
|
+
case 3:
|
|
36
|
+
point(this, this._t0, slope2(this, this._t0));
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
if (this._line || this._line !== 0 && this._point === 1) this._context.closePath();
|
|
40
|
+
this._line = 1 - this._line;
|
|
41
|
+
},
|
|
42
|
+
point: function(x, y) {
|
|
43
|
+
var t1 = NaN;
|
|
44
|
+
x = +x, y = +y;
|
|
45
|
+
if (x === this._x1 && y === this._y1) return;
|
|
46
|
+
switch (this._point) {
|
|
47
|
+
case 0:
|
|
48
|
+
this._point = 1;
|
|
49
|
+
this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y);
|
|
50
|
+
break;
|
|
51
|
+
case 1:
|
|
52
|
+
this._point = 2;
|
|
53
|
+
break;
|
|
54
|
+
case 2:
|
|
55
|
+
this._point = 3;
|
|
56
|
+
point(this, slope2(this, t1 = slope3(this, x, y)), t1);
|
|
57
|
+
break;
|
|
58
|
+
default:
|
|
59
|
+
point(this, this._t0, t1 = slope3(this, x, y));
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
this._x0 = this._x1, this._x1 = x;
|
|
63
|
+
this._y0 = this._y1, this._y1 = y;
|
|
64
|
+
this._t0 = t1;
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
Object.create(MonotoneX.prototype).point = function(x, y) {
|
|
68
|
+
MonotoneX.prototype.point.call(this, y, x);
|
|
69
|
+
};
|
|
70
|
+
function monotoneX(context) {
|
|
71
|
+
return new MonotoneX(context);
|
|
72
|
+
}
|
|
73
|
+
export {
|
|
74
|
+
monotoneX
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../../../node_modules/d3-shape/src/curve/monotone.js"],"sourcesContent":["function sign(x) {\n return x < 0 ? -1 : 1;\n}\n\n// Calculate the slopes of the tangents (Hermite-type interpolation) based on\n// the following paper: Steffen, M. 1990. A Simple Method for Monotonic\n// Interpolation in One Dimension. Astronomy and Astrophysics, Vol. 239, NO.\n// NOV(II), P. 443, 1990.\nfunction slope3(that, x2, y2) {\n var h0 = that._x1 - that._x0,\n h1 = x2 - that._x1,\n s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0),\n s1 = (y2 - that._y1) / (h1 || h0 < 0 && -0),\n p = (s0 * h1 + s1 * h0) / (h0 + h1);\n return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), 0.5 * Math.abs(p)) || 0;\n}\n\n// Calculate a one-sided slope.\nfunction slope2(that, t) {\n var h = that._x1 - that._x0;\n return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t;\n}\n\n// According to https://en.wikipedia.org/wiki/Cubic_Hermite_spline#Representations\n// \"you can express cubic Hermite interpolation in terms of cubic Bézier curves\n// with respect to the four values p0, p0 + m0 / 3, p1 - m1 / 3, p1\".\nfunction point(that, t0, t1) {\n var x0 = that._x0,\n y0 = that._y0,\n x1 = that._x1,\n y1 = that._y1,\n dx = (x1 - x0) / 3;\n that._context.bezierCurveTo(x0 + dx, y0 + dx * t0, x1 - dx, y1 - dx * t1, x1, y1);\n}\n\nfunction MonotoneX(context) {\n this._context = context;\n}\n\nMonotoneX.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 =\n this._y0 = this._y1 =\n this._t0 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 2: this._context.lineTo(this._x1, this._y1); break;\n case 3: point(this, this._t0, slope2(this, this._t0)); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n var t1 = NaN;\n\n x = +x, y = +y;\n if (x === this._x1 && y === this._y1) return; // Ignore coincident points.\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; point(this, slope2(this, t1 = slope3(this, x, y)), t1); break;\n default: point(this, this._t0, t1 = slope3(this, x, y)); break;\n }\n\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n this._t0 = t1;\n }\n}\n\nfunction MonotoneY(context) {\n this._context = new ReflectContext(context);\n}\n\n(MonotoneY.prototype = Object.create(MonotoneX.prototype)).point = function(x, y) {\n MonotoneX.prototype.point.call(this, y, x);\n};\n\nfunction ReflectContext(context) {\n this._context = context;\n}\n\nReflectContext.prototype = {\n moveTo: function(x, y) { this._context.moveTo(y, x); },\n closePath: function() { this._context.closePath(); },\n lineTo: function(x, y) { this._context.lineTo(y, x); },\n bezierCurveTo: function(x1, y1, x2, y2, x, y) { this._context.bezierCurveTo(y1, x1, y2, x2, y, x); }\n};\n\nexport function monotoneX(context) {\n return new MonotoneX(context);\n}\n\nexport function monotoneY(context) {\n return new MonotoneY(context);\n}\n"],"names":[],"mappings":"AAAA,SAAS,KAAK,GAAG;AACf,SAAO,IAAI,IAAI,KAAK;AACtB;AAMA,SAAS,OAAO,MAAM,IAAI,IAAI;AAC5B,MAAI,KAAK,KAAK,MAAM,KAAK,KACrB,KAAK,KAAK,KAAK,KACf,MAAM,KAAK,MAAM,KAAK,QAAQ,MAAM,KAAK,KAAK,KAC9C,MAAM,KAAK,KAAK,QAAQ,MAAM,KAAK,KAAK,KACxC,KAAK,KAAK,KAAK,KAAK,OAAO,KAAK;AACpC,UAAQ,KAAK,EAAE,IAAI,KAAK,EAAE,KAAK,KAAK,IAAI,KAAK,IAAI,EAAE,GAAG,KAAK,IAAI,EAAE,GAAG,MAAM,KAAK,IAAI,CAAC,CAAC,KAAK;AAC5F;AAGA,SAAS,OAAO,MAAM,GAAG;AACvB,MAAI,IAAI,KAAK,MAAM,KAAK;AACxB,SAAO,KAAK,KAAK,KAAK,MAAM,KAAK,OAAO,IAAI,KAAK,IAAI;AACvD;AAKA,SAAS,MAAM,MAAM,IAAI,IAAI;AAC3B,MAAI,KAAK,KAAK,KACV,KAAK,KAAK,KACV,KAAK,KAAK,KACV,KAAK,KAAK,KACV,MAAM,KAAK,MAAM;AACrB,OAAK,SAAS,cAAc,KAAK,IAAI,KAAK,KAAK,IAAI,KAAK,IAAI,KAAK,KAAK,IAAI,IAAI,EAAE;AAClF;AAEA,SAAS,UAAU,SAAS;AAC1B,OAAK,WAAW;AAClB;AAEA,UAAU,YAAY;AAAA,EACpB,WAAW,WAAW;AACpB,SAAK,QAAQ;AAAA,EACf;AAAA,EACA,SAAS,WAAW;AAClB,SAA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AK,MAAM,GAAG,CAAC;AAC3C;AAaO,SAAS,UAAU,SAAS;AACjC,SAAO,IAAI,UAAU,OAAO;AAC9B;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";function t(t){return t<0?-1:1}function i(i,n,s){var e=i._x1-i._x0,_=n-i._x1,h=(i._y1-i._y0)/(e||_<0&&-0),o=(s-i._y1)/(_||e<0&&-0),a=(h*_+o*e)/(e+_);return(t(h)+t(o))*Math.min(Math.abs(h),Math.abs(o),.5*Math.abs(a))||0}function n(t,i){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-i)/2:i}function s(t,i,n){var s=t._x0,e=t._y0,_=t._x1,h=t._y1,o=(_-s)/3;t._context.bezierCurveTo(s+o,e+o*i,_-o,h-o*n,_,h)}function e(t){this._context=t}Object.defineProperty(exports,"__esModule",{value:!0}),e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:s(this,this._t0,n(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var _=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,s(this,n(this,_=i(this,t,e)),_);break;default:s(this,this._t0,_=i(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=_}}},Object.create(e.prototype).point=function(t,i){e.prototype.point.call(this,i,t)},exports.monotoneX=function(t){return new e(t)};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/d3-shape/src/curve/monotone.js"],"sourcesContent":["function sign(x) {\n return x < 0 ? -1 : 1;\n}\n\n// Calculate the slopes of the tangents (Hermite-type interpolation) based on\n// the following paper: Steffen, M. 1990. A Simple Method for Monotonic\n// Interpolation in One Dimension. Astronomy and Astrophysics, Vol. 239, NO.\n// NOV(II), P. 443, 1990.\nfunction slope3(that, x2, y2) {\n var h0 = that._x1 - that._x0,\n h1 = x2 - that._x1,\n s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0),\n s1 = (y2 - that._y1) / (h1 || h0 < 0 && -0),\n p = (s0 * h1 + s1 * h0) / (h0 + h1);\n return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), 0.5 * Math.abs(p)) || 0;\n}\n\n// Calculate a one-sided slope.\nfunction slope2(that, t) {\n var h = that._x1 - that._x0;\n return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t;\n}\n\n// According to https://en.wikipedia.org/wiki/Cubic_Hermite_spline#Representations\n// \"you can express cubic Hermite interpolation in terms of cubic Bézier curves\n// with respect to the four values p0, p0 + m0 / 3, p1 - m1 / 3, p1\".\nfunction point(that, t0, t1) {\n var x0 = that._x0,\n y0 = that._y0,\n x1 = that._x1,\n y1 = that._y1,\n dx = (x1 - x0) / 3;\n that._context.bezierCurveTo(x0 + dx, y0 + dx * t0, x1 - dx, y1 - dx * t1, x1, y1);\n}\n\nfunction MonotoneX(context) {\n this._context = context;\n}\n\nMonotoneX.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 =\n this._y0 = this._y1 =\n this._t0 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 2: this._context.lineTo(this._x1, this._y1); break;\n case 3: point(this, this._t0, slope2(this, this._t0)); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n var t1 = NaN;\n\n x = +x, y = +y;\n if (x === this._x1 && y === this._y1) return; // Ignore coincident points.\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; point(this, slope2(this, t1 = slope3(this, x, y)), t1); break;\n default: point(this, this._t0, t1 = slope3(this, x, y)); break;\n }\n\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n this._t0 = t1;\n }\n}\n\nfunction MonotoneY(context) {\n this._context = new ReflectContext(context);\n}\n\n(MonotoneY.prototype = Object.create(MonotoneX.prototype)).point = function(x, y) {\n MonotoneX.prototype.point.call(this, y, x);\n};\n\nfunction ReflectContext(context) {\n this._context = context;\n}\n\nReflectContext.prototype = {\n moveTo: function(x, y) { this._context.moveTo(y, x); },\n closePath: function() { this._context.closePath(); },\n lineTo: function(x, y) { this._context.lineTo(y, x); },\n bezierCurveTo: function(x1, y1, x2, y2, x, y) { this._context.bezierCurveTo(y1, x1, y2, x2, y, x); }\n};\n\nexport function monotoneX(context) {\n return new MonotoneX(context);\n}\n\nexport function monotoneY(context) {\n return new MonotoneY(context);\n}\n"],"names":["sign","x","slope3","that","x2","y2","h0","_x1","_x0","h1","s0","_y1","_y0","s1","p","Math","min","abs","slope2","t","h","point","t0","t1","x0","y0","x1","y1","dx","_context","bezierCurveTo","MonotoneX","context","this","prototype","areaStart","_line","areaEnd","NaN","lineStart","_t0","_point","lineEnd","lineTo","closePath","y","moveTo","Object","create","call"],"mappings":"aAAA,SAASA,EAAKC,GACZ,OAAOA,EAAI,GAAI,EAAK,CACtB,CAMA,SAASC,EAAOC,EAAMC,EAAIC,GACxB,IAAIC,EAAKH,EAAKI,IAAMJ,EAAKK,IACrBC,EAAKL,EAAKD,EAAKI,IACfG,GAAMP,EAAKQ,IAAMR,EAAKS,MAAQN,GAAMG,EAAK,IAAK,GAC9CI,GAAMR,EAAKF,EAAKQ,MAAQF,GAAMH,EAAK,IAAK,GACxCQ,GAAKJ,EAAKD,EAAKI,EAAKP,IAAOA,EAAKG,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KAAOsC,IAAMZ,KAAKtB,IAAjC,CACA,OAAQsB,KAAKQ,QACX,KAAK,EAAGR,KAAKQ,OAAS,EAAGR,KAAKG,MAAQH,KAAKJ,SAASc,OAAO1C,EAAG4C,GAAKZ,KAAKJ,SAASiB,OAAO7C,EAAG4C,GAAI,MAC/F,KAAK,EAAGZ,KAAKQ,OAAS,EAAG,MACzB,KAAK,EAAGR,KAAKQ,OAAS,EAAGpB,EAAMY,KAAMf,EAAOe,KAAMV,EAAKrB,EAAO+B,KAAMhC,EAAG4C,IAAKtB,GAAK,MACjF,QAASF,EAAMY,KAAMA,KAAKO,IAAKjB,EAAKrB,EAAO+B,KAAMhC,EAAG4C,IAGtDZ,KAAKzB,IAAMyB,KAAK1B,IAAK0B,KAAK1B,IAAMN,EAChCgC,KAAKrB,IAAMqB,KAAKtB,IAAKsB,KAAKtB,IAAMkC,EAChCZ,KAAKO,IAAMjB,CAV2B,CAWxC,GAOqBwB,OAAOC,OAAOjB,EAAUG,WAAYb,MAAQ,SAASpB,EAAG4C,GAC7Ed,EAAUG,UAAUb,MAAM4B,KAAKhB,KAAMY,EAAG5C,EAC1C,oBAaO,SAAmB+B,GACxB,OAAO,IAAID,EAAUC,EACvB","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../../node_modules/d3-shape/src/descending.js"],"sourcesContent":["export default function(a, b) {\n return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;\n}\n"],"names":[],"mappings":"AAAe,SAAA,WAAS,GAAG,GAAG;AAC5B,SAAO,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,IAAI,IAAI;AAC/C;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/d3-shape/src/descending.js"],"sourcesContent":["export default function(a, b) {\n return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;\n}\n"],"names":["a","b","NaN"],"mappings":"oFAAe,SAASA,EAAGC,GACzB,OAAOA,EAAID,GAAI,EAAKC,EAAID,EAAI,EAAIC,GAAKD,EAAI,EAAIE,GAC/C","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../../node_modules/d3-shape/src/identity.js"],"sourcesContent":["export default function(d) {\n return d;\n}\n"],"names":[],"mappings":"AAAe,SAAA,SAAS,GAAG;AACzB,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/d3-shape/src/identity.js"],"sourcesContent":["export default function(d) {\n return d;\n}\n"],"names":["d"],"mappings":"oFAAe,SAASA,GACtB,OAAOA,CACT","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import array from "../array/index.esm.js";
|
|
2
|
+
import constant from "../constant/index.esm.js";
|
|
3
|
+
import curveLinear from "../curve/linear/index.esm.js";
|
|
4
|
+
import { withPath } from "../path/index.esm.js";
|
|
5
|
+
import { x, y } from "../point/index.esm.js";
|
|
6
|
+
function line(x$1, y$1) {
|
|
7
|
+
var defined = constant(true), context = null, curve = curveLinear, output = null, path = withPath(line2);
|
|
8
|
+
x$1 = typeof x$1 === "function" ? x$1 : x$1 === void 0 ? x : constant(x$1);
|
|
9
|
+
y$1 = typeof y$1 === "function" ? y$1 : y$1 === void 0 ? y : constant(y$1);
|
|
10
|
+
function line2(data) {
|
|
11
|
+
var i, n = (data = array(data)).length, d, defined0 = false, buffer;
|
|
12
|
+
if (context == null) output = curve(buffer = path());
|
|
13
|
+
for (i = 0; i <= n; ++i) {
|
|
14
|
+
if (!(i < n && defined(d = data[i], i, data)) === defined0) {
|
|
15
|
+
if (defined0 = !defined0) output.lineStart();
|
|
16
|
+
else output.lineEnd();
|
|
17
|
+
}
|
|
18
|
+
if (defined0) output.point(+x$1(d, i, data), +y$1(d, i, data));
|
|
19
|
+
}
|
|
20
|
+
if (buffer) return output = null, buffer + "" || null;
|
|
21
|
+
}
|
|
22
|
+
line2.x = function(_) {
|
|
23
|
+
return arguments.length ? (x$1 = typeof _ === "function" ? _ : constant(+_), line2) : x$1;
|
|
24
|
+
};
|
|
25
|
+
line2.y = function(_) {
|
|
26
|
+
return arguments.length ? (y$1 = typeof _ === "function" ? _ : constant(+_), line2) : y$1;
|
|
27
|
+
};
|
|
28
|
+
line2.defined = function(_) {
|
|
29
|
+
return arguments.length ? (defined = typeof _ === "function" ? _ : constant(!!_), line2) : defined;
|
|
30
|
+
};
|
|
31
|
+
line2.curve = function(_) {
|
|
32
|
+
return arguments.length ? (curve = _, context != null && (output = curve(context)), line2) : curve;
|
|
33
|
+
};
|
|
34
|
+
line2.context = function(_) {
|
|
35
|
+
return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line2) : context;
|
|
36
|
+
};
|
|
37
|
+
return line2;
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
line as default
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../../node_modules/d3-shape/src/line.js"],"sourcesContent":["import array from \"./array.js\";\nimport constant from \"./constant.js\";\nimport curveLinear from \"./curve/linear.js\";\nimport {withPath} from \"./path.js\";\nimport {x as pointX, y as pointY} from \"./point.js\";\n\nexport default function(x, y) {\n var defined = constant(true),\n context = null,\n curve = curveLinear,\n output = null,\n path = withPath(line);\n\n x = typeof x === \"function\" ? x : (x === undefined) ? pointX : constant(x);\n y = typeof y === \"function\" ? y : (y === undefined) ? pointY : constant(y);\n\n function line(data) {\n var i,\n n = (data = array(data)).length,\n d,\n defined0 = false,\n buffer;\n\n if (context == null) output = curve(buffer = path());\n\n for (i = 0; i <= n; ++i) {\n if (!(i < n && defined(d = data[i], i, data)) === defined0) {\n if (defined0 = !defined0) output.lineStart();\n else output.lineEnd();\n }\n if (defined0) output.point(+x(d, i, data), +y(d, i, data));\n }\n\n if (buffer) return output = null, buffer + \"\" || null;\n }\n\n line.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), line) : x;\n };\n\n line.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), line) : y;\n };\n\n line.defined = function(_) {\n return arguments.length ? (defined = typeof _ === \"function\" ? _ : constant(!!_), line) : defined;\n };\n\n line.curve = function(_) {\n return arguments.length ? (curve = _, context != null && (output = curve(context)), line) : curve;\n };\n\n line.context = function(_) {\n return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line) : context;\n };\n\n return line;\n}\n"],"names":["x","y","line","pointX","pointY"],"mappings":";;;;;AAMe,SAAA,KAASA,KAAGC,KAAG;AAC5B,MAAI,UAAU,SAAS,IAAI,GACvB,UAAU,MACV,QAAQ,aACR,SAAS,MACT,OAAO,SAASC,KAAI;AAExBF,QAAI,OAAOA,QAAM,aAAaA,MAAKA,QAAM,SAAaG,IAAS,SAASH,GAAC;AACzEC,QAAI,OAAOA,QAAM,aAAaA,MAAKA,QAAM,SAAaG,IAAS,SAASH,GAAC;AAEzE,WAASC,MAAK,MAAM;AAClB,QAAI,GACA,KAAK,OAAO,MAAM,IAAI,GAAG,QACzB,GACA,WAAW,OACX;AAEJ,QAAI,WAAW,KAAM,UAAS,MAAM,SAAS,MAAM;AAEnD,SAAK,IAAI,GAAG,KAAK,GAAG,EAAE,GAAG;AACvB,UAAI,EAAE,IAAI,KAAK,QAAQ,IAAI,KAAK,CAAC,GAAG,GAAG,IAAI,OAAO,UAAU;AAC1D,YAAI,WAAW,CAAC,SAAU,QAAO,UAAS;AAAA,YACrC,QAAO,QAAO;AAAA,MACrB;AACA,UAAI,SAAU,QAAO,MAAM,CAACF,IAAE,GAAG,GAAG,IAAI,GAAG,CAACC,IAAE,GAAG,GAAG,IAAI,CAAC;AAAA,IAC3D;AAEA,QAAI,OAAQ,QAAO,SAAS,MAAM,SAAS,MAAM;AAAA,EACnD;AAEA,EAAAC,MAAK,IAAI,SAAS,GAAG;AACnB,WAAO,UAAU,UAAUF,MAAI,OAAO,MAAM,aAAa,IAAI,SAAS,CAAC,CAAC,GAAGE,SAAQF;AAAAA,EACrF;AAEA,EAAAE,MAAK,IAAI,SAAS,GAAG;AACnB,WAAO,UAAU,UAAUD,MAAI,OAAO,MAAM,aAAa,IAAI,SAAS,CAAC,CAAC,GAAGC,SAAQD;AAAAA,EACrF;AAEA,EAAAC,MAAK,UAAU,SAAS,GAAG;AACzB,WAAO,UAAU,UAAU,UAAU,OAAO,MAAM,aAAa,IAAI,SAAS,CAAC,CAAC,CAAC,GAAGA,SAAQ;AAAA,EAC5F;AAEA,EAAAA,MAAK,QAAQ,SAAS,GAAG;AACvB,WAAO,UAAU,UAAU,QAAQ,GAAG,WAAW,SAAS,SAAS,MAAM,OAAO,IAAIA,SAAQ;AAAA,EAC9F;AAEA,EAAAA,MAAK,UAAU,SAAS,GAAG;AACzB,WAAO,UAAU,UAAU,KAAK,OAAO,UAAU,SAAS,OAAO,SAAS,MAAM,UAAU,CAAC,GAAGA,SAAQ;AAAA,EACxG;AAEA,SAAOA;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("../array/index.js"),e=require("../constant/index.js"),t=require("../curve/linear/index.js"),u=require("../path/index.js"),r=require("../point/index.js");exports.default=function(l,i){var f=e.default(!0),o=null,d=t.default,a=null,c=u.withPath(p);function p(e){var t,u,r,p=(e=n.default(e)).length,s=!1;for(null==o&&(a=d(r=c())),t=0;t<=p;++t)!(t<p&&f(u=e[t],t,e))===s&&((s=!s)?a.lineStart():a.lineEnd()),s&&a.point(+l(u,t,e),+i(u,t,e));if(r)return a=null,r+""||null}return l="function"==typeof l?l:void 0===l?r.x:e.default(l),i="function"==typeof i?i:void 0===i?r.y:e.default(i),p.x=function(n){return arguments.length?(l="function"==typeof n?n:e.default(+n),p):l},p.y=function(n){return arguments.length?(i="function"==typeof n?n:e.default(+n),p):i},p.defined=function(n){return arguments.length?(f="function"==typeof n?n:e.default(!!n),p):f},p.curve=function(n){return arguments.length?(d=n,null!=o&&(a=d(o)),p):d},p.context=function(n){return arguments.length?(null==n?o=a=null:a=d(o=n),p):o},p};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/d3-shape/src/line.js"],"sourcesContent":["import array from \"./array.js\";\nimport constant from \"./constant.js\";\nimport curveLinear from \"./curve/linear.js\";\nimport {withPath} from \"./path.js\";\nimport {x as pointX, y as pointY} from \"./point.js\";\n\nexport default function(x, y) {\n var defined = constant(true),\n context = null,\n curve = curveLinear,\n output = null,\n path = withPath(line);\n\n x = typeof x === \"function\" ? x : (x === undefined) ? pointX : constant(x);\n y = typeof y === \"function\" ? y : (y === undefined) ? pointY : constant(y);\n\n function line(data) {\n var i,\n n = (data = array(data)).length,\n d,\n defined0 = false,\n buffer;\n\n if (context == null) output = curve(buffer = path());\n\n for (i = 0; i <= n; ++i) {\n if (!(i < n && defined(d = data[i], i, data)) === defined0) {\n if (defined0 = !defined0) output.lineStart();\n else output.lineEnd();\n }\n if (defined0) output.point(+x(d, i, data), +y(d, i, data));\n }\n\n if (buffer) return output = null, buffer + \"\" || null;\n }\n\n line.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), line) : x;\n };\n\n line.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), line) : y;\n };\n\n line.defined = function(_) {\n return arguments.length ? (defined = typeof _ === \"function\" ? _ : constant(!!_), line) : defined;\n };\n\n line.curve = function(_) {\n return arguments.length ? (curve = _, context != null && (output = curve(context)), line) : curve;\n };\n\n line.context = function(_) {\n return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line) : context;\n };\n\n return line;\n}\n"],"names":["x","y","defined","constant","context","curve","curveLinear","output","path","withPath","line","data","i","d","buffer","n","array","length","defined0","lineStart","lineEnd","point","pointX","pointY","_","arguments"],"mappings":"4PAMe,SAASA,EAAGC,GACzB,IAAIC,EAAUC,EAAAA,SAAS,GACnBC,EAAU,KACVC,EAAQC,EAAAA,QACRC,EAAS,KACTC,EAAOC,EAAAA,SAASC,GAKpB,SAASA,EAAKC,GACZ,IAAIC,EAEAC,EAEAC,EAHAC,GAAKJ,EAAOK,UAAML,IAAOM,OAEzBC,GAAW,EAKf,IAFe,MAAXd,IAAiBG,EAASF,EAAMS,EAASN,MAExCI,EAAI,EAAGA,GAAKG,IAAKH,IACdA,EAAIG,GAAKb,EAAQW,EAAIF,EAAKC,GAAIA,EAAGD,MAAWO,KAC5CA,GAAYA,GAAUX,EAAOY,cACrBC,WAEVF,GAAUX,EAAOc,OAAOrB,EAAEa,EAAGD,EAAGD,IAAQV,EAAEY,EAAGD,EAAGD,IAGtD,GAAIG,EAAQ,OAAOP,EAAS,KAAMO,EAAS,IAAM,IACnD,CAsBA,OA3CAd,EAAiB,mBAANA,EAAmBA,OAAW,IAANA,EAAmBsB,EAAAA,EAASnB,EAAAA,QAASH,GACxEC,EAAiB,mBAANA,EAAmBA,OAAW,IAANA,EAAmBsB,EAAAA,EAASpB,EAAAA,QAASF,GAsBxES,EAAKV,EAAI,SAASwB,GAChB,OAAOC,UAAUR,QAAUjB,EAAiB,mBAANwB,EAAmBA,EAAIrB,WAAUqB,GAAId,GAAQV,CACrF,EAEAU,EAAKT,EAAI,SAASuB,GAChB,OAAOC,UAAUR,QAAUhB,EAAiB,mBAANuB,EAAmBA,EAAIrB,WAAUqB,GAAId,GAAQT,CACrF,EAEAS,EAAKR,QAAU,SAASsB,GACtB,OAAOC,UAAUR,QAAUf,EAAuB,mBAANsB,EAAmBA,EAAIrB,EAAAA,UAAWqB,GAAId,GAAQR,CAC5F,EAEAQ,EAAKL,MAAQ,SAASmB,GACpB,OAAOC,UAAUR,QAAUZ,EAAQmB,EAAc,MAAXpB,IAAoBG,EAASF,EAAMD,IAAWM,GAAQL,CAC9F,EAEAK,EAAKN,QAAU,SAASoB,GACtB,OAAOC,UAAUR,QAAe,MAALO,EAAYpB,EAAUG,EAAS,KAAOA,EAASF,EAAMD,EAAUoB,GAAId,GAAQN,CACxG,EAEOM,CACT","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const abs = Math.abs;
|
|
2
|
+
const atan2 = Math.atan2;
|
|
3
|
+
const cos = Math.cos;
|
|
4
|
+
const max = Math.max;
|
|
5
|
+
const min = Math.min;
|
|
6
|
+
const sin = Math.sin;
|
|
7
|
+
const sqrt = Math.sqrt;
|
|
8
|
+
const epsilon = 1e-12;
|
|
9
|
+
const pi = Math.PI;
|
|
10
|
+
const halfPi = pi / 2;
|
|
11
|
+
const tau = 2 * pi;
|
|
12
|
+
function acos(x) {
|
|
13
|
+
return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);
|
|
14
|
+
}
|
|
15
|
+
function asin(x) {
|
|
16
|
+
return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x);
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
abs,
|
|
20
|
+
acos,
|
|
21
|
+
asin,
|
|
22
|
+
atan2,
|
|
23
|
+
cos,
|
|
24
|
+
epsilon,
|
|
25
|
+
halfPi,
|
|
26
|
+
max,
|
|
27
|
+
min,
|
|
28
|
+
pi,
|
|
29
|
+
sin,
|
|
30
|
+
sqrt,
|
|
31
|
+
tau
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../../node_modules/d3-shape/src/math.js"],"sourcesContent":["export const abs = Math.abs;\nexport const atan2 = Math.atan2;\nexport const cos = Math.cos;\nexport const max = Math.max;\nexport const min = Math.min;\nexport const sin = Math.sin;\nexport const sqrt = Math.sqrt;\n\nexport const epsilon = 1e-12;\nexport const pi = Math.PI;\nexport const halfPi = pi / 2;\nexport const tau = 2 * pi;\n\nexport function acos(x) {\n return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);\n}\n\nexport function asin(x) {\n return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x);\n}\n"],"names":[],"mappings":"AAAY,MAAC,MAAM,KAAK;AACZ,MAAC,QAAQ,KAAK;AACd,MAAC,MAAM,KAAK;AACZ,MAAC,MAAM,KAAK;AACZ,MAAC,MAAM,KAAK;AACZ,MAAC,MAAM,KAAK;AACZ,MAAC,OAAO,KAAK;AAEb,MAAC,UAAU;AACX,MAAC,KAAK,KAAK;AACX,MAAC,SAAS,KAAK;AACf,MAAC,MAAM,IAAI;AAEhB,SAAS,KAAK,GAAG;AACtB,SAAO,IAAI,IAAI,IAAI,IAAI,KAAK,KAAK,KAAK,KAAK,CAAC;AAC9C;AAEO,SAAS,KAAK,GAAG;AACtB,SAAO,KAAK,IAAI,SAAS,KAAK,KAAK,CAAC,SAAS,KAAK,KAAK,CAAC;AAC1D;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const t=Math.abs,s=Math.atan2,e=Math.cos,a=Math.max,o=Math.min,r=Math.sin,n=Math.sqrt,p=Math.PI,x=p/2,i=2*p;exports.abs=t,exports.acos=function(t){return t>1?0:t<-1?p:Math.acos(t)},exports.asin=function(t){return t>=1?x:t<=-1?-x:Math.asin(t)},exports.atan2=s,exports.cos=e,exports.epsilon=1e-12,exports.halfPi=x,exports.max=a,exports.min=o,exports.pi=p,exports.sin=r,exports.sqrt=n,exports.tau=i;
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/d3-shape/src/math.js"],"sourcesContent":["export const abs = Math.abs;\nexport const atan2 = Math.atan2;\nexport const cos = Math.cos;\nexport const max = Math.max;\nexport const min = Math.min;\nexport const sin = Math.sin;\nexport const sqrt = Math.sqrt;\n\nexport const epsilon = 1e-12;\nexport const pi = Math.PI;\nexport const halfPi = pi / 2;\nexport const tau = 2 * pi;\n\nexport function acos(x) {\n return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);\n}\n\nexport function asin(x) {\n return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x);\n}\n"],"names":["abs","Math","atan2","cos","max","min","sin","sqrt","pi","PI","halfPi","tau","x","acos","asin"],"mappings":"oEAAY,MAACA,EAAMC,KAAKD,IACXE,EAAQD,KAAKC,MACbC,EAAMF,KAAKE,IACXC,EAAMH,KAAKG,IACXC,EAAMJ,KAAKI,IACXC,EAAML,KAAKK,IACXC,EAAON,KAAKM,KAGZC,EAAKP,KAAKQ,GACVC,EAASF,EAAK,EACdG,EAAM,EAAIH,6BAEhB,SAAcI,GACnB,OAAOA,EAAI,EAAI,EAAIA,KAASJ,EAAKP,KAAKY,KAAKD,EAC7C,eAEO,SAAcA,GACnB,OAAOA,GAAK,EAAIF,EAASE,OAAWF,EAAST,KAAKa,KAAKF,EACzD,gDAXuB","x_google_ignoreList":[0]}
|