Commit Graph

266 Commits

Author SHA1 Message Date
Jeff Avallone 025636d559 Switching from compass to node-sass and Bourbon 2015-10-31 22:45:36 -04:00
Jeff Avallone dc72b2d4e4 Switching template rendering to use Handlebars
- Extracting the IE8 notice and SVG templates out into partials
- Moving changelog details into a data file
2015-10-31 13:12:14 -04:00
Jeff Avallone d98e2ed384 Updating changelog 2015-09-17 05:57:24 -04:00
Jeff Avallone 0f3677658d Changing content used for empty match
When an empty expression is used in alternation with something else
(such as `(|test)`) the empty expression was using its empty group as a
placeholder element for calculating its anchor position. This
calculation was incorrect and was leading to the alternation not being
centered vertically. Using any element with height and width fixes this.

Fixes #16
2015-09-17 05:51:38 -04:00
Jeff Avallone 6c9f5d4cb6 Fixing label rendering for repetition
Rendering a text element with a string leads to just a <text/> element.
Rendering with an array leads to <text><tspan/></text>. Decided to use
the latter since it matches with the majority of text rendering
currently in use.
2015-09-03 17:08:20 -04:00
Jeff Avallone 4169720eb2 Updating changelog 2015-09-02 17:04:35 -04:00
Christophe Coevoet 4875dd17c4 Fix exposing the error
Using a promise for the setTimeout call is broken in this case, as the error would again be thrown in a promise operation, and so not exposed
2015-09-02 12:41:21 +02:00
Jeff Avallone bdd64b7141 Updating changelog 2015-07-05 18:33:34 -04:00
Jeff Avallone 7fc7affd9f Belatedly adding changelog notes that have been sitting around 2015-07-05 18:32:20 -04:00
Jeff Avallone 4c556a39a1 Tweaking buggy hash detection
This should more appropriately detect the presence of the URL
constructor, and will silently ignore any exceptions (and assume the
hash isn't buggy)
2015-06-22 22:05:03 -04:00
Jeff Avallone 8ac6e7bf9b Updating changelog 2015-06-16 20:32:31 -04:00
Jeff Avallone e1f5891a3a Support for FF's buggy location.hash
FF decodes location.hash for you, so decoding is unnecessary and breaks
when the regex contains a "%"

Fixes #12
2015-06-16 20:22:04 -04:00
Jeff Avallone 06a7ffc110 Moving skip and loop line calculation into Repeat nodes
This code seems more at home in Repeat instead of MatchFragment since
Repeat knows about the dimensions of the lines for the contentPosition
value.
2015-04-23 20:03:25 -04:00
Jeff Avallone ff9e84f20e Adding documentation to subexp.js 2015-04-23 19:50:01 -04:00
Jeff Avallone 661e7fa6fb Adding documentation to root.js 2015-04-23 19:37:24 -04:00
Jeff Avallone c6af61659f Adding documentation to repeat.js and some logic simplification 2015-04-23 19:31:36 -04:00
Jeff Avallone 6beeddb83a Adding documentation to repeat_spec.js 2015-04-23 19:08:35 -04:00
Jeff Avallone beb5a6fb52 Adding documentation to repeat_required.js 2015-04-21 20:53:11 -04:00
Jeff Avallone bd67d7826e Adding documentation to repeat_optional.js 2015-04-21 20:52:21 -04:00
Jeff Avallone 042d44c044 Adding documentation to repeat_any.js 2015-04-21 20:51:27 -04:00
Jeff Avallone 01e920c31c Adding documentation to regexp.js 2015-04-21 20:48:12 -04:00
Jeff Avallone 1b03663473 Adding documentation to match.js 2015-04-21 20:24:56 -04:00
Jeff Avallone ce41796f8b Adding documentation to match_fragment.js 2015-04-21 20:24:56 -04:00
Jeff Avallone 424eca0a2a Adding documentation to literal.js 2015-04-21 20:24:56 -04:00
Jeff Avallone 51c2f87765 Adding documentation to escape.js 2015-04-21 20:24:56 -04:00
Jeff Avallone d8a635fa8f Adding documentation to charset_range.js 2015-04-21 20:24:53 -04:00
Jeff Avallone 7ca4b95cd7 Adding documentation to charset.js 2015-04-21 20:24:49 -04:00
Jeff Avallone c22656a75d Adding documentation to charset_escape.js 2015-04-21 20:24:46 -04:00
Jeff Avallone 01abba224a Adding documentation to any_character.js 2015-04-21 20:24:41 -04:00
Jeff Avallone 2777da518e Replacing an array join with a JS template 2015-04-19 16:45:06 -04:00
Jeff Avallone 1ef8bd7500 Adding documentation and a few tweaks to node.js 2015-04-19 16:40:53 -04:00
Jeff Avallone 8796c1329c Reorganizing and cleanup of base Node code 2015-04-19 12:06:22 -04:00
Jeff Avallone b2e7bade04 Adding more documentation 2015-04-16 17:52:50 -04:00
Jeff Avallone 5917d2b035 Updating getBBox and anchor code to improve performance
This change will reduce the number of calls to this.container.getBBox
when calculating the bounding box of a node
2015-04-16 17:13:12 -04:00
Jeff Avallone 5601c6a398 Removing some long dead code 2015-04-16 17:13:00 -04:00
Jeff Avallone 6cf4e3fe9b Tweaking normalizeBBox
Using defaults instead of extend seems to more clearly illustrate the
intent.
2015-04-16 17:10:30 -04:00
Jeff Avallone 35e817b105 Updating changelog 2015-04-14 21:52:41 -04:00
Jeff Avallone 0fdd210741 Optimizing spaceHorizontall and spaceVertically methods
Each method was transforming each item twice, and I found that Snap
appears to generate at least one timer per transform. Reducing it to one
transform per item.
2015-04-14 21:46:14 -04:00
Jeff Avallone d918f956ef Adding documentation to regexper.js and some minor tweaks 2015-04-12 17:03:13 -04:00
Jeff Avallone 7de958dc25 Adding documentation to util.js 2015-04-12 17:03:13 -04:00
Jeff Avallone d4b4b2111e Adding documentation to main.js 2015-04-12 17:03:13 -04:00
Jeff Avallone 1b3a1819c8 Updating changelog 2015-03-14 17:35:57 -04:00
Jeff Avallone 06e66c0f24 Creating helper methods for the setTimeout uses
Abstracting out some of the setTimeout patterns that have popped up in
the code to make the intention clearer.
2015-03-14 17:27:59 -04:00
Jeff Avallone 0093db8e20 Replacing Q promises with ES6 promises 2015-03-14 17:11:14 -04:00
Jeff Avallone 3970224302 Removing use of notify to update progress bar 2015-03-14 14:01:25 -04:00
Jeff Avallone ef11adb67c Updating changelog 2015-03-13 20:24:03 -04:00
Jeff Avallone 7328825204 Changing when subexpression numbers are generated
Generating subexp numbers during setup was leading to nested expressions
being numbered in reverse order.

Fixes #7
2015-03-13 20:23:04 -04:00
Jeff Avallone 1a117e3672 Updating changelog 2015-02-11 20:11:55 -05:00
Jeff Avallone bd40a71ece Tweaking styling of header links
Fixes #5
2015-02-11 20:06:01 -05:00
Jeff Avallone 1170a1be76 Displaying the hex code of escaped characters
This is only done where appropriate (escapes like "word boundary" don't
have a hex value, and displaying it for hex or unicode escapes would be
a little redundant).
2015-01-25 17:44:07 -05:00