Commit Graph

80 Commits

Author SHA1 Message Date
Sebastian Thiel
388c625e47 '{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-07-27 11:12:56 -04:00
Sebastian Thiel
a624c00554 cleanup special 'definedProperties' field in Node
'definedProperties' seems like module-meta-data, which shouldn't be on a Node instance.
2016-07-27 11:12:56 -04:00
Jeff Avallone
966ab5f2d6 Fixing lint errors 2015-11-01 10:28:37 -05:00
Jeff Avallone
c90d09a1e0 Updating karma-browserify
This required updating import paths in the spec files
2015-10-31 12:09: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
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
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
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
49ac454922 Removing tests for undefined proxy
The proxy is still undefined, but these tests now fail with the latest
node
2015-03-07 17:12:25 -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
Jeff Avallone
80e96c7bd3 Trapping errors in URL formatting and displaying an error message 2015-01-19 10:15:34 -05:00
Jeff Avallone
491c9535a9 Adding code to track expression rendering time 2015-01-01 11:57:11 -05:00
Jeff Avallone
37fca15bc8 Removing _trackEvent method
It has become an unnecessary abstraction around _gaq.push
2015-01-01 11:56:36 -05:00
Jeff Avallone
cb359bf4dd Adding support for rendering empty subexpressions
Fixes #1
2014-12-30 17:06:29 -05:00
Jeff Avallone
d7d1a78656 Preventing unnecessary logging when running tests 2014-12-30 16:37:52 -05:00
Jeff Avallone
facd4f6ac4 Changing how permalink and download links are hidden
Using a class name instead of setting the display CSS property. This
way, the ::after of the download link can be hidden when the permalink
is gone
2014-12-30 16:20:37 -05:00
Jeff Avallone
fc6ffbd73a Merging some shared styles 2014-12-30 10:17:55 -05:00
Jeff Avallone
e271115d24 Merging the rendering code from main.js and regexper.js 2014-12-29 21:31:36 -05:00
Jeff Avallone
d6e81a2932 Beginning to merge rendering code in main.js and regexper.js 2014-12-29 18:37:21 -05:00
Jeff Avallone
d538d7b62a Adding progress bars to the inline diagrams in the documentation 2014-12-29 17:53:54 -05:00
Jeff Avallone
e890fe7d2c Updating progress using the promise notify feature 2014-12-29 17:35:18 -05:00
Jeff Avallone
5406487ae0 Adjusting how errors are logged
This should allow for working out any JS failures that may occur
2014-12-28 17:37:11 -05:00
Jeff Avallone
08fdb254fc Adding failure paths for all async tests
This will ensure the tests fail if the intended path isn't followed
2014-12-27 16:04:22 -05:00
Jeff Avallone
9a412b6b3e Normalizing async tests in Javascript parser specs 2014-12-27 15:57:00 -05:00
Jeff Avallone
e19dc6a294 Updating Regexper class specs to match style used elsewhere 2014-12-27 15:54:01 -05:00
Jeff Avallone
b292a764ff Embedding a template for SVG element instead of just styles 2014-12-26 15:38:22 -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
d21846e872 Fixing how styles are added to SVG documents to please IE
This also allowed the SVG element to be created in a single place
2014-12-24 23:01:32 -05:00
Jeff Avallone
6793b342ae Using fancy quotes for literals 2014-12-23 23:07:51 -05:00
Jeff Avallone
d909312b94 Starting tests for MatchFragment nodes 2014-12-23 22:23:03 -05:00
Jeff Avallone
f264eee5f9 Adding tests for Regexp nodes 2014-12-23 11:02:15 -05:00
Jeff Avallone
8a9178c11e Adding pending test file for remaining nodes 2014-12-22 20:36:14 -05:00
Jeff Avallone
e3eedb17af Adding tests for Root nodes 2014-12-22 20:35:49 -05:00
Jeff Avallone
f842b424cc Adding warnings for non-standard escape sequence usage 2014-12-22 16:57:30 -05:00
Jeff Avallone
281ca50d32 Adding some more checks for CharsetRange tests 2014-12-22 16:16:17 -05:00
Jeff Avallone
b35dece228 Fixing character set ranges
Certain escape sequences are not considered in ranges, and lead to the
hyphen to be part of the matched set of characters
2014-12-22 16:09:27 -05:00
Jeff Avallone
d882ee8e08 Adding check that charset range is in correct order 2014-12-22 15:18:49 -05:00
Jeff Avallone
9b8eef9c02 Setting ordinals for literals 2014-12-22 15:11:37 -05:00
Jeff Avallone
d4b648fa43 Setting ordinal for control code escapes 2014-12-22 15:11:20 -05:00
Jeff Avallone
101b457260 Adding ordinal values to escapes
Work still needs to be done to get control characters correct, and
ordinals will need to be added for literals as well. This is in
preparation for reporting incorrectly ordered charset ranges
2014-12-22 12:44:19 -05:00
Jeff Avallone
961d4812e9 Adding tests for Charset nodes 2014-12-22 10:57:16 -05:00
Jeff Avallone
55ee380817 Adding ability to easily render demo images 2014-12-21 15:22:01 -05:00
Jeff Avallone
e466e7e548 Moving the SVG styles out of the svg element
They are now processed with compass
2014-12-21 14:48:43 -05:00
Jeff Avallone
9bf5328da7 Adding specs for Subexp nodes 2014-12-21 12:05:55 -05:00
Jeff Avallone
9e6702d475 Fixing top-level spec descriptions 2014-12-21 11:24:23 -05:00