victory-vendor 36.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (279) hide show
  1. package/LICENSE.txt +30 -0
  2. package/README.md +70 -0
  3. package/d3-array.js +7 -0
  4. package/d3-ease.js +7 -0
  5. package/d3-interpolate.js +7 -0
  6. package/d3-scale.js +7 -0
  7. package/d3-shape.js +7 -0
  8. package/d3-time.js +7 -0
  9. package/d3-timer.js +7 -0
  10. package/es/d3-array.js +6 -0
  11. package/es/d3-color.js +6 -0
  12. package/es/d3-ease.js +6 -0
  13. package/es/d3-format.js +6 -0
  14. package/es/d3-interpolate.js +6 -0
  15. package/es/d3-path.js +6 -0
  16. package/es/d3-scale.js +6 -0
  17. package/es/d3-shape.js +6 -0
  18. package/es/d3-time-format.js +6 -0
  19. package/es/d3-time.js +6 -0
  20. package/es/d3-timer.js +6 -0
  21. package/es/internmap.js +6 -0
  22. package/lib/d3-array.js +6 -0
  23. package/lib/d3-color.js +6 -0
  24. package/lib/d3-ease.js +6 -0
  25. package/lib/d3-format.js +6 -0
  26. package/lib/d3-interpolate.js +6 -0
  27. package/lib/d3-path.js +6 -0
  28. package/lib/d3-scale.js +6 -0
  29. package/lib/d3-shape.js +6 -0
  30. package/lib/d3-time-format.js +6 -0
  31. package/lib/d3-time.js +6 -0
  32. package/lib/d3-timer.js +6 -0
  33. package/lib/internmap.js +6 -0
  34. package/lib-vendor/d3-array/LICENSE +13 -0
  35. package/lib-vendor/d3-array/src/array.js +11 -0
  36. package/lib-vendor/d3-array/src/ascending.js +10 -0
  37. package/lib-vendor/d3-array/src/bin.js +142 -0
  38. package/lib-vendor/d3-array/src/bisect.js +24 -0
  39. package/lib-vendor/d3-array/src/bisector.js +73 -0
  40. package/lib-vendor/d3-array/src/constant.js +10 -0
  41. package/lib-vendor/d3-array/src/count.js +28 -0
  42. package/lib-vendor/d3-array/src/cross.js +42 -0
  43. package/lib-vendor/d3-array/src/cumsum.js +12 -0
  44. package/lib-vendor/d3-array/src/descending.js +10 -0
  45. package/lib-vendor/d3-array/src/deviation.js +15 -0
  46. package/lib-vendor/d3-array/src/difference.js +20 -0
  47. package/lib-vendor/d3-array/src/disjoint.js +29 -0
  48. package/lib-vendor/d3-array/src/every.js +19 -0
  49. package/lib-vendor/d3-array/src/extent.js +39 -0
  50. package/lib-vendor/d3-array/src/filter.js +20 -0
  51. package/lib-vendor/d3-array/src/fsum.js +93 -0
  52. package/lib-vendor/d3-array/src/greatest.js +38 -0
  53. package/lib-vendor/d3-array/src/greatestIndex.js +30 -0
  54. package/lib-vendor/d3-array/src/group.js +85 -0
  55. package/lib-vendor/d3-array/src/groupSort.js +22 -0
  56. package/lib-vendor/d3-array/src/identity.js +10 -0
  57. package/lib-vendor/d3-array/src/index.js +567 -0
  58. package/lib-vendor/d3-array/src/intersection.js +28 -0
  59. package/lib-vendor/d3-array/src/least.js +38 -0
  60. package/lib-vendor/d3-array/src/leastIndex.js +30 -0
  61. package/lib-vendor/d3-array/src/map.js +12 -0
  62. package/lib-vendor/d3-array/src/max.js +28 -0
  63. package/lib-vendor/d3-array/src/maxIndex.js +30 -0
  64. package/lib-vendor/d3-array/src/mean.js +29 -0
  65. package/lib-vendor/d3-array/src/median.js +14 -0
  66. package/lib-vendor/d3-array/src/merge.js +16 -0
  67. package/lib-vendor/d3-array/src/min.js +28 -0
  68. package/lib-vendor/d3-array/src/minIndex.js +30 -0
  69. package/lib-vendor/d3-array/src/mode.js +40 -0
  70. package/lib-vendor/d3-array/src/nice.js +28 -0
  71. package/lib-vendor/d3-array/src/number.js +29 -0
  72. package/lib-vendor/d3-array/src/pairs.js +25 -0
  73. package/lib-vendor/d3-array/src/permute.js +10 -0
  74. package/lib-vendor/d3-array/src/quantile.js +46 -0
  75. package/lib-vendor/d3-array/src/quickselect.js +53 -0
  76. package/lib-vendor/d3-array/src/range.js +19 -0
  77. package/lib-vendor/d3-array/src/rank.js +34 -0
  78. package/lib-vendor/d3-array/src/reduce.js +32 -0
  79. package/lib-vendor/d3-array/src/reverse.js +11 -0
  80. package/lib-vendor/d3-array/src/scan.js +15 -0
  81. package/lib-vendor/d3-array/src/shuffle.js +26 -0
  82. package/lib-vendor/d3-array/src/some.js +19 -0
  83. package/lib-vendor/d3-array/src/sort.js +55 -0
  84. package/lib-vendor/d3-array/src/subset.js +14 -0
  85. package/lib-vendor/d3-array/src/sum.js +28 -0
  86. package/lib-vendor/d3-array/src/superset.js +33 -0
  87. package/lib-vendor/d3-array/src/threshold/freedmanDiaconis.js +16 -0
  88. package/lib-vendor/d3-array/src/threshold/scott.js +16 -0
  89. package/lib-vendor/d3-array/src/threshold/sturges.js +14 -0
  90. package/lib-vendor/d3-array/src/ticks.js +60 -0
  91. package/lib-vendor/d3-array/src/transpose.js +26 -0
  92. package/lib-vendor/d3-array/src/union.js +20 -0
  93. package/lib-vendor/d3-array/src/variance.js +35 -0
  94. package/lib-vendor/d3-array/src/zip.js +14 -0
  95. package/lib-vendor/d3-color/LICENSE +13 -0
  96. package/lib-vendor/d3-color/src/color.js +413 -0
  97. package/lib-vendor/d3-color/src/cubehelix.js +74 -0
  98. package/lib-vendor/d3-color/src/define.js +20 -0
  99. package/lib-vendor/d3-color/src/index.js +65 -0
  100. package/lib-vendor/d3-color/src/lab.js +146 -0
  101. package/lib-vendor/d3-color/src/math.js +10 -0
  102. package/lib-vendor/d3-ease/LICENSE +28 -0
  103. package/lib-vendor/d3-ease/src/back.js +46 -0
  104. package/lib-vendor/d3-ease/src/bounce.js +30 -0
  105. package/lib-vendor/d3-ease/src/circle.js +20 -0
  106. package/lib-vendor/d3-ease/src/cubic.js +20 -0
  107. package/lib-vendor/d3-ease/src/elastic.js +72 -0
  108. package/lib-vendor/d3-ease/src/exp.js +22 -0
  109. package/lib-vendor/d3-ease/src/index.js +247 -0
  110. package/lib-vendor/d3-ease/src/linear.js +10 -0
  111. package/lib-vendor/d3-ease/src/math.js +11 -0
  112. package/lib-vendor/d3-ease/src/poly.js +46 -0
  113. package/lib-vendor/d3-ease/src/quad.js +20 -0
  114. package/lib-vendor/d3-ease/src/sin.js +22 -0
  115. package/lib-vendor/d3-format/LICENSE +13 -0
  116. package/lib-vendor/d3-format/src/defaultLocale.js +29 -0
  117. package/lib-vendor/d3-format/src/exponent.js +12 -0
  118. package/lib-vendor/d3-format/src/formatDecimal.js +24 -0
  119. package/lib-vendor/d3-format/src/formatGroup.js +25 -0
  120. package/lib-vendor/d3-format/src/formatNumerals.js +14 -0
  121. package/lib-vendor/d3-format/src/formatPrefixAuto.js +22 -0
  122. package/lib-vendor/d3-format/src/formatRounded.js +16 -0
  123. package/lib-vendor/d3-format/src/formatSpecifier.js +45 -0
  124. package/lib-vendor/d3-format/src/formatTrim.js +29 -0
  125. package/lib-vendor/d3-format/src/formatTypes.js +31 -0
  126. package/lib-vendor/d3-format/src/identity.js +10 -0
  127. package/lib-vendor/d3-format/src/index.js +77 -0
  128. package/lib-vendor/d3-format/src/locale.js +159 -0
  129. package/lib-vendor/d3-format/src/precisionFixed.js +14 -0
  130. package/lib-vendor/d3-format/src/precisionPrefix.js +14 -0
  131. package/lib-vendor/d3-format/src/precisionRound.js +15 -0
  132. package/lib-vendor/d3-interpolate/LICENSE +13 -0
  133. package/lib-vendor/d3-interpolate/src/array.js +39 -0
  134. package/lib-vendor/d3-interpolate/src/basis.js +25 -0
  135. package/lib-vendor/d3-interpolate/src/basisClosed.js +20 -0
  136. package/lib-vendor/d3-interpolate/src/color.js +40 -0
  137. package/lib-vendor/d3-interpolate/src/constant.js +10 -0
  138. package/lib-vendor/d3-interpolate/src/cubehelix.js +43 -0
  139. package/lib-vendor/d3-interpolate/src/date.js +13 -0
  140. package/lib-vendor/d3-interpolate/src/discrete.js +13 -0
  141. package/lib-vendor/d3-interpolate/src/hcl.js +36 -0
  142. package/lib-vendor/d3-interpolate/src/hsl.js +36 -0
  143. package/lib-vendor/d3-interpolate/src/hue.js +16 -0
  144. package/lib-vendor/d3-interpolate/src/index.js +215 -0
  145. package/lib-vendor/d3-interpolate/src/lab.js +26 -0
  146. package/lib-vendor/d3-interpolate/src/number.js +12 -0
  147. package/lib-vendor/d3-interpolate/src/numberArray.js +23 -0
  148. package/lib-vendor/d3-interpolate/src/object.js +32 -0
  149. package/lib-vendor/d3-interpolate/src/piecewise.js +25 -0
  150. package/lib-vendor/d3-interpolate/src/quantize.js +14 -0
  151. package/lib-vendor/d3-interpolate/src/rgb.js +77 -0
  152. package/lib-vendor/d3-interpolate/src/round.js +12 -0
  153. package/lib-vendor/d3-interpolate/src/string.js +83 -0
  154. package/lib-vendor/d3-interpolate/src/transform/decompose.js +33 -0
  155. package/lib-vendor/d3-interpolate/src/transform/index.js +100 -0
  156. package/lib-vendor/d3-interpolate/src/transform/parse.js +30 -0
  157. package/lib-vendor/d3-interpolate/src/value.js +36 -0
  158. package/lib-vendor/d3-interpolate/src/zoom.js +75 -0
  159. package/lib-vendor/d3-path/LICENSE +13 -0
  160. package/lib-vendor/d3-path/src/index.js +15 -0
  161. package/lib-vendor/d3-path/src/path.js +120 -0
  162. package/lib-vendor/d3-scale/LICENSE +13 -0
  163. package/lib-vendor/d3-scale/src/band.js +109 -0
  164. package/lib-vendor/d3-scale/src/colors.js +12 -0
  165. package/lib-vendor/d3-scale/src/constant.js +12 -0
  166. package/lib-vendor/d3-scale/src/continuous.js +140 -0
  167. package/lib-vendor/d3-scale/src/diverging.js +121 -0
  168. package/lib-vendor/d3-scale/src/identity.js +37 -0
  169. package/lib-vendor/d3-scale/src/index.js +213 -0
  170. package/lib-vendor/d3-scale/src/init.js +46 -0
  171. package/lib-vendor/d3-scale/src/linear.js +88 -0
  172. package/lib-vendor/d3-scale/src/log.js +156 -0
  173. package/lib-vendor/d3-scale/src/nice.js +24 -0
  174. package/lib-vendor/d3-scale/src/number.js +10 -0
  175. package/lib-vendor/d3-scale/src/ordinal.js +60 -0
  176. package/lib-vendor/d3-scale/src/pow.js +59 -0
  177. package/lib-vendor/d3-scale/src/quantile.js +64 -0
  178. package/lib-vendor/d3-scale/src/quantize.js +61 -0
  179. package/lib-vendor/d3-scale/src/radial.js +72 -0
  180. package/lib-vendor/d3-scale/src/sequential.js +120 -0
  181. package/lib-vendor/d3-scale/src/sequentialQuantile.js +51 -0
  182. package/lib-vendor/d3-scale/src/symlog.js +46 -0
  183. package/lib-vendor/d3-scale/src/threshold.js +44 -0
  184. package/lib-vendor/d3-scale/src/tickFormat.js +44 -0
  185. package/lib-vendor/d3-scale/src/time.js +82 -0
  186. package/lib-vendor/d3-scale/src/utcTime.js +18 -0
  187. package/lib-vendor/d3-shape/LICENSE +13 -0
  188. package/lib-vendor/d3-shape/src/arc.js +243 -0
  189. package/lib-vendor/d3-shape/src/area.js +125 -0
  190. package/lib-vendor/d3-shape/src/areaRadial.js +51 -0
  191. package/lib-vendor/d3-shape/src/array.js +14 -0
  192. package/lib-vendor/d3-shape/src/constant.js +12 -0
  193. package/lib-vendor/d3-shape/src/curve/basis.js +76 -0
  194. package/lib-vendor/d3-shape/src/curve/basisClosed.js +90 -0
  195. package/lib-vendor/d3-shape/src/curve/basisOpen.js +64 -0
  196. package/lib-vendor/d3-shape/src/curve/bump.js +104 -0
  197. package/lib-vendor/d3-shape/src/curve/bundle.js +65 -0
  198. package/lib-vendor/d3-shape/src/curve/cardinal.js +85 -0
  199. package/lib-vendor/d3-shape/src/curve/cardinalClosed.js +99 -0
  200. package/lib-vendor/d3-shape/src/curve/cardinalOpen.js +74 -0
  201. package/lib-vendor/d3-shape/src/curve/catmullRom.js +114 -0
  202. package/lib-vendor/d3-shape/src/curve/catmullRomClosed.js +108 -0
  203. package/lib-vendor/d3-shape/src/curve/catmullRomOpen.js +83 -0
  204. package/lib-vendor/d3-shape/src/curve/linear.js +49 -0
  205. package/lib-vendor/d3-shape/src/curve/linearClosed.js +33 -0
  206. package/lib-vendor/d3-shape/src/curve/monotone.js +139 -0
  207. package/lib-vendor/d3-shape/src/curve/natural.js +82 -0
  208. package/lib-vendor/d3-shape/src/curve/radial.js +45 -0
  209. package/lib-vendor/d3-shape/src/curve/step.js +76 -0
  210. package/lib-vendor/d3-shape/src/descending.js +10 -0
  211. package/lib-vendor/d3-shape/src/identity.js +10 -0
  212. package/lib-vendor/d3-shape/src/index.js +483 -0
  213. package/lib-vendor/d3-shape/src/line.js +68 -0
  214. package/lib-vendor/d3-shape/src/lineRadial.js +33 -0
  215. package/lib-vendor/d3-shape/src/link.js +90 -0
  216. package/lib-vendor/d3-shape/src/math.js +39 -0
  217. package/lib-vendor/d3-shape/src/noop.js +8 -0
  218. package/lib-vendor/d3-shape/src/offset/diverging.js +22 -0
  219. package/lib-vendor/d3-shape/src/offset/expand.js +22 -0
  220. package/lib-vendor/d3-shape/src/offset/none.js +18 -0
  221. package/lib-vendor/d3-shape/src/offset/silhouette.js +22 -0
  222. package/lib-vendor/d3-shape/src/offset/wiggle.js +38 -0
  223. package/lib-vendor/d3-shape/src/order/appearance.js +29 -0
  224. package/lib-vendor/d3-shape/src/order/ascending.js +29 -0
  225. package/lib-vendor/d3-shape/src/order/descending.js +14 -0
  226. package/lib-vendor/d3-shape/src/order/insideOut.js +38 -0
  227. package/lib-vendor/d3-shape/src/order/none.js +15 -0
  228. package/lib-vendor/d3-shape/src/order/reverse.js +14 -0
  229. package/lib-vendor/d3-shape/src/pie.js +95 -0
  230. package/lib-vendor/d3-shape/src/point.js +15 -0
  231. package/lib-vendor/d3-shape/src/pointRadial.js +10 -0
  232. package/lib-vendor/d3-shape/src/stack.js +72 -0
  233. package/lib-vendor/d3-shape/src/symbol/asterisk.js +25 -0
  234. package/lib-vendor/d3-shape/src/symbol/circle.js +18 -0
  235. package/lib-vendor/d3-shape/src/symbol/cross.js +29 -0
  236. package/lib-vendor/d3-shape/src/symbol/diamond.js +24 -0
  237. package/lib-vendor/d3-shape/src/symbol/diamond2.js +21 -0
  238. package/lib-vendor/d3-shape/src/symbol/plus.js +20 -0
  239. package/lib-vendor/d3-shape/src/symbol/square.js +18 -0
  240. package/lib-vendor/d3-shape/src/symbol/square2.js +21 -0
  241. package/lib-vendor/d3-shape/src/symbol/star.js +34 -0
  242. package/lib-vendor/d3-shape/src/symbol/triangle.js +21 -0
  243. package/lib-vendor/d3-shape/src/symbol/triangle2.js +24 -0
  244. package/lib-vendor/d3-shape/src/symbol/wye.js +36 -0
  245. package/lib-vendor/d3-shape/src/symbol/x.js +20 -0
  246. package/lib-vendor/d3-shape/src/symbol.js +73 -0
  247. package/lib-vendor/d3-time/LICENSE +13 -0
  248. package/lib-vendor/d3-time/src/day.js +18 -0
  249. package/lib-vendor/d3-time/src/duration.js +20 -0
  250. package/lib-vendor/d3-time/src/hour.js +26 -0
  251. package/lib-vendor/d3-time/src/index.js +433 -0
  252. package/lib-vendor/d3-time/src/interval.js +79 -0
  253. package/lib-vendor/d3-time/src/millisecond.js +35 -0
  254. package/lib-vendor/d3-time/src/minute.js +26 -0
  255. package/lib-vendor/d3-time/src/month.js +25 -0
  256. package/lib-vendor/d3-time/src/second.js +26 -0
  257. package/lib-vendor/d3-time/src/ticks.js +71 -0
  258. package/lib-vendor/d3-time/src/utcDay.js +26 -0
  259. package/lib-vendor/d3-time/src/utcHour.js +26 -0
  260. package/lib-vendor/d3-time/src/utcMinute.js +26 -0
  261. package/lib-vendor/d3-time/src/utcMonth.js +25 -0
  262. package/lib-vendor/d3-time/src/utcWeek.js +52 -0
  263. package/lib-vendor/d3-time/src/utcYear.js +36 -0
  264. package/lib-vendor/d3-time/src/week.js +52 -0
  265. package/lib-vendor/d3-time/src/year.js +36 -0
  266. package/lib-vendor/d3-time-format/LICENSE +13 -0
  267. package/lib-vendor/d3-time-format/src/defaultLocale.js +40 -0
  268. package/lib-vendor/d3-time-format/src/index.js +67 -0
  269. package/lib-vendor/d3-time-format/src/isoFormat.js +19 -0
  270. package/lib-vendor/d3-time-format/src/isoParse.js +19 -0
  271. package/lib-vendor/d3-time-format/src/locale.js +713 -0
  272. package/lib-vendor/d3-timer/LICENSE +13 -0
  273. package/lib-vendor/d3-timer/src/index.js +43 -0
  274. package/lib-vendor/d3-timer/src/interval.js +30 -0
  275. package/lib-vendor/d3-timer/src/timeout.js +18 -0
  276. package/lib-vendor/d3-timer/src/timer.js +138 -0
  277. package/lib-vendor/internmap/LICENSE +13 -0
  278. package/lib-vendor/internmap/src/index.js +111 -0
  279. package/package.json +43 -0
@@ -0,0 +1,243 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+
8
+ var _index = require("../../../lib-vendor/d3-path/src/index.js");
9
+
10
+ var _constant = _interopRequireDefault(require("./constant.js"));
11
+
12
+ var _math = require("./math.js");
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+
16
+ function arcInnerRadius(d) {
17
+ return d.innerRadius;
18
+ }
19
+
20
+ function arcOuterRadius(d) {
21
+ return d.outerRadius;
22
+ }
23
+
24
+ function arcStartAngle(d) {
25
+ return d.startAngle;
26
+ }
27
+
28
+ function arcEndAngle(d) {
29
+ return d.endAngle;
30
+ }
31
+
32
+ function arcPadAngle(d) {
33
+ return d && d.padAngle; // Note: optional!
34
+ }
35
+
36
+ function intersect(x0, y0, x1, y1, x2, y2, x3, y3) {
37
+ var x10 = x1 - x0,
38
+ y10 = y1 - y0,
39
+ x32 = x3 - x2,
40
+ y32 = y3 - y2,
41
+ t = y32 * x10 - x32 * y10;
42
+ if (t * t < _math.epsilon) return;
43
+ t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / t;
44
+ return [x0 + t * x10, y0 + t * y10];
45
+ } // Compute perpendicular offset line of length rc.
46
+ // http://mathworld.wolfram.com/Circle-LineIntersection.html
47
+
48
+
49
+ function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {
50
+ var x01 = x0 - x1,
51
+ y01 = y0 - y1,
52
+ lo = (cw ? rc : -rc) / (0, _math.sqrt)(x01 * x01 + y01 * y01),
53
+ ox = lo * y01,
54
+ oy = -lo * x01,
55
+ x11 = x0 + ox,
56
+ y11 = y0 + oy,
57
+ x10 = x1 + ox,
58
+ y10 = y1 + oy,
59
+ x00 = (x11 + x10) / 2,
60
+ y00 = (y11 + y10) / 2,
61
+ dx = x10 - x11,
62
+ dy = y10 - y11,
63
+ d2 = dx * dx + dy * dy,
64
+ r = r1 - rc,
65
+ D = x11 * y10 - x10 * y11,
66
+ d = (dy < 0 ? -1 : 1) * (0, _math.sqrt)((0, _math.max)(0, r * r * d2 - D * D)),
67
+ cx0 = (D * dy - dx * d) / d2,
68
+ cy0 = (-D * dx - dy * d) / d2,
69
+ cx1 = (D * dy + dx * d) / d2,
70
+ cy1 = (-D * dx + dy * d) / d2,
71
+ dx0 = cx0 - x00,
72
+ dy0 = cy0 - y00,
73
+ dx1 = cx1 - x00,
74
+ dy1 = cy1 - y00; // Pick the closer of the two intersection points.
75
+ // TODO Is there a faster way to determine which intersection to use?
76
+
77
+ if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;
78
+ return {
79
+ cx: cx0,
80
+ cy: cy0,
81
+ x01: -ox,
82
+ y01: -oy,
83
+ x11: cx0 * (r1 / r - 1),
84
+ y11: cy0 * (r1 / r - 1)
85
+ };
86
+ }
87
+
88
+ function _default() {
89
+ var innerRadius = arcInnerRadius,
90
+ outerRadius = arcOuterRadius,
91
+ cornerRadius = (0, _constant.default)(0),
92
+ padRadius = null,
93
+ startAngle = arcStartAngle,
94
+ endAngle = arcEndAngle,
95
+ padAngle = arcPadAngle,
96
+ context = null;
97
+
98
+ function arc() {
99
+ var buffer,
100
+ r,
101
+ r0 = +innerRadius.apply(this, arguments),
102
+ r1 = +outerRadius.apply(this, arguments),
103
+ a0 = startAngle.apply(this, arguments) - _math.halfPi,
104
+ a1 = endAngle.apply(this, arguments) - _math.halfPi,
105
+ da = (0, _math.abs)(a1 - a0),
106
+ cw = a1 > a0;
107
+
108
+ if (!context) context = buffer = (0, _index.path)(); // Ensure that the outer radius is always larger than the inner radius.
109
+
110
+ if (r1 < r0) r = r1, r1 = r0, r0 = r; // Is it a point?
111
+
112
+ if (!(r1 > _math.epsilon)) context.moveTo(0, 0); // Or is it a circle or annulus?
113
+ else if (da > _math.tau - _math.epsilon) {
114
+ context.moveTo(r1 * (0, _math.cos)(a0), r1 * (0, _math.sin)(a0));
115
+ context.arc(0, 0, r1, a0, a1, !cw);
116
+
117
+ if (r0 > _math.epsilon) {
118
+ context.moveTo(r0 * (0, _math.cos)(a1), r0 * (0, _math.sin)(a1));
119
+ context.arc(0, 0, r0, a1, a0, cw);
120
+ }
121
+ } // Or is it a circular or annular sector?
122
+ else {
123
+ var a01 = a0,
124
+ a11 = a1,
125
+ a00 = a0,
126
+ a10 = a1,
127
+ da0 = da,
128
+ da1 = da,
129
+ ap = padAngle.apply(this, arguments) / 2,
130
+ rp = ap > _math.epsilon && (padRadius ? +padRadius.apply(this, arguments) : (0, _math.sqrt)(r0 * r0 + r1 * r1)),
131
+ rc = (0, _math.min)((0, _math.abs)(r1 - r0) / 2, +cornerRadius.apply(this, arguments)),
132
+ rc0 = rc,
133
+ rc1 = rc,
134
+ t0,
135
+ t1; // Apply padding? Note that since r1 ≥ r0, da1 ≥ da0.
136
+
137
+ if (rp > _math.epsilon) {
138
+ var p0 = (0, _math.asin)(rp / r0 * (0, _math.sin)(ap)),
139
+ p1 = (0, _math.asin)(rp / r1 * (0, _math.sin)(ap));
140
+ if ((da0 -= p0 * 2) > _math.epsilon) p0 *= cw ? 1 : -1, a00 += p0, a10 -= p0;else da0 = 0, a00 = a10 = (a0 + a1) / 2;
141
+ if ((da1 -= p1 * 2) > _math.epsilon) p1 *= cw ? 1 : -1, a01 += p1, a11 -= p1;else da1 = 0, a01 = a11 = (a0 + a1) / 2;
142
+ }
143
+
144
+ var x01 = r1 * (0, _math.cos)(a01),
145
+ y01 = r1 * (0, _math.sin)(a01),
146
+ x10 = r0 * (0, _math.cos)(a10),
147
+ y10 = r0 * (0, _math.sin)(a10); // Apply rounded corners?
148
+
149
+ if (rc > _math.epsilon) {
150
+ var x11 = r1 * (0, _math.cos)(a11),
151
+ y11 = r1 * (0, _math.sin)(a11),
152
+ x00 = r0 * (0, _math.cos)(a00),
153
+ y00 = r0 * (0, _math.sin)(a00),
154
+ oc; // Restrict the corner radius according to the sector angle.
155
+
156
+ if (da < _math.pi && (oc = intersect(x01, y01, x00, y00, x11, y11, x10, y10))) {
157
+ var ax = x01 - oc[0],
158
+ ay = y01 - oc[1],
159
+ bx = x11 - oc[0],
160
+ by = y11 - oc[1],
161
+ kc = 1 / (0, _math.sin)((0, _math.acos)((ax * bx + ay * by) / ((0, _math.sqrt)(ax * ax + ay * ay) * (0, _math.sqrt)(bx * bx + by * by))) / 2),
162
+ lc = (0, _math.sqrt)(oc[0] * oc[0] + oc[1] * oc[1]);
163
+ rc0 = (0, _math.min)(rc, (r0 - lc) / (kc - 1));
164
+ rc1 = (0, _math.min)(rc, (r1 - lc) / (kc + 1));
165
+ }
166
+ } // Is the sector collapsed to a line?
167
+
168
+
169
+ if (!(da1 > _math.epsilon)) context.moveTo(x01, y01); // Does the sector’s outer ring have rounded corners?
170
+ else if (rc1 > _math.epsilon) {
171
+ t0 = cornerTangents(x00, y00, x01, y01, r1, rc1, cw);
172
+ t1 = cornerTangents(x11, y11, x10, y10, r1, rc1, cw);
173
+ context.moveTo(t0.cx + t0.x01, t0.cy + t0.y01); // Have the corners merged?
174
+
175
+ if (rc1 < rc) context.arc(t0.cx, t0.cy, rc1, (0, _math.atan2)(t0.y01, t0.x01), (0, _math.atan2)(t1.y01, t1.x01), !cw); // Otherwise, draw the two corners and the ring.
176
+ else {
177
+ context.arc(t0.cx, t0.cy, rc1, (0, _math.atan2)(t0.y01, t0.x01), (0, _math.atan2)(t0.y11, t0.x11), !cw);
178
+ context.arc(0, 0, r1, (0, _math.atan2)(t0.cy + t0.y11, t0.cx + t0.x11), (0, _math.atan2)(t1.cy + t1.y11, t1.cx + t1.x11), !cw);
179
+ context.arc(t1.cx, t1.cy, rc1, (0, _math.atan2)(t1.y11, t1.x11), (0, _math.atan2)(t1.y01, t1.x01), !cw);
180
+ }
181
+ } // Or is the outer ring just a circular arc?
182
+ else context.moveTo(x01, y01), context.arc(0, 0, r1, a01, a11, !cw); // Is there no inner ring, and it’s a circular sector?
183
+ // Or perhaps it’s an annular sector collapsed due to padding?
184
+
185
+ if (!(r0 > _math.epsilon) || !(da0 > _math.epsilon)) context.lineTo(x10, y10); // Does the sector’s inner ring (or point) have rounded corners?
186
+ else if (rc0 > _math.epsilon) {
187
+ t0 = cornerTangents(x10, y10, x11, y11, r0, -rc0, cw);
188
+ t1 = cornerTangents(x01, y01, x00, y00, r0, -rc0, cw);
189
+ context.lineTo(t0.cx + t0.x01, t0.cy + t0.y01); // Have the corners merged?
190
+
191
+ if (rc0 < rc) context.arc(t0.cx, t0.cy, rc0, (0, _math.atan2)(t0.y01, t0.x01), (0, _math.atan2)(t1.y01, t1.x01), !cw); // Otherwise, draw the two corners and the ring.
192
+ else {
193
+ context.arc(t0.cx, t0.cy, rc0, (0, _math.atan2)(t0.y01, t0.x01), (0, _math.atan2)(t0.y11, t0.x11), !cw);
194
+ context.arc(0, 0, r0, (0, _math.atan2)(t0.cy + t0.y11, t0.cx + t0.x11), (0, _math.atan2)(t1.cy + t1.y11, t1.cx + t1.x11), cw);
195
+ context.arc(t1.cx, t1.cy, rc0, (0, _math.atan2)(t1.y11, t1.x11), (0, _math.atan2)(t1.y01, t1.x01), !cw);
196
+ }
197
+ } // Or is the inner ring just a circular arc?
198
+ else context.arc(0, 0, r0, a10, a00, cw);
199
+ }
200
+ context.closePath();
201
+ if (buffer) return context = null, buffer + "" || null;
202
+ }
203
+
204
+ arc.centroid = function () {
205
+ var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2,
206
+ a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - _math.pi / 2;
207
+ return [(0, _math.cos)(a) * r, (0, _math.sin)(a) * r];
208
+ };
209
+
210
+ arc.innerRadius = function (_) {
211
+ return arguments.length ? (innerRadius = typeof _ === "function" ? _ : (0, _constant.default)(+_), arc) : innerRadius;
212
+ };
213
+
214
+ arc.outerRadius = function (_) {
215
+ return arguments.length ? (outerRadius = typeof _ === "function" ? _ : (0, _constant.default)(+_), arc) : outerRadius;
216
+ };
217
+
218
+ arc.cornerRadius = function (_) {
219
+ return arguments.length ? (cornerRadius = typeof _ === "function" ? _ : (0, _constant.default)(+_), arc) : cornerRadius;
220
+ };
221
+
222
+ arc.padRadius = function (_) {
223
+ return arguments.length ? (padRadius = _ == null ? null : typeof _ === "function" ? _ : (0, _constant.default)(+_), arc) : padRadius;
224
+ };
225
+
226
+ arc.startAngle = function (_) {
227
+ return arguments.length ? (startAngle = typeof _ === "function" ? _ : (0, _constant.default)(+_), arc) : startAngle;
228
+ };
229
+
230
+ arc.endAngle = function (_) {
231
+ return arguments.length ? (endAngle = typeof _ === "function" ? _ : (0, _constant.default)(+_), arc) : endAngle;
232
+ };
233
+
234
+ arc.padAngle = function (_) {
235
+ return arguments.length ? (padAngle = typeof _ === "function" ? _ : (0, _constant.default)(+_), arc) : padAngle;
236
+ };
237
+
238
+ arc.context = function (_) {
239
+ return arguments.length ? (context = _ == null ? null : _, arc) : context;
240
+ };
241
+
242
+ return arc;
243
+ }
@@ -0,0 +1,125 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+
8
+ var _index = require("../../../lib-vendor/d3-path/src/index.js");
9
+
10
+ var _array = _interopRequireDefault(require("./array.js"));
11
+
12
+ var _constant = _interopRequireDefault(require("./constant.js"));
13
+
14
+ var _linear = _interopRequireDefault(require("./curve/linear.js"));
15
+
16
+ var _line = _interopRequireDefault(require("./line.js"));
17
+
18
+ var _point = require("./point.js");
19
+
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
+
22
+ function _default(x0, y0, y1) {
23
+ var x1 = null,
24
+ defined = (0, _constant.default)(true),
25
+ context = null,
26
+ curve = _linear.default,
27
+ output = null;
28
+ x0 = typeof x0 === "function" ? x0 : x0 === undefined ? _point.x : (0, _constant.default)(+x0);
29
+ y0 = typeof y0 === "function" ? y0 : y0 === undefined ? (0, _constant.default)(0) : (0, _constant.default)(+y0);
30
+ y1 = typeof y1 === "function" ? y1 : y1 === undefined ? _point.y : (0, _constant.default)(+y1);
31
+
32
+ function area(data) {
33
+ var i,
34
+ j,
35
+ k,
36
+ n = (data = (0, _array.default)(data)).length,
37
+ d,
38
+ defined0 = false,
39
+ buffer,
40
+ x0z = new Array(n),
41
+ y0z = new Array(n);
42
+ if (context == null) output = curve(buffer = (0, _index.path)());
43
+
44
+ for (i = 0; i <= n; ++i) {
45
+ if (!(i < n && defined(d = data[i], i, data)) === defined0) {
46
+ if (defined0 = !defined0) {
47
+ j = i;
48
+ output.areaStart();
49
+ output.lineStart();
50
+ } else {
51
+ output.lineEnd();
52
+ output.lineStart();
53
+
54
+ for (k = i - 1; k >= j; --k) {
55
+ output.point(x0z[k], y0z[k]);
56
+ }
57
+
58
+ output.lineEnd();
59
+ output.areaEnd();
60
+ }
61
+ }
62
+
63
+ if (defined0) {
64
+ x0z[i] = +x0(d, i, data), y0z[i] = +y0(d, i, data);
65
+ output.point(x1 ? +x1(d, i, data) : x0z[i], y1 ? +y1(d, i, data) : y0z[i]);
66
+ }
67
+ }
68
+
69
+ if (buffer) return output = null, buffer + "" || null;
70
+ }
71
+
72
+ function arealine() {
73
+ return (0, _line.default)().defined(defined).curve(curve).context(context);
74
+ }
75
+
76
+ area.x = function (_) {
77
+ return arguments.length ? (x0 = typeof _ === "function" ? _ : (0, _constant.default)(+_), x1 = null, area) : x0;
78
+ };
79
+
80
+ area.x0 = function (_) {
81
+ return arguments.length ? (x0 = typeof _ === "function" ? _ : (0, _constant.default)(+_), area) : x0;
82
+ };
83
+
84
+ area.x1 = function (_) {
85
+ return arguments.length ? (x1 = _ == null ? null : typeof _ === "function" ? _ : (0, _constant.default)(+_), area) : x1;
86
+ };
87
+
88
+ area.y = function (_) {
89
+ return arguments.length ? (y0 = typeof _ === "function" ? _ : (0, _constant.default)(+_), y1 = null, area) : y0;
90
+ };
91
+
92
+ area.y0 = function (_) {
93
+ return arguments.length ? (y0 = typeof _ === "function" ? _ : (0, _constant.default)(+_), area) : y0;
94
+ };
95
+
96
+ area.y1 = function (_) {
97
+ return arguments.length ? (y1 = _ == null ? null : typeof _ === "function" ? _ : (0, _constant.default)(+_), area) : y1;
98
+ };
99
+
100
+ area.lineX0 = area.lineY0 = function () {
101
+ return arealine().x(x0).y(y0);
102
+ };
103
+
104
+ area.lineY1 = function () {
105
+ return arealine().x(x0).y(y1);
106
+ };
107
+
108
+ area.lineX1 = function () {
109
+ return arealine().x(x1).y(y0);
110
+ };
111
+
112
+ area.defined = function (_) {
113
+ return arguments.length ? (defined = typeof _ === "function" ? _ : (0, _constant.default)(!!_), area) : defined;
114
+ };
115
+
116
+ area.curve = function (_) {
117
+ return arguments.length ? (curve = _, context != null && (output = curve(context)), area) : curve;
118
+ };
119
+
120
+ area.context = function (_) {
121
+ return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), area) : context;
122
+ };
123
+
124
+ return area;
125
+ }
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+
8
+ var _radial = _interopRequireWildcard(require("./curve/radial.js"));
9
+
10
+ var _area = _interopRequireDefault(require("./area.js"));
11
+
12
+ var _lineRadial = require("./lineRadial.js");
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+
16
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
+
18
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
+
20
+ function _default() {
21
+ var a = (0, _area.default)().curve(_radial.curveRadialLinear),
22
+ c = a.curve,
23
+ x0 = a.lineX0,
24
+ x1 = a.lineX1,
25
+ y0 = a.lineY0,
26
+ y1 = a.lineY1;
27
+ a.angle = a.x, delete a.x;
28
+ a.startAngle = a.x0, delete a.x0;
29
+ a.endAngle = a.x1, delete a.x1;
30
+ a.radius = a.y, delete a.y;
31
+ a.innerRadius = a.y0, delete a.y0;
32
+ a.outerRadius = a.y1, delete a.y1;
33
+ a.lineStartAngle = function () {
34
+ return (0, _lineRadial.lineRadial)(x0());
35
+ }, delete a.lineX0;
36
+ a.lineEndAngle = function () {
37
+ return (0, _lineRadial.lineRadial)(x1());
38
+ }, delete a.lineX1;
39
+ a.lineInnerRadius = function () {
40
+ return (0, _lineRadial.lineRadial)(y0());
41
+ }, delete a.lineY0;
42
+ a.lineOuterRadius = function () {
43
+ return (0, _lineRadial.lineRadial)(y1());
44
+ }, delete a.lineY1;
45
+
46
+ a.curve = function (_) {
47
+ return arguments.length ? c((0, _radial.default)(_)) : c()._curve;
48
+ };
49
+
50
+ return a;
51
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+ exports.slice = void 0;
8
+ var slice = Array.prototype.slice;
9
+ exports.slice = slice;
10
+
11
+ function _default(x) {
12
+ return typeof x === "object" && "length" in x ? x // Array, TypedArray, NodeList, array-like
13
+ : Array.from(x); // Map, Set, iterable, string, or anything else
14
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+
8
+ function _default(x) {
9
+ return function constant() {
10
+ return x;
11
+ };
12
+ }
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Basis = Basis;
7
+ exports.default = _default;
8
+ exports.point = point;
9
+
10
+ function point(that, x, y) {
11
+ that._context.bezierCurveTo((2 * that._x0 + that._x1) / 3, (2 * that._y0 + that._y1) / 3, (that._x0 + 2 * that._x1) / 3, (that._y0 + 2 * that._y1) / 3, (that._x0 + 4 * that._x1 + x) / 6, (that._y0 + 4 * that._y1 + y) / 6);
12
+ }
13
+
14
+ function Basis(context) {
15
+ this._context = context;
16
+ }
17
+
18
+ Basis.prototype = {
19
+ areaStart: function () {
20
+ this._line = 0;
21
+ },
22
+ areaEnd: function () {
23
+ this._line = NaN;
24
+ },
25
+ lineStart: function () {
26
+ this._x0 = this._x1 = this._y0 = this._y1 = NaN;
27
+ this._point = 0;
28
+ },
29
+ lineEnd: function () {
30
+ switch (this._point) {
31
+ case 3:
32
+ point(this, this._x1, this._y1);
33
+ // falls through
34
+
35
+ case 2:
36
+ this._context.lineTo(this._x1, this._y1);
37
+
38
+ break;
39
+ }
40
+
41
+ if (this._line || this._line !== 0 && this._point === 1) this._context.closePath();
42
+ this._line = 1 - this._line;
43
+ },
44
+ point: function (x, y) {
45
+ x = +x, y = +y;
46
+
47
+ switch (this._point) {
48
+ case 0:
49
+ this._point = 1;
50
+ this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y);
51
+ break;
52
+
53
+ case 1:
54
+ this._point = 2;
55
+ break;
56
+
57
+ case 2:
58
+ this._point = 3;
59
+
60
+ this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
61
+
62
+ // falls through
63
+
64
+ default:
65
+ point(this, x, y);
66
+ break;
67
+ }
68
+
69
+ this._x0 = this._x1, this._x1 = x;
70
+ this._y0 = this._y1, this._y1 = y;
71
+ }
72
+ };
73
+
74
+ function _default(context) {
75
+ return new Basis(context);
76
+ }
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+
8
+ var _noop = _interopRequireDefault(require("../noop.js"));
9
+
10
+ var _basis = require("./basis.js");
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ function BasisClosed(context) {
15
+ this._context = context;
16
+ }
17
+
18
+ BasisClosed.prototype = {
19
+ areaStart: _noop.default,
20
+ areaEnd: _noop.default,
21
+ lineStart: function () {
22
+ this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN;
23
+ this._point = 0;
24
+ },
25
+ lineEnd: function () {
26
+ switch (this._point) {
27
+ case 1:
28
+ {
29
+ this._context.moveTo(this._x2, this._y2);
30
+
31
+ this._context.closePath();
32
+
33
+ break;
34
+ }
35
+
36
+ case 2:
37
+ {
38
+ this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3);
39
+
40
+ this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3);
41
+
42
+ this._context.closePath();
43
+
44
+ break;
45
+ }
46
+
47
+ case 3:
48
+ {
49
+ this.point(this._x2, this._y2);
50
+ this.point(this._x3, this._y3);
51
+ this.point(this._x4, this._y4);
52
+ break;
53
+ }
54
+ }
55
+ },
56
+ point: function (x, y) {
57
+ x = +x, y = +y;
58
+
59
+ switch (this._point) {
60
+ case 0:
61
+ this._point = 1;
62
+ this._x2 = x, this._y2 = y;
63
+ break;
64
+
65
+ case 1:
66
+ this._point = 2;
67
+ this._x3 = x, this._y3 = y;
68
+ break;
69
+
70
+ case 2:
71
+ this._point = 3;
72
+ this._x4 = x, this._y4 = y;
73
+
74
+ this._context.moveTo((this._x0 + 4 * this._x1 + x) / 6, (this._y0 + 4 * this._y1 + y) / 6);
75
+
76
+ break;
77
+
78
+ default:
79
+ (0, _basis.point)(this, x, y);
80
+ break;
81
+ }
82
+
83
+ this._x0 = this._x1, this._x1 = x;
84
+ this._y0 = this._y1, this._y1 = y;
85
+ }
86
+ };
87
+
88
+ function _default(context) {
89
+ return new BasisClosed(context);
90
+ }
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+
8
+ var _basis = require("./basis.js");
9
+
10
+ function BasisOpen(context) {
11
+ this._context = context;
12
+ }
13
+
14
+ BasisOpen.prototype = {
15
+ areaStart: function () {
16
+ this._line = 0;
17
+ },
18
+ areaEnd: function () {
19
+ this._line = NaN;
20
+ },
21
+ lineStart: function () {
22
+ this._x0 = this._x1 = this._y0 = this._y1 = NaN;
23
+ this._point = 0;
24
+ },
25
+ lineEnd: function () {
26
+ if (this._line || this._line !== 0 && this._point === 3) this._context.closePath();
27
+ this._line = 1 - this._line;
28
+ },
29
+ point: function (x, y) {
30
+ x = +x, y = +y;
31
+
32
+ switch (this._point) {
33
+ case 0:
34
+ this._point = 1;
35
+ break;
36
+
37
+ case 1:
38
+ this._point = 2;
39
+ break;
40
+
41
+ case 2:
42
+ this._point = 3;
43
+ var x0 = (this._x0 + 4 * this._x1 + x) / 6,
44
+ y0 = (this._y0 + 4 * this._y1 + y) / 6;
45
+ this._line ? this._context.lineTo(x0, y0) : this._context.moveTo(x0, y0);
46
+ break;
47
+
48
+ case 3:
49
+ this._point = 4;
50
+ // falls through
51
+
52
+ default:
53
+ (0, _basis.point)(this, x, y);
54
+ break;
55
+ }
56
+
57
+ this._x0 = this._x1, this._x1 = x;
58
+ this._y0 = this._y1, this._y1 = y;
59
+ }
60
+ };
61
+
62
+ function _default(context) {
63
+ return new BasisOpen(context);
64
+ }