618 Commits

Author SHA1 Message Date
Mario Zechner
6df2bda192 [ts] Minify IIFE artifacts, update version to 4.0.4. 2021-09-01 13:19:08 +02:00
Mario Zechner
57fe02c576 [ts] Updated version to 4.0.3 2021-09-01 12:49:51 +02:00
Mario Zechner
91daf25484 [ts] Updated README, fixed license and readme inclusion in packages. 2021-09-01 12:48:53 +02:00
Mario Zechner
3d3589f265 [ts] Refactor build, don't commit artifacts
npm install will automatically build everything necessary for local development and viewing the examples.
2021-09-01 11:09:31 +02:00
Mario Zechner
a9f6735106 Merge branch 'ts-modules' of https://github.com/esotericsoftware/spine-runtimes into ts-modules 2021-09-01 09:46:29 +02:00
Mario Zechner
5e0006863a [ts] Update version to 4.0.2 2021-09-01 09:46:23 +02:00
Mario Zechner
08e3a5eee4
[ts] Update README.md 2021-08-31 18:54:10 +02:00
Mario Zechner
a12e26be65 [ts] Wire up package.json files for publishing 2021-08-31 15:59:39 +02:00
Mario Zechner
de6cee955b [ts] Remove old namespaces, dev build
Previously, we'd export to global objects called spine.canvas, spine.webgl, spine.threejs. Going forward, all Spine APIs will be hosted by the global spine object when the runtime is used straight from the bundled .js files in the build/ folder. This is a minor change with a simple fix on the user side, i.e. replace spine.canvas. with spine.
2021-08-27 18:48:17 +02:00
Mario Zechner
39df4c7cbb [ts] Formatter pass 2021-08-27 17:24:18 +02:00
Mario Zechner
ef6f2efb1a [ts] Fix minification of player and threejs backends. 2021-08-27 00:23:02 +02:00
Mario Zechner
17c0cb00c2 [ts] Fix up player resources copying in build script. 2021-08-26 14:32:10 +02:00
Mario Zechner
58fe4ed229 [ts] Fix up build script. 2021-08-26 14:29:55 +02:00
Mario Zechner
187b2d88f1 [ts] Minor touch up of threejs example. 2021-08-26 14:28:14 +02:00
Mario Zechner
bf347df8af [ts] Modularized spine-threejs, removed threejs typings 2021-08-26 14:20:27 +02:00
Mario Zechner
17c342ac61 [ts] Modularize player, add package.json files, fix up module paths. 2021-08-25 21:00:17 +02:00
Mario Zechner
79f0abf765 [ts] Refactor module resolution, switch to esbuild 2021-08-25 19:30:46 +02:00
Mario Zechner
ca6b3d0bac [ts] Modularize spine-canvas, fixup rollup setup 2021-08-25 01:32:39 +02:00
Mario Zechner
3c2d39a936 Use rollup.js to generate a UMD bundle for spine-core. 2021-08-20 18:36:55 +02:00
Mario Zechner
8831c7d96e Add index.ts for core, scripts for dev and build. 2021-08-20 16:59:48 +02:00
Mario Zechner
2420a2e48a Remove old tsconfigs. 2021-08-20 16:24:52 +02:00
Mario Zechner
474dae82a0 ES2015 modulification of spine-ts core. 2021-08-20 16:24:10 +02:00
Mario Zechner
0bf2fb6059 Revert "Formatting errors to test GH Action."
This reverts commit 1800b235458b331b87bed27ce5aee55575163fc7.
2021-08-18 21:21:09 +02:00
Mario Zechner
1800b23545 Formatting errors to test GH Action. 2021-08-18 21:15:37 +02:00
Mario Zechner
61f63549d4 Apply tsfmt to TypeScript sources, formatting pass on .ts files. 2021-08-16 19:34:27 +02:00
Nathan Sweet
8d99332f7f [all] Fixed AnimationState#addEmptyAnimation when the track is empty.
http://esotericsoftware.com/forum/Spine-4-change-in-behavior-with-EmptyAnimation-16176
2021-07-28 20:32:53 -04:00
Nathan Sweet
0b01c0036e [as3][c][cpp][csharp][libgdx][ts] Fixed SkeletonBinary scale not being applied to some timelines.
closes #1928
2021-07-20 13:31:31 -04:00
Nathan Sweet
1bde7527c9 [ts] Better error when parent element is not found. 2021-07-19 16:58:17 -04:00
Nathan Sweet
7dcf77a805 [ts] Fixed omitting player config.showControls. 2021-07-18 17:40:27 -04:00
Ivan Popelyshev
9541688926
NBSP -> space (#1923) 2021-07-15 06:50:04 +02:00
badlogic
80e2b78dd1 [player] Don't force mipmaps if atlas page is non-POT in WebGL1 2021-07-09 18:32:04 +02:00
badlogic
7521838264 [webgl] Disable forced mipmaps in Safari. 2021-07-09 18:15:01 +02:00
badlogic
ade13216b3 [ts][webgl] Fix WebGL2 check for old Safari versions. 2021-07-09 17:53:36 +02:00
Nathan Sweet
97bc10ba28 [ts] Fixed popup not being hidden, clean up. 2021-06-30 20:18:25 -04:00
Nathan Sweet
87b9821e00 [as3][c][cpp][cs][libgdx][lua] Fixed crash with path constraint proportional spacing and tangent rotate modes. 2021-06-30 14:11:26 -04:00
Nathan Sweet
b8bf2a9bbb [ts] Added AssetManager#require which throws an error for an asset that isn't loaded. 2021-06-28 01:53:26 -04:00
Nathan Sweet
0b18b58ba1 [ts] Player updates: pass delta to callbacks, adding config.loading, exposed more fields, use void 0 (shorter), remember touchdown offset for control bones, avoid new object each frame, clean up. 2021-06-23 11:43:29 -04:00
Nathan Sweet
7708e9a5a3 [ts] Player, create DOM first so any errors can be shown. 2021-06-23 00:45:15 -04:00
Nathan Sweet
b3c405e9ca [ts] Fixed multi touch runtime error.
Repro: touch down 1, touch down 2 (using second finger), touch up 1, touch up 2 -> error.
2021-06-22 23:08:09 -04:00
Nathan Sweet
f77a51d33a [ts] Fixed input handling for player control bones and demos. 2021-06-22 22:52:00 -04:00
Nathan Sweet
286552b8fa [ts] Player, simplified config.mipmaps. 2021-06-22 21:38:57 -04:00
Nathan Sweet
66951cb1d8 [ts] Player, mipmaps and anisotropic if available, otherwise use linear. 2021-06-22 18:09:37 -04:00
Mario Zechner
e6e2c95b2c [ts][webgl] Use devicePixelRatio for hdpi screens 2021-06-22 23:50:04 +02:00
Nathan Sweet
6c689eb5f8 [ts] Fixed example HTML files. 2021-06-22 16:54:10 -04:00
Nathan Sweet
61b71e1d9a [ts] Player example fixes, clean up.
* Use minified JS and CSS absolute URLs.
* Renamed index.html so the other html file can be reached more easily.
* generator.html doesn't seem to work?
2021-06-22 15:43:50 -04:00
Nathan Sweet
4062ccb1a9 [ts] TextureAtlas and AssetManager updates.
* AssetManager's textureLoader returns Texture.
* AssetManager#loadTexture success gives a Texture.
* TextureAtlas no longer has a textureLoader, it creates all the pages without a texture set.
* TextureAtlasRegion no longer has a texture, use region.page.texture instead.
* AssetManager#loadTextureAtlas no longer parses the atlas text twice. It creates the atlas, then loads and sets all the textures.
2021-06-22 15:33:01 -04:00
Nathan Sweet
3b7d419452 [ts] Player, added config.frame. 2021-06-20 18:53:56 -04:00
Nathan Sweet
4e1fe97fb3 [ts] Player, added config.update and config.draw. 2021-06-20 18:51:22 -04:00
Nathan Sweet
d4271ccae9 Fixed AnimationState#clearNext. 2021-06-20 15:53:19 -04:00
Nathan Sweet
5ac9ed372e [ts] Player, expose some fields. 2021-06-20 15:52:43 -04:00