Commit Graph

75 Commits

Author SHA1 Message Date
Konstantin Käfer
f58baab3bd remove Comparison object in favor of a plain string 2011-01-30 16:25:36 -05:00
Konstantin Käfer
448516d002 use prototype directly instead of Object.getPrototypeOf. This breaks cloning of subclasses which we don't have anyway.
also do lightweight clones of the selector object
2011-01-28 16:36:19 -05:00
Konstantin Käfer
17e926df0b move elements parameter to third position 2011-01-28 16:17:20 -05:00
Tom MacWright
1782e81407 Adding first error test, and error testing framework 2011-01-28 11:08:38 -05:00
Konstantin Käfer
d06ea5e4fc filters are now indexed by hash as opposed to throwing them in an array 2011-01-27 20:50:53 -05:00
Konstantin Käfer
d6f3f6b2f8 Merge branch 'master' of github.com:developmentseed/mess.js 2011-01-27 16:52:24 -05:00
Konstantin Käfer
0065de0e64 change tree.Zoom to use bitmasks instead of arrays 2011-01-27 16:52:07 -05:00
Tom MacWright
7833b26ade Properly handle no-closing } parser failures. 2011-01-27 16:39:35 -05:00
Tom MacWright
b8d4735179 Complete refactor of error reporting, which needs
the attendant commit in TM. Fixes #71, breaks
one error: closing brackets.
2011-01-27 16:11:58 -05:00
Tom MacWright
b0cec7ca1d Support values separated only by commas, and fix multi-font validation. Fixes #70. 2011-01-27 11:35:29 -05:00
Tom MacWright
01035a8805 Handling float values in filters. 2011-01-27 09:24:15 -05:00
Konstantin Käfer
daeba23782 call the right function 2011-01-26 12:44:03 -05:00
Konstantin Käfer
fca6f37a7f rename ZoomFilter to Zoom to reflect that it's no longer treated as a Filter 2011-01-26 11:36:07 -05:00
Konstantin Käfer
51f12c9198 split up zoomlevels into a separate thing. they are no longer in the filters array 2011-01-26 11:34:51 -05:00
Konstantin Käfer
1f9553968f fix #57: correctly chunk comments that are not separate by whitespace 2011-01-25 13:39:10 -05:00
Konstantin Käfer
19482586f9 remove options that no longer work, fix #55 2011-01-25 09:46:35 -05:00
Tom MacWright
d54b36729b Catch syntax errors. Also, don't let comment regex make weird behavior. Also, only let error() record, never let it throw. 2011-01-24 18:32:18 -05:00
Tom MacWright
d1c660bf96 Removing returnErrors indirection 2011-01-24 15:20:18 -05:00
Tom MacWright
93f66ec41a Fixing variable support, removing annoying
toString method on rule, more to go.
2011-01-24 15:08:47 -05:00
Tom MacWright
d938bf7dde Catching but not catching errors is weird behavior 2011-01-24 13:53:38 -05:00
Tom MacWright
76122df6f2 First pass at tilemill-friendly validation 2011-01-24 12:50:42 -05:00
Young Hahn
ca3a4a8b0a Fix syntax error. 2011-01-22 14:02:19 -05:00
Konstantin Käfer
8fabfc0f6a Merge branch 'unstable'
Conflicts:
	.ndistro
	bin/messc
	lib/mess/index.js
	lib/mess/parser.js
	lib/mess/renderer.js
	lib/mess/tree/comparison.js
	lib/mess/tree/dimension.js
	lib/mess/tree/filter.js
	lib/mess/tree/operation.js
	lib/mess/tree/reference.js
	lib/mess/tree/rule.js
	lib/mess/tree/ruleset.js
	lib/mess/tree/variable.js
	test/mess-test.js
2011-01-21 19:00:00 -05:00
Konstantin Käfer
8c302b64d1 underscore to camelCase 2011-01-21 17:42:46 -05:00
Tom MacWright
87a91cfe77 Rename toMSS, remove toCSS 2011-01-21 17:31:30 -05:00
Konstantin Käfer
7c4933dc71 remove unused matching functions 2011-01-21 17:17:55 -05:00
Konstantin Käfer
6dee926fd5 cleanup parsing selectors 2011-01-21 17:16:16 -05:00
Konstantin Käfer
81f8a7b298 change new(name) to new name 2011-01-21 16:17:52 -05:00
Konstantin Käfer
3230af084e rename ambiguous symbolizer to 'attachment' 2011-01-21 16:12:52 -05:00
Konstantin Käfer
52c45a022e remove symbolizer object; we just store the string. that's easier for sorting 2011-01-21 16:00:08 -05:00
Konstantin Käfer
f3f714b437 use errorMessage() function also for other syntax errors 2011-01-21 15:50:05 -05:00
Konstantin Käfer
bda86d9ee8 use correct position for error message 2011-01-21 15:43:00 -05:00
Konstantin Käfer
7d43564707 throw proper error messages when encountering invalid symbolizers 2011-01-21 15:38:49 -05:00
Konstantin Käfer
f042b3bd7a add symbolizer support 2011-01-21 15:25:27 -05:00
Konstantin Käfer
41ed66e962 revert the change; pass proper tree.Comparison objects into the constructor 2011-01-21 12:47:07 -05:00
Konstantin Käfer
f6fa2c1a29 cleanup 2011-01-21 12:42:49 -05:00
Tom MacWright
9e2ed8aabe Removing Shorthand construct; doesn't have an equivalent in Mapnik XML 2011-01-21 11:43:28 -05:00
Tom MacWright
cd053f88c3 Correctly handle negation filters in stylesheets 2011-01-20 20:13:03 -05:00
Konstantin Käfer
120e37bd8b add support for descendant selectors without class/id 2011-01-20 17:21:30 -05:00
Konstantin Käfer
5423bf706f remove combinators 2011-01-20 17:10:17 -05:00
Konstantin Käfer
0a5af927e3 Merge branch 'unstable' of github.com:developmentseed/mess.js into unstable 2011-01-20 14:11:58 -05:00
Konstantin Käfer
dff0af3fdf add the index of the selector declaration to the specificity for correct ordering. rules that appear later in the file appear earlier in the resulting array 2011-01-20 14:11:16 -05:00
Tom MacWright
54141df94d Document 2011-01-20 12:47:35 -05:00
Tom MacWright
3ded111f7e Merging, adding zoomfilter element type 2011-01-20 11:55:03 -05:00
Tom MacWright
6571489ef9 Adding zoomfilter type to alleviate filter complexity 2011-01-20 11:53:28 -05:00
Konstantin Käfer
ef597af7c0 rename rulesets to definitions 2011-01-20 11:48:00 -05:00
Konstantin Käfer
004578c2b6 add definition class for flattened rulesets 2011-01-20 11:45:29 -05:00
Konstantin Käfer
a8a91949fa doc 2011-01-20 11:15:17 -05:00
Konstantin Käfer
15fd744a54 split up selectors 2011-01-20 11:12:51 -05:00
Konstantin Käfer
b6f4ef57e3 change toMSS so that it returns the AST and remove some of the _ dependency 2011-01-20 10:35:01 -05:00