source: node_modules/victory-vendor/lib-vendor/d3-shape/src/curve/radial.js

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 931 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.curveRadialLinear = void 0;
7exports.default = curveRadial;
8var _linear = _interopRequireDefault(require("./linear.js"));
9function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10var curveRadialLinear = exports.curveRadialLinear = curveRadial(_linear.default);
11function Radial(curve) {
12 this._curve = curve;
13}
14Radial.prototype = {
15 areaStart: function () {
16 this._curve.areaStart();
17 },
18 areaEnd: function () {
19 this._curve.areaEnd();
20 },
21 lineStart: function () {
22 this._curve.lineStart();
23 },
24 lineEnd: function () {
25 this._curve.lineEnd();
26 },
27 point: function (a, r) {
28 this._curve.point(r * Math.sin(a), r * -Math.cos(a));
29 }
30};
31function curveRadial(curve) {
32 function radial(context) {
33 return new Radial(curve(context));
34 }
35 radial._curve = curve;
36 return radial;
37}
Note: See TracBrowser for help on using the repository browser.