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,43 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "interval", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _interval.default;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "now", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _timer.now;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "timeout", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _timeout.default;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "timer", {
25
+ enumerable: true,
26
+ get: function () {
27
+ return _timer.timer;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "timerFlush", {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _timer.timerFlush;
34
+ }
35
+ });
36
+
37
+ var _timer = require("./timer.js");
38
+
39
+ var _timeout = _interopRequireDefault(require("./timeout.js"));
40
+
41
+ var _interval = _interopRequireDefault(require("./interval.js"));
42
+
43
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+
8
+ var _timer = require("./timer.js");
9
+
10
+ function _default(callback, delay, time) {
11
+ var t = new _timer.Timer(),
12
+ total = delay;
13
+ if (delay == null) return t.restart(callback, delay, time), t;
14
+ t._restart = t.restart;
15
+
16
+ t.restart = function (callback, delay, time) {
17
+ delay = +delay, time = time == null ? (0, _timer.now)() : +time;
18
+
19
+ t._restart(function tick(elapsed) {
20
+ elapsed += total;
21
+
22
+ t._restart(tick, total += delay, time);
23
+
24
+ callback(elapsed);
25
+ }, delay, time);
26
+ };
27
+
28
+ t.restart(callback, delay, time);
29
+ return t;
30
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+
8
+ var _timer = require("./timer.js");
9
+
10
+ function _default(callback, delay, time) {
11
+ var t = new _timer.Timer();
12
+ delay = delay == null ? 0 : +delay;
13
+ t.restart(elapsed => {
14
+ t.stop();
15
+ callback(elapsed + delay);
16
+ }, delay, time);
17
+ return t;
18
+ }
@@ -0,0 +1,138 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Timer = Timer;
7
+ exports.now = now;
8
+ exports.timer = timer;
9
+ exports.timerFlush = timerFlush;
10
+ var frame = 0,
11
+ // is an animation frame pending?
12
+ timeout = 0,
13
+ // is a timeout pending?
14
+ interval = 0,
15
+ // are any timers active?
16
+ pokeDelay = 1000,
17
+ // how frequently we check for clock skew
18
+ taskHead,
19
+ taskTail,
20
+ clockLast = 0,
21
+ clockNow = 0,
22
+ clockSkew = 0,
23
+ clock = typeof performance === "object" && performance.now ? performance : Date,
24
+ setFrame = typeof window === "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function (f) {
25
+ setTimeout(f, 17);
26
+ };
27
+
28
+ function now() {
29
+ return clockNow || (setFrame(clearNow), clockNow = clock.now() + clockSkew);
30
+ }
31
+
32
+ function clearNow() {
33
+ clockNow = 0;
34
+ }
35
+
36
+ function Timer() {
37
+ this._call = this._time = this._next = null;
38
+ }
39
+
40
+ Timer.prototype = timer.prototype = {
41
+ constructor: Timer,
42
+ restart: function (callback, delay, time) {
43
+ if (typeof callback !== "function") throw new TypeError("callback is not a function");
44
+ time = (time == null ? now() : +time) + (delay == null ? 0 : +delay);
45
+
46
+ if (!this._next && taskTail !== this) {
47
+ if (taskTail) taskTail._next = this;else taskHead = this;
48
+ taskTail = this;
49
+ }
50
+
51
+ this._call = callback;
52
+ this._time = time;
53
+ sleep();
54
+ },
55
+ stop: function () {
56
+ if (this._call) {
57
+ this._call = null;
58
+ this._time = Infinity;
59
+ sleep();
60
+ }
61
+ }
62
+ };
63
+
64
+ function timer(callback, delay, time) {
65
+ var t = new Timer();
66
+ t.restart(callback, delay, time);
67
+ return t;
68
+ }
69
+
70
+ function timerFlush() {
71
+ now(); // Get the current time, if not already set.
72
+
73
+ ++frame; // Pretend we’ve set an alarm, if we haven’t already.
74
+
75
+ var t = taskHead,
76
+ e;
77
+
78
+ while (t) {
79
+ if ((e = clockNow - t._time) >= 0) t._call.call(undefined, e);
80
+ t = t._next;
81
+ }
82
+
83
+ --frame;
84
+ }
85
+
86
+ function wake() {
87
+ clockNow = (clockLast = clock.now()) + clockSkew;
88
+ frame = timeout = 0;
89
+
90
+ try {
91
+ timerFlush();
92
+ } finally {
93
+ frame = 0;
94
+ nap();
95
+ clockNow = 0;
96
+ }
97
+ }
98
+
99
+ function poke() {
100
+ var now = clock.now(),
101
+ delay = now - clockLast;
102
+ if (delay > pokeDelay) clockSkew -= delay, clockLast = now;
103
+ }
104
+
105
+ function nap() {
106
+ var t0,
107
+ t1 = taskHead,
108
+ t2,
109
+ time = Infinity;
110
+
111
+ while (t1) {
112
+ if (t1._call) {
113
+ if (time > t1._time) time = t1._time;
114
+ t0 = t1, t1 = t1._next;
115
+ } else {
116
+ t2 = t1._next, t1._next = null;
117
+ t1 = t0 ? t0._next = t2 : taskHead = t2;
118
+ }
119
+ }
120
+
121
+ taskTail = t0;
122
+ sleep(time);
123
+ }
124
+
125
+ function sleep(time) {
126
+ if (frame) return; // Soonest alarm already set, or will be.
127
+
128
+ if (timeout) timeout = clearTimeout(timeout);
129
+ var delay = time - clockNow; // Strictly less than if we recomputed clockNow.
130
+
131
+ if (delay > 24) {
132
+ if (time < Infinity) timeout = setTimeout(wake, time - clock.now() - clockSkew);
133
+ if (interval) interval = clearInterval(interval);
134
+ } else {
135
+ if (!interval) clockLast = clock.now(), interval = setInterval(poke, pokeDelay);
136
+ frame = 1, setFrame(wake);
137
+ }
138
+ }
@@ -0,0 +1,13 @@
1
+ Copyright 2021 Mike Bostock
2
+
3
+ Permission to use, copy, modify, and/or distribute this software for any purpose
4
+ with or without fee is hereby granted, provided that the above copyright notice
5
+ and this permission notice appear in all copies.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
9
+ FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
11
+ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
12
+ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
13
+ THIS SOFTWARE.
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.InternSet = exports.InternMap = void 0;
7
+
8
+ class InternMap extends Map {
9
+ constructor(entries, key = keyof) {
10
+ super();
11
+ Object.defineProperties(this, {
12
+ _intern: {
13
+ value: new Map()
14
+ },
15
+ _key: {
16
+ value: key
17
+ }
18
+ });
19
+ if (entries != null) for (const [key, value] of entries) this.set(key, value);
20
+ }
21
+
22
+ get(key) {
23
+ return super.get(intern_get(this, key));
24
+ }
25
+
26
+ has(key) {
27
+ return super.has(intern_get(this, key));
28
+ }
29
+
30
+ set(key, value) {
31
+ return super.set(intern_set(this, key), value);
32
+ }
33
+
34
+ delete(key) {
35
+ return super.delete(intern_delete(this, key));
36
+ }
37
+
38
+ }
39
+
40
+ exports.InternMap = InternMap;
41
+
42
+ class InternSet extends Set {
43
+ constructor(values, key = keyof) {
44
+ super();
45
+ Object.defineProperties(this, {
46
+ _intern: {
47
+ value: new Map()
48
+ },
49
+ _key: {
50
+ value: key
51
+ }
52
+ });
53
+ if (values != null) for (const value of values) this.add(value);
54
+ }
55
+
56
+ has(value) {
57
+ return super.has(intern_get(this, value));
58
+ }
59
+
60
+ add(value) {
61
+ return super.add(intern_set(this, value));
62
+ }
63
+
64
+ delete(value) {
65
+ return super.delete(intern_delete(this, value));
66
+ }
67
+
68
+ }
69
+
70
+ exports.InternSet = InternSet;
71
+
72
+ function intern_get({
73
+ _intern,
74
+ _key
75
+ }, value) {
76
+ const key = _key(value);
77
+
78
+ return _intern.has(key) ? _intern.get(key) : value;
79
+ }
80
+
81
+ function intern_set({
82
+ _intern,
83
+ _key
84
+ }, value) {
85
+ const key = _key(value);
86
+
87
+ if (_intern.has(key)) return _intern.get(key);
88
+
89
+ _intern.set(key, value);
90
+
91
+ return value;
92
+ }
93
+
94
+ function intern_delete({
95
+ _intern,
96
+ _key
97
+ }, value) {
98
+ const key = _key(value);
99
+
100
+ if (_intern.has(key)) {
101
+ value = _intern.get(key);
102
+
103
+ _intern.delete(key);
104
+ }
105
+
106
+ return value;
107
+ }
108
+
109
+ function keyof(value) {
110
+ return value !== null && typeof value === "object" ? value.valueOf() : value;
111
+ }
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "victory-vendor",
3
+ "version": "36.4.0",
4
+ "description": "Vendored dependencies for Victory",
5
+ "keywords": [
6
+ "data visualization",
7
+ "React",
8
+ "d3",
9
+ "charting"
10
+ ],
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/formidablelabs/victory.git"
14
+ },
15
+ "homepage": "https://formidable.com/open-source/victory",
16
+ "author": "Formidable",
17
+ "license": "MIT AND ISC",
18
+ "exports": {
19
+ "./d3-*": {
20
+ "import": "./es/d3-*.js",
21
+ "default": "./lib/d3-*.js"
22
+ }
23
+ },
24
+ "scripts": {
25
+ "version": "yarn run build",
26
+ "build": "node ./scripts/build.js"
27
+ },
28
+ "dependencies": {
29
+ "d3-array": "^3.1.6",
30
+ "d3-ease": "^3.0.1",
31
+ "d3-interpolate": "^3.0.1",
32
+ "d3-scale": "^4.0.2",
33
+ "d3-shape": "^3.1.0",
34
+ "d3-time": "^3.0.0",
35
+ "d3-timer": "^3.0.1"
36
+ },
37
+ "devDependencies": {
38
+ "execa": "^6.1.0",
39
+ "rimraf": "^3.0.2"
40
+ },
41
+ "sideEffects": false,
42
+ "gitHead": "2e05481eeb34f9801a90023a131a21aa7deff082"
43
+ }