jmgraph 3.2.6 → 3.2.7

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.
Files changed (71) hide show
  1. package/build/gulpfile.js +143 -0
  2. package/build/package-lock.json +19282 -0
  3. package/build/package.json +71 -0
  4. package/dist/jmgraph.core.min.js +1 -1
  5. package/dist/jmgraph.core.min.js.map +1 -1
  6. package/dist/jmgraph.js +29 -4
  7. package/dist/jmgraph.min.js +1 -1
  8. package/docs/_config.yml +1 -0
  9. package/docs/about.html +41 -0
  10. package/docs/api/jmGraph.md +2302 -0
  11. package/docs/css/index.css +131 -0
  12. package/docs/images/ball.gif +0 -0
  13. package/docs/images/bezier.gif +0 -0
  14. package/docs/images/cell.gif +0 -0
  15. package/docs/images/chart.gif +0 -0
  16. package/docs/images/editor.gif +0 -0
  17. package/docs/images/sort.gif +0 -0
  18. package/docs/index.html +80 -0
  19. package/docs/js/helper.js +89 -0
  20. package/docs/js/jquery.min.js +6 -0
  21. package/example/ball.html +223 -0
  22. package/example/base.html +112 -0
  23. package/example/canvas.html +54 -0
  24. package/example/cell.html +284 -0
  25. package/example/controls/arc.html +126 -0
  26. package/example/controls/arrowline.html +77 -0
  27. package/example/controls/bezier.html +223 -0
  28. package/example/controls/img.html +90 -0
  29. package/example/controls/label.html +85 -0
  30. package/example/controls/line.html +170 -0
  31. package/example/controls/prismatic.html +63 -0
  32. package/example/controls/rect.html +64 -0
  33. package/example/controls/resize.html +75 -0
  34. package/example/controls/test.html +136 -0
  35. package/example/es.html +70 -0
  36. package/example/es5module.html +64 -0
  37. package/example/heartarc.html +116 -0
  38. package/example/index.html +46 -0
  39. package/example/js/require.js +5 -0
  40. package/example/love/img/bling/bling.tps +265 -0
  41. package/example/love/img/bling.json +87 -0
  42. package/example/love/img/bling.tps +295 -0
  43. package/example/love/img/doc/bling.gif +0 -0
  44. package/example/love/img/love.json +95 -0
  45. package/example/love/img/love.tps +315 -0
  46. package/example/love/img/music/bg.mp3 +0 -0
  47. package/example/love/img/music/bg_2019130144035.mp3 +0 -0
  48. package/example/love/img/music/f.mp3 +0 -0
  49. package/example/love/img/music/fail.mp3 +0 -0
  50. package/example/love/img/music/s.mp3 +0 -0
  51. package/example/love/img/music/s_201913014415.mp3 +0 -0
  52. package/example/love/img/qq/qq.tps +399 -0
  53. package/example/love/img/qq.json +242 -0
  54. package/example/love/index.html +40 -0
  55. package/example/love/js/game.js +558 -0
  56. package/example/music.html +192 -0
  57. package/example/node/test.js +138 -0
  58. package/example/pdf.html +187 -0
  59. package/example/progress.html +173 -0
  60. package/example/pso.html +148 -0
  61. package/example/sort.html +816 -0
  62. package/example/tweenjs.html +84 -0
  63. package/example/webgl.html +255 -0
  64. package/example/xfj/img/dr_die.gif +0 -0
  65. package/example/xfj/index.html +332 -0
  66. package/example/xfj/shake.js +49 -0
  67. package/example/xfj/testori.html +76 -0
  68. package/package.json +1 -1
  69. package/src/core/jmControl.js +3 -2
  70. package/src/core/jmGradient.js +4 -0
  71. package/src/core/jmGraph.js +6 -4
@@ -0,0 +1,116 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type" />
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <!--<script type="text/javascript" src="../src/jmGraph.js"></script>
7
+ <script type="text/javascript" src="../dist/jmGraph.min.js"></script> -->
8
+ <style>
9
+ html,body {
10
+ margin:0;
11
+ padding:0;
12
+ width:100%;
13
+ height:100%;
14
+ overflow: hidden;
15
+ }
16
+ #mycanvas {
17
+ background-color:#000;
18
+ position: absolute;
19
+ width: 100%;
20
+ height: 100%;
21
+ }
22
+ </style>
23
+
24
+ </head>
25
+ <body >
26
+ <div id="mycanvas">
27
+ </div>
28
+
29
+ </body>
30
+ </html>
31
+
32
+ <script type="module">
33
+ import jmGraph from "../index.js";
34
+
35
+ //初始化jmgraph
36
+ var graph = new jmGraph('mycanvas', {
37
+ mode: '2d'
38
+ });
39
+
40
+ var arcStyle = {
41
+ lineWidth:1.1,
42
+ stroke: 'green',
43
+ close:true
44
+ };
45
+ var radius = 50;
46
+ var center1 = {
47
+ x: 400,
48
+ y: 400
49
+ };
50
+ var arc1 = graph.createShape('circle',{
51
+ style: arcStyle,
52
+ center: center1,
53
+ radius: radius,
54
+ anticlockwise: false
55
+ });
56
+ graph.children.add(arc1);
57
+
58
+ var center2 = {
59
+ x: center1.x,
60
+ y: center1.y + radius * 2
61
+ };
62
+ var arc2 = graph.createShape('circle',{
63
+ style: arcStyle,
64
+ center: center2,
65
+ radius: radius,
66
+ anticlockwise: false
67
+ });
68
+ graph.children.add(arc2);
69
+
70
+ var heartStyle = {
71
+ stroke: 'red',
72
+ lineWidth: 2
73
+ };
74
+ const heartStart = {
75
+ x: center1.x,
76
+ y: center1.y + radius
77
+ };
78
+ var heart = graph.createShape('path',{
79
+ style: heartStyle,
80
+ points: [heartStart]
81
+ });
82
+ graph.children.add(heart);
83
+
84
+ var r = 0;
85
+ const startX = center1.x;
86
+ const startY = center1.y;
87
+ function goTrack() {
88
+
89
+ const l = 2 * radius * Math.sin(r) * 2;
90
+ const ox = Math.cos(r) * l;
91
+ const oy = Math.sin(r) * l;
92
+ center1.x = startX - ox;
93
+ center1.y = startY + oy;
94
+
95
+ const heartPoint = {
96
+ x: center1.x + radius * Math.cos(4 * r - Math.PI/2),
97
+ y: center1.y - radius * Math.sin(4 * r - Math.PI/2)
98
+ }
99
+ heart.points.push(heartPoint);
100
+
101
+ graph.redraw();
102
+
103
+ if(r >= Math.PI) {
104
+ r = 0;
105
+ heart.points = [heartStart];
106
+ }
107
+
108
+ r += 0.02;
109
+
110
+
111
+
112
+ setTimeout(goTrack, 10);
113
+ }
114
+
115
+ goTrack();
116
+ </script>
@@ -0,0 +1,46 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type" />
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ .left{
8
+ float:left;
9
+ width:10%;
10
+ }
11
+ .left ul {
12
+ list-style: none;
13
+ padding-left:4px;
14
+ }
15
+ .right{
16
+ float:right;
17
+ width:90%;
18
+ }
19
+ </style>
20
+ </head>
21
+ <body>
22
+ <div class="right"><iframe width="100%" height="1024" frameborder="0" scrolling="no" name="webbrowers" src="sort.html"></iframe></div>
23
+
24
+ <div class="left">
25
+ <ul>
26
+ <li><a href="sort.html" target="webbrowers">排序算法演示</a></li>
27
+ <li><a href="cell.html" target="webbrowers">孢子游戏</a></li>
28
+ <li><a href="ball.html" target="webbrowers">球碰撞试验</a></li>
29
+ <li><a href="progress.html" target="webbrowers">动画</a></li>
30
+ <li><a href="controls/arc.html" target="webbrowers">画圆</a></li>
31
+ <li><a href="controls/line.html" target="webbrowers">线条</a></li>
32
+ <li>
33
+ <a href="controls/bezier.html" target="webbrowers">贝塞尔曲线</a></li>
34
+
35
+ <li><a href="controls/Arrowline.html" target="webbrowers">箭头</a></li>
36
+ <li><a href="controls/img.html" target="webbrowers">图片</a></li>
37
+ <li><a href="controls/label.html" target="webbrowers">文字</a></li>
38
+ <li><a href="controls/prismatic.html" target="webbrowers">棱形</a></li>
39
+ <li><a href="controls/resize.html" target="webbrowers">可缩放方块</a></li>
40
+ <li><a href="pso.html" target="webbrowers">PSO</a></li>
41
+ <li><a href="heartarc.html" target="webbrowers">心图</a></li>
42
+ </ul>
43
+ </div>
44
+
45
+ </body>
46
+ </html>
@@ -0,0 +1,5 @@
1
+ /** vim: et:ts=4:sw=4:sts=4
2
+ * @license RequireJS 2.3.6 Copyright jQuery Foundation and other contributors.
3
+ * Released under MIT license, https://github.com/requirejs/requirejs/blob/master/LICENSE
4
+ */
5
+ var requirejs,require,define;!function(global,setTimeout){var req,s,head,baseElement,dataMain,src,interactiveScript,currentlyAddingScript,mainScript,subPath,version="2.3.6",commentRegExp=/\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/gm,cjsRequireRegExp=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,jsSuffixRegExp=/\.js$/,currDirRegExp=/^\.\//,op=Object.prototype,ostring=op.toString,hasOwn=op.hasOwnProperty,isBrowser=!("undefined"==typeof window||"undefined"==typeof navigator||!window.document),isWebWorker=!isBrowser&&"undefined"!=typeof importScripts,readyRegExp=isBrowser&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,defContextName="_",isOpera="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),contexts={},cfg={},globalDefQueue=[],useInteractive=!1;function commentReplace(e,t){return t||""}function isFunction(e){return"[object Function]"===ostring.call(e)}function isArray(e){return"[object Array]"===ostring.call(e)}function each(e,t){var i;if(e)for(i=0;i<e.length&&(!e[i]||!t(e[i],i,e));i+=1);}function eachReverse(e,t){var i;if(e)for(i=e.length-1;-1<i&&(!e[i]||!t(e[i],i,e));i-=1);}function hasProp(e,t){return hasOwn.call(e,t)}function getOwn(e,t){return hasProp(e,t)&&e[t]}function eachProp(e,t){var i;for(i in e)if(hasProp(e,i)&&t(e[i],i))break}function mixin(i,e,r,n){return e&&eachProp(e,function(e,t){!r&&hasProp(i,t)||(!n||"object"!=typeof e||!e||isArray(e)||isFunction(e)||e instanceof RegExp?i[t]=e:(i[t]||(i[t]={}),mixin(i[t],e,r,n)))}),i}function bind(e,t){return function(){return t.apply(e,arguments)}}function scripts(){return document.getElementsByTagName("script")}function defaultOnError(e){throw e}function getGlobal(e){if(!e)return e;var t=global;return each(e.split("."),function(e){t=t[e]}),t}function makeError(e,t,i,r){var n=new Error(t+"\nhttps://requirejs.org/docs/errors.html#"+e);return n.requireType=e,n.requireModules=r,i&&(n.originalError=i),n}if(void 0===define){if(void 0!==requirejs){if(isFunction(requirejs))return;cfg=requirejs,requirejs=void 0}void 0===require||isFunction(require)||(cfg=require,require=void 0),req=requirejs=function(e,t,i,r){var n,o,a=defContextName;return isArray(e)||"string"==typeof e||(o=e,isArray(t)?(e=t,t=i,i=r):e=[]),o&&o.context&&(a=o.context),(n=getOwn(contexts,a))||(n=contexts[a]=req.s.newContext(a)),o&&n.configure(o),n.require(e,t,i)},req.config=function(e){return req(e)},req.nextTick=void 0!==setTimeout?function(e){setTimeout(e,4)}:function(e){e()},require||(require=req),req.version=version,req.jsExtRegExp=/^\/|:|\?|\.js$/,req.isBrowser=isBrowser,s=req.s={contexts:contexts,newContext:newContext},req({}),each(["toUrl","undef","defined","specified"],function(t){req[t]=function(){var e=contexts[defContextName];return e.require[t].apply(e,arguments)}}),isBrowser&&(head=s.head=document.getElementsByTagName("head")[0],baseElement=document.getElementsByTagName("base")[0],baseElement&&(head=s.head=baseElement.parentNode)),req.onError=defaultOnError,req.createNode=function(e,t,i){var r=e.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");return r.type=e.scriptType||"text/javascript",r.charset="utf-8",r.async=!0,r},req.load=function(t,i,r){var e,n=t&&t.config||{};if(isBrowser)return(e=req.createNode(n,i,r)).setAttribute("data-requirecontext",t.contextName),e.setAttribute("data-requiremodule",i),!e.attachEvent||e.attachEvent.toString&&e.attachEvent.toString().indexOf("[native code")<0||isOpera?(e.addEventListener("load",t.onScriptLoad,!1),e.addEventListener("error",t.onScriptError,!1)):(useInteractive=!0,e.attachEvent("onreadystatechange",t.onScriptLoad)),e.src=r,n.onNodeCreated&&n.onNodeCreated(e,n,i,r),currentlyAddingScript=e,baseElement?head.insertBefore(e,baseElement):head.appendChild(e),currentlyAddingScript=null,e;if(isWebWorker)try{setTimeout(function(){},0),importScripts(r),t.completeLoad(i)}catch(e){t.onError(makeError("importscripts","importScripts failed for "+i+" at "+r,e,[i]))}},isBrowser&&!cfg.skipDataMain&&eachReverse(scripts(),function(e){if(head||(head=e.parentNode),dataMain=e.getAttribute("data-main"))return mainScript=dataMain,cfg.baseUrl||-1!==mainScript.indexOf("!")||(mainScript=(src=mainScript.split("/")).pop(),subPath=src.length?src.join("/")+"/":"./",cfg.baseUrl=subPath),mainScript=mainScript.replace(jsSuffixRegExp,""),req.jsExtRegExp.test(mainScript)&&(mainScript=dataMain),cfg.deps=cfg.deps?cfg.deps.concat(mainScript):[mainScript],!0}),define=function(e,i,t){var r,n;"string"!=typeof e&&(t=i,i=e,e=null),isArray(i)||(t=i,i=null),!i&&isFunction(t)&&(i=[],t.length&&(t.toString().replace(commentRegExp,commentReplace).replace(cjsRequireRegExp,function(e,t){i.push(t)}),i=(1===t.length?["require"]:["require","exports","module"]).concat(i))),useInteractive&&(r=currentlyAddingScript||getInteractiveScript())&&(e||(e=r.getAttribute("data-requiremodule")),n=contexts[r.getAttribute("data-requirecontext")]),n?(n.defQueue.push([e,i,t]),n.defQueueMap[e]=!0):globalDefQueue.push([e,i,t])},define.amd={jQuery:!0},req.exec=function(text){return eval(text)},req(cfg)}function newContext(u){var i,e,l,c,d,g={waitSeconds:7,baseUrl:"./",paths:{},bundles:{},pkgs:{},shim:{},config:{}},p={},f={},r={},h=[],m={},n={},v={},x=1,b=1;function q(e,t,i){var r,n,o,a,s,u,c,d,p,f,l=t&&t.split("/"),h=g.map,m=h&&h["*"];if(e&&(u=(e=e.split("/")).length-1,g.nodeIdCompat&&jsSuffixRegExp.test(e[u])&&(e[u]=e[u].replace(jsSuffixRegExp,"")),"."===e[0].charAt(0)&&l&&(e=l.slice(0,l.length-1).concat(e)),function(e){var t,i;for(t=0;t<e.length;t++)if("."===(i=e[t]))e.splice(t,1),t-=1;else if(".."===i){if(0===t||1===t&&".."===e[2]||".."===e[t-1])continue;0<t&&(e.splice(t-1,2),t-=2)}}(e),e=e.join("/")),i&&h&&(l||m)){e:for(o=(n=e.split("/")).length;0<o;o-=1){if(s=n.slice(0,o).join("/"),l)for(a=l.length;0<a;a-=1)if((r=getOwn(h,l.slice(0,a).join("/")))&&(r=getOwn(r,s))){c=r,d=o;break e}!p&&m&&getOwn(m,s)&&(p=getOwn(m,s),f=o)}!c&&p&&(c=p,d=f),c&&(n.splice(0,d,c),e=n.join("/"))}return getOwn(g.pkgs,e)||e}function E(t){isBrowser&&each(scripts(),function(e){if(e.getAttribute("data-requiremodule")===t&&e.getAttribute("data-requirecontext")===l.contextName)return e.parentNode.removeChild(e),!0})}function w(e){var t=getOwn(g.paths,e);if(t&&isArray(t)&&1<t.length)return t.shift(),l.require.undef(e),l.makeRequire(null,{skipMap:!0})([e]),!0}function y(e){var t,i=e?e.indexOf("!"):-1;return-1<i&&(t=e.substring(0,i),e=e.substring(i+1,e.length)),[t,e]}function S(e,t,i,r){var n,o,a,s,u=null,c=t?t.name:null,d=e,p=!0,f="";return e||(p=!1,e="_@r"+(x+=1)),u=(s=y(e))[0],e=s[1],u&&(u=q(u,c,r),o=getOwn(m,u)),e&&(u?f=i?e:o&&o.normalize?o.normalize(e,function(e){return q(e,c,r)}):-1===e.indexOf("!")?q(e,c,r):e:(u=(s=y(f=q(e,c,r)))[0],f=s[1],i=!0,n=l.nameToUrl(f))),{prefix:u,name:f,parentMap:t,unnormalized:!!(a=!u||o||i?"":"_unnormalized"+(b+=1)),url:n,originalName:d,isDefine:p,id:(u?u+"!"+f:f)+a}}function k(e){var t=e.id,i=getOwn(p,t);return i||(i=p[t]=new l.Module(e)),i}function M(e,t,i){var r=e.id,n=getOwn(p,r);!hasProp(m,r)||n&&!n.defineEmitComplete?(n=k(e)).error&&"error"===t?i(n.error):n.on(t,i):"defined"===t&&i(m[r])}function O(i,e){var t=i.requireModules,r=!1;e?e(i):(each(t,function(e){var t=getOwn(p,e);t&&(t.error=i,t.events.error&&(r=!0,t.emit("error",i)))}),r||req.onError(i))}function j(){globalDefQueue.length&&(each(globalDefQueue,function(e){var t=e[0];"string"==typeof t&&(l.defQueueMap[t]=!0),h.push(e)}),globalDefQueue=[])}function P(e){delete p[e],delete f[e]}function R(){var e,r,t=1e3*g.waitSeconds,n=t&&l.startTime+t<(new Date).getTime(),o=[],a=[],s=!1,u=!0;if(!i){if(i=!0,eachProp(f,function(e){var t=e.map,i=t.id;if(e.enabled&&(t.isDefine||a.push(e),!e.error))if(!e.inited&&n)w(i)?s=r=!0:(o.push(i),E(i));else if(!e.inited&&e.fetched&&t.isDefine&&(s=!0,!t.prefix))return u=!1}),n&&o.length)return(e=makeError("timeout","Load timeout for modules: "+o,null,o)).contextName=l.contextName,O(e);u&&each(a,function(e){!function n(o,a,s){var e=o.map.id;o.error?o.emit("error",o.error):(a[e]=!0,each(o.depMaps,function(e,t){var i=e.id,r=getOwn(p,i);!r||o.depMatched[t]||s[i]||(getOwn(a,i)?(o.defineDep(t,m[i]),o.check()):n(r,a,s))}),s[e]=!0)}(e,{},{})}),n&&!r||!s||!isBrowser&&!isWebWorker||d||(d=setTimeout(function(){d=0,R()},50)),i=!1}}function a(e){hasProp(m,e[0])||k(S(e[0],null,!0)).init(e[1],e[2])}function o(e,t,i,r){e.detachEvent&&!isOpera?r&&e.detachEvent(r,t):e.removeEventListener(i,t,!1)}function s(e){var t=e.currentTarget||e.srcElement;return o(t,l.onScriptLoad,"load","onreadystatechange"),o(t,l.onScriptError,"error"),{node:t,id:t&&t.getAttribute("data-requiremodule")}}function T(){var e;for(j();h.length;){if(null===(e=h.shift())[0])return O(makeError("mismatch","Mismatched anonymous define() module: "+e[e.length-1]));a(e)}l.defQueueMap={}}return c={require:function(e){return e.require?e.require:e.require=l.makeRequire(e.map)},exports:function(e){if(e.usingExports=!0,e.map.isDefine)return e.exports?m[e.map.id]=e.exports:e.exports=m[e.map.id]={}},module:function(e){return e.module?e.module:e.module={id:e.map.id,uri:e.map.url,config:function(){return getOwn(g.config,e.map.id)||{}},exports:e.exports||(e.exports={})}}},(e=function(e){this.events=getOwn(r,e.id)||{},this.map=e,this.shim=getOwn(g.shim,e.id),this.depExports=[],this.depMaps=[],this.depMatched=[],this.pluginMaps={},this.depCount=0}).prototype={init:function(e,t,i,r){r=r||{},this.inited||(this.factory=t,i?this.on("error",i):this.events.error&&(i=bind(this,function(e){this.emit("error",e)})),this.depMaps=e&&e.slice(0),this.errback=i,this.inited=!0,this.ignore=r.ignore,r.enabled||this.enabled?this.enable():this.check())},defineDep:function(e,t){this.depMatched[e]||(this.depMatched[e]=!0,this.depCount-=1,this.depExports[e]=t)},fetch:function(){if(!this.fetched){this.fetched=!0,l.startTime=(new Date).getTime();var e=this.map;if(!this.shim)return e.prefix?this.callPlugin():this.load();l.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],bind(this,function(){return e.prefix?this.callPlugin():this.load()}))}},load:function(){var e=this.map.url;n[e]||(n[e]=!0,l.load(this.map.id,e))},check:function(){if(this.enabled&&!this.enabling){var t,e,i=this.map.id,r=this.depExports,n=this.exports,o=this.factory;if(this.inited){if(this.error)this.emit("error",this.error);else if(!this.defining){if(this.defining=!0,this.depCount<1&&!this.defined){if(isFunction(o)){if(this.events.error&&this.map.isDefine||req.onError!==defaultOnError)try{n=l.execCb(i,o,r,n)}catch(e){t=e}else n=l.execCb(i,o,r,n);if(this.map.isDefine&&void 0===n&&((e=this.module)?n=e.exports:this.usingExports&&(n=this.exports)),t)return t.requireMap=this.map,t.requireModules=this.map.isDefine?[this.map.id]:null,t.requireType=this.map.isDefine?"define":"require",O(this.error=t)}else n=o;if(this.exports=n,this.map.isDefine&&!this.ignore&&(m[i]=n,req.onResourceLoad)){var a=[];each(this.depMaps,function(e){a.push(e.normalizedMap||e)}),req.onResourceLoad(l,this.map,a)}P(i),this.defined=!0}this.defining=!1,this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else hasProp(l.defQueueMap,i)||this.fetch()}},callPlugin:function(){var u=this.map,c=u.id,e=S(u.prefix);this.depMaps.push(e),M(e,"defined",bind(this,function(e){var o,t,i,r=getOwn(v,this.map.id),n=this.map.name,a=this.map.parentMap?this.map.parentMap.name:null,s=l.makeRequire(u.parentMap,{enableBuildCallback:!0});return this.map.unnormalized?(e.normalize&&(n=e.normalize(n,function(e){return q(e,a,!0)})||""),M(t=S(u.prefix+"!"+n,this.map.parentMap,!0),"defined",bind(this,function(e){this.map.normalizedMap=t,this.init([],function(){return e},null,{enabled:!0,ignore:!0})})),void((i=getOwn(p,t.id))&&(this.depMaps.push(t),this.events.error&&i.on("error",bind(this,function(e){this.emit("error",e)})),i.enable()))):r?(this.map.url=l.nameToUrl(r),void this.load()):((o=bind(this,function(e){this.init([],function(){return e},null,{enabled:!0})})).error=bind(this,function(e){this.inited=!0,(this.error=e).requireModules=[c],eachProp(p,function(e){0===e.map.id.indexOf(c+"_unnormalized")&&P(e.map.id)}),O(e)}),o.fromText=bind(this,function(e,t){var i=u.name,r=S(i),n=useInteractive;t&&(e=t),n&&(useInteractive=!1),k(r),hasProp(g.config,c)&&(g.config[i]=g.config[c]);try{req.exec(e)}catch(e){return O(makeError("fromtexteval","fromText eval for "+c+" failed: "+e,e,[c]))}n&&(useInteractive=!0),this.depMaps.push(r),l.completeLoad(i),s([i],o)}),void e.load(u.name,s,o,g))})),l.enable(e,this),this.pluginMaps[e.id]=e},enable:function(){(f[this.map.id]=this).enabled=!0,this.enabling=!0,each(this.depMaps,bind(this,function(e,t){var i,r,n;if("string"==typeof e){if(e=S(e,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[t]=e,n=getOwn(c,e.id))return void(this.depExports[t]=n(this));this.depCount+=1,M(e,"defined",bind(this,function(e){this.undefed||(this.defineDep(t,e),this.check())})),this.errback?M(e,"error",bind(this,this.errback)):this.events.error&&M(e,"error",bind(this,function(e){this.emit("error",e)}))}i=e.id,r=p[i],hasProp(c,i)||!r||r.enabled||l.enable(e,this)})),eachProp(this.pluginMaps,bind(this,function(e){var t=getOwn(p,e.id);t&&!t.enabled&&l.enable(e,this)})),this.enabling=!1,this.check()},on:function(e,t){var i=this.events[e];i||(i=this.events[e]=[]),i.push(t)},emit:function(e,t){each(this.events[e],function(e){e(t)}),"error"===e&&delete this.events[e]}},(l={config:g,contextName:u,registry:p,defined:m,urlFetched:n,defQueue:h,defQueueMap:{},Module:e,makeModuleMap:S,nextTick:req.nextTick,onError:O,configure:function(e){if(e.baseUrl&&"/"!==e.baseUrl.charAt(e.baseUrl.length-1)&&(e.baseUrl+="/"),"string"==typeof e.urlArgs){var i=e.urlArgs;e.urlArgs=function(e,t){return(-1===t.indexOf("?")?"?":"&")+i}}var r=g.shim,n={paths:!0,bundles:!0,config:!0,map:!0};eachProp(e,function(e,t){n[t]?(g[t]||(g[t]={}),mixin(g[t],e,!0,!0)):g[t]=e}),e.bundles&&eachProp(e.bundles,function(e,t){each(e,function(e){e!==t&&(v[e]=t)})}),e.shim&&(eachProp(e.shim,function(e,t){isArray(e)&&(e={deps:e}),!e.exports&&!e.init||e.exportsFn||(e.exportsFn=l.makeShimExports(e)),r[t]=e}),g.shim=r),e.packages&&each(e.packages,function(e){var t;t=(e="string"==typeof e?{name:e}:e).name,e.location&&(g.paths[t]=e.location),g.pkgs[t]=e.name+"/"+(e.main||"main").replace(currDirRegExp,"").replace(jsSuffixRegExp,"")}),eachProp(p,function(e,t){e.inited||e.map.unnormalized||(e.map=S(t,null,!0))}),(e.deps||e.callback)&&l.require(e.deps||[],e.callback)},makeShimExports:function(t){return function(){var e;return t.init&&(e=t.init.apply(global,arguments)),e||t.exports&&getGlobal(t.exports)}},makeRequire:function(o,a){function s(e,t,i){var r,n;return a.enableBuildCallback&&t&&isFunction(t)&&(t.__requireJsBuild=!0),"string"==typeof e?isFunction(t)?O(makeError("requireargs","Invalid require call"),i):o&&hasProp(c,e)?c[e](p[o.id]):req.get?req.get(l,e,o,s):(r=S(e,o,!1,!0).id,hasProp(m,r)?m[r]:O(makeError("notloaded",'Module name "'+r+'" has not been loaded yet for context: '+u+(o?"":". Use require([])")))):(T(),l.nextTick(function(){T(),(n=k(S(null,o))).skipMap=a.skipMap,n.init(e,t,i,{enabled:!0}),R()}),s)}return a=a||{},mixin(s,{isBrowser:isBrowser,toUrl:function(e){var t,i=e.lastIndexOf("."),r=e.split("/")[0];return-1!==i&&(!("."===r||".."===r)||1<i)&&(t=e.substring(i,e.length),e=e.substring(0,i)),l.nameToUrl(q(e,o&&o.id,!0),t,!0)},defined:function(e){return hasProp(m,S(e,o,!1,!0).id)},specified:function(e){return e=S(e,o,!1,!0).id,hasProp(m,e)||hasProp(p,e)}}),o||(s.undef=function(i){j();var e=S(i,o,!0),t=getOwn(p,i);t.undefed=!0,E(i),delete m[i],delete n[e.url],delete r[i],eachReverse(h,function(e,t){e[0]===i&&h.splice(t,1)}),delete l.defQueueMap[i],t&&(t.events.defined&&(r[i]=t.events),P(i))}),s},enable:function(e){getOwn(p,e.id)&&k(e).enable()},completeLoad:function(e){var t,i,r,n=getOwn(g.shim,e)||{},o=n.exports;for(j();h.length;){if(null===(i=h.shift())[0]){if(i[0]=e,t)break;t=!0}else i[0]===e&&(t=!0);a(i)}if(l.defQueueMap={},r=getOwn(p,e),!t&&!hasProp(m,e)&&r&&!r.inited){if(!(!g.enforceDefine||o&&getGlobal(o)))return w(e)?void 0:O(makeError("nodefine","No define call for "+e,null,[e]));a([e,n.deps||[],n.exportsFn])}R()},nameToUrl:function(e,t,i){var r,n,o,a,s,u,c=getOwn(g.pkgs,e);if(c&&(e=c),u=getOwn(v,e))return l.nameToUrl(u,t,i);if(req.jsExtRegExp.test(e))a=e+(t||"");else{for(r=g.paths,o=(n=e.split("/")).length;0<o;o-=1)if(s=getOwn(r,n.slice(0,o).join("/"))){isArray(s)&&(s=s[0]),n.splice(0,o,s);break}a=n.join("/"),a=("/"===(a+=t||(/^data\:|^blob\:|\?/.test(a)||i?"":".js")).charAt(0)||a.match(/^[\w\+\.\-]+:/)?"":g.baseUrl)+a}return g.urlArgs&&!/^blob\:/.test(a)?a+g.urlArgs(e,a):a},load:function(e,t){req.load(l,e,t)},execCb:function(e,t,i,r){return t.apply(r,i)},onScriptLoad:function(e){if("load"===e.type||readyRegExp.test((e.currentTarget||e.srcElement).readyState)){interactiveScript=null;var t=s(e);l.completeLoad(t.id)}},onScriptError:function(e){var i=s(e);if(!w(i.id)){var r=[];return eachProp(p,function(e,t){0!==t.indexOf("_@r")&&each(e.depMaps,function(e){if(e.id===i.id)return r.push(t),!0})}),O(makeError("scripterror",'Script error for "'+i.id+(r.length?'", needed by: '+r.join(", "):'"'),e,[i.id]))}}}).require=l.makeRequire(),l}function getInteractiveScript(){return interactiveScript&&"interactive"===interactiveScript.readyState||eachReverse(scripts(),function(e){if("interactive"===e.readyState)return interactiveScript=e}),interactiveScript}}(this,"undefined"==typeof setTimeout?void 0:setTimeout);
@@ -0,0 +1,265 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <data version="1.0">
3
+ <struct type="Settings">
4
+ <key>fileFormatVersion</key>
5
+ <int>4</int>
6
+ <key>texturePackerVersion</key>
7
+ <string>4.11.1</string>
8
+ <key>autoSDSettings</key>
9
+ <array>
10
+ <struct type="AutoSDSettings">
11
+ <key>scale</key>
12
+ <double>1</double>
13
+ <key>extension</key>
14
+ <string></string>
15
+ <key>spriteFilter</key>
16
+ <string></string>
17
+ <key>acceptFractionalValues</key>
18
+ <false/>
19
+ <key>maxTextureSize</key>
20
+ <QSize>
21
+ <key>width</key>
22
+ <int>-1</int>
23
+ <key>height</key>
24
+ <int>-1</int>
25
+ </QSize>
26
+ </struct>
27
+ </array>
28
+ <key>allowRotation</key>
29
+ <true/>
30
+ <key>shapeDebug</key>
31
+ <false/>
32
+ <key>dpi</key>
33
+ <uint>72</uint>
34
+ <key>dataFormat</key>
35
+ <string>pixijs4</string>
36
+ <key>textureFileName</key>
37
+ <filename></filename>
38
+ <key>flipPVR</key>
39
+ <false/>
40
+ <key>pvrCompressionQuality</key>
41
+ <enum type="SettingsBase::PvrCompressionQuality">PVR_QUALITY_NORMAL</enum>
42
+ <key>atfCompressData</key>
43
+ <false/>
44
+ <key>mipMapMinSize</key>
45
+ <uint>32768</uint>
46
+ <key>etc1CompressionQuality</key>
47
+ <enum type="SettingsBase::Etc1CompressionQuality">ETC1_QUALITY_LOW_PERCEPTUAL</enum>
48
+ <key>etc2CompressionQuality</key>
49
+ <enum type="SettingsBase::Etc2CompressionQuality">ETC2_QUALITY_LOW_PERCEPTUAL</enum>
50
+ <key>dxtCompressionMode</key>
51
+ <enum type="SettingsBase::DxtCompressionMode">DXT_PERCEPTUAL</enum>
52
+ <key>jxrColorFormat</key>
53
+ <enum type="SettingsBase::JpegXrColorMode">JXR_YUV444</enum>
54
+ <key>jxrTrimFlexBits</key>
55
+ <uint>0</uint>
56
+ <key>jxrCompressionLevel</key>
57
+ <uint>0</uint>
58
+ <key>ditherType</key>
59
+ <enum type="SettingsBase::DitherType">PngQuantLow</enum>
60
+ <key>backgroundColor</key>
61
+ <uint>0</uint>
62
+ <key>libGdx</key>
63
+ <struct type="LibGDX">
64
+ <key>filtering</key>
65
+ <struct type="LibGDXFiltering">
66
+ <key>x</key>
67
+ <enum type="LibGDXFiltering::Filtering">Linear</enum>
68
+ <key>y</key>
69
+ <enum type="LibGDXFiltering::Filtering">Linear</enum>
70
+ </struct>
71
+ </struct>
72
+ <key>shapePadding</key>
73
+ <uint>0</uint>
74
+ <key>jpgQuality</key>
75
+ <uint>80</uint>
76
+ <key>pngOptimizationLevel</key>
77
+ <uint>0</uint>
78
+ <key>webpQualityLevel</key>
79
+ <uint>101</uint>
80
+ <key>textureSubPath</key>
81
+ <string></string>
82
+ <key>atfFormats</key>
83
+ <string></string>
84
+ <key>textureFormat</key>
85
+ <enum type="SettingsBase::TextureFormat">png</enum>
86
+ <key>borderPadding</key>
87
+ <uint>0</uint>
88
+ <key>maxTextureSize</key>
89
+ <QSize>
90
+ <key>width</key>
91
+ <int>2048</int>
92
+ <key>height</key>
93
+ <int>2048</int>
94
+ </QSize>
95
+ <key>fixedTextureSize</key>
96
+ <QSize>
97
+ <key>width</key>
98
+ <int>-1</int>
99
+ <key>height</key>
100
+ <int>-1</int>
101
+ </QSize>
102
+ <key>algorithmSettings</key>
103
+ <struct type="AlgorithmSettings">
104
+ <key>algorithm</key>
105
+ <enum type="AlgorithmSettings::AlgorithmId">Basic</enum>
106
+ <key>freeSizeMode</key>
107
+ <enum type="AlgorithmSettings::AlgorithmFreeSizeMode">Best</enum>
108
+ <key>sizeConstraints</key>
109
+ <enum type="AlgorithmSettings::SizeConstraints">AnySize</enum>
110
+ <key>forceSquared</key>
111
+ <false/>
112
+ <key>maxRects</key>
113
+ <struct type="AlgorithmMaxRectsSettings">
114
+ <key>heuristic</key>
115
+ <enum type="AlgorithmMaxRectsSettings::Heuristic">Best</enum>
116
+ </struct>
117
+ <key>basic</key>
118
+ <struct type="AlgorithmBasicSettings">
119
+ <key>sortBy</key>
120
+ <enum type="AlgorithmBasicSettings::SortBy">Best</enum>
121
+ <key>order</key>
122
+ <enum type="AlgorithmBasicSettings::Order">Ascending</enum>
123
+ </struct>
124
+ <key>polygon</key>
125
+ <struct type="AlgorithmPolygonSettings">
126
+ <key>alignToGrid</key>
127
+ <uint>1</uint>
128
+ </struct>
129
+ </struct>
130
+ <key>dataFileNames</key>
131
+ <map type="GFileNameMap">
132
+ <key>data</key>
133
+ <struct type="DataFile">
134
+ <key>name</key>
135
+ <filename>../bling.json</filename>
136
+ </struct>
137
+ </map>
138
+ <key>multiPack</key>
139
+ <false/>
140
+ <key>forceIdenticalLayout</key>
141
+ <false/>
142
+ <key>outputFormat</key>
143
+ <enum type="SettingsBase::OutputFormat">RGBA8888</enum>
144
+ <key>alphaHandling</key>
145
+ <enum type="SettingsBase::AlphaHandling">ClearTransparentPixels</enum>
146
+ <key>contentProtection</key>
147
+ <struct type="ContentProtection">
148
+ <key>key</key>
149
+ <string></string>
150
+ </struct>
151
+ <key>autoAliasEnabled</key>
152
+ <false/>
153
+ <key>trimSpriteNames</key>
154
+ <false/>
155
+ <key>prependSmartFolderName</key>
156
+ <false/>
157
+ <key>autodetectAnimations</key>
158
+ <true/>
159
+ <key>globalSpriteSettings</key>
160
+ <struct type="SpriteSettings">
161
+ <key>scale</key>
162
+ <double>1</double>
163
+ <key>scaleMode</key>
164
+ <enum type="ScaleMode">Smooth</enum>
165
+ <key>extrude</key>
166
+ <uint>0</uint>
167
+ <key>trimThreshold</key>
168
+ <uint>1</uint>
169
+ <key>trimMargin</key>
170
+ <uint>1</uint>
171
+ <key>trimMode</key>
172
+ <enum type="SpriteSettings::TrimMode">None</enum>
173
+ <key>tracerTolerance</key>
174
+ <int>200</int>
175
+ <key>heuristicMask</key>
176
+ <false/>
177
+ <key>defaultPivotPoint</key>
178
+ <point_f>0,0</point_f>
179
+ <key>writePivotPoints</key>
180
+ <true/>
181
+ </struct>
182
+ <key>individualSpriteSettings</key>
183
+ <map type="IndividualSpriteSettingsMap">
184
+ <key type="filename">bling.png</key>
185
+ <struct type="IndividualSpriteSettings">
186
+ <key>pivotPoint</key>
187
+ <point_f>0.5,0.5</point_f>
188
+ <key>scale9Enabled</key>
189
+ <false/>
190
+ <key>scale9Borders</key>
191
+ <rect>36,36,72,71</rect>
192
+ <key>scale9Paddings</key>
193
+ <rect>36,36,72,71</rect>
194
+ <key>scale9FromFile</key>
195
+ <false/>
196
+ </struct>
197
+ <key type="filename">f1.png</key>
198
+ <key type="filename">f105.png</key>
199
+ <key type="filename">f17.png</key>
200
+ <key type="filename">f25.png</key>
201
+ <key type="filename">f33.png</key>
202
+ <key type="filename">f41.png</key>
203
+ <key type="filename">f49.png</key>
204
+ <key type="filename">f57.png</key>
205
+ <key type="filename">f65.png</key>
206
+ <key type="filename">f73.png</key>
207
+ <key type="filename">f81.png</key>
208
+ <key type="filename">f89.png</key>
209
+ <key type="filename">f9.png</key>
210
+ <key type="filename">f97.png</key>
211
+ <struct type="IndividualSpriteSettings">
212
+ <key>pivotPoint</key>
213
+ <point_f>0.5,0.5</point_f>
214
+ <key>scale9Enabled</key>
215
+ <false/>
216
+ <key>scale9Borders</key>
217
+ <rect>50,50,100,100</rect>
218
+ <key>scale9Paddings</key>
219
+ <rect>50,50,100,100</rect>
220
+ <key>scale9FromFile</key>
221
+ <false/>
222
+ </struct>
223
+ </map>
224
+ <key>fileList</key>
225
+ <array>
226
+ <filename>bling.png</filename>
227
+ <filename>f1.png</filename>
228
+ <filename>f9.png</filename>
229
+ <filename>f17.png</filename>
230
+ <filename>f25.png</filename>
231
+ <filename>f33.png</filename>
232
+ <filename>f41.png</filename>
233
+ <filename>f49.png</filename>
234
+ <filename>f57.png</filename>
235
+ <filename>f65.png</filename>
236
+ <filename>f73.png</filename>
237
+ <filename>f81.png</filename>
238
+ <filename>f89.png</filename>
239
+ <filename>f97.png</filename>
240
+ <filename>f105.png</filename>
241
+ </array>
242
+ <key>ignoreFileList</key>
243
+ <array/>
244
+ <key>replaceList</key>
245
+ <array/>
246
+ <key>ignoredWarnings</key>
247
+ <array/>
248
+ <key>commonDivisorX</key>
249
+ <uint>1</uint>
250
+ <key>commonDivisorY</key>
251
+ <uint>1</uint>
252
+ <key>packNormalMaps</key>
253
+ <false/>
254
+ <key>autodetectNormalMaps</key>
255
+ <true/>
256
+ <key>normalMapFilter</key>
257
+ <string></string>
258
+ <key>normalMapSuffix</key>
259
+ <string></string>
260
+ <key>normalMapSheetFileName</key>
261
+ <filename></filename>
262
+ <key>exporterProperties</key>
263
+ <map type="ExporterProperties"/>
264
+ </struct>
265
+ </data>
@@ -0,0 +1,87 @@
1
+ {"frames": {
2
+
3
+ "bling.png":
4
+ {
5
+ "frame": {"x":0,"y":0,"w":144,"h":143},
6
+ "rotated": false,
7
+ "trimmed": false,
8
+ "spriteSourceSize": {"x":0,"y":0,"w":144,"h":143},
9
+ "sourceSize": {"w":144,"h":143},
10
+ "anchor": {"x":0.5,"y":0.5}
11
+ },
12
+ "f1.png":
13
+ {
14
+ "frame": {"x":0,"y":143,"w":200,"h":200},
15
+ "rotated": false,
16
+ "trimmed": false,
17
+ "spriteSourceSize": {"x":0,"y":0,"w":200,"h":200},
18
+ "sourceSize": {"w":200,"h":200},
19
+ "anchor": {"x":0.5,"y":0.5}
20
+ },
21
+ "f17.png":
22
+ {
23
+ "frame": {"x":0,"y":343,"w":200,"h":200},
24
+ "rotated": false,
25
+ "trimmed": false,
26
+ "spriteSourceSize": {"x":0,"y":0,"w":200,"h":200},
27
+ "sourceSize": {"w":200,"h":200},
28
+ "anchor": {"x":0.5,"y":0.5}
29
+ },
30
+ "f33.png":
31
+ {
32
+ "frame": {"x":0,"y":543,"w":200,"h":200},
33
+ "rotated": false,
34
+ "trimmed": false,
35
+ "spriteSourceSize": {"x":0,"y":0,"w":200,"h":200},
36
+ "sourceSize": {"w":200,"h":200},
37
+ "anchor": {"x":0.5,"y":0.5}
38
+ },
39
+ "f49.png":
40
+ {
41
+ "frame": {"x":0,"y":743,"w":200,"h":200},
42
+ "rotated": false,
43
+ "trimmed": false,
44
+ "spriteSourceSize": {"x":0,"y":0,"w":200,"h":200},
45
+ "sourceSize": {"w":200,"h":200},
46
+ "anchor": {"x":0.5,"y":0.5}
47
+ },
48
+ "f65.png":
49
+ {
50
+ "frame": {"x":0,"y":943,"w":200,"h":200},
51
+ "rotated": false,
52
+ "trimmed": false,
53
+ "spriteSourceSize": {"x":0,"y":0,"w":200,"h":200},
54
+ "sourceSize": {"w":200,"h":200},
55
+ "anchor": {"x":0.5,"y":0.5}
56
+ },
57
+ "f81.png":
58
+ {
59
+ "frame": {"x":0,"y":1143,"w":200,"h":200},
60
+ "rotated": false,
61
+ "trimmed": false,
62
+ "spriteSourceSize": {"x":0,"y":0,"w":200,"h":200},
63
+ "sourceSize": {"w":200,"h":200},
64
+ "anchor": {"x":0.5,"y":0.5}
65
+ },
66
+ "f97.png":
67
+ {
68
+ "frame": {"x":0,"y":1343,"w":200,"h":200},
69
+ "rotated": false,
70
+ "trimmed": false,
71
+ "spriteSourceSize": {"x":0,"y":0,"w":200,"h":200},
72
+ "sourceSize": {"w":200,"h":200},
73
+ "anchor": {"x":0.5,"y":0.5}
74
+ }},
75
+ "animations": {
76
+ "f": ["f1.png","f17.png","f33.png","f49.png","f65.png","f81.png","f97.png"]
77
+ },
78
+ "meta": {
79
+ "app": "https://www.codeandweb.com/texturepacker",
80
+ "version": "1.0",
81
+ "image": "img/bling.png?201902132001",
82
+ "format": "RGBA8888",
83
+ "size": {"w":200,"h":1543},
84
+ "scale": "1",
85
+ "smartupdate": "$TexturePacker:SmartUpdate:039bccd14886d80b484440eec94bd6cd:b21de643a586105525821b7e480f0993:0338f93aa40777344228faef84331fac$"
86
+ }
87
+ }