Skip to content

Commit

Permalink
v0.16.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bcamper committed Dec 5, 2018
1 parent abcab8b commit 5d0aaf9
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 35 deletions.
31 changes: 19 additions & 12 deletions dist/tangram.debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ var _iterDefine = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORC
// Set @@toStringTag to native iterators
_setToStringTag(IteratorPrototype, TAG, true);
// fix for some old engines
if (!_library && typeof IteratorPrototype[ITERATOR] != 'function') _hide(IteratorPrototype, ITERATOR, returnThis);
if (typeof IteratorPrototype[ITERATOR] != 'function') _hide(IteratorPrototype, ITERATOR, returnThis);
}
}
// fix Array#{values, @@iterator}.name in V8 / FF
Expand All @@ -530,7 +530,7 @@ var _iterDefine = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORC
$default = function values() { return $native.call(this); };
}
// Define iterator
if ((!_library || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
if (BUGGY || VALUES_BUG || !proto[ITERATOR]) {
_hide(proto, ITERATOR, $default);
}
// Plug for library
Expand Down Expand Up @@ -1527,7 +1527,7 @@ function _assertThisInitialized(self) {
return self;
}

var version = "0.16.0";
var version = "0.16.1";

var version$1 = 'v' + version;

Expand Down Expand Up @@ -4507,16 +4507,21 @@ function () {
return;
}

this.bind();
this.gl.pixelStorei(this.gl.UNPACK_FLIP_Y_WEBGL, options.UNPACK_FLIP_Y_WEBGL === false ? false : true);
this.gl.pixelStorei(this.gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, options.UNPACK_PREMULTIPLY_ALPHA_WEBGL || false); // Image or Canvas element
this.bind(); // Image or Canvas element

if (source instanceof HTMLCanvasElement || source instanceof HTMLVideoElement || source instanceof HTMLImageElement && source.complete) {
this.width = source.width;
this.height = source.height;
this.gl.pixelStorei(this.gl.UNPACK_FLIP_Y_WEBGL, options.UNPACK_FLIP_Y_WEBGL === false ? false : true);
this.gl.pixelStorei(this.gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, options.UNPACK_PREMULTIPLY_ALPHA_WEBGL || false);
this.gl.texImage2D(this.gl.TEXTURE_2D, 0, this.gl.RGBA, this.gl.RGBA, this.gl.UNSIGNED_BYTE, source);
} // Raw image buffer
else {
// these pixel store params are deprecated for non-DOM element uploads
// (e.g. when creating texture from raw data)
// setting them to null avoids a Firefox warning
this.gl.pixelStorei(this.gl.UNPACK_FLIP_Y_WEBGL, null);
this.gl.pixelStorei(this.gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, null);
this.gl.texImage2D(this.gl.TEXTURE_2D, 0, this.gl.RGBA, this.width, this.height, 0, this.gl.RGBA, this.gl.UNSIGNED_BYTE, source);
}

Expand Down Expand Up @@ -13600,6 +13605,8 @@ function renderDashArray(pattern, options) {
dash = !dash; // alternate between dashes and spaces
}

pixels.reverse(); // flip Y (GL textures are upside down)

pixels = new Uint8Array(pixels); // convert to typed array

var length = pixels.length / 4; // one RGBA byte sequences to one pixel
Expand Down Expand Up @@ -19769,11 +19776,11 @@ function () {


_proto.buildZooms = function buildZooms() {
var zoom = this.filter && this.filter.$zoom;
var zoom = this.filter && this.filter.$zoom; // has an explicit zoom filter

var ztype = typeof zoom;

if (zoom != null && ztype !== 'function') {
// don't accelerate function-based filters
if (zoom != null) {
this.zooms = {};

if (ztype === 'number') {
Expand Down Expand Up @@ -22696,7 +22703,7 @@ function (_NetworkTileSource) {
// Check instance type from parent class
if (source.type === 'GeoJSON') {
// Replace instance type
return new GeoJSONSource(source) || _assertThisInitialized(_this3);
return new GeoJSONSource(source, sources) || _assertThisInitialized(_this3);
} else {
// Pass back to parent class to instantiate
return undefined || _assertThisInitialized(_this3);
Expand Down Expand Up @@ -22940,7 +22947,7 @@ function (_GeoJSONTileSource) {
_this = _GeoJSONTileSource.call(this, source, sources) || this; // Replace with non-tiled source if tiled source failed to instantiate

if (!_this.urlHasTilePattern(_this.url)) {
return new TopoJSONSource(source) || _assertThisInitialized(_this);
return new TopoJSONSource(source, sources) || _assertThisInitialized(_this);
}

return _assertThisInitialized(_assertThisInitialized(_this)) || _assertThisInitialized(_this);
Expand Down Expand Up @@ -44064,7 +44071,7 @@ function mainThreadLabelCollisionPass(tiles, view_zoom, hide_breach) {

var tile_meshes = Object.assign({}, tile.meshes, tile.pending_label_meshes);

for (var style in tile.meshes) {
for (var style in tile_meshes) {
var meshes = tile_meshes[style];
meshes.forEach(function (mesh) {
if (mesh.labels) {
Expand Down
2 changes: 1 addition & 1 deletion dist/tangram.debug.js.map

Large diffs are not rendered by default.

32 changes: 17 additions & 15 deletions dist/tangram.debug.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/tangram.debug.mjs.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/tangram.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/tangram.min.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tangram",
"version": "0.16.0",
"version": "0.16.1",
"description": "WebGL Maps for Vector Tiles",
"repository": {
"type": "git",
Expand Down

0 comments on commit 5d0aaf9

Please sign in to comment.