catlab-remote-client 1.0.44 → 1.0.46

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.
@@ -1,40 +1,40 @@
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");
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
24
  var comp=AdobeAn.getComposition("5F84D68D1234D9449986F9EAC842AF45");
25
25
  var quizwitzremote=comp.getLibrary();
26
26
  var loader = new createjs.LoadQueue(false);
27
27
  loader.addEventListener("fileload", function(evt){handleFileLoad(evt,comp)});
28
- loader.addEventListener("complete", function(evt){handleComplete(evt,comp)});
28
+ loader.addEventListener("complete", function(evt){handleComplete(evt,comp)});
29
29
  var quizwitzremote=comp.getLibrary();
30
- loader.loadManifest(quizwitzremote.properties.manifest);
31
- }
30
+ loader.loadManifest(quizwitzremote.properties.manifest);
31
+ }
32
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.
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
38
  var quizwitzremote=comp.getLibrary();
39
39
  var ss=comp.getSpriteSheet();
40
40
  var queue = evt.target;
@@ -44,26 +44,26 @@ function handleComplete(evt,comp) {
44
44
  }
45
45
  exportRoot = new quizwitzremote.remote();
46
46
  stage = new quizwitzremote.Stage(canvas);
47
- stage.enableMouseOver();
48
- //Registers the "tick" event listener.
47
+ stage.enableMouseOver();
48
+ //Registers the "tick" event listener.
49
49
  fnStartAnimation = function() {
50
50
  stage.addChild(exportRoot);
51
51
  createjs.Ticker.framerate = quizwitzremote.properties.fps;
52
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]);
53
+ }
54
+ //Code to support hidpi screens and responsive scaling.
55
+ AdobeAn.makeResponsive(false,'both',false,1,[canvas,anim_container,dom_overlay_container]);
56
56
  AdobeAn.compositionLoaded(quizwitzremote.properties.id);
57
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>
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
69
  </html>
package/package.json CHANGED
@@ -1,30 +1,31 @@
1
1
  {
2
2
  "name": "catlab-remote-client",
3
- "version": "1.0.44",
3
+ "version": "1.0.46",
4
4
  "main": "dist/scripts/catlabremote.js",
5
5
  "license": "UNLICENSED",
6
6
  "dependencies": {
7
+ "backbone": "^1.4.1",
8
+ "easelbone": "^1.0.47",
9
+ "easeljs": "^1.0.2",
10
+ "emojione": "4.0.0",
7
11
  "fittext": "^1.0.1",
8
- "viewport-units-buggyfill": "^0.6.2",
9
- "rivets": "^0.9.6",
12
+ "grunt-http-server": "^2.1.0",
10
13
  "jquery": "^3.6.4",
11
- "screenfull": "^5.2.0",
12
- "emojione": "4.0.0",
13
14
  "jquery-ui": "^1.13.2",
14
15
  "jquery-ui-touch-punch": "^0.2.3",
16
+ "rivets": "^0.9.6",
17
+ "screenfull": "^5.2.0",
15
18
  "socket.io-client": "^4.6.1",
16
- "backbone": "^1.4.1",
17
- "easelbone": "^1.0.47",
18
- "easeljs": "^1.0.2",
19
19
  "tweenjs": "^1.0.2",
20
- "underscore": "^1.13.6"
20
+ "underscore": "^1.13.6",
21
+ "viewport-units-buggyfill": "^0.6.2"
21
22
  },
22
23
  "devDependencies": {
23
24
  "grunt": "^1.6.1",
25
+ "grunt-bump": "*",
24
26
  "grunt-contrib-clean": "^2.0.1",
25
27
  "grunt-contrib-copy": "x",
26
28
  "grunt-contrib-requirejs": "x",
27
- "grunt-bump": "*",
28
29
  "grunt-contrib-uglify": "^5.2.2",
29
30
  "grunt-contrib-watch": "^1.1.0",
30
31
  "preloadjs": "^1.0.1",
@@ -32,5 +33,10 @@
32
33
  "simple-keyboard": "^2.32.131",
33
34
  "sprintf-js": "^1.1.2",
34
35
  "terser": "^4.8.1"
36
+ },
37
+ "scripts": {
38
+ "start" : "grunt",
39
+ "build" : "grunt build",
40
+ "bump" : "grunt bump"
35
41
  }
36
42
  }