1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.Base = void 0;
|
4 | const util_1 = require("@antv/util");
|
5 | class Base {
|
6 | |
7 |
|
8 |
|
9 |
|
10 | constructor(options) {
|
11 | this.options = (0, util_1.deepMix)({}, this.getDefaultOptions());
|
12 | this.update(options);
|
13 | }
|
14 | |
15 |
|
16 |
|
17 |
|
18 | getOptions() {
|
19 | return this.options;
|
20 | }
|
21 | |
22 |
|
23 |
|
24 |
|
25 | update(updateOptions = {}) {
|
26 | this.options = (0, util_1.deepMix)({}, this.options, updateOptions);
|
27 | this.rescale(updateOptions);
|
28 | }
|
29 | |
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 | rescale(options) { }
|
36 | }
|
37 | exports.Base = Base;
|
38 |
|
\ | No newline at end of file |