MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / toServerJSONObject

Method toServerJSONObject

src/common/iServer/ThemeGraph.js:276–312  ·  view source on GitHub ↗

* @function ThemeGraph.prototype.toServerJSONObject * @description 转换成对应的 JSON 格式对象。 * @returns {Object} 对应的 JSON 格式对象。

()

Source from the content-addressed store, hash-verified

274 * @returns {Object} 对应的 JSON 格式对象。
275 */
276 toServerJSONObject() {
277 var obj = {};
278 obj.type = this.type;
279 if (this.graphText) {
280 obj.graphTextDisplayed = this.graphText.graphTextDisplayed;
281 obj.graphTextFormat = this.graphText.graphTextFormat;
282 obj.graphTextStyle = this.graphText.graphTextStyle;
283 }
284 if (this.graphAxes) {
285 obj.axesColor = this.graphAxes.axesColor;
286 obj.axesDisplayed = this.graphAxes.axesDisplayed;
287 obj.axesGridDisplayed = this.graphAxes.axesGridDisplayed;
288 obj.axesTextDisplayed = this.graphAxes.axesTextDisplayed;
289 obj.axesTextStyle = this.graphAxes.axesTextStyle;
290 }
291 if (this.graphSize) {
292 obj.maxGraphSize = this.graphSize.maxGraphSize;
293 obj.minGraphSize = this.graphSize.minGraphSize;
294 }
295 if (this.offset) {
296 obj.offsetFixed = this.offset.offsetFixed;
297 obj.offsetX = this.offset.offsetX;
298 obj.offsetY = this.offset.offsetY;
299 }
300 obj.barWidth = this.barWidth;
301 obj.graduatedMode = this.graduatedMode;
302 obj.graphSizeFixed = this.graphSizeFixed;
303 obj.graphType = this.graphType;
304 obj.graphAxesTextDisplayMode = this.graphAxesTextDisplayMode;
305 obj.items = this.items;
306 obj.memoryKeys = this.memoryKeys;
307 obj.negativeDisplayed = this.negativeDisplayed;
308 obj.overlapAvoided = this.overlapAvoided;
309 obj.roseAngle = this.roseAngle;
310 obj.startAngle = this.startAngle;
311 return obj;
312 }
313
314 /**
315 * @function ThemeGraph.fromObj

Callers 1

toJSONMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected