Skip to content

Commit

Permalink
web build
Browse files Browse the repository at this point in the history
  • Loading branch information
odrick committed Jul 26, 2019
1 parent 6e278fb commit 0cc1525
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
18 changes: 8 additions & 10 deletions dist/web/static/exporters/Cocos2d.mst
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,16 @@
<%#rects%>
<key><%&name%></key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{<% spriteSourceSize.x | offset : spriteSourceSize.w : sourceSize.w %>,<% spriteSourceSize.y | offset : spriteSourceSize.h : sourceSize.h %>}</string>
<key>spriteSize</key>
<string>{<%spriteSourceSize.w%>,<%spriteSourceSize.h%>}</string>
<key>spriteSourceSize</key>
<string>{<%sourceSize.w%>,<%sourceSize.h%>}</string>
<key>textureRect</key>
<key>frame</key>
<string>{{<%frame.x%>,<%frame.y%>},{<%frame.w%>,<%frame.h%>}}</string>
<key>textureRotated</key>
<key>offset</key>
<string>{<% spriteSourceSize.x | offsetLeft : spriteSourceSize.w : sourceSize.w %>,<% spriteSourceSize.y | offsetRight : spriteSourceSize.h : sourceSize.h %>}</string>
<key>rotated</key>
<<%rotated%>/>
<key>sourceColorRect</key>
<string>{{<%spriteSourceSize.x%>,<%spriteSourceSize.y%>},{<%spriteSourceSize.w%>,<%spriteSourceSize.h%>}}</string>
<key>sourceSize</key>
<string>{<%sourceSize.w%>,<%sourceSize.h%>}</string>
</dict>
<%/rects%>
</dict>
Expand Down
7 changes: 6 additions & 1 deletion dist/web/static/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38883,11 +38883,16 @@ mustache_default.a.Formatters = {
divide: function divide(v1, v2) {
return v1 / v2;
},
offset: function offset(start, size1, size2) {
offsetLeft: function offsetLeft(start, size1, size2) {
var x1 = start + size1 / 2;
var x2 = size2 / 2;
return x1 - x2;
},
offsetRight: function offsetRight(start, size1, size2) {
var x1 = start + size1 / 2;
var x2 = size2 / 2;
return x2 - x1;
},
mirror: function mirror(start, size1, size2) {
return size2 - start - size1;
},
Expand Down

0 comments on commit 0cc1525

Please sign in to comment.