summaryrefslogtreecommitdiff
path: root/platform/node
Commit message (Collapse)AuthorAgeFilesLines
* [core] Abstract main loop inside RunLoop classThiago Marcos P. Santos2015-12-011-1/+1
|
* [core] Replace time_t with std::chrono::secondsBruno de Oliveira Abinader2015-11-271-2/+5
| | | | | | | Added aliases for std::chrono typedefs (eg. 'Seconds' for std::chrono::seconds). These aliases are used together with templated helper functions to replace time_t with std::chrono::seconds for most cases, in particular for 'modified' and 'expires' values in Response.
* [node] Fix build on GCC 4.9.2Thiago Marcos P. Santos2015-11-265-8/+4
|
* [core] Fix image type of Map::renderStillJohn Firebaugh2015-11-252-2/+2
| | | | | | | It's a premultiplied image. This implies that we were misusing encodePNG in most cases, as we were passing premultiplied pixels which were then interpreted as unmultiplied. I changed encodePNG to accept premultipled pixels, and unpremultiply in the implementations.
* [core] Rewrite image handlingJohn Firebaugh2015-11-252-14/+12
| | | | | | * Consolidate Image and StillImage * Typecheck unassociated vs premultiplied images * Rewrite default platform image decoding implementation
* node-v2.0.1node-v2.0.1Mike Morris2015-11-251-0/+4
|
* [core] For binary image data use uint8_t, not charJohn Firebaugh2015-11-231-2/+1
|
* [node] Allow GC in spite of reference loops through the request methodJohn Firebaugh2015-11-205-71/+35
| | | | | | | | | | | | | | The following produces a reference cycle: var map = new mbgl.Map({ request: function () { ... } }); map has a reference to the request function, which has a reference to its closure, which has a reference to map. Storing a the map options in an internal field, rather than a Persistent, allows V8 to collect the reference cycle when none of its members have other references.
* [node] Fix race condition in testsJohn Firebaugh2015-11-181-8/+0
| | | | The message callback races with the rest of this test. We already have tests for errors being emitted from mbgl, so just remove it.
* [node] Need to have a singleton RunLoop instanceJohn Firebaugh2015-11-164-11/+27
|
* [core] Use std::unique_ptr for FileSource requestJohn Firebaugh2015-11-165-212/+49
|
* [core] Do not pass uv_loop_t aroundThiago Marcos P. Santos2015-11-162-3/+4
| | | | This should be abstracted by util::RunLoop
* [node] Fixes 'make xnode' to configure HOST_SLUG.gypiMike Morris2015-11-055-0/+5
| | | | | Adds node-gyp to dev-dependencies to support 'make xnode' on Node v0.10.x Ignores -Wnested-anon-types around v8.h includes.
* [node] update platform/node/CHANGELOG.md [skip ci]Mike Morris2015-11-041-7/+5
|
* [node] update platform/node/CHANGELOG.md [skip ci]Mike Morris2015-11-041-2/+2
|
* [node] make ratio optional, default to 1.0Mike Morris2015-11-044-20/+39
|
* [node] swap array order to [lng, lat] for render option centerMike Morris2015-11-043-6/+7
| | | | For consistency with GeoJSON and mapbox-gl-js
* [node] enable npm to build mapbox-gl-native package from sourceLucas Wojciechowski2015-11-043-5/+4
| | | | | | This reverts commit 311bf93abe9f815668e8e0a779c87c3eb5c1199d. more explicit require paths in tests
* Update version and changelognode-v2.0.0-pre.11bsudekum2015-11-021-0/+1
|
* [node] add pitch optionbsudekum2015-11-021-0/+6
|
* [core] Make DefaultFileSource react to all NetworkStatus changesKonstantin Käfer2015-11-021-6/+5
|
* Document node-mapbox-gl-native with JSDocTom MacWright2015-10-291-0/+75
|
* [node] Output debug logs when a render test times outJohn Firebaugh2015-10-283-1/+23
|
* [core] Make response data shared to avoid excessive copyingKonstantin Käfer2015-10-261-2/+2
|
* [core] all requests have to be canceled explicitly nowKonstantin Käfer2015-10-261-1/+0
| | | | By not automatically destroying Request objects after the result has been delivered, we are making sure that we can potentially fire the callback multiple times without adverse effects. This means that you have to hold on to the result of fs->request(), can explicitly cancel it if you don't want to be notified of data changes anymore. Not doing so will monitor the request indefinitely and will prevent the app from exiting.
* [node] update changelognode-v2.0.0-pre.10bsudekum2015-10-141-0/+1
|
* [core] bump libuv to 1.7.5 across all platformsMike Morris2015-10-142-7/+8
| | | | | | UV_ASYNC_PARAMS and UV_TIMER_PARAMS for libuv <= 0.10 compatibility use st_mtim.tv_sec in libuv > 0.10.x
* Break lines on com­mon­ly un­spaced punc­tu­a­tionMinh Nguyễn2015-10-131-0/+1
| | | | | | Par­ti­cu­lar­ly hy­phens and soft hy­phens. Fixes #2595.
* Update test-suiteJohn Firebaugh2015-10-071-1/+1
|
* Ask contributors to update changelogs incrementallyMinh Nguyễn2015-10-071-0/+2
| | | | Also seeded the changelog with changes in master.
* Install RapidJSON from masonJohn Firebaugh2015-10-011-1/+1
|
* [node] add support for Node.js v4.1.x and update changelogMike Morris2015-09-301-1/+2
|
* [skip-ci] [node] update changelognode-v2.0.0-pre.8bsudekum2015-09-301-1/+2
|
* [node] Handle tiles which 404 betterbsudekum2015-09-291-1/+3
|
* [node] throw if a render is already pending, fixes #2247Mike Morris2015-09-152-6/+6
|
* [node] update platform/node/CHANGELOG.md [skip ci]Mike Morris2015-09-111-1/+1
|
* [node] fix links in CHANGELOG.md [skip ci]Mike Morris2015-09-101-6/+6
|
* [node] update platform/node/CHANGELOG.md [skip ci]Mike Morris2015-09-101-2/+2
|
* [node] update CHANGELOG.md [skip ci]Mike Morris2015-09-101-4/+6
|
* [node] change request semanticsMike Morris2015-09-106-23/+26
| | | | | Passes a second, callback argument to the request implementation instead of needing to call req.respond.
* Add anonymous lambda for HandleScopeJohn Firebaugh2015-09-091-1/+4
|
* add io.js v3.x supportMike Morris2015-09-093-2/+3
|
* Use nan with https://github.com/nodejs/nan/pull/443 fixedMike Morris2015-09-091-1/+1
|
* Nan 2.0John Firebaugh2015-09-099-240/+237
|
* Add more tests to check for bufferbsudekum2015-09-041-2/+2
|
* Return raw image buffer instead of an objectbsudekum2015-09-043-13/+5
|
* Consolidate test-suite rendering harnesses (#2236)John Firebaugh2015-09-049-430/+59
|
* update node changelogMike Morris2015-09-021-0/+12
|
* Merge branch 'node' of github.com:mapbox/mapbox-gl-native into nodeMike Morris2015-09-011-54/+48
|\
| * Update README.mdMike Morris2015-09-011-54/+48
| |