|
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 |
|
|---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
|---|
| 4 | value: true
|
|---|
| 5 | });
|
|---|
| 6 | exports.curveRadialLinear = void 0;
|
|---|
| 7 | exports.default = curveRadial;
|
|---|
| 8 | var _linear = _interopRequireDefault(require("./linear.js"));
|
|---|
| 9 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|---|
| 10 | var curveRadialLinear = exports.curveRadialLinear = curveRadial(_linear.default);
|
|---|
| 11 | function Radial(curve) {
|
|---|
| 12 | this._curve = curve;
|
|---|
| 13 | }
|
|---|
| 14 | Radial.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 | };
|
|---|
| 31 | function 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.