Commit graph

15 commits

Author SHA1 Message Date
Ian Prest
df91acc938 Remove unnecessary string.prototyp extensions
-- I had another copy of the same thing in extensions.js
2015-07-13 23:32:17 -04:00
Ian Prest
7b5da3b640 Fixed tiny serialization issue
-- Serializer was outputting the text color even if it was the same as
the default.
-- Also, now rounding numbers to four decimal places, so we don't output
numbers like 7.2499999999999.  :)
2015-07-05 15:50:55 -04:00
Ian Prest
3967c99df2 Added an additional 'keyboard name' metadata field. 2015-07-04 23:20:17 -04:00
Ian Prest
3b11c8b9f6 Added metadata fields for "author" and "notes". 2015-07-04 21:38:04 -04:00
Ian Prest
5b063b9b5e Can now set different colors for each text label on a keycap.
-- New color picker (angular-bootstrap-colorpicker)
-- Color picker placed beside each label field.
-- Can also drag & drop from palette to label fields (using
angular-dragdrop).
2015-07-04 01:39:20 -04:00
Ian Prest
103e822313 Fix serialization errors with rotated clusters.
-- If the first row in your layout was rotated, the x & y coordinates
didn't get output correctly.
-- The serializer didn't take into account that *both* x & y are updated
when *either* rx & ry are specified in the output; as a result, it would
mis-calculate the correct x & y coordinates for some rotated keys.
-- Fixes #57 and #61
2015-07-03 19:22:18 -04:00
Ian Prest
3f44b1f866 Added the ability to upload a JSON file.
-- "Upload" button on the raw-data tab
-- Drag & drop to either the raw-data editor, or to the main kb preview
area
2015-07-03 00:42:30 -04:00
Ian Prest
1bb8b02efd Added the ability to download the raw-data as JSON
-- Button on the "Raw Data" tab
-- Data is serialized to (pretty) JSON, then downloaded using
FileSaver.js
2015-07-02 23:20:15 -04:00
Ian Prest
620f0504ea Fix problem where first key always reset itself to 1x1 size.
-- width2/height2 weren't being set, so they had the default (1x1) size
-- Fixes #81.
2015-07-02 17:24:18 -04:00
Ian Prest
250427c4bb Serialization for rotated-clusters. 2013-11-12 22:56:43 -05:00
Ian Prest
b9ff4c651b Started implementation of rotated-cluster support.
-- Each key has a rotation angle, and center of rotation; available in
the editor.
-- Displaying crosshairs in the editor for the center of rotation.
-- Keyboard shortcuts to move CoR, and change angle.
-- Keyboard height is correctly calculated.
TODO:
-- Serialization is still wonky.
-- Can't click on rotated keys to select them.
2013-11-12 22:56:41 -05:00
Ian Prest
084a2e48d2 Speed up kbHeight calculations.
-- Querying the DOM was expensive; now just looping over all the keys.
2013-11-10 15:06:13 -05:00
Ian Prest
23e8f11c8c Refactored the serialization code to make it easier to maintain.
-- All the key defaults are now centralized.
2013-11-10 14:58:28 -05:00
Ian Prest
55e466e8cc Moved the S3 saving code into serial.js. 2013-11-09 23:25:43 -05:00
Ian Prest
cbc4b80d45 Moved serialization routines into their own .js file. 2013-11-09 23:08:08 -05:00