Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Commit

Permalink
udpated all js libraries, bump patch version, update dates for new er…
Browse files Browse the repository at this point in the history
…ror message behavior

fix some lawn_data set examples for right hand rule, fix #67
  • Loading branch information
sckott committed Jun 14, 2017
1 parent b122051 commit c307368
Show file tree
Hide file tree
Showing 27 changed files with 7,188 additions and 2,465 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Description: Client for 'Turfjs' (<http://turfjs.org>) for
measuring aspects of 'GeoJSON', and combining, transforming,
and creating random 'GeoJSON' data objects.
Type: Package
Version: 0.3.3.9150
Version: 0.3.5.9110
License: MIT + file LICENSE
Authors@R: c(
person("Scott", "Chamberlain", role = c("aut", "cre"), email = "[email protected]"),
Expand Down
4 changes: 2 additions & 2 deletions R/onLoad.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ht <- NULL

.onLoad <- function(libname, pkgname){
ct <<- V8::v8();
ct$source(system.file("js/turf3104.js", package = pkgname))
ct$source(system.file("js/turf440.js", package = pkgname))
ct$source(system.file("js/turf-meta.js", package = pkgname))
ct$source(system.file("js/turf-invariant.js", package = pkgname))
ct$source(system.file("js/cloner.js", package = pkgname))
Expand All @@ -15,5 +15,5 @@ ht <- NULL
rand$source(system.file("js/geojson_random.js", package = pkgname))

ht <<- V8::v8();
ht$source(system.file("js/geojsonhint-v2beta.js", package = pkgname))
ht$source(system.file("js/geojsonhint-v201.js", package = pkgname))
}
Binary file modified data/lawn_data.rda
Binary file not shown.
30 changes: 17 additions & 13 deletions inst/js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

## turf

Currently (as of 2017-02-28) using `turf` `v3.10.4`
Currently (as of 2017-06-13) using `turf` `v4.4.0`

To recreate `inst/js/turf3104.js`:
To recreate `inst/js/turf440.js`:

Download the minified file from <https://npmcdn.com/@turf/turf@3.10.4/turf.min.js>
Download the minified file from <https://npmcdn.com/@turf/turf@4.4.0/turf.min.js>
to `inst/js` directory in the `lawn` package



## @turf/meta

Currently (as of 2017-02-28) using `turf/meta` `v3.10.4`
Currently (as of 2017-06-13) using `turf/meta` `v4.4.0`

To recreate `inst/js/turf-meta.js`:

Expand All @@ -38,7 +38,7 @@ cp turf-meta.js lawn/inst/js/

## @turf/invariant

Currently (as of 2017-02-28) using `turf/invariant` `v3.10.4`
Currently (as of 2017-06-13) using `turf/invariant` `v4.4.0`

To recreate `inst/js/turf-invariant.js`:

Expand Down Expand Up @@ -74,32 +74,34 @@ to `inst/js` directory in the `lawn` package

## geojsonhint

Currently (as of 2016-10-12) using `geojsonhint` `v2.0.0-beta2`
Currently (as of 2017-06-13) using `geojsonhint` `v2.0.1`

To recreate `inst/js/geojsohint-v2beta.js`:
To recreate `inst/js/geojsohint-v201.js`:

Install `geojsonhint` from NPM

```
npm install geojsonhint
npm i @mapbox/geojsonhint
```

Browserify

```
echo "global.geojsonhint = require('geojsonhint');" > in.js
browserify in.js -o geojsohint-v2beta.js
echo "global.geojsonhint = require('@mapbox/geojsonhint');" > in.js
browserify in.js -o geojsohint-v201.js
```

Copy js file into the `inst/js` directory in the `lawn` package

```
cp geojsohint-v2beta.js lawn/inst/js
cp geojsohint-v201.js lawn/inst/js
```



## clone

Currently (as of 2016-10-12) using `clone` `v2.0.0-beta2`
Currently (as of 2017-06-13) using `clone` `v2.1.1`

To recreate `inst/js/cloner.js`:

Expand All @@ -122,9 +124,11 @@ Copy js file into the `inst/js` directory in the `lawn` package
cp cloner.js lawn/inst/js
```



## geojson-random

Currently (as of 2016-10-12) using `geojson-random` `v0.2.2`
Currently (as of 2017-06-13) using `geojson-random` `v0.4.0`

To recreate `inst/js/geojson_random.js`:

Expand Down
Loading

0 comments on commit c307368

Please sign in to comment.