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

Method fromObj

src/common/iServer/ServerTextStyle.js:194–200  ·  view source on GitHub ↗

* @function ServerTextStyle.fromObj * @description 从传入对象获服务端文本风格类。 * @param {Object} obj - 传入对象。 * @returns {ServerTextStyle} 返回服务端文本风格对象。

(obj)

Source from the content-addressed store, hash-verified

192 * @returns {ServerTextStyle} 返回服务端文本风格对象。
193 */
194 static fromObj(obj) {
195 var res = new ServerTextStyle(obj);
196 Util.copy(res, obj);
197 res.backColor = ServerColor.fromJson(obj.backColor);
198 res.foreColor = ServerColor.fromJson(obj.foreColor);
199 return res;
200 }
201
202}
203

Callers

nothing calls this directly

Calls 2

copyMethod · 0.45
fromJsonMethod · 0.45

Tested by

no test coverage detected