Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions build/MarkerWithGhost.annotations.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/**
* @fileoverview Externs MarkerWithGhost
* @see https://github.com/terikon/marker-animate-unobtrusive
* @externs
*/

/**
* @param {(google.maps.MarkerOptions|Object.<string, *>)=} opt_opts
* @extends {SlidingMarker}
* @constructor
*/
var MarkerWithGhost = function(opt_opts) {};

/**
* @return {undefined}
*/
MarkerWithGhost.initializeGlobally = function () {};

/**
* @type {google.maps.LatLng}
*/
MarkerWithGhost.prototype.ghostPosition;

/**
* @param {google.maps.LatLng|google.maps.LatLngLiteral} position
* @return {undefined}
*/
MarkerWithGhost.prototype.setGhostPosition = function (position) {};

/**
* @nosideeffects
* @return {google.maps.LatLng}
*/
MarkerWithGhost.prototype.getGhostPosition = function () {};

/**
* @type {google.maps.LatLng}
*/
MarkerWithGhost.prototype.ghostAnimationPosition;

/**
* @nosideeffects
* @return {google.maps.LatLng}
*/
MarkerWithGhost.prototype.getGhostAnimationPosition = function() {};
93 changes: 93 additions & 0 deletions build/SlidingMarker.annotations.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
/**
* @fileoverview Externs SlidingMarker
* @see https://github.com/terikon/marker-animate-unobtrusive
* @externs
*/

/**
* @param {(google.maps.MarkerOptions|Object.<string, *>)=} opt_opts
* @extends {google.maps.Marker}
* @constructor
*/
var SlidingMarker = function(opt_opts) {};

/**
* @return {undefined}
*/
SlidingMarker.initializeGlobally = function () {};

/**
* @param {string} key
* @param {*} value
* @return {undefined}
*/
SlidingMarker.prototype.originalSet = function (key, value) {};

/**
* @param {google.maps.LatLng|google.maps.LatLngLiteral} position
* @return {undefined}
*/
SlidingMarker.prototype._setInstancePositionAnimated = function (position) {};

/**
* @type {google.maps.Marker}
*/
SlidingMarker.prototype._instance;

/**
* @param {string} eventName
* @param {!Function} handler
* @return {google.maps.MapsEventListener}
*/
SlidingMarker.prototype.originalAddListener = function (eventName, handler) {};

/**
* @type {google.maps.LatLng}
*/
SlidingMarker.prototype.animationPosition;

/**
* @nosideeffects
* @return {google.maps.LatLng}
*/
SlidingMarker.prototype.getAnimationPosition = function () {};

/**
* @param {google.maps.LatLng|google.maps.LatLngLiteral} latlng
* @return {undefined}
*/
SlidingMarker.prototype.setPositionNotAnimated = function (latlng) {};

/**
* @type {number}
*/
SlidingMarker.prototype.duration;

/**
* @param {number} duration
* @return {undefined}
*/
SlidingMarker.prototype.setDuration = function (duration) {};

/**
* @nosideeffects
* @return {number}
*/
SlidingMarker.prototype.getDuration = function () {};

/**
* @type {string}
*/
SlidingMarker.prototype.easing;

/**
* @param {string} easing
* @return {undefined}
*/
SlidingMarker.prototype.setEasing = function (easing) {};

/**
* @nosideeffects
* @return {string}
*/
SlidingMarker.prototype.getEasing = function () {};
22 changes: 22 additions & 0 deletions build/build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
set INDIR=..\lib\
set INPREFIX=oms

set OUTDIR=.\tmp\
set OUTNAME=%INPREFIX%.min.js
set OUTFILE=%OUTDIR%%OUTNAME%

call coffee --output %OUTDIR% --map --compile %INDIR%%INPREFIX%.coffee

@set JARPATH=c:\Dev\closure-compiler\compiler.jar

java -jar "%JARPATH%" ^
--compilation_level ADVANCED_OPTIMIZATIONS ^
--js "%OUTDIR%%INPREFIX%.js" ^
--externs google_maps_api_v3_20.js SlidingMarker.annotations.js MarkerWithGhost.annotations.js ^
--output_wrapper ;(function(){%%output%%}).call(this); ^
> "%OUTFILE%"

echo /* %date% %time% */ >> "%OUTFILE%"

rem cp $OUTFILE ../../gh-pages/bin
rem cp ${OUTDIR}${INPREFIX}.js ../../gh-pages/bin
2 changes: 1 addition & 1 deletion build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ coffee --output $OUTDIR --compile ${INDIR}${INPREFIX}.coffee
java -jar /usr/local/closure-compiler/compiler.jar \
--compilation_level ADVANCED_OPTIMIZATIONS \
--js ${OUTDIR}${INPREFIX}.js \
--externs google_maps_api_v3_7.js \
--externs google_maps_api_v3_20.js SlidingMarker.annotations.js MarkerWithGhost.annotations.js \
--output_wrapper '(function(){%output%}).call(this);' \
> $OUTFILE

Expand Down
Loading