From a96031f4350afc28b419ed265e4379b01c69b66e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Thu, 9 May 2013 22:43:04 +0200 Subject: [PATCH 1/6] ol.animation.* functions are symbols --- src/ol/animation.exports | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ol/animation.exports b/src/ol/animation.exports index 4a8819704d..d7016442f3 100644 --- a/src/ol/animation.exports +++ b/src/ol/animation.exports @@ -1,5 +1,5 @@ @exportSymbol ol.animation -@exportProperty ol.animation.bounce -@exportProperty ol.animation.pan -@exportProperty ol.animation.rotate -@exportProperty ol.animation.zoom +@exportSymbol ol.animation.bounce +@exportSymbol ol.animation.pan +@exportSymbol ol.animation.rotate +@exportSymbol ol.animation.zoom From 31930290cf40b6a6324820364cfa0d91593bf73a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Thu, 9 May 2013 22:44:11 +0200 Subject: [PATCH 2/6] No need to export ol.animation --- src/ol/animation.exports | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ol/animation.exports b/src/ol/animation.exports index d7016442f3..5cab49819d 100644 --- a/src/ol/animation.exports +++ b/src/ol/animation.exports @@ -1,4 +1,3 @@ -@exportSymbol ol.animation @exportSymbol ol.animation.bounce @exportSymbol ol.animation.pan @exportSymbol ol.animation.rotate From 17e779177b1684727d418ebf2d1181fd507df98c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Thu, 9 May 2013 22:44:49 +0200 Subject: [PATCH 3/6] ol.easing.* functions are symbols --- src/ol/easing.exports | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ol/easing.exports b/src/ol/easing.exports index 9ea3bdc094..a55e9b43a0 100644 --- a/src/ol/easing.exports +++ b/src/ol/easing.exports @@ -1,8 +1,8 @@ @exportSymbol ol.easing -@exportProperty ol.easing.bounce -@exportProperty ol.easing.easeIn -@exportProperty ol.easing.easeOut -@exportProperty ol.easing.elastic -@exportProperty ol.easing.inAndOut -@exportProperty ol.easing.linear -@exportProperty ol.easing.upAndDown +@exportSymbol ol.easing.bounce +@exportSymbol ol.easing.easeIn +@exportSymbol ol.easing.easeOut +@exportSymbol ol.easing.elastic +@exportSymbol ol.easing.inAndOut +@exportSymbol ol.easing.linear +@exportSymbol ol.easing.upAndDown From f47ac87f12bb33a8e88a0e2d91e311d88ccffb52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Thu, 9 May 2013 22:45:11 +0200 Subject: [PATCH 4/6] No need to export ol.easing --- src/ol/easing.exports | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ol/easing.exports b/src/ol/easing.exports index a55e9b43a0..d8653acfe3 100644 --- a/src/ol/easing.exports +++ b/src/ol/easing.exports @@ -1,4 +1,3 @@ -@exportSymbol ol.easing @exportSymbol ol.easing.bounce @exportSymbol ol.easing.easeIn @exportSymbol ol.easing.easeOut From 4b7f3e85c23f193858e7c2ac8318ef0768bdae17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Thu, 9 May 2013 22:45:20 +0200 Subject: [PATCH 5/6] No need to export ol.coordinate --- src/ol/coordinate.exports | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ol/coordinate.exports b/src/ol/coordinate.exports index e1b0fcbe6f..3680e852c2 100644 --- a/src/ol/coordinate.exports +++ b/src/ol/coordinate.exports @@ -1,4 +1,3 @@ -@exportSymbol ol.coordinate @exportSymbol ol.coordinate.createStringXY @exportSymbol ol.coordinate.toStringHDMS @exportSymbol ol.coordinate.toStringXY From ca332a3fef2f0b121c7f3d572643ea82909fccf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Thu, 9 May 2013 22:46:08 +0200 Subject: [PATCH 6/6] Minor fix to the generate-exports.py script Now that we correctly export the ol.animation.*, ol.easing.* and ol.coordinate.* symbols we can make the generate-exports.py script work for more cases. --- bin/generate-exports.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/generate-exports.py b/bin/generate-exports.py index e2f0eca521..2ae2cd8475 100755 --- a/bin/generate-exports.py +++ b/bin/generate-exports.py @@ -278,7 +278,7 @@ def main(argv): components = m.group('name').split('.') if re.match(r'[A-Z]', components[-1]): requires.add(name) - elif len(components) > 2: + elif len(components) > 1: requires.add('.'.join(components[:-1])) continue raise RuntimeError(line)