UNPKG

832 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.Sqrt = void 0;
4const utils_1 = require("../utils");
5const pow_1 = require("./pow");
6const d3_ticks_1 = require("../tick-methods/d3-ticks");
7class Sqrt extends pow_1.Pow {
8 getDefaultOptions() {
9 return {
10 domain: [0, 1],
11 range: [0, 1],
12 nice: false,
13 clamp: false,
14 round: false,
15 interpolate: utils_1.createInterpolateValue,
16 tickMethod: d3_ticks_1.d3Ticks,
17 tickCount: 5,
18 exponent: 0.5,
19 };
20 }
21 constructor(options) {
22 super(options);
23 }
24 update(options) {
25 super.update(options);
26 }
27 clone() {
28 return new Sqrt(this.options);
29 }
30}
31exports.Sqrt = Sqrt;
32//# sourceMappingURL=sqrt.js.map
\No newline at end of file