Commit Graph

185 Commits

Author SHA1 Message Date
Jeff Avallone
988f5ca7d5 Adding sticky and unicode flags
Closes #33
2018-02-10 11:23:56 -05:00
Jeff Avallone
9d69be4c61 Fixing failing tests 2017-07-29 21:10:48 -04:00
Jeff Avallone
6efa287c4e Fixing lint warning that came with the new version of JSCS
Also some other minor code cleanup
2016-07-31 11:47:56 -04:00
Jeff Avallone
1b22d0b717 Cleaning up some of the arrow function syntax
Don't need to use `return` as much as I had been
2016-07-31 11:45:48 -04:00
Jeff Avallone
2ceb94fc42 Adding support for including ^ and $ in the middle of an expression
Closes #29
2016-07-31 11:45:48 -04:00
Jeff Avallone
7e914a5d1e Tweaking how title elements are created for tooltips
Using Snap().el was leading to several <svg> elements being created on
the page
2016-07-31 11:44:33 -04:00
Jeff Avallone
7f6980541c Removing extraneous console.log 2016-07-31 11:38:46 -04:00
Thibaud Colas
71489c5f67 Add loop label tooltip to graph with help cursor 2016-07-31 17:47:26 +03:00
Thibaud Colas
26779038aa Add logic to create loop label tooltip message 2016-07-31 17:46:11 +03:00
Jeff Avallone
6a1a679fc9 Updating lodash version 2016-03-10 17:45:20 -05:00
Jeff Avallone
fd27e28918 Merge pull request #24 from Byron/repeat-edge-cases
'{0}' label is not shown anymore
2016-03-03 07:19:01 -05:00
Sebastian Thiel
b08a9d95f7 '{0}' label is not shown anymore
Previously, '{0}' would be labelled as '-1 Times', which is not actually the case.
Also I am not sure to best visualize such a pattern, right now, except for the label,
'a{0}' looks similar to 'a?', even though they don't have the same effect.
2016-01-03 18:27:34 +01:00
Sebastian Thiel
7a591bb4a8 cleanup special 'definedProperties' field in Node
'definedProperties' seems like module-meta-data, which shouldn't be on a Node instance.
2016-01-03 15:59:50 +01:00
Jeff Avallone
966ab5f2d6 Fixing lint errors 2015-11-01 10:28:37 -05: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
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
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
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
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
Jeff Avallone
cb359bf4dd Adding support for rendering empty subexpressions
Fixes #1
2014-12-30 17:06:29 -05:00
Jeff Avallone
e890fe7d2c Updating progress using the promise notify feature 2014-12-29 17:35:18 -05:00
Jeff Avallone
aa6c792867 Adding tests for Match nodes 2014-12-26 12:48:02 -05:00
Jeff Avallone
cf159c28a5 Finishing tests for MatchFragment nodes 2014-12-26 10:57:46 -05:00
Jeff Avallone
000809752e Removing some unnecessary extend calls 2014-12-23 23:27:09 -05:00
Jeff Avallone
6793b342ae Using fancy quotes for literals 2014-12-23 23:07:51 -05:00