Commit Graph

553 Commits

Author SHA1 Message Date
Tom MacWright
5f5320a6bc Adding combinedFilter logic, fixing filter negation by creating proper Filter objects 2011-01-20 15:34:19 -05:00
Tom MacWright
f02e656679 Iterate in reverse, don't reverse an array just to be lazy 2011-01-20 15:19:05 -05:00
Tom MacWright
de32daa0a8 Filter negation 2011-01-20 15:16:30 -05:00
Tom MacWright
7c81eb353d Adding inheritance to demo.mss, moving utilities from Ruelset to Definition, working on process_chain. 2011-01-20 15:06:23 -05:00
Tom MacWright
eaabbf1f3e Splitting into chains, fixing negation 2011-01-20 14:47:34 -05:00
Tom MacWright
fc734c3637 Adding symbolizer splitting logic. 2011-01-20 14:20:33 -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
ecb0a4c26b Making zoomfilter work with negate 2011-01-20 12:36:56 -05:00
Tom MacWright
752dd391b5 Adding symbolizers() function to rulesets 2011-01-20 12:34:20 -05:00
Tom MacWright
7c143f4893 Basic filter negation 2011-01-20 12:28:59 -05:00
Tom MacWright
8c801b1e09 Don't use reserved words 2011-01-20 12:20:21 -05:00
Tom MacWright
6838e1ace5 Clean up zoomfilter 2011-01-20 12:03:43 -05:00
Tom MacWright
a9711bc96c Missing colons 2011-01-20 11:57:28 -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
ff18eadf94 Merge branch 'unstable' of github.com:developmentseed/mess.js into unstable 2011-01-20 11:18:48 -05:00
Tom MacWright
1860ded45e Condensed style & debug 2011-01-20 11:17:06 -05:00
Konstantin Käfer
a8a91949fa doc 2011-01-20 11:15:17 -05:00
Konstantin Käfer
9eda5f7f2a Merge branch 'unstable' of github.com:developmentseed/mess.js into unstable
Conflicts:
	lib/mess/renderer.js
2011-01-20 11:13:55 -05:00
Konstantin Käfer
15fd744a54 split up selectors 2011-01-20 11:12:51 -05:00
Tom MacWright
2ccf7bc604 Fixing merge error 2011-01-20 11:04:22 -05:00
Tom MacWright
e71d9f00fc Merge branch 'unstable' of github.com:developmentseed/mess.js into unstable 2011-01-20 11:00:00 -05:00
Tom MacWright
c53115dfce Make logic more consistent. 2011-01-20 10:59:28 -05:00
Konstantin Käfer
95407e6d1f merge changes 2011-01-20 10:57:10 -05:00
Tom MacWright
b45dd638fe Match classes, keep plain strings for class and id name interfaces. 2011-01-20 10:51:19 -05:00
Tom MacWright
0d67673544 Remove obsolete functions 2011-01-20 10:42:07 -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
Konstantin Käfer
ca180ccc59 starting to process the styles from the layer's perspective 2011-01-20 09:59:28 -05:00
Tom MacWright
73e8cc8b7e Rewrite specificity to not break at > 10, rewrite specificitySort 2011-01-19 18:17:02 -05:00
Tom MacWright
394dfdf8ab Fix up zoom level interactions 2011-01-19 18:07:35 -05:00
Tom MacWright
bde844e349 Adding zoom-level logic 2011-01-19 18:01:41 -05:00
Tom MacWright
98de9014d5 Backporting filter-comparison fix 2011-01-19 18:01:30 -05:00
Tom MacWright
0db6a04ca9 Cleaning ruleset code. 2011-01-19 18:01:17 -05:00
Tom MacWright
af9194dbfb Zoom range formalizing. 2011-01-19 17:37:47 -05:00
Tom MacWright
3550af0838 Filters are specific too, like cascadenik specifies. 2011-01-19 17:08:12 -05:00
Tom MacWright
10f0d4a7be Document newly written functions. 2011-01-19 16:46:34 -05:00
Tom MacWright
ea5f76c8cf Adding reduceRules - see commented code to check out 2011-01-19 16:28:52 -05:00
Tom MacWright
cdf63cb997 Add matchingRulesets function for determing rulesets 2011-01-19 16:02:09 -05:00
Tom MacWright
7279375d6c Class matching as well 2011-01-19 15:39:50 -05:00
Tom MacWright
066ba365fc Selector matching 2011-01-19 15:36:35 -05:00
Tom MacWright
37292a0c22 Remove parser.toAST, remove ruleset.toAST 2011-01-19 15:18:57 -05:00
Tom MacWright
e48bb6073b Start unstable branch - kkaefer's flatten work 2011-01-19 15:06:42 -05:00
Konstantin Käfer
5241f62bfd update test runner to be more verbose and show what failed on errors
uses node-xml2js to compare xml files
use ndistro to install dependencies

Conflicts:

	lib/mess/parser.js
	test/mess-test.js
2011-01-19 12:22:24 -05:00
Tom MacWright
248f09cdf6 Sadface sorting code. 2011-01-18 15:58:06 -05:00
Tom MacWright
20f0ed366d Adding flattenRules function. 2011-01-18 15:35:46 -05:00
Tom MacWright
6c4154ea15 Passing rulesets up 2011-01-18 14:42:14 -05:00
Tom MacWright
940c186bab Avoid toCSS more 2011-01-18 14:38:51 -05:00
Tom MacWright
f09657e653 Saving state of current work. 2011-01-18 14:26:57 -05:00
Tom MacWright
d248372172 Starting AST work 2011-01-17 16:17:00 -05:00
Tom MacWright
b0e35f4441 Merge branch 'master' of github.com:developmentseed/mess.js into cascade 2011-01-17 15:39:59 -05:00
Konstantin Käfer
1fbcaf2164 Automatically close comments at the end of input instead of throwing a "Syntax Error on line 1" 2011-01-17 15:31:15 -05:00
Tom MacWright
cf003944b5 Google code style, not cloudhead's. Sorry, cloudhead 2011-01-17 14:46:22 -05:00
Tom MacWright
ff501e2cb0 Removing compression cruft 2011-01-17 14:22:17 -05:00
Tom MacWright
b6e8148a84 Adding specificity code 2011-01-17 14:22:02 -05:00
Tom MacWright
96d19204cf Simplifying nested example, removing compress variables and frames code. 2011-01-17 13:52:13 -05:00
Tom MacWright
8e615e549f Updating testing, adding docs 2011-01-17 13:19:14 -05:00
AJ Ashton
031c395288 Fixing Mapnik properties that use underscores, not dashes. 2011-01-17 12:00:26 -05:00
Tom MacWright
75ed469a06 Accept fully-qualified absolute paths for now. 2011-01-15 17:01:51 -05:00
Tom MacWright
27fd483b06 Ignoring non-HTTP protocols for now. 2011-01-15 16:36:30 -05:00
Tom MacWright
1057a15893 Coalesce symbol-shorthand-to-symbolizer functionality 2011-01-15 16:34:39 -05:00
AJ Ashton
1a53448d2e Clean up indentation, etc in generated Style xml 2011-01-15 14:48:12 -05:00
AJ Ashton
71b804550c Properly translate things like pattern symbolizers. Fixes #33 (but probably kills kittens - needs review) 2011-01-15 13:01:21 -05:00
AJ Ashton
f0616eb0f5 Cleaning up indentation in Layer xml template. 2011-01-15 11:28:43 -05:00
Tom MacWright
51e9bd3ce8 Requirements for prior commit 2011-01-14 18:51:36 -05:00
Tom MacWright
008abe40d7 Adding support for multiple filtered selectors 2011-01-14 18:42:58 -05:00
Tom MacWright
a033a970a1 First bit of support for inplace files. Require nodejs bug to be fixed. 2011-01-14 14:33:40 -05:00
Tom MacWright
d46c50d351 Removing do-nothing value-side validation 2011-01-14 12:15:58 -05:00
Tom MacWright
4db08c47ec Gracefully fail on bad shapefile loads - this should return an error eventually, but after inspection works. 2011-01-13 18:11:31 -05:00
Tom MacWright
2de9117134 That, not this. 2011-01-13 17:17:45 -05:00
Tom MacWright
b1711d68c0 Reluctantly letting users throw units onto dimensions. If we have a way to warn, not block, on errors, we should use that eventually 2011-01-13 17:03:31 -05:00
Tom MacWright
a1a64c6f35 Less locking, better code for dealing with already-downloaded externals 2011-01-13 16:04:50 -05:00
Tom MacWright
04caf24d2d Fix marker symbolizer. Needs fix in other reference.json's 2011-01-13 15:59:44 -05:00
Tom MacWright
0da256ed20 Supporting edge case of maps without any data layers 2011-01-13 15:15:25 -05:00
Tom MacWright
370e3f917c Adding required attributes for shieldsymbolizer and textsymbolizer. Fixes #20. 2011-01-13 14:49:23 -05:00
Tom MacWright
29a3ec0269 Handle SHP as well as shp. Fixes #89 2011-01-12 18:32:47 -05:00
Tom MacWright
af2079ca7c Don't crash on repeated ruleset values. Fixes #25. 2011-01-12 18:01:14 -05:00
Tom MacWright
4d29a3ada2 Reorganizing externals and handling uppercase files easily 2011-01-12 17:18:03 -05:00
Tom MacWright
3c12e453e5 Fix fonts 2011-01-12 17:16:48 -05:00
Tom MacWright
373d032eaa Support local URL arguments. Works on #27 but needs work to support remote datasources 2011-01-12 11:39:01 -05:00
Tom MacWright
0c5bff814e Support numbers type, fixes line-dasharray. Fixes #28 2011-01-12 11:33:21 -05:00
Tom MacWright
0881cb5b8e Switching all int types to float types 2011-01-12 11:04:19 -05:00
Tom MacWright
30021b43f5 Support filters with string arguments. Fixes #23. 2011-01-11 13:20:01 -05:00
Tom MacWright
89dcd2ec37 Background color support. Fixes #8. Does not support expressions yet. 2011-01-10 18:49:58 -05:00
Tom MacWright
658665703d Less than equal to and greater than equal to 2011-01-10 18:14:39 -05:00
Tom MacWright
c82a1fa260 Zoom support. Fixes #21 2011-01-10 18:10:23 -05:00
Tom MacWright
eb87b9d2d2 Support text halos 2011-01-10 13:20:31 -05:00
Tom MacWright
26a6ac452f Supporting labels 2011-01-10 13:04:12 -05:00
Tom MacWright
cf3d69e50b No underscore reliance at this level, unfortunately 2011-01-10 11:51:07 -05:00
Tom MacWright
b2c246b616 Merge branch 'master' of github.com:developmentseed/mess.js 2011-01-10 11:47:42 -05:00
Tom MacWright
c59615245d Filters support 2011-01-10 11:47:34 -05:00
Tom MacWright
f833d9e589 Support attributes with numbers in their names 2011-01-10 11:47:10 -05:00
Tom MacWright
58a3d9afa1 Making renderer safe for non-classed layers 2011-01-10 11:18:45 -05:00
Tom MacWright
d11d36795e Primitive class application 2011-01-10 10:55:34 -05:00
Tom MacWright
ffe6393a70 Double-closing bracket for layer XML 2011-01-10 10:21:22 -05:00
Young Hahn
75a11ea636 Include layer name in rendered XML output. 2011-01-10 01:15:34 -05:00
Tom MacWright
3697c68d1d Safe for base-level comments 2011-01-09 16:07:52 -05:00