Commit graph

236 commits

Author SHA1 Message Date
Ian Prest
966bb05663 Changed "no color" to render as a little 'x' instead of red stripes 2015-07-18 21:46:31 -04:00
Ian Prest
c2b1e4ab7a Fix front-printed text on DSA-profile caps 2015-07-18 21:32:05 -04:00
Ian Prest
1df11bf007 Merge remote-tracking branch 'origin/master' into fully-generic-legends 2015-07-18 20:28:11 -04:00
Ian Prest
16c1a6421a Added jasonm32 credit to CONTRIB file 2015-07-18 20:20:13 -04:00
Ian Prest
8944367a7e Merge branch 'jasonm23-symbolics-spacecadet' 2015-07-18 20:13:58 -04:00
Ian Prest
d77f708a85 Merge branch 'symbolics-spacecadet' of git://github.com/jasonm23/keyboard-layout-editor into jasonm23-symbolics-spacecadet 2015-07-18 20:13:43 -04:00
Ian Prest
cd5169d5cd Testing: Added tests for text positioning & size/color overrides 2015-07-18 20:06:10 -04:00
Ian Prest
bd2c69b308 Testing: Added regression tests for various samples 2015-07-18 19:46:31 -04:00
Ian Prest
7d8f090064 Testing: Added code to snap screenshots 2015-07-18 19:08:05 -04:00
Ian Prest
4b43791e19 Testing: Added a very simple launch unit-test
-- Testing using protractor
2015-07-18 16:40:31 -04:00
JasonM23
24e2b68152 Create symbolics-spacecadet 2015-07-18 23:20:58 +08:00
Ian Prest
a49e4fe4ec Remove unnecessary align-checkbox update code 2015-07-17 23:52:28 -04:00
Ian Prest
17d072bac8 Moved rotation controls to keep size/pos stuff together 2015-07-17 22:50:55 -04:00
Ian Prest
270db3d13a Moved color controls to keep 'legend' stuff together 2015-07-17 22:49:54 -04:00
Ian Prest
ceed023251 Remove unnecessary rendering bits
-- align flags no longer used during rendering
2015-07-17 22:32:42 -04:00
Ian Prest
545567b598 Fixed "F2" to invoke the editor
-- Tried to focus the wrong field
2015-07-17 22:32:09 -04:00
Ian Prest
e155fcafc0 Added edit-boxes for fully-generic legends
-- 12 fields, overrides for color & size on each
-- alignment checkboxes removed
-- fontheight2 field deleted
-- fontheight renamed to textSize
-- "text" renamed to "textColor"
2015-07-17 22:31:31 -04:00
Ian Prest
772615339d Now properly validating the width & height fields when sizing with the keyboard. 2015-07-17 22:26:25 -04:00
Ian Prest
26079fa8b6 Tweaked "profile" field to prevent autocomplete
-- Added "search" in the #id so that LastPass wouldn't try to fill it.
2015-07-17 22:22:42 -04:00
Ian Prest
56d3ff2210 Change key rendering to handle fully-generic legends 2015-07-17 22:20:26 -04:00
Ian Prest
3e6bbf61e7 Tweak CSS for fully-generic legend text
-- legends will be in order (left-to-right, top-to-bottom), and there
will now be 12 of them in total
2015-07-17 22:18:04 -04:00
Ian Prest
b8c392954d Added "remove" function to array prototype
-- removes elements by value
2015-07-17 22:16:43 -04:00
Ian Prest
5e972cd114 Made JSON-L parser even more lenient
-- Now allows "empty" values in arrays, e.g., "[1,,,,3]"
2015-07-17 22:12:14 -04:00
Ian Prest
ae3e23d395 Updated URLON with latest version 2015-07-17 22:11:11 -04:00
Ian Prest
699309c621 Fix problem loading the initial (numpad) layout
-- We tried to render the keys before body.onLoad was invoked, so the
render templates weren't ready.
-- Replaced with an init() function that is called earlier during
startup.
-- Fixes #91.
2015-07-17 11:15:45 -04:00
Ian Prest
f9e63ac0c5 Added SVG support for profile gradients
-- Holy hell... that was annoying.
2015-07-14 00:58:03 -04:00
Ian Prest
2bac6789b6 Rewrote SVG export as a doT.js template
-- Because more of the sizes are parameterized, SA/DSA-profile caps now
have the correct shape.
-- Also moved the SVG button to a more prominent location.
2015-07-13 23:33:41 -04:00
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
324732fcd8 Move CSS build rules to Makefile 2015-07-13 00:05:05 -04:00
Ian Prest
c0c31e44b7 Fix color-picker performance
-- Last fix (9544fc8c6c) caused a huge
performance penalty, so I'm now back to using '&' to bind the onChange &
onBlur.
-- Now using $timeout to delay call to onChange & onBlur until after the
current digest cycle is complete.
2015-07-12 23:44:56 -04:00
Ian Prest
9544fc8c6c Fix color pickers
-- ngChange/ngBlur were being called *before* the value changed
-- Something to do with it being a directive and using '&'; switched to
'='.
-- Fixes #89.
2015-07-12 22:57:34 -04:00
Ian Prest
f5cbfa3555 Tweak to formatting for front-printed labels on SA/DSA profiles.
-- New rendering pushed the text down, so we move it back up.
-- Other profiles were already moved up by a pixel.
2015-07-12 21:02:52 -04:00
Ian Prest
58a140b22a Tweaked makefile to work with NPM 1.0 2015-07-12 21:01:43 -04:00
Ian Prest
14b8d72f5e Cleaned up the VIC-20 sample a bit more 2015-07-12 21:01:09 -04:00
Ian Prest
3bc4025435 Better alignment of rotation crosshairs. 2015-07-12 20:12:54 -04:00
Ian Prest
2dd5109bfc Fix swatches display; was shifted right on webkit browsers 2015-07-12 19:28:05 -04:00
Ian Prest
4ac1a47739 Tweak position of keyboard name/author data.
-- Moved around during rendering refactor.
2015-07-12 19:23:45 -04:00
Ian Prest
a8922eaf47 Fix homing nub rendering. 2015-07-12 19:19:45 -04:00
Ian Prest
824707f776 Major refactoring of the keycap rendering to HTML
-- Generating HTML with a doT.js template function; hopefully easier to
maintain.
-- More of the parameters refactored into the JS code, rather than
relying on being in the CSS; benefit => those parameters are available
when I do SVG rendering.
-- Also, now using Stylus to compile & minify CSS, and auto-inline small
images (Sublime project describes how to compile).
2015-07-12 19:16:57 -04:00
Ian Prest
ec21e1df5c Support rotated clusters in SVG
-- plus a bit of refactoring to rotated HTML to be more in line with SVG
2015-07-07 21:18:00 -04:00
Ian Prest
dab8167c16 More work on SVG export
-- more rendering refactoring & parameterization
-- a set of sizes to get output to scale (in mm)
2015-07-07 20:28:12 -04:00
Ian Prest
dbcf26c34f Fix issue with bad permalinks
-- There was a disconnect about what "serializedRaw" meant in different
places in the code; some places thought it was a string, others that it
was JS objects.
-- As a result, the "permalink" was broken immediately after editing on
the "raw data" tab.
-- I renamed the variable to make the meaning clear, and fixed the
permalink issue.
-- Fixes #83.
2015-07-06 21:28:44 -04:00
Ian Prest
f94d8c9be6 Preliminary SVG work.
-- Refactored the rendering code so I could re-use as much of it as
possible.
-- Added a button to download SVG (currently on the raw-data tab).
-- Lots of limitations... no labels, no profile support, no rotated-key
support, etc.
2015-07-06 20:48:31 -04:00
Ian Prest
552bb150e5 Small CSS tweak to make keys look better
-- Wasn't very obvious at 100%, but if you zoomed in, you could tell
that the border was getting clipped by a background <div> that was on
top of it.
2015-07-06 00:26:08 -04:00
Ian Prest
9f19fabc8d Updated "Retro DSA" sample to use new HOMING checkbox 2015-07-05 20:13:46 -04:00
Ian Prest
0b0f6bdbda Added a checkbox & rendering to turn on the HOMING nubs
-- It was already being serialized.
2015-07-05 20:00:52 -04:00
Ian Prest
2edec9d375 Updated "profile" CSS styles
-- New OEM profile (renders same as DCS)
-- SA tweaked to sit a bit higher than DSA
-- Now showing a homing nub on all profiles (other than SA/DSA)
-- DSA/SA deep-dish made (slightly) more visible
2015-07-05 19:44:39 -04:00
Ian Prest
6d1d9efdca Bumped version t v0.12; updated CHANGELOG 2015-07-05 17:39:46 -04:00
Ian Prest
24e8f87982 Rearrange some of the presets. 2015-07-05 17:34:16 -04:00
Ian Prest
f290d0517f Show kbd name & author on the actual layout.
-- Linked to the rendered metadata screen.
2015-07-05 17:10:14 -04:00