Skip to content

Commit

Permalink
v0.17.4
Browse files Browse the repository at this point in the history
  • Loading branch information
bcamper committed Feb 8, 2019
1 parent 4e1e5e5 commit e2ff6ac
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 29 deletions.
20 changes: 9 additions & 11 deletions dist/tangram.debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -1818,7 +1818,7 @@ function _wrapNativeSuper(Class) {
return _wrapNativeSuper(Class);
}

var version = "0.17.3";
var version = "0.17.4";

var version$1 = 'v' + version;

Expand Down Expand Up @@ -12799,8 +12799,6 @@ Lines.variants = {}; // mesh variants by variant key

Lines.vertex_layouts = {}; // vertex layouts by variant key

Lines.dash_textures = {}; // cache previously rendered line dash pattern textures

var DASH_SCALE = 20; // adjustment factor for UV scale to for line dash patterns w/fractional pixel width

Object.assign(Lines, {
Expand All @@ -12821,6 +12819,8 @@ Object.assign(Lines, {

this.outline_feature_style = {};
this.inline_feature_style = this.feature_style; // save reference to main computed style object

this.dash_textures = {}; // cache previously rendered line dash pattern textures
},
// Calculate width or offset at zoom given in `context`
calcDistance: function calcDistance(prop, context) {
Expand Down Expand Up @@ -13119,8 +13119,8 @@ Object.assign(Lines, {
getDashTexture: function getDashTexture(dash) {
var dash_key = this.dashTextureKey(dash);

if (Lines.dash_textures[dash_key] == null) {
Lines.dash_textures[dash_key] = true; // Render line pattern
if (this.dash_textures[dash_key] == null) {
this.dash_textures[dash_key] = true; // Render line pattern

var dash_texture = renderDashArray(dash, {
scale: DASH_SCALE
Expand Down Expand Up @@ -13165,8 +13165,8 @@ Object.assign(Lines, {
uniforms.u_dash_background_color = variant.dash_background_color || [0, 0, 0, 0];
}

if (variant.dash_key && Lines.dash_textures[variant.dash_key] == null) {
Lines.dash_textures[variant.dash_key] = true;
if (variant.dash_key && _this.dash_textures[variant.dash_key] == null) {
_this.dash_textures[variant.dash_key] = true;

var $Try_1_Post = function () {
try {
Expand Down Expand Up @@ -19487,9 +19487,7 @@ function () {

style.destroy();
}
}); // Reset dash texture cache

Lines.dash_textures = {};
});
} // Register a style
;

Expand Down Expand Up @@ -48577,7 +48575,7 @@ return index;
// Script modules can't expose exports
try {
Tangram.debug.ESM = false; // mark build as ES module
Tangram.debug.SHA = '6babc9c3d1b1db21af9b99cefa46b7ea500a3920';
Tangram.debug.SHA = '4e1e5e57dbb83f6f1390296054cd650b57b01800';
if (false === true && typeof window === 'object') {
window.Tangram = Tangram;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/tangram.debug.js.map

Large diffs are not rendered by default.

20 changes: 9 additions & 11 deletions dist/tangram.debug.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function _extends() {
return _extends.apply(this, arguments);
}

var version = "0.17.3";
var version = "0.17.4";

var version$1 = 'v' + version;

Expand Down Expand Up @@ -9363,8 +9363,6 @@ Lines.variants = {}; // mesh variants by variant key

Lines.vertex_layouts = {}; // vertex layouts by variant key

Lines.dash_textures = {}; // cache previously rendered line dash pattern textures

const DASH_SCALE = 20; // adjustment factor for UV scale to for line dash patterns w/fractional pixel width

Object.assign(Lines, {
Expand All @@ -9386,6 +9384,8 @@ Object.assign(Lines, {

this.outline_feature_style = {};
this.inline_feature_style = this.feature_style; // save reference to main computed style object

this.dash_textures = {}; // cache previously rendered line dash pattern textures
},

// Calculate width or offset at zoom given in `context`
Expand Down Expand Up @@ -9692,8 +9692,8 @@ Object.assign(Lines, {
getDashTexture(dash) {
let dash_key = this.dashTextureKey(dash);

if (Lines.dash_textures[dash_key] == null) {
Lines.dash_textures[dash_key] = true; // Render line pattern
if (this.dash_textures[dash_key] == null) {
this.dash_textures[dash_key] = true; // Render line pattern

const dash_texture = renderDashArray(dash, {
scale: DASH_SCALE
Expand Down Expand Up @@ -9731,8 +9731,8 @@ Object.assign(Lines, {
uniforms.u_dash_background_color = variant.dash_background_color || [0, 0, 0, 0];
}

if (variant.dash_key && Lines.dash_textures[variant.dash_key] == null) {
Lines.dash_textures[variant.dash_key] = true;
if (variant.dash_key && this.dash_textures[variant.dash_key] == null) {
this.dash_textures[variant.dash_key] = true;

try {
await WorkerBroker$1.postMessage(this.main_thread_target + '.getDashTexture', variant.dash);
Expand Down Expand Up @@ -15720,9 +15720,7 @@ class StyleManager {

style.destroy();
}
}); // Reset dash texture cache

Lines.dash_textures = {};
});
} // Register a style


Expand Down Expand Up @@ -44267,7 +44265,7 @@ return index;
// Script modules can't expose exports
try {
Tangram.debug.ESM = true; // mark build as ES module
Tangram.debug.SHA = '6babc9c3d1b1db21af9b99cefa46b7ea500a3920';
Tangram.debug.SHA = '4e1e5e57dbb83f6f1390296054cd650b57b01800';
if (true === true && typeof window === 'object') {
window.Tangram = Tangram;
}
Expand Down
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.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tangram",
"version": "0.17.3",
"version": "0.17.4",
"description": "WebGL Maps for Vector Tiles",
"repository": {
"type": "git",
Expand Down

0 comments on commit e2ff6ac

Please sign in to comment.