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

Method fromObj

src/common/iServer/ThemeFlow.js:73–81  ·  view source on GitHub ↗

* @function ThemeFlow.fromObj * @description 从传入对象获取标签或符号流动显示和牵引线风格设置类。 * @param {Object} obj - 传入对象。 * @returns {ThemeFlow} ThemeFlow 对象。

(obj)

Source from the content-addressed store, hash-verified

71 * @returns {ThemeFlow} ThemeFlow 对象。
72 */
73 static fromObj(obj) {
74 if (!obj) {
75 return;
76 }
77 var res = new ThemeFlow();
78 Util.copy(res, obj);
79 res.leaderLineStyle = ServerStyle.fromJson(obj.leaderLineStyle);
80 return res;
81 }
82
83}
84

Callers 2

fromJsonMethod · 0.45

Calls 2

copyMethod · 0.45
fromJsonMethod · 0.45

Tested by

no test coverage detected