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

Class Group

src/common/overlay/levelRenderer/Group.js:33–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 */
32
33export class Group extends mixin(Eventful, Transformable) {
34 constructor(options) {
35 super(options)
36 options = options || {};
37 /**
38 * @member {string} LevelRenderer.Group.prototype.id
39 * @description Group 的唯一标识。
40 */
41 this.id = null;
42
43 /**
44 * @readonly
45 * @member {string} [LevelRenderer.Group.prototype.type='group']
46 * @description 类型。
47 */
48 this.type = 'group';
49
50 //http://www.w3.org/TR/2dcontext/#clipping-region
51 /**
52 * @member {string} LevelRenderer.Group.prototype.clipShape
53 * @description 用于裁剪的图形(shape),所有 Group 内的图形在绘制时都会被这个图形裁剪,该图形会继承 Group 的变换。
54 */
55 this.clipShape = null;
56
57 /**
58 * @member {Array} LevelRenderer.Group.prototype._children
59 * @description _children。
60 */
61 this._children = [];
62
63 /**
64 * @member {Array} LevelRenderer.Group.prototype._storage
65 * @description _storage。
66 */
67 this._storage = null;
68
69 /**
70 * @member {boolean} [LevelRenderer.Group.prototype.__dirty=true]
71 * @description __dirty。
72 */
73 this.__dirty = true;
74
75 /**
76 * @member {boolean} [LevelRenderer.Group.prototype.ignore=false]
77 * @description 是否忽略该 Group 及其所有子节点。
78 */
79 this.ignore = false;
80 CommonUtil.extend(this, options);
81 this.id = this.id || CommonUtil.createUniqueID("smShapeGroup_");
82 this.CLASS_NAME = "SuperMap.LevelRenderer.Group";
83 }
84
85
86 /**
87 * @function LevelRenderer.Group.prototype.destroy
88 * @description 销毁对象,释放资源。调用此函数后所有属性将被置为 null。
89 */
90 destroy() {

Callers

nothing calls this directly

Calls 1

mixinFunction · 0.50

Tested by

no test coverage detected