catlab-remote-client 1.3.9 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catlab-remote-client",
3
- "version": "1.3.9",
3
+ "version": "2.0.1",
4
4
  "main": "dist/scripts/catlabremote.js",
5
5
  "license": "UNLICENSED",
6
6
  "dependencies": {
@@ -40,6 +40,7 @@
40
40
  "build": "grunt build",
41
41
  "test": "jest",
42
42
  "bump": "grunt bump",
43
- "bump:minor": "grunt bump:minor"
43
+ "bump:minor": "grunt bump:minor",
44
+ "bump:major": "grunt bump:major"
44
45
  }
45
46
  }
@@ -1,30 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="UTF-8">
5
- <title>createjsassets</title>
6
-
7
- <script src="libs/easeljs-0.7.1.min.js"></script>
8
- <script src="createjsassets.js"></script>
9
-
10
- <script>
11
- var canvas, stage, exportRoot;
12
-
13
- function init() {
14
- canvas = document.getElementById("canvas");
15
- exportRoot = new ctlbrmtassets.portal();
16
-
17
- stage = new createjs.Stage(canvas);
18
- stage.addChild(exportRoot);
19
- stage.update();
20
-
21
- createjs.Ticker.setFPS(ctlbrmtassets.properties.fps);
22
- //createjs.Ticker.addEventListener("tick", stage);
23
- }
24
- </script>
25
- </head>
26
-
27
- <body onload="init();" style="background-color:#D4D4D4">
28
- <canvas id="canvas" width="720" height="480" style="background-color:#FFFFFF"></canvas>
29
- </body>
30
- </html>
@@ -1,215 +0,0 @@
1
- (function (lib, img, cjs) {
2
-
3
- if (typeof (cjs) == 'undefined' || typeof (cjs.Shape) == 'undefined')
4
- return;
5
-
6
- var p; // shortcut to reference prototypes
7
-
8
- // library properties:
9
- lib.properties = {
10
- width: 720,
11
- height: 480,
12
- fps: 24,
13
- color: "#FFFFFF",
14
- manifest: []
15
- };
16
-
17
-
18
-
19
- // symbols:
20
-
21
-
22
-
23
- (lib.UserIcon = function() {
24
- this.initialize();
25
-
26
- // Layer 1
27
- this.shape = new cjs.Shape();
28
- this.shape.graphics.f("#592230").s().p("Al2F2IAArsILsAAIAALsg");
29
- this.shape.setTransform(37.5,37.5);
30
-
31
- this.addChild(this.shape);
32
- }).prototype = p = new cjs.Container();
33
- p.nominalBounds = new cjs.Rectangle(0,0,75,75);
34
-
35
-
36
- (lib.lstUsers = function() {
37
- this.initialize();
38
-
39
- // Layer 1
40
- this.shape = new cjs.Shape();
41
- this.shape.graphics.f("#0066CC").s().p("A5YGoIAAtQMAywAAAIAANQg");
42
- this.shape.setTransform(162.5,42.5);
43
-
44
- this.addChild(this.shape);
45
- }).prototype = p = new cjs.Container();
46
- p.nominalBounds = new cjs.Rectangle(0,0,325,85);
47
-
48
-
49
- (lib.SmartphoneIcon = function() {
50
- this.initialize();
51
-
52
- // Capa 1
53
- this.shape = new cjs.Shape();
54
- this.shape.graphics.f("#FFFFFF").s().p("AhNCvQgJAAgHgIQgHgGAAgKIAAksQAAgLAHgGQAHgIAJAAICaAAQAKAAAHAIQAHAGAAALIAAEsQAAAKgHAGQgHAIgKAAgAgHCPQgEADAAAFQAAAFAEADQAEAEADAAQAEAAAEgEQADgDAAgFQAAgFgDgDQgEgDgEAAQgDAAgEADgAhUCDICoAAIAAkLIioAAgAgaiaQAAABAAABQAAAAAAABQABAAAAAAQABABABAAIAwAAQAAAAABgBQAAAAAAAAQABgBAAAAQAAgBAAgBQAAAAAAgBQAAAAgBAAQAAgBAAAAQgBAAAAAAIgwAAQgBAAgBAAQAAAAgBABQAAAAAAAAQAAABAAAAg");
55
- this.shape.setTransform(42.9,42,1.857,1.857);
56
-
57
- this.addChild(this.shape);
58
- }).prototype = p = new cjs.Container();
59
- p.nominalBounds = new cjs.Rectangle(24.1,9.5,37.7,65);
60
-
61
-
62
- (lib.TabletIcon = function() {
63
- this.initialize();
64
-
65
- // Capa 1
66
- this.shape = new cjs.Shape();
67
- this.shape.graphics.f("#FFFFFF").s().p("AhvCeQgKAAgHgHQgGgHAAgJIAAkNQAAgKAGgGQAHgHAKAAIDfAAQAKAAAGAHQAHAHAAAJIAAENQAAAJgHAHQgGAHgKAAgAgeCLIA8AAIAAgHIg8AAgAhvBuIDfAAIAAjvIjfAAg");
68
- this.shape.setTransform(43,43,1.642,1.642);
69
-
70
- this.addChild(this.shape);
71
- }).prototype = p = new cjs.Container();
72
- p.nominalBounds = new cjs.Rectangle(20.8,17,44.6,52.1);
73
-
74
-
75
- (lib.JoystickIcon = function() {
76
- this.initialize();
77
-
78
- // Layer 1
79
- this.shape = new cjs.Shape();
80
- this.shape.graphics.f("#FFFFFF").s().p("AA1BaQgYgagdABQgdgBgYAaQgYAZgNAAQgMAAgIgMQgIgMgBgUQABgqAVggQAUgeAVAAQANAAANAIQAOAJAIACQACgXALgPQASgVAlgBQAYAAALgOQAEgHAAgJQAAgKALAAQADABADACQAEAEAAADQAAASgNAOQgQASgfABQgsAAgGAmQAGgBAQgJQAMgJANABQAUAAAUAeQAXAgAAAqQgBAVgIAMQgJALgMAAQgMAAgZgZgAAzAuQgEAEAAAFQAAAFADAEQAEADAGAAQAFABADgEQAEgEAAgFQAAgFgEgEQgEgEgEgBQgFABgEAEgAhZAtIAVAAIAAAUIAUAAIAAgUIATAAIAAgUIgTAAIAAgVIgUAAIAAAVIgVAAgABGAaQgDADAAAGQAAAFADAEQAFADAEAAQAFAAAEgDQAEgFAAgEQAAgGgEgDQgEgFgFAAQgEAAgFAFgAAeAaQgEADAAAGQAAAFAEAEQAEADAFAAQAGAAADgDQAEgEAAgFQAAgGgDgDQgFgFgEAAQgFAAgFAFgAAyAFQgDAFAAAEQAAAGAEAEQAEAEAFAAQAEAAAEgEQAEgEAAgGQAAgEgEgFQgEgEgEAAQgGAAgEAEg");
81
- this.shape.setTransform(42,42,2.476,2.476);
82
-
83
- this.addChild(this.shape);
84
- }).prototype = p = new cjs.Container();
85
- p.nominalBounds = new cjs.Rectangle(12.3,13.5,59.5,57);
86
-
87
-
88
- (lib.KeyboardIcon = function() {
89
- this.initialize();
90
-
91
- // Layer 1
92
- this.shape = new cjs.Shape();
93
- this.shape.graphics.f("#FFFFFF").s().p("AkMEzQgiAAgXgWQgYgXAAgjIAAjYQAAggAYgXQAXgXAiAAID3AAQAAhLAkgeQAWgTA0gHQApgFAOgLQAUgRAAg1QAAgWAXAAQAXAAABAWQAABOgoAeQgWASg1AHQgpAGgOAKQgUAQAAA0ID2AAQAjAAAWAXQAZAXAAAgIAADYQAAAjgZAXQgWAWgjAAgADWDjIA1AAIAAg1Ig1AAgAi8DjIF3AAIAAg1Il3AAgAkMDjIA1AAIAAg1Ig1AAgACgCTIA2AAIAAg4Ig2AAgABQCTIA1AAIAAg4Ig1AAgAAACTIA1AAIAAg4Ig1AAgAhRCTIA2AAIAAg4Ig2AAgAihCTIA1AAIAAg4Ig1AAgAjyCTIA2AAIAAg4Ig2AAgADWBBIA1AAIAAg2Ig1AAgACFBBIA2AAIAAg2Ig2AAgAA1BBIA1AAIAAg2Ig1AAgAgbBBIA1AAIAAg2Ig1AAgAhsBBIA2AAIAAg2Ig2AAgAi8BBIA2AAIAAg2Ig2AAgAkMBBIA1AAIAAg2Ig1AAg");
94
- this.shape.setTransform(42,41.8,0.773,0.773);
95
-
96
- this.addChild(this.shape);
97
- }).prototype = p = new cjs.Container();
98
- p.nominalBounds = new cjs.Rectangle(15,18,54.1,47.6);
99
-
100
-
101
- (lib.btnLink = function() {
102
- this.initialize();
103
-
104
- // Layer 1
105
- this.text = new cjs.Text("Link a new account", "20px 'Times New Roman'", "#FF0033");
106
- this.text.lineHeight = 22;
107
- this.text.lineWidth = 235;
108
- this.text.setTransform(2.3,-1.7);
109
-
110
- this.shape = new cjs.Shape();
111
- this.shape.graphics.f("#666666").s("#FFFFFF").ss(1,1,1).dr(-83.5,-13,167,26);
112
- this.shape.setTransform(83.5,13);
113
-
114
- this.addChild(this.shape,this.text);
115
- }).prototype = p = new cjs.Container();
116
- p.nominalBounds = new cjs.Rectangle(-1,-1.7,242.5,28.7);
117
-
118
-
119
- (lib.accountContainer = function() {
120
- this.initialize();
121
-
122
- }).prototype = p = new cjs.Container();
123
- p.nominalBounds = null;
124
-
125
-
126
- (lib.Signin = function() {
127
- this.initialize();
128
-
129
- // Layer 2 (mask)
130
- var mask = new cjs.Shape();
131
- mask._off = true;
132
- mask.graphics.p("A4tIoIAAsrMAypAAAIAAMrg");
133
- mask.setTransform(166.1,55.3);
134
-
135
- // Layer 3
136
- this.accountContainer = new lib.accountContainer();
137
- this.accountContainer.setTransform(35.3,56.6,1,1,0,0,0,27.5,23.5);
138
-
139
- this.accountContainer.mask = mask;
140
-
141
- // Layer 1
142
- this.btnLinkAccount = new lib.btnLink();
143
- this.btnLinkAccount.setTransform(91.3,210,1,1,0,0,0,83.5,13);
144
-
145
- this.title = new cjs.Text("Sign In", "20px 'Times New Roman'", "#FFFFFF");
146
- this.title.name = "title";
147
- this.title.lineHeight = 22;
148
- this.title.lineWidth = 100;
149
- this.title.setTransform(7.8,3.1);
150
-
151
- this.shape = new cjs.Shape();
152
- this.shape.graphics.f("#000000").s().p("A68SPMAAAgkdMA15AAAMAAAAkdg");
153
- this.shape.setTransform(172.5,116.7);
154
-
155
- this.addChild(this.shape,this.title,this.btnLinkAccount,this.accountContainer);
156
- }).prototype = p = new cjs.Container();
157
- p.nominalBounds = new cjs.Rectangle(0,0,345.1,233.5);
158
-
159
-
160
- (lib.PortalView = function() {
161
- this.initialize();
162
-
163
- // Layer 2
164
- this.ListActiveUsers = new lib.lstUsers();
165
- this.ListActiveUsers.setTransform(523.3,139.8,1,1,0,0,0,162.2,42);
166
-
167
- this.ListConnectedDevices = new lib.lstUsers();
168
- this.ListConnectedDevices.setTransform(190.3,139.8,1,1,0,0,0,163.3,42);
169
-
170
- this.shape = new cjs.Shape();
171
- this.shape.graphics.f().s("rgba(255,255,255,0)").ss(0.1,1,1).p("AvJkmIeTAAIAAJNI+TAAg");
172
- this.shape.setTransform(327,308.5);
173
-
174
- // Layer 1
175
- this.text = new cjs.Text("Active users", "30px 'Times New Roman'", "#FFFFFF");
176
- this.text.lineHeight = 32;
177
- this.text.lineWidth = 284;
178
- this.text.setTransform(374,25.3);
179
-
180
- this.text_1 = new cjs.Text("Connected users", "30px 'Times New Roman'", "#FFFFFF");
181
- this.text_1.lineHeight = 32;
182
- this.text_1.lineWidth = 284;
183
- this.text_1.setTransform(27,25.3);
184
-
185
- this.shape_1 = new cjs.Shape();
186
- this.shape_1.graphics.f().s("#666666").ss(1,1,1).p("EgzYAAAMBmyAAA");
187
- this.shape_1.setTransform(357.1,65);
188
-
189
- this.shape_2 = new cjs.Shape();
190
- this.shape_2.graphics.rf(["#333333","#000000","#000000"],[0,0.6,1],0,0,0,0,0,432.7).s().p("Eg4PAlfMAAAhK+MBwfAAAMAAABK+gEAy8gbVMhmyAAAg");
191
- this.shape_2.setTransform(360,240);
192
-
193
- this.addChild(this.shape_2,this.shape_1,this.text_1,this.text,this.shape,this.ListConnectedDevices,this.ListActiveUsers);
194
- }).prototype = p = new cjs.Container();
195
- p.nominalBounds = new cjs.Rectangle(0,0,720,480);
196
-
197
-
198
- // stage content:
199
- (lib.portal = function() {
200
- this.initialize();
201
-
202
- // Layer 1
203
- this.instance = new lib.UserIcon();
204
- this.instance.setTransform(182.5,176.5,1,1,0,0,0,37.5,37.5);
205
-
206
- this.shape = new cjs.Shape();
207
- this.shape.graphics.f().s("#592230").ss(1,1,1).p("Al2AAILtAA");
208
- this.shape.setTransform(182.5,139);
209
-
210
- this.addChild(this.shape,this.instance);
211
- }).prototype = p = new cjs.Container();
212
- p.nominalBounds = new cjs.Rectangle(504,378,77,76);
213
-
214
- })(ctlbrmtassets = ctlbrmtassets||{}, images = images||{}, createjs = createjs||{});
215
- var ctlbrmtassets, images, createjs;
@@ -1,69 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- NOTES:
4
- 1. All tokens are represented by '$' sign in the template.
5
- 2. You can write your code only wherever mentioned.
6
- 3. All occurrences of existing tokens will be replaced by their appropriate values.
7
- 4. Blank lines will be removed automatically.
8
- 5. Remove unnecessary comments before creating your template.
9
- -->
10
- <html>
11
- <head>
12
- <meta charset="UTF-8">
13
- <meta name="authoring-tool" content="Adobe_Animate_CC">
14
- <title>remote</title>
15
- <!-- write your code here -->
16
- <script src="https://code.createjs.com/1.0.0/createjs.min.js"></script>
17
- <script src="remote.js"></script>
18
- <script>
19
- var canvas, stage, exportRoot, anim_container, dom_overlay_container, fnStartAnimation;
20
- function init() {
21
- canvas = document.getElementById("canvas");
22
- anim_container = document.getElementById("animation_container");
23
- dom_overlay_container = document.getElementById("dom_overlay_container");
24
- var comp=AdobeAn.getComposition("5F84D68D1234D9449986F9EAC842AF45");
25
- var quizwitzremote=comp.getLibrary();
26
- var loader = new createjs.LoadQueue(false);
27
- loader.addEventListener("fileload", function(evt){handleFileLoad(evt,comp)});
28
- loader.addEventListener("complete", function(evt){handleComplete(evt,comp)});
29
- var quizwitzremote=comp.getLibrary();
30
- loader.loadManifest(quizwitzremote.properties.manifest);
31
- }
32
- function handleFileLoad(evt, comp) {
33
- var images=comp.getImages();
34
- if (evt && (evt.item.type == "image")) { images[evt.item.id] = evt.result; }
35
- }
36
- function handleComplete(evt,comp) {
37
- //This function is always called, irrespective of the content. You can use the variable "stage" after it is created in token create_stage.
38
- var quizwitzremote=comp.getLibrary();
39
- var ss=comp.getSpriteSheet();
40
- var queue = evt.target;
41
- var ssMetadata = quizwitzremote.ssMetadata;
42
- for(i=0; i<ssMetadata.length; i++) {
43
- ss[ssMetadata[i].name] = new createjs.SpriteSheet( {"images": [queue.getResult(ssMetadata[i].name)], "frames": ssMetadata[i].frames} )
44
- }
45
- exportRoot = new quizwitzremote.remote();
46
- stage = new quizwitzremote.Stage(canvas);
47
- stage.enableMouseOver();
48
- //Registers the "tick" event listener.
49
- fnStartAnimation = function() {
50
- stage.addChild(exportRoot);
51
- createjs.Ticker.framerate = quizwitzremote.properties.fps;
52
- createjs.Ticker.addEventListener("tick", stage);
53
- }
54
- //Code to support hidpi screens and responsive scaling.
55
- AdobeAn.makeResponsive(false,'both',false,1,[canvas,anim_container,dom_overlay_container]);
56
- AdobeAn.compositionLoaded(quizwitzremote.properties.id);
57
- fnStartAnimation();
58
- }
59
- </script>
60
- <!-- write your code here -->
61
- </head>
62
- <body onload="init();" style="margin:0px;">
63
- <div id="animation_container" style="background-color:rgba(255, 255, 255, 1.00); width:854px; height:480px">
64
- <canvas id="canvas" width="854" height="480" style="position: absolute; display: block; background-color:rgba(255, 255, 255, 1.00);"></canvas>
65
- <div id="dom_overlay_container" style="pointer-events:none; overflow:hidden; width:854px; height:480px; position: absolute; left: 0px; top: 0px; display: block;">
66
- </div>
67
- </div>
68
- </body>
69
- </html>