Evan Czaplicki
e2aa6087bc
Fix opacity issue discovered by @halacsy
2014-03-21 00:54:31 -07:00
Mark Grant
898f3f8361
Fix accidentally non-local variables
2014-03-12 02:23:25 -05:00
Evan Czaplicki
1738a0821f
Fix #512
...
Using -= permanently changed the value. I guess I forgot to think about
mutation :P
2014-03-09 12:56:50 -07:00
Evan Czaplicki
eaee1370a4
Fix bug rendering text fields positioned in a container
2014-03-08 10:10:13 -08:00
Evan Czaplicki
093d7afb34
Move all field related stuff to Graphics.Input.Field and add the ability to style fields
2014-03-01 22:43:21 -08:00
Evan Czaplicki
9423af410f
Use Text.leftAligned instead of old Text.text in the runtime
2014-03-01 21:04:33 -08:00
Evan Czaplicki
ea28a87b7b
Merge branch 'input' into dev
...
Conflicts:
libraries/Native/Graphics/Input.js
runtime/Render/Element.js
2014-02-19 08:00:33 -05:00
Evan Czaplicki
86436d7280
Merge pull request #502 from Xashili/dev
...
Added support for .pointer-events.
2014-02-19 07:50:38 -05:00
Evan Czaplicki
1c832af6b0
Attempt to revamp the Graphics.Input library, much testing still needed
2014-02-17 17:38:37 +01:00
Evan Czaplicki
fd74685db0
Merge pull request #500 from Dandandan/master
...
use position:relative for collage
2014-02-15 23:53:53 +01:00
DanDanDan
62bb5dedd3
use position:relative for collage
2014-02-15 15:23:50 +01:00
Evan Czaplicki
a815b2fbd0
Merge pull request #496 from Dandandan/master
...
Don't set innerHTML when contents didn't change
2014-02-12 11:45:18 +01:00
DanDanDan
8d670355a7
Don't set innerHTML when contents didn't change
2014-02-11 18:34:52 +01:00
Max New
e194592403
Better window workaround. Thanks @raynos
2014-01-22 20:24:03 -06:00
Max New
066992c251
Tweak runtime so it runs without a "window" object defined.
2014-01-22 16:04:04 -06:00
Evan Czaplicki
df95c68c56
Fix problem with Text alignment!
2014-01-20 20:54:16 +01:00
Evan Czaplicki
4b1474dcdc
Correctly update model, accounting for possibly dropped frames
...
Thanks to @johnpmayer for discovering this issue!
Since draw is async, it was possible to update the model without
updating the underlying DOM stuff. This could cause issues on its own,
but if you need to pass info from model to model, that is also lost
when this happens.
2014-01-20 19:57:31 +01:00
Evan Czaplicki
996848ce86
Simplify the JS API for sending values to signal ports, making error handling more reasonable
2014-01-16 18:30:44 +01:00
Christian Widera
62540a9065
Added support for .pointer-events.
2014-01-15 23:01:32 +01:00
Evan Czaplicki
665312543b
experimental support for setting favicons
...
Works in Chrome and FF for sure. Safari definitely does not work. Not
sure about Opera and IE9+
2014-01-15 12:59:49 +01:00
Evan Czaplicki
beabf941e4
Rename "output" to "ports" and "input" to "signal"
2014-01-14 14:05:35 +01:00
Evan Czaplicki
0fd74d4fad
Give nicer error messages when user provides values for ports that do not exist
2014-01-14 14:00:19 +01:00
Evan Czaplicki
cbf0b60df8
Fix checks for node.js on stdout and stderr ports
2014-01-14 11:48:58 +01:00
Evan Czaplicki
1650aad829
Allow the title port to work on Strings and Signals of Strings
2014-01-13 21:12:18 +01:00
Joseph Hager
d1a85fee9b
Fix window object not being detected in runtime.
2014-01-06 15:05:10 -05:00
Evan Czaplicki
85bf092192
Detect errors in port usage (i.e. too many or too few)
2014-01-06 07:49:04 +01:00
Evan Czaplicki
502cfc0465
Handle values sent to incoming ports, still need to properly define Elm.input though
2014-01-05 13:47:01 +01:00
Evan Czaplicki
1eaa3043c8
define ports_out on the elm object
2014-01-04 16:16:50 +01:00
Evan Czaplicki
7e64531d2e
Switch from old FFI to new port interface for default output ports
...
Also add default handlers for stdout and stderr
2014-01-04 11:41:06 +01:00
Evan Czaplicki
71bb1c8bf9
Add basics of properly handling ports
2013-12-24 10:13:19 -08:00
Evan Czaplicki
bccfece2c1
Merge branch 'master' into dev
2013-11-19 22:34:08 -08:00
Evan Czaplicki
704da021b0
Fix "dropped" frames for text updates ( #224 , #339 ) using @timthelion's insights in #350
...
* Change the implementation of `notify` so that it does not have a
return value any more.
* Get rid of the only remaning use of the return value of `notify` in
the `every` function.
* Have a "lock" on each round to ensure that no library or runtime
calls `notify` synchronously, causing an update to happen half way
through another update, ultimately leading to a dropped frame.
2013-11-18 17:23:40 +01:00
Evan Czaplicki
b4440ad607
Stop creating dummy divs around every Element in a collage, fixes ordering issue in elm-at-pldi-2013
2013-11-03 02:29:51 +01:00
Evan Czaplicki
ef2b38fe11
Always switch out Text elements
2013-11-02 23:17:29 +01:00
Michael Sondergaard
d57762e3ce
Fix mixed indent and whitespace in Utils.js
2013-10-31 14:51:12 +01:00
Michael Sondergaard
9aa468e59a
Fix newline at EOF in Element.js
2013-10-31 14:50:21 +01:00
Michael Sondergaard
3c5d415c77
Fix whitespace and mixed indent in Collage.js
2013-10-31 14:48:47 +01:00
Michael Sondergaard
db7e3f618f
Fix whitespace in Init.js
2013-10-31 14:47:31 +01:00
Evan Czaplicki
5d1ba746ac
Merge branch 'master' into dev
2013-10-30 16:34:29 +01:00
Evan Czaplicki
117294ee94
Provide a fake window in needed, making runtime run on node.js
2013-10-30 16:33:44 +01:00
Evan Czaplicki
56ecbbc70a
Implement markdown interpolation
2013-10-25 17:36:30 +02:00
Evan Czaplicki
2150eab871
fix string conversion in runtime/
2013-10-22 10:44:40 +02:00
Evan Czaplicki
a29a1fd558
Fix mouse and touch tracking for embedded Elm programs, #291
2013-10-13 19:10:02 -04:00
Evan Czaplicki
b40f2958d4
New convention for storing module values, fixes bug
...
Before it was not possible to add values to anything except leafs of
the namespace structure.
2013-09-30 01:32:27 -07:00
Evan Czaplicki
dcbe2fc245
Change the format of module instantiation
...
Currently, it's only possible to create modules at the leafs of the
namespace structure. This CL lifts that restriction.
Get rid of "use strict" in many cases.
2013-09-30 00:44:31 -07:00
Evan Czaplicki
984cfc55a9
Fix issue #230
...
The problem was that `inner` was not refering to the correct node in
the `setPos` expression if the inner node got replaced.
2013-09-02 01:04:21 -07:00
Alex Neslusan
c58c97bb76
Fixed issue #234
...
By removing old style properties in setPos
2013-09-01 13:49:37 +08:00
Evan Czaplicki
1a45cb5eca
Nicer API for embedding Elm programs
2013-08-29 17:38:37 -07:00
Evan Czaplicki
089ae13ae6
Fix problems with transformation matrices that include numbers very close to zero (as in issue #222 )
2013-08-25 01:03:59 -07:00
Evan Czaplicki
8d09047b76
Switch runtime over to Transform2D library
2013-08-19 15:40:03 -07:00