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

Method fromObj

src/common/iServer/ThemeLabelText.js:101–110  ·  view source on GitHub ↗

* @function ThemeLabelText.fromObj * @description 从传入对象获取标签中文本风格类。 * @param {Object} obj - 传入对象。 * @returns {ThemeLabelText} ThemeLabelText 对象。

(obj)

Source from the content-addressed store, hash-verified

99 * @returns {ThemeLabelText} ThemeLabelText 对象。
100 */
101 static fromObj(obj) {
102 if (!obj) {
103 return;
104 }
105 var res = new ThemeLabelText();
106 Util.copy(res, obj);
107 res.uniformStyle = ServerTextStyle.fromObj(obj.uniformStyle);
108 res.uniformMixedStyle = LabelMixedTextStyle.fromObj(obj.uniformMixedStyle);
109 return res;
110 }
111}
112

Callers

nothing calls this directly

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected