(data, layer, fields, setting, lonlat, options)
| 27 | |
| 28 | |
| 29 | constructor(data, layer, fields, setting, lonlat, options) { |
| 30 | super(data, layer, fields, setting, lonlat, options); |
| 31 | |
| 32 | /** |
| 33 | * @member {FeatureShapeFactory} FeatureThemeGraph.prototype.shapeFactory |
| 34 | * @description 内置的图形工厂对象,调用其 createShape 方法创建图形。 |
| 35 | */ |
| 36 | this.shapeFactory = new ShapeFactory(); |
| 37 | |
| 38 | /** |
| 39 | * @member {Object} FeatureThemeGraph.prototype.shapeParameters |
| 40 | * @description 当前图形参数对象,<{@link ShapeParameters}> 的子类对象。 |
| 41 | */ |
| 42 | this.shapeParameters = null; |
| 43 | |
| 44 | /** |
| 45 | * @member {boolean} [FeatureThemeGraph.prototype.RelativeCoordinate] |
| 46 | * @description 图形是否已经计算了相对坐标。 |
| 47 | */ |
| 48 | this.RelativeCoordinate = false; |
| 49 | |
| 50 | /** |
| 51 | * @member {Object} FeatureThemeGraph.prototype.setting |
| 52 | * @description 图表配置对象,该对象控制着图表的可视化显示。 |
| 53 | * @param {number} width - 专题要素(图表)宽度,单位为像素。 |
| 54 | * @param {number} height - 专题要素(图表)高度,单位为像素。 |
| 55 | * @param {Array.<number>} codomain - 值域,长度为 2 的一维数组,第一个元素表示值域下限,第二个元素表示值域上限。 |
| 56 | * @param {number} [XOffset] - 专题要素(图表)在 X 方向上的偏移值,单位为像素。 |
| 57 | * @param {number} [YOffset] - 专题要素(图表)在 Y 方向上的偏移值,单位为像素。 |
| 58 | * @param {Array.<number>} [dataViewBoxParameter] - 数据视图框 dataViewBox 参数,它是指图表框 chartBox |
| 59 | * (由图表位置、图表宽度、图表高度构成的图表范围框)在左、下,右,上四个方向上的内偏距值。 |
| 60 | * @param {number} [decimalNumber] - 数据值数组 dataValues 元素值小数位数,数据的小数位处理参数,取值范围:[0, 16]。 |
| 61 | * 如果不设置此参数,在取数据值时不对数据做小数位处理。 |
| 62 | * |
| 63 | */ |
| 64 | this.setting = null; |
| 65 | |
| 66 | /** |
| 67 | * @readonly |
| 68 | * @member {Array.<number>} FeatureThemeGraph.prototype.origonPoint |
| 69 | * @description 专题要素(图表)原点,图表左上角点像素坐标,是长度为 2 的一维数组,第一个元素表示 x 坐标,第二个元素表示 y 坐标。 |
| 70 | */ |
| 71 | this.origonPoint = null; |
| 72 | |
| 73 | /** |
| 74 | * @readonly |
| 75 | * @member {Array.<number>} FeatureThemeGraph.prototype.chartBox |
| 76 | * @description 专题要素(图表)区域,即图表框,长度为 4 的一维数组,数组的 4 个元素依次表示图表框左端 x 坐标值、 |
| 77 | * 下端 y坐标值、右端 x坐标值、上端 y 坐标值;[left, bottom, right, top]。 |
| 78 | */ |
| 79 | this.chartBox = null; |
| 80 | |
| 81 | /** |
| 82 | * @readonly |
| 83 | * @member {Bounds} FeatureThemeGraph.prototype.chartBounds |
| 84 | * @description 图表 Bounds 随着 lonlat、XOffset、YOffset 更新,注意 chartBounds 是图表像素范围,不是地理范围。 |
| 85 | */ |
| 86 | this.chartBounds = null; |
nothing calls this directly
no test coverage detected