MCPcopy
hub / github.com/jabbany/CommentCoreLibrary / Shape

Class Shape

src/scripting/api/Display/Shape.ts:10–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8 * @author Jim Chen
9 */
10 export class Shape extends DisplayObject {
11 private _graphics:Graphics;
12
13 constructor() {
14 super();
15 this._graphics = new Graphics(this);
16 }
17
18 get graphics():Graphics {
19 return this._graphics;
20 }
21
22 public serialize():Object {
23 var serialized:Object = super.serialize();
24 serialized['class'] = 'Shape';
25 return serialized;
26 }
27 }
28}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected