From ec763e1cb7dca873caf4afbc0dfde047b51753d3 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 17 十月 2025 17:26:54 +0800
Subject: [PATCH] 2025.10.17
---
src/model/Factor.js | 38 ++++++++++++++++++++++++--------------
1 files changed, 24 insertions(+), 14 deletions(-)
diff --git a/src/model/Factor.js b/src/model/Factor.js
index 28d65ce..5a720c1 100644
--- a/src/model/Factor.js
+++ b/src/model/Factor.js
@@ -61,22 +61,32 @@
this.standardMax = -1; //鐩戞祴鍥犲瓙绫诲瀷瀵瑰簲鐨勬爣鍑嗘渶澶у��
this.legendType = Legend.S_TYPE; //鍥句緥妯″紡
+ // this.legendType = Legend.D_TYPE; //鍥句緥妯″紡
- if (options != undefined) {
- this.datas = options.datas;
- this.heights = options.heights;
- this.min = options.min;
- this.max = options.max;
- this.originMin = options.originMin;
- this.originMax = options.originMax;
+ if (typeof options === 'object') {
+ for (const key in options) {
+ if (Object.prototype.hasOwnProperty.call(options, key)) {
+ const value = options[key];
+ this[key] = value;
+ }
+ }
- this.factorName = options.factorName;
- this.factorId = options.factorId;
- this.colors = options.colors;
- this.bottomColors = options.bottomColors;
- this.bottomColor = options.bottomColor;
- this.standardMin = options.standardMin;
- this.standardMax = options.standardMax;
+ // this.datas = options.datas;
+ // this.heights = options.heights;
+ // this.min = options.min;
+ // this.max = options.max;
+ // this.originMin = options.originMin;
+ // this.originMax = options.originMax;
+
+ // this.factorName = options.factorName;
+ // this.factorId = options.factorId;
+ // this.colors = options.colors;
+ // this.bottomColors = options.bottomColors;
+ // this.bottomColor = options.bottomColor;
+ // this.standardMin = options.standardMin;
+ // this.standardMax = options.standardMax;
+
+ // this.legendType = options.legendType;
}
}
--
Gitblit v1.9.3