Evan Czaplicki
8e2c6989b4
Get rid of Selection, simplifying the field API
...
Real reason is that setSelectionRange also sets the focus. This
behavior makes sense, so the underlying issue is that setting the
selection for two fields is not meaningful because only one can have
focus.
How to set focus (for fields or inputs in general) is not really
answered yet, so I think it makes the most sense to leave it out for
now.
2014-03-03 00:08:58 -10:00
Evan Czaplicki
4c43439cdb
Fix typo that caused runtime error with buttons
2014-03-02 12:43:32 -10: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
1b098b9a21
Handle cut, paste, undo, and other changes that avoid onkeypress
2014-02-22 17:18:46 -05:00
Evan Czaplicki
162141b5bd
Improve behavior of text field updates, but not entirely
...
Still need to fix behavior of copy/paste and undo.
2014-02-22 15:55:27 -05:00
Evan Czaplicki
fea6361da5
Fix silly naming bug with coverable and clickable
2014-02-21 12:28:16 -05: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
6a2d21fbdb
Fix bug revealed by TodoFRP
2014-02-18 13:18:20 -05:00
Evan Czaplicki
0018d32627
Start using new Input type everywhere!
...
Whoo! :D
2014-02-18 12:14:10 -05:00
Evan Czaplicki
0c805d8c4f
Get drop down menus rendering
2014-02-17 21:28:15 +01:00
Evan Czaplicki
49901dc5d3
Fix bugs in fields
2014-02-17 20:57:57 +01: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
8fbb9c799d
Cosmetic: adjust indentation
2014-02-17 10:42:13 +01:00
Christian Widera
62540a9065
Added support for .pointer-events.
2014-01-15 23:01:32 +01:00
Evan Czaplicki
46b9558b1a
Get rid of unnecessary logging
2013-11-03 15:11:09 +01: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
936ffdea81
Give the proper field names to checkboxes
2013-08-02 22:20:24 -07:00
Evan Czaplicki
1b1f058170
get rid of tabs
...
fucking tabs
2013-08-01 19:47:43 -07:00
Evan Czaplicki
e297564140
make sure clicks are registered on buttons
2013-08-01 19:47:09 -07:00
evancz
afacd1b858
Add hoverable
and hoverables
2013-06-15 00:49:22 -07:00
evancz
2da0a59e35
Add basic drop down menus.
2013-05-23 12:44:57 +02:00
evancz
582a4c5ee2
Fix Float32Array bug in IE. Fix input selection bug in IE.
2013-05-22 14:05:53 +02:00
evancz
de4e9ac19f
Fix mistake in Graphics/Input.js library.
2013-05-22 03:05:44 +02:00
evancz
94bb5e5a31
Change the type of FieldState
slightly. Now uses selectionStart
and selectionEnd
instead of the more ambiguous start
and end
.
...
Also add tons of documentation to `Graphics.Input`.
Also add the `emptyFieldState` value.
2013-05-20 15:35:44 +02:00
evancz
c92dd2f921
Add lots of documentation and do some minor API clean up.
2013-05-17 22:46:08 +02:00
Colin Curtin
2b90d0eb9e
Whitespace, semicolons, lint etc. No functional changes.
2013-05-11 13:42:45 -07:00
evancz
3f8ce38f81
Rename some stuff in Graphics.Input
2013-05-06 02:30:11 -07:00
evancz
d114746957
Rename some of the Graphics libraries
2013-04-28 05:21:46 -07:00
evancz
d2846a2534
Fix the default size of text blocks.
2013-04-14 18:07:26 -07:00
evancz
986010fb6a
Add plainText
back. Fix some types. Fix a bug in mergeEither
.
2013-04-10 00:52:53 -07:00
evancz
613d9f5bc9
Fix bug in height
and color
2013-04-05 09:52:18 -07:00
evancz
475bc10876
Add implementation for checkboxes, passwords, and emails.
...
Ensure that direction of text selection is properly captured.
2013-04-01 00:35:18 -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
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
0050bfa845
Add a matrix library and switch collage over to use it.
2013-03-16 01:11:15 -07:00
evancz
1552651eaf
Make sure Mouse, Random, Window, and Time import their native implementation.
2013-03-13 00:00:02 -07:00
evancz
3540449119
Fix behavior of width and height to maintain the dimensions of images when resizing. Move htmlHeight into Utils so it can be used by both Element and Text.
2013-03-12 22:59:15 -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
a1b890adc3
Lots of tiny fixes to get the RTS working!
2013-03-12 00:48:11 -07:00
evancz
76e83e0e1b
Convert Color and Text modules to new format.
2013-03-09 00:22:42 -08:00
evancz
79a747cfc6
Rename core/ to libraries/ to make it more clear what is going on with the directory structure.
2013-03-06 09:28:53 -08:00