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

Class CommentManager

src/core/CommentManager.ts:13–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11/// <reference path="CommentSpaceAllocator.ts" />
12
13class CommentManager implements ICommentManager {
14 private _width:number = 0;
15 private _height:number = 0;
16 private _status:string = "stopped";
17 private _stage:HTMLDivElement;
18 private _listeners:{[name: string]:Array<Function>} = {};
19 private _csa:Object = {};
20
21 public options:CCLOptions = {
22 "global": {
23 "scale": 1,
24 "opacity": 1,
25 "className": "cmt"
26 },
27 "scroll": {
28 "scale": 1,
29 "opacity": 1
30 },
31 "scripting":{
32 "mode": [8],
33 "engine": null
34 }
35 };
36 public timeline:Array<Object> = [];
37 public runline:Array<IComment> = [];
38 public position:number = 0;
39 public factory:ICommentFactory;
40
41 get width():number {
42 return this._width;
43 }
44
45 get height():number {
46 return this._height;
47 }
48
49 get stage():HTMLDivElement {
50 return this._stage;
51 }
52
53 get status():string {
54 return this._status;
55 }
56
57 constructor(stage:HTMLDivElement) {
58 this._stage = stage;
59 }
60
61 public init():void {
62 this.factory = CommentFactory.defaultCssRenderFactory();
63 }
64
65 /**
66 * Start the comment manager
67 */
68 public start():void {
69 this._status = "running";
70 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected