Skip to content

Commit

Permalink
feat: add Adobe Animate publish profile and template to distribution …
Browse files Browse the repository at this point in the history
…archive
  • Loading branch information
indr committed Aug 7, 2018
1 parent d810785 commit bb5ec98
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 1 deletion.
File renamed without changes.
File renamed without changes.
Binary file added dist/Adobe-Animate-Publish-Profile.apr
Binary file not shown.
53 changes: 53 additions & 0 deletions dist/Adobe-Animate-Publish-Template.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<!DOCTYPE html>
<!--
NOTES:
1. All tokens are represented by '$' sign in the template.
2. You can write your code only wherever mentioned.
3. All occurrences of existing tokens will be replaced by their appropriate values.
4. Blank lines will be removed automatically.
5. Remove unnecessary comments before creating your template.
-->
<html>
<head>
<meta charset="UTF-8">
<meta name="authoring-tool" content="$VERSION">
<title>$TITLE</title>
<!-- write your code here -->
<script src="webcg-adobe-animate-adapter.umd.js"></script>
$CENTER_STYLE
$CREATEJS_LIBRARY_SCRIPTS
$ANIMATE_CC_SCRIPTS
$SCRIPT_START
var canvas, stage, exportRoot, anim_container, dom_overlay_container, fnStartAnimation;
function init() {
canvas = document.getElementById("$CANVAS_ID");
anim_container = document.getElementById("$ANIM_CONTAINER_ID");
dom_overlay_container = document.getElementById("dom_overlay_container");
$CREATE_LOADER
$LOAD_MANIFEST
$PRELOAD_ASSETS
}
$HANDLE_FILE_LOAD_START
$HANDLE_FILE_LOAD_BODY
$HANDLE_FILE_LOAD_END
$HANDLE_COMPLETE_START
//This function is always called, irrespective of the content. You can use the variable "stage" after it is created in token create_stage.
$CREATE_STAGE
//Registers the "tick" event listener.
$START_ANIMATION
//Code to support hidpi screens and responsive scaling.
$RESP_HIDPI
$HANDLE_COMPLETE_END
$PLAYSOUND
$SCRIPT_END
<!-- write your code here -->
</head>
<body onload="init();" style="margin:0px;">
<div id="$ANIM_CONTAINER_ID" style="background-color:$BG; width:$WTpx; height:$HTpx">
<canvas id="$CANVAS_ID" width="$WT" height="$HT" style="position: absolute; display: $CANVAS_DISP; background-color:$BG;"></canvas>
<div id="dom_overlay_container" style="pointer-events:none; overflow:hidden; width:$WTpx; height:$HTpx; position: absolute; left: 0px; top: 0px; display: $CANVAS_DISP;">
</div>
</div>
$PRELOADER_DIV
</body>
</html>
Binary file modified dist/webcg-adobe-animate-adapter-1.0.0.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion scripts/postbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

cp dist/*.umd.js docs/
cd dist
zip webcg-adobe-animate-adapter-$npm_package_version.zip *.js
zip webcg-adobe-animate-adapter-$npm_package_version.zip *
cd ..
1 change: 1 addition & 0 deletions scripts/prebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
mkdir -p dist
rm -rf dist/*
cp node_modules/webcg-framework/dist/webcg-devtools.umd.js dist/
cp adobe-animate/* dist/

0 comments on commit bb5ec98

Please sign in to comment.