Commit graph

134 commits

Author SHA1 Message Date
Evan Czaplicki
8d09047b76 Switch runtime over to Transform2D library 2013-08-19 15:40:03 -07:00
Evan Czaplicki
560f679d8f Fix transparency issue in #210 2013-08-16 00:07:32 -07:00
Evan Czaplicki
251c7d7c2d Avoid extra updates (as recommended by Jeff) 2013-08-16 00:00:39 -07:00
Evan Czaplicki
308c1af433 Fix hotswapping on static scenes 2013-08-09 17:44:18 -07:00
Evan Czaplicki
c37f30fb41 Make sure that screen resize is registered on initialization 2013-08-04 15:27:02 -07:00
Evan Czaplicki
330aa78bde Give a hint about the developer console for runtime errors 2013-08-04 14:45:04 -07:00
Evan Czaplicki
c8d2734a0d Report some runtime errors on screen
only if error occurs on initialization, not after first frame
2013-08-04 13:27:08 -07:00
Evan Czaplicki
94d6f7f471 Fix links, hopefully for real this time 2013-08-02 17:26:25 -07:00
Evan Czaplicki
5c0f1efd4d Fix rendering of links. Should fill only the space of the element. 2013-08-02 15:21:27 -07:00
Evan Czaplicki
3c7f45ff0a fix spacing again 2013-08-01 19:46:51 -07:00
Evan Czaplicki
62dc6e8a57 fix spacing 2013-08-01 19:46:04 -07:00
Evan Czaplicki
32c17ec3f4 make sure anchor tags surround their content 2013-08-01 19:45:41 -07:00
Evan Czaplicki
1fcb01f743 Finish switching over to '_Tuple' format for tuples. 2013-07-15 01:05:14 +02:00
evancz
d0c634f16f Allow collages to get property updates, such as opacity and links. 2013-06-16 14:20:47 -07:00
evancz
afacd1b858 Add hoverable and hoverables 2013-06-15 00:49:22 -07:00
evancz
a3801ac6a8 Ensure that alphas compose when used on groups. 2013-06-13 12:52:23 -07:00
evancz
85110bb625 Properly read alpha value. 2013-06-13 12:17:49 -07:00
evancz
d2a0a0305a Add opacity to the collage API 2013-06-13 12:00:17 -07:00
evancz
b30482a38f Get timers to detach themselves when a swap occurs. 2013-06-03 00:19:48 -07:00
evancz
90cf4218a8 Switch to a custom way of attaching event listeners that makes it easier to detach them if necessary. 2013-06-02 23:46:02 -07:00
evancz
bb719ab763 Merge branch 'master' of https://github.com/evancz/Elm 2013-06-02 11:27:52 -07:00
Andrew Miller
45cfc8fa2e Add missing semicolon without which Firefox parses the collated runtime incorrectly. 2013-06-02 17:44:19 +12:00
evancz
3c01d66161 Fix bug when moving and scaling Elements in a collage. 2013-06-01 14:27:35 -07:00
evancz
487494926c Fix orientation of polygons and paths. 2013-06-01 11:57:08 -07:00
evancz
3829a951d3 Fix another rendering bug for collages. 2013-06-01 11:09:31 -07:00
evancz
35d6019f51 Correct positioning of normal forms that appear in groups right after an Element. 2013-06-01 01:55:33 -07:00
evancz
8004905409 Add keyFrameAnimation for hot-swapping. 2013-06-01 00:13:31 -07:00
evancz
6c2fb97f6a Bug fix: clear collage nodes that should not be shown anymore. 2013-06-01 00:13:04 -07:00
evancz
3d5d60a47d Get basic hot-swapping working. 2013-05-31 10:40:49 -07:00
evancz
cb154acc53 Bug fixes from the Init.js refactor that just happened. 2013-05-30 18:52:02 -07:00
evancz
6ddb826332 First draft addition of hot-swapping. Clean up Init.js a bit as well. 2013-05-30 18:41:43 -07:00
evancz
5e7a34f571 Make image cropping simpler. 2013-05-29 14:27:00 -07:00
evancz
f164a98f31 Fix the updater for plain images. 2013-05-28 16:07:43 -07:00
evancz
bbf20b76bd Display fitted images correctly. 2013-05-25 14:59:37 +02:00
evancz
b247e4663b Add tiled image to the kinds of possible images. 2013-05-25 14:52:12 +02:00
evancz
582a4c5ee2 Fix Float32Array bug in IE. Fix input selection bug in IE. 2013-05-22 14:05:53 +02:00
evancz
5160fc7005 Fix bug in Form element updates in which switching to a different type of Element caused a runtime error. 2013-05-21 22:08:32 +02:00
evancz
26420d2937 Actually build the module when using Elm.worker 2013-05-21 18:25:38 +02:00
evancz
d31acc5c9d Minor bug fixes in RTS and libraries. 2013-05-21 10:03:51 +02:00
evancz
7f314846ad Fix a cyclical dependency in the runtime, fix a use of ms which is now undefined. 2013-05-20 15:36:21 +02:00
evancz
17a44f3531 Change the names of line caps and joins. 2013-05-17 22:45:37 +02:00
evancz
bba39f2934 Fix basic transforms on groups 2013-05-16 22:11:12 +02:00
evancz
1be7f0413a Switch to creating Elm nodes by ID. 2013-05-15 07:38:11 +02:00
evancz
6134ed581d Merge branch 'dev' of https://github.com/evancz/Elm into dev 2013-05-14 19:28:58 +02:00
evancz
b96b240c47 Make rotations counter-clockwise, just like the unit circle. Now trig functions and rendering functions match each other. 2013-05-14 19:28:36 +02:00
Colin Curtin
acd2b61e00 Merge remote-tracking branch 'evan/dev' into lint
Conflicts:
	runtime/Init.js
	runtime/Render/Collage.js
2013-05-14 09:18:38 -07:00
evancz
b04e97a449 Get resizes working for collage. 2013-05-14 16:29:35 +02:00
evancz
7ce550901c Move to initializing with three different functions: fullscreen, node, and worker.
Add code to ensure that mouse and touch positions are reported relative to the embedded Elm node.

Remove the elm_ prefix from the events for logging, redirects, and title changes. Should be silo'd by the `elm` and not escape into the global event namespace.
2013-05-14 16:29:06 +02:00
evancz
d5a099fe85 Get the stops to show up properly. 2013-05-13 22:22:46 +02:00
evancz
e1425af666 Support toForm in all cases. 2013-05-13 16:38:23 +02:00
Colin Curtin
98c0269edc Moar whitespace. 2013-05-11 17:15:45 -07:00
Colin Curtin
2b90d0eb9e Whitespace, semicolons, lint etc. No functional changes. 2013-05-11 13:42:45 -07:00
evancz
dc3b220fce Fix group and groupTransform 2013-05-11 13:00:03 -07:00
evancz
bb2f028bde Significant refactor of Collage.js renderer. Now supports toForm.
The `update` function is naive, leading to very bad memory performance. Need to finish improving that part.
2013-05-11 12:35:39 -07:00
evancz
5b475ac2a0 Begin getting things ready to support toForm 2013-04-19 01:59:39 -07:00
evancz
a764f68646 Get rid of memory leak caused by creating tons of canvases. 2013-04-18 22:25:39 -07:00
evancz
95726b7baf Start using requestAnimationFrame 2013-04-18 22:25:18 -07:00
evancz
1d2b3fcbe4 Add built in event listeners. 2013-04-10 02:00:58 -07:00
evancz
22890292b8 Correct resizing problems with static elements. Previously, no property updates occurred. 2013-04-07 17:57:57 -07:00
evancz
60e403ba82 Fix show for ADTs and get parens in the right places.
Make `Elm.init(Elm.MyModule)` work nicer when it takes over the whole `document` and needs to resize with the window.
2013-04-06 16:48:20 -07:00
evancz
7d1b40a85f Change send function to be curry-able. 2013-04-01 00:35:45 -07:00
evancz
2aeeae7239 Fix rendering of lineJoin. 2013-03-26 19:31:31 -07:00
evancz
9a40392e00 Fix bugs in container and an empty flow 2013-03-26 00:12:31 -07:00
evancz
545be51678 Fix behavior of customButton to avoid flicker. 2013-03-24 22:23:30 -07:00
evancz
24c90b3673 Fix rendering bug with standard input buttons. 2013-03-24 19:48:27 -07:00
evancz
9962ded3e2 Remove logging. 2013-03-24 19:20:52 -07:00
evancz
b930ac2984 Add implementation for buttons, customButtons, and textFields.
Also fix updating bug in `flow`.
2013-03-24 19:19:30 -07:00
evancz
893e4691e6 Add groupTransform function.
Add public Matrix library. Clean up and debug matrix implementation.
2013-03-23 23:54:00 -07:00
evancz
e80f19b423 Fix move to have y-axis properly oriented.
Fix rotations (`degrees` and `turns` functions were broken because I used `Math.pi` instead of `Math.PI`...)
2013-03-23 13:20:30 -07:00
evancz
86a0a904d8 Fix oval and ngon. (It's PI, not pi!) 2013-03-22 18:27:03 -07:00
evancz
584782f5b2 Get dashed lines working again for shapes and paths.
Remove a lot of console.logs.

Start working on displaying Elements. It's trickier with group.
2013-03-22 10:36:12 -07:00
evancz
82a5a65dc9 Fix use of JS reserved word and get outline working. 2013-03-21 03:07:10 -07:00
evancz
4b8c9796a5 Add some files 2013-03-21 02:35:36 -07:00
evancz
131a2b6818 Get sprites working in collage. temporary fix for docs.json issue. Looks like git thinks we're in the past, so a bunch of changes that have already happened as well. 2013-03-21 02:29:23 -07:00
evancz
152ef51a98 Fix croppedImage, show for tuples, and init for resizing initial dom node. 2013-03-13 00:52:14 -07:00
evancz
609dc36596 Add height check and get rid of utils which was in the wrong place (i think) 2013-03-12 21:25:47 -07:00
evancz
55137ac66d Move files around in runtime/ 2013-03-12 11:06:47 -07:00
evancz
d97027c118 More minor fixes to RTS. 2013-03-12 01:51:54 -07:00
evancz
a1b890adc3 Lots of tiny fixes to get the RTS working! 2013-03-12 00:48:11 -07:00
evancz
29a2ec36bb Move css into RTS. Simplifies Haskell API and compiler code. 2013-03-10 18:52:16 -07:00
evancz
a38d346427 Remove a stray 'p' from navigating around in emacs with a weak pinky :P 2013-03-10 15:59:33 -07:00
evancz
f49a509e7f Add send and recv functions for each RTS instance. 2013-03-09 18:58:44 -08:00
evancz
505b1e32d6 Add the Init module which exports Elm.init, creating a self-contained RTS. It can be used as follows:
Elm.init( Elm.MyModule )  // which takes over the document
    Elm.init( Elm.MyModule, arbitraryDiv )  // which embeds the program in 'arbitraryDiv'

These functions can be called multiple times on the same modules!

Also slightly modify the format of the Render module.
2013-03-09 18:39:09 -08:00
evancz
35c5086759 Create runtime/ directory for all runtime specific code.
Add renderer for current version of Graphics.Element.
2013-03-07 11:08:06 -08:00