26 Commits

Author SHA1 Message Date
Nathan Sweet
7df74c2fa4 Various fixes, clean up.
* Added missing CurveTimeline#shrink calls. c and cpp got BOZO comments until the method is added.
* SkeletonJson#readCurve clean up.
* ts, use shorthand for null checks.
* csharp, don't use unnecessary hasNext local.
2021-06-03 21:42:35 -04:00
badlogic
69647313ef [ts][player] Better error message serialization. 2021-05-17 13:33:25 +02:00
badlogic
748a03c7d7 [ts] Fix for NaN bounds
This is a temporary fix. Customer send reproduction sample. A slot has a mesh and corresponding deform. The number of vertices in the mesh is != the number of vertices in the deform, resulting in NaNs, which propagate to the bounds calculation of the web player. It is unclear how the mesh and deform can have a different number of vertices.
2021-04-06 14:13:04 +02:00
badlogic
b67bf992a0 Single bone IK fix and license header update. Closes #1580, closes #1581. 2019-12-20 12:20:46 +01:00
badlogic
121467572c [player] Added Player.stopRendering() to interrupt the requestAnimationFrame loop. 2019-12-14 02:19:22 +01:00
badlogic
c37916a731 [ts][player] Only accept background image bounds if fully specified. 2019-11-27 15:15:56 +01:00
badlogic
8e0a2e0c75 [ts][player] Added AssetManager.setRawDataURI(path, name). Allows to set a path and corresponding raw data URI which enables embedding of resources like skeletons, atlases, and so on directly in HTML/JS. Added SpinePlayerConfig.rawDataURIs, see the player example for a demonstration. Also closes #1541, closes #1539. 2019-11-05 15:20:50 +01:00
NathanSweet
842dffbd83 [all] Source clean up, formatting, and tabs for indentation. 2019-08-27 15:57:14 +02:00
badlogic
ae6892cdfd [ts][player] Improved check if only one skin/animation should be allowed and display buttons accordingly. 2019-07-09 16:58:24 +02:00
badlogic
ca3916dad8 [ts] Added support for loading binaries via SkeletonBinary. Player configuration object now lets you specify skelUrl instead of jsonUrl to load from a binary file. Updated demos to use .skel files instead of .json. 2019-06-07 17:21:53 +02:00
badlogic
7f7e5f0fec Updated license headers and LICENSE files. 2019-05-02 11:38:19 +02:00
badlogic
c9e760a025 [ts][player] Closes #1279, expose setAnimation(). 2019-02-14 11:43:17 +01:00
badlogic
1cf8a72e30 [ts][player] Closes #1238, disable pause/play when controls are hidden via options. 2019-01-03 13:43:23 +01:00
badlogic
52f9ab8984 [ts] Port of mesh whitespaces stripping. See #1232. 2018-12-22 13:07:10 +01:00
badlogic
96a2386609 [ts][player] PMA by default. 2018-12-20 18:33:16 +01:00
badlogic
61f4165dae [ts][player] iframe content is base64 encoded now. 2018-12-20 17:19:13 +01:00
badlogic
9409a772c6 [ts][player] Fixes for default post/prefix. 2018-12-20 15:27:32 +01:00
badlogic
0d6deee210 [ts][player] Added embedable player code editor. 2018-12-20 15:22:23 +01:00
badlogic
ac45cc9154 [ts][player] Closes #1231. 2018-12-17 18:53:48 +01:00
badlogic
ba33942a45 [ts][player] Fixed constructor. 2018-12-17 18:43:42 +01:00
badlogic
d1172cc785 [ts][player] Handle touch events for hover. 2018-12-17 18:35:29 +01:00
badlogic
65511c6581 [ts][player] Longer delay for control hiding. 2018-12-17 18:26:29 +01:00
badlogic
43227961ce [ts][player] Click on canvas will now pause/resume player ala YouTube. 2018-12-17 18:17:18 +01:00
badlogic
d5ee59558a [ts][player] constructor now takes string in addition to HTMLElement, hover behaviour now similar to YouTube. 2018-12-17 18:00:44 +01:00
badlogic
7a3ec78638 [ts][player] decreased delay for when mouse leaves player area and controls are hidden. 2018-12-17 17:04:58 +01:00
badlogic
075d4a1be5 [ts][player] Removed old widget. Renamed TSC output to spine-player.js, moved sources from widget/ to player/. 2018-12-17 15:32:25 +01:00