From 482a8e9ffe9eb57383c00d4eb45dc69a4668d06c Mon Sep 17 00:00:00 2001 From: Liz Shigetoshi Date: Mon, 18 Sep 2017 11:36:15 -0700 Subject: [PATCH 01/12] Update page shell --- docs/_layouts/default.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index e8addfff1b8..7b1c20a88d4 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -134,6 +134,6 @@ {% endif %} {% if page.head %}{{page.head}}{% endif %}{% if layout.head %}{{layout.head}}{% endif %} - +
\ No newline at end of file +!(function(){"use strict";function e(){return!0===window.MapboxPageShellProduction||/mapbox\.com$/.test(window.location.hostname)}function t(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}function n(){var e=document.createElement("div");e.className="shell-wrapper";var t=document.createElement("div");t.className="shell-loading shell-loading--dark shell-fixed shell-top shell-left shell-right shell-bottom shell-flex-parent shell-bg-darken50",t.style.zIndex="9999",e.appendChild(t),document.body.appendChild(e)}function i(){return ye}function o(e){ye=e}function r(){return Ie}function a(){Ie=!0}function l(){return be}function s(e){be=e}function u(e){Ee.push(e)}function c(){Ee.forEach((function(e){e()})),Ee=[]}function d(e){Le=e}function m(){Le&&Le()}function v(e){ke.push(e)}function f(){ke.forEach((function(e){e()})),ke=[]}function g(e){u(e)}function p(e,t){for(var n=document.querySelectorAll(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:window)}function Q(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:qe;return e in n.style||!!t&&Ne.some((function(t){return Q(H(t,e))}))}function V(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:qe,o=n.allowPrefixedProp,r=n.allowPrefixedValue,a=!1;return(o||r)&&(a=Ne.some((function(n){return V(o?H(n,e):e,r?F(n,t):t)}))),a||(i.style[e]=t,i.style[e]===t)}function Z(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qe;(Oe={flexBox:Q("flex",e,t)&&V("display","flex",{allowPrefixedProp:!1,allowPrefixedValue:e},t),viewportUnits:V("width","100vw",{allowPrefixedProp:!1,allowPrefixedValue:!1},t),visibilityState:W("visibilityState",window.document),devicePixelRatio:W("devicePixelRatio")}).doesCutMustard=Object.keys(Oe).every((function(e){return Oe[e]}))}function G(){var e=window.document.getElementById("page-shell-compatibility-dismiss"),t=window.document.getElementById("page-shell-compatibility-warning");Ue=!0,De=!1,e&&e.removeEventListener("click",G),t&&(t.style.display="none"),window.localStorage&&window.localStorage.setItem("suppress-browser-compatibility-warning","true")}function $(){if(null==Oe.doesCutMustard&&Z(!0),!(Ue||Oe.doesCutMustard||"localStorage"in window&&"true"===window.localStorage.getItem("suppress-browser-compatibility-warning"))){var e=window.document.getElementById("page-shell-compatibility-warning");if(e&&(e.style.display="block"),!De){var t=window.document.getElementById("page-shell-compatibility-dismiss");t&&t.addEventListener("click",G)}De=!0}}function K(){window.matchMedia("(min-width: "+we+"px)").matches&&te()}function ee(){var e=document.getElementById("mobile-nav-menu"),t=document.getElementById("page-header-content");e&&(Xe=!0,e.classList.add("shell-animated-menu--visible"),t.classList.add("shell-mobile-nav--visible"),Q("textOrientation",!0)||(document.querySelector(".shell-mobile-nav__trigger__bar--top").setAttribute("transform","translate(6 -1) rotate(45)"),document.querySelector(".shell-mobile-nav__trigger__bar--bottom").setAttribute("transform","translate(-6.5 6) rotate(-45)")),X(),window.addEventListener("resize",K))}function te(){var e=document.getElementById("mobile-nav-menu"),t=document.getElementById("page-header-content");e&&(Xe=!1,e.classList.remove("shell-animated-menu--visible"),t.classList.remove("shell-mobile-nav--visible"),Q("textOrientation",!0)||(document.querySelector(".shell-mobile-nav__trigger__bar--top").setAttribute("transform",""),document.querySelector(".shell-mobile-nav__trigger__bar--bottom").setAttribute("transform","")),Y(),window.removeEventListener("resize",K))}function ne(e){var t=document.getElementById("mobile-nav-trigger-toggle"),n=document.getElementById("mobile-nav-menu"),i=document.getElementById("page-header-content");t&&n&&(e.target.getAttribute&&e.target.getAttribute("data-nav-link")?(document.documentElement.scrollTop=0,document.body.scrollTop=0,te()):t.contains(e.target)?Xe?te():ee():!Xe||n.contains(e.target)||i.contains(e.target)||te())}function ie(){if(!Ye){Ye=!0;var e=document.querySelectorAll("[data-nav-trigger]");if(0!==e.length){var t=void 0,n=void 0,i=void 0;for(i=0;i \ No newline at end of file From e67fec3fcd5b53ec95be48543190944c09ed94fa Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 19 Sep 2017 11:49:29 -0700 Subject: [PATCH 02/12] Remove references to "ref" property --- docs/style-spec/_generate/index.html | 11 +++++------ src/style-spec/reference/v8.json | 4 ---- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/docs/style-spec/_generate/index.html b/docs/style-spec/_generate/index.html index 20b122ed17e..52a03f99bad 100755 --- a/docs/style-spec/_generate/index.html +++ b/docs/style-spec/_generate/index.html @@ -693,14 +693,13 @@

Layers

paint properties.

- Layout properties appear in the layer's "layout" object. They are applied early in the rendering process and - define how data for that layer is passed to the GPU. For efficiency, a layer can share layout properties with - another layer via the "ref" layer property, and should do so where possible. This will decrease - processing time and allow the two layers will share GPU memory and other resources associated with the layer. + Layout properties appear in the layer's "layout" object. They are applied early in the + rendering process and define how data for that layer is passed to the GPU. Changes to a layout property + require an asynchronous "layout" step.

- Paint properties are applied later in the rendering process. A layer that shares layout properties with another - layer can have independent paint properties. Paint properties appear in the layer's "paint" object. + Paint properties are applied later in the rendering process. Paint properties appear in the layer's + "paint" object. Changes to a paint property are cheap and happen synchronously.

Key: supports interpolated functions diff --git a/src/style-spec/reference/v8.json b/src/style-spec/reference/v8.json index 3037cf2af8d..d412921ec00 100644 --- a/src/style-spec/reference/v8.json +++ b/src/style-spec/reference/v8.json @@ -416,10 +416,6 @@ "type": "*", "doc": "Arbitrary properties useful to track with the layer, but do not influence rendering. Properties should be prefixed to avoid collisions, like 'mapbox:'." }, - "ref": { - "type": "string", - "doc": "References another layer to copy `type`, `source`, `source-layer`, `minzoom`, `maxzoom`, `filter`, and `layout` properties from. This allows the layers to share processing and be more efficient." - }, "source": { "type": "string", "doc": "Name of a source description to be used for this layer." From 53afdafdd6a119c71678a721a2f35c80bb0f734b Mon Sep 17 00:00:00 2001 From: Molly Lloyd Date: Wed, 20 Sep 2017 15:42:25 -0700 Subject: [PATCH 03/12] update icon-image docs (#5339) --- src/style-spec/reference/v8.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/style-spec/reference/v8.json b/src/style-spec/reference/v8.json index d412921ec00..c36616bf5d5 100644 --- a/src/style-spec/reference/v8.json +++ b/src/style-spec/reference/v8.json @@ -936,7 +936,7 @@ "function": "piecewise-constant", "zoom-function": true, "property-function": true, - "doc": "Name of image in sprite to use for drawing an image background. A string with {tokens} replaced, referencing the data property to pull from.", + "doc": "Name of image in sprite to use for drawing an image background. A string with `{tokens}` replaced, referencing the data property to pull from. (`{token}` replacement is only supported for literal `icon-image` values; not for property functions.)", "tokens": true, "sdk-support": { "basic functionality": { @@ -1210,7 +1210,7 @@ "property-function": true, "default": "", "tokens": true, - "doc": "Value to use for a text label. Feature properties are specified using tokens like {field_name}. (Token replacement is only supported for literal `text-field` values--not for property functions.)", + "doc": "Value to use for a text label. Feature properties are specified using tokens like `{field_name}`. (`{token}` replacement is only supported for literal `text-field` values; not for property functions.)", "sdk-support": { "basic functionality": { "js": "0.10.0", From cf1cdb7d992b8e9e17e3f6a675f7e1645198ac7f Mon Sep 17 00:00:00 2001 From: Liz Shigetoshi Date: Wed, 20 Sep 2017 17:55:19 -0700 Subject: [PATCH 04/12] Update page shell --- docs/_layouts/default.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index 7b1c20a88d4..43d419ecf77 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -136,4 +136,4 @@ {% if page.head %}{{page.head}}{% endif %}{% if layout.head %}{{layout.head}}{% endif %}

\ No newline at end of file +!(function(){"use strict";function e(){return!0===window.MapboxPageShellProduction||/mapbox\.com$/.test(window.location.hostname)}function t(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}function n(){var e=document.createElement("div");e.className="shell-wrapper";var t=document.createElement("div");t.className="shell-loading shell-loading--dark shell-fixed shell-top shell-left shell-right shell-bottom shell-flex-parent shell-bg-darken50",t.style.zIndex="9999",e.appendChild(t),document.body.appendChild(e)}function i(){return ye}function o(e){ye=e}function r(){return Ie}function a(){Ie=!0}function l(){return be}function s(e){be=e}function u(e){Ee.push(e)}function c(){Ee.forEach((function(e){e()})),Ee=[]}function d(e){Le=e}function m(){Le&&Le()}function v(e){ke.push(e)}function f(){ke.forEach((function(e){e()})),ke=[]}function g(e){u(e)}function p(e,t){for(var n=document.querySelectorAll(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:window)}function Q(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:qe;return e in n.style||!!t&&Ne.some((function(t){return Q(H(t,e))}))}function V(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:qe,o=n.allowPrefixedProp,r=n.allowPrefixedValue,a=!1;return(o||r)&&(a=Ne.some((function(n){return V(o?H(n,e):e,r?F(n,t):t)}))),a||(i.style[e]=t,i.style[e]===t)}function Z(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qe;(Oe={flexBox:Q("flex",e,t)&&V("display","flex",{allowPrefixedProp:!1,allowPrefixedValue:e},t),viewportUnits:V("width","100vw",{allowPrefixedProp:!1,allowPrefixedValue:!1},t),visibilityState:W("visibilityState",window.document),devicePixelRatio:W("devicePixelRatio")}).doesCutMustard=Object.keys(Oe).every((function(e){return Oe[e]}))}function G(){var e=window.document.getElementById("page-shell-compatibility-dismiss"),t=window.document.getElementById("page-shell-compatibility-warning");Ue=!0,De=!1,e&&e.removeEventListener("click",G),t&&(t.style.display="none"),window.localStorage&&window.localStorage.setItem("suppress-browser-compatibility-warning","true")}function $(){if(null==Oe.doesCutMustard&&Z(!0),!(Ue||Oe.doesCutMustard||"localStorage"in window&&"true"===window.localStorage.getItem("suppress-browser-compatibility-warning"))){var e=window.document.getElementById("page-shell-compatibility-warning");if(e&&(e.style.display="block"),!De){var t=window.document.getElementById("page-shell-compatibility-dismiss");t&&t.addEventListener("click",G)}De=!0}}function K(){window.matchMedia("(min-width: "+we+"px)").matches&&te()}function ee(){var e=document.getElementById("mobile-nav-menu"),t=document.getElementById("page-header-content");e&&(Xe=!0,e.classList.add("shell-animated-menu--visible"),t.classList.add("shell-mobile-nav--visible"),Q("textOrientation",!0)||(document.querySelector(".shell-mobile-nav__trigger__bar--top").setAttribute("transform","translate(6 -1) rotate(45)"),document.querySelector(".shell-mobile-nav__trigger__bar--bottom").setAttribute("transform","translate(-6.5 6) rotate(-45)")),X(),window.addEventListener("resize",K))}function te(){var e=document.getElementById("mobile-nav-menu"),t=document.getElementById("page-header-content");e&&(Xe=!1,e.classList.remove("shell-animated-menu--visible"),t.classList.remove("shell-mobile-nav--visible"),Q("textOrientation",!0)||(document.querySelector(".shell-mobile-nav__trigger__bar--top").setAttribute("transform",""),document.querySelector(".shell-mobile-nav__trigger__bar--bottom").setAttribute("transform","")),Y(),window.removeEventListener("resize",K))}function ne(e){var t=document.getElementById("mobile-nav-trigger-toggle"),n=document.getElementById("mobile-nav-menu"),i=document.getElementById("page-header-content");t&&n&&(e.target.getAttribute&&e.target.getAttribute("data-nav-link")?(document.documentElement.scrollTop=0,document.body.scrollTop=0,te()):t.contains(e.target)?Xe?te():ee():!Xe||n.contains(e.target)||i.contains(e.target)||te())}function ie(){if(!Ye){Ye=!0;var e=document.querySelectorAll("[data-nav-trigger]");if(0!==e.length){var t=void 0,n=void 0,i=void 0;for(i=0;i \ No newline at end of file From ebf07baa218fd705ff52a5660cdae68f225faab2 Mon Sep 17 00:00:00 2001 From: Chris Loer Date: Thu, 21 Sep 2017 12:22:24 -0700 Subject: [PATCH 05/12] Workaround for example flickering documented in issue #5333. Removes `overflow: hidden` from div containing the example iframe. We do not have a clear theory for why this works, but our hypothesis is that it's some interaction with Chrome's throttling of animation for frames that it thinks aren't visible. --- docs/_layouts/example.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_layouts/example.html b/docs/_layouts/example.html index 63ff1ee42b4..518d2cb2db2 100644 --- a/docs/_layouts/example.html +++ b/docs/_layouts/example.html @@ -2,7 +2,7 @@ layout: pages --- -
+
\ No newline at end of file +!(function(){"use strict";function e(){return!0===window.MapboxPageShellProduction||/mapbox\.com$/.test(window.location.hostname)}function t(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}function n(){var e=document.createElement("div");e.className="shell-wrapper";var t=document.createElement("div");t.className="shell-loading shell-loading--dark shell-fixed shell-top shell-left shell-right shell-bottom shell-flex-parent shell-bg-darken50",t.style.zIndex="9999",e.appendChild(t),document.body.appendChild(e)}function i(){return ye}function o(e){ye=e}function r(){return Ie}function a(){Ie=!0}function l(){return be}function s(e){be=e}function u(e){Ee.push(e)}function c(){Ee.forEach((function(e){e()})),Ee=[]}function d(e){Le=e}function m(){Le&&Le()}function v(e){ke.push(e)}function f(){ke.forEach((function(e){e()})),ke=[]}function g(e){u(e)}function p(e,t){for(var n=document.querySelectorAll(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:window)}function Q(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:qe;return e in n.style||!!t&&Ne.some((function(t){return Q(H(t,e))}))}function V(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:qe,o=n.allowPrefixedProp,r=n.allowPrefixedValue,a=!1;return(o||r)&&(a=Ne.some((function(n){return V(o?H(n,e):e,r?F(n,t):t)}))),a||(i.style[e]=t,i.style[e]===t)}function Z(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qe;(Oe={flexBox:Q("flex",e,t)&&V("display","flex",{allowPrefixedProp:!1,allowPrefixedValue:e},t),viewportUnits:V("width","100vw",{allowPrefixedProp:!1,allowPrefixedValue:!1},t),visibilityState:W("visibilityState",window.document),devicePixelRatio:W("devicePixelRatio")}).doesCutMustard=Object.keys(Oe).every((function(e){return Oe[e]}))}function G(){var e=window.document.getElementById("page-shell-compatibility-dismiss"),t=window.document.getElementById("page-shell-compatibility-warning");Ue=!0,De=!1,e&&e.removeEventListener("click",G),t&&(t.style.display="none"),window.localStorage&&window.localStorage.setItem("suppress-browser-compatibility-warning","true")}function $(){if(null==Oe.doesCutMustard&&Z(!0),!(Ue||Oe.doesCutMustard||"localStorage"in window&&"true"===window.localStorage.getItem("suppress-browser-compatibility-warning"))){var e=window.document.getElementById("page-shell-compatibility-warning");if(e&&(e.style.display="block"),!De){var t=window.document.getElementById("page-shell-compatibility-dismiss");t&&t.addEventListener("click",G)}De=!0}}function K(){window.matchMedia("(min-width: "+we+"px)").matches&&te()}function ee(){var e=document.getElementById("mobile-nav-menu"),t=document.getElementById("page-header-content");e&&(Xe=!0,e.classList.add("shell-animated-menu--visible"),t.classList.add("shell-mobile-nav--visible"),Q("textOrientation",!0)||(document.querySelector(".shell-mobile-nav__trigger__bar--top").setAttribute("transform","translate(6 -1) rotate(45)"),document.querySelector(".shell-mobile-nav__trigger__bar--bottom").setAttribute("transform","translate(-6.5 6) rotate(-45)")),X(),window.addEventListener("resize",K))}function te(){var e=document.getElementById("mobile-nav-menu"),t=document.getElementById("page-header-content");e&&(Xe=!1,e.classList.remove("shell-animated-menu--visible"),t.classList.remove("shell-mobile-nav--visible"),Q("textOrientation",!0)||(document.querySelector(".shell-mobile-nav__trigger__bar--top").setAttribute("transform",""),document.querySelector(".shell-mobile-nav__trigger__bar--bottom").setAttribute("transform","")),Y(),window.removeEventListener("resize",K))}function ne(e){var t=document.getElementById("mobile-nav-trigger-toggle"),n=document.getElementById("mobile-nav-menu"),i=document.getElementById("page-header-content");t&&n&&(e.target.getAttribute&&e.target.getAttribute("data-nav-link")?(document.documentElement.scrollTop=0,document.body.scrollTop=0,te()):t.contains(e.target)?Xe?te():ee():!Xe||n.contains(e.target)||i.contains(e.target)||te())}function ie(){if(!Ye){Ye=!0;var e=document.querySelectorAll("[data-nav-trigger]");if(0!==e.length){var t=void 0,n=void 0,i=void 0;for(i=0;i \ No newline at end of file From d5a7b77af7f9ea0b2c2c20bf5f4120acdda98dfe Mon Sep 17 00:00:00 2001 From: John Furrow Date: Fri, 22 Sep 2017 15:16:36 -0700 Subject: [PATCH 07/12] Update page shell --- docs/_layouts/default.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index 1db3b3a4cdd..4fb0588e397 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -136,4 +136,4 @@ {% if page.head %}{{page.head}}{% endif %}{% if layout.head %}{{layout.head}}{% endif %} \ No newline at end of file +!(function(){"use strict";function e(){return!0===window.MapboxPageShellProduction||/mapbox\.com$/.test(window.location.hostname)}function t(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}function n(){var e=document.createElement("div");e.className="shell-wrapper";var t=document.createElement("div");t.className="shell-loading shell-loading--dark shell-fixed shell-top shell-left shell-right shell-bottom shell-flex-parent shell-bg-darken50",t.style.zIndex="9999",e.appendChild(t),document.body.appendChild(e)}function i(){return be}function o(e){be=e}function r(){return Ie}function a(){Ie=!0}function s(){return Ee}function l(e){Ee=e}function u(e){Le.push(e)}function c(){Le.forEach((function(e){e()})),Le=[]}function d(e){xe=e}function m(){xe&&xe()}function v(e){ke.push(e)}function f(){ke.forEach((function(e){e()})),ke=[]}function g(e){u(e)}function p(e,t){for(var n=document.querySelectorAll(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:window)}function Q(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ne;return e in n.style||!!t&&Oe.some((function(t){return Q(Y(t,e))}))}function V(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ne,o=n.allowPrefixedProp,r=n.allowPrefixedValue,a=!1;return(o||r)&&(a=Oe.some((function(n){return V(o?Y(n,e):e,r?F(n,t):t)}))),a||(i.style[e]=t,i.style[e]===t)}function Z(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ne;(De={flexBox:Q("flex",e,t)&&V("display","flex",{allowPrefixedProp:!1,allowPrefixedValue:e},t),viewportUnits:V("width","100vw",{allowPrefixedProp:!1,allowPrefixedValue:!1},t),visibilityState:W("visibilityState",window.document),devicePixelRatio:W("devicePixelRatio")}).doesCutMustard=Object.keys(De).every((function(e){return De[e]}))}function G(){var e=window.document.getElementById("page-shell-compatibility-dismiss"),t=window.document.getElementById("page-shell-compatibility-warning");Ue=!0,He=!1,e&&e.removeEventListener("click",G),t&&(t.style.display="none"),window.localStorage&&window.localStorage.setItem("suppress-browser-compatibility-warning","true")}function $(){if(null==De.doesCutMustard&&Z(!0),!(Ue||De.doesCutMustard||"localStorage"in window&&"true"===window.localStorage.getItem("suppress-browser-compatibility-warning"))){var e=window.document.getElementById("page-shell-compatibility-warning");if(e&&(e.style.display="block"),!He){var t=window.document.getElementById("page-shell-compatibility-dismiss");t&&t.addEventListener("click",G)}He=!0}}function K(){window.matchMedia("(min-width: "+we+"px)").matches&&te()}function ee(){var e=document.getElementById("mobile-nav-menu"),t=document.getElementById("page-header-content");e&&(Xe=!0,e.classList.add("shell-animated-menu--visible"),t.classList.add("shell-mobile-nav--visible"),Q("textOrientation",!0)||(document.querySelector(".shell-mobile-nav__trigger__bar--top").setAttribute("transform","translate(6 -1) rotate(45)"),document.querySelector(".shell-mobile-nav__trigger__bar--bottom").setAttribute("transform","translate(-6.5 6) rotate(-45)")),U(),window.addEventListener("resize",K))}function te(){var e=document.getElementById("mobile-nav-menu"),t=document.getElementById("page-header-content");e&&(Xe=!1,e.classList.remove("shell-animated-menu--visible"),t.classList.remove("shell-mobile-nav--visible"),Q("textOrientation",!0)||(document.querySelector(".shell-mobile-nav__trigger__bar--top").setAttribute("transform",""),document.querySelector(".shell-mobile-nav__trigger__bar--bottom").setAttribute("transform","")),X(),window.removeEventListener("resize",K))}function ne(e){var t=document.getElementById("mobile-nav-trigger-toggle"),n=document.getElementById("mobile-nav-menu"),i=document.getElementById("page-header-content");t&&n&&(e.target.getAttribute&&e.target.getAttribute("data-nav-link")?(document.documentElement.scrollTop=0,document.body.scrollTop=0,te()):t.contains(e.target)?Xe?te():ee():!Xe||n.contains(e.target)||i.contains(e.target)||te())}function ie(){if(!Ye){Ye=!0;var e=document.querySelectorAll("[data-nav-trigger]");if(0!==e.length){var t=void 0,n=void 0,i=void 0;for(i=0;i \ No newline at end of file From edcf98c649357eabe157a7b6efaa2d27c50600a0 Mon Sep 17 00:00:00 2001 From: John Furrow Date: Fri, 22 Sep 2017 17:25:37 -0700 Subject: [PATCH 08/12] Update page shell --- docs/_layouts/default.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index 4fb0588e397..1db3b3a4cdd 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -136,4 +136,4 @@ {% if page.head %}{{page.head}}{% endif %}{% if layout.head %}{{layout.head}}{% endif %} \ No newline at end of file +!(function(){"use strict";function e(){return!0===window.MapboxPageShellProduction||/mapbox\.com$/.test(window.location.hostname)}function t(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}function n(){var e=document.createElement("div");e.className="shell-wrapper";var t=document.createElement("div");t.className="shell-loading shell-loading--dark shell-fixed shell-top shell-left shell-right shell-bottom shell-flex-parent shell-bg-darken50",t.style.zIndex="9999",e.appendChild(t),document.body.appendChild(e)}function i(){return ye}function o(e){ye=e}function r(){return Ie}function a(){Ie=!0}function l(){return be}function s(e){be=e}function u(e){Ee.push(e)}function c(){Ee.forEach((function(e){e()})),Ee=[]}function d(e){Le=e}function m(){Le&&Le()}function v(e){ke.push(e)}function f(){ke.forEach((function(e){e()})),ke=[]}function g(e){u(e)}function p(e,t){for(var n=document.querySelectorAll(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:window)}function Q(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:qe;return e in n.style||!!t&&Ne.some((function(t){return Q(H(t,e))}))}function V(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:qe,o=n.allowPrefixedProp,r=n.allowPrefixedValue,a=!1;return(o||r)&&(a=Ne.some((function(n){return V(o?H(n,e):e,r?F(n,t):t)}))),a||(i.style[e]=t,i.style[e]===t)}function Z(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qe;(Oe={flexBox:Q("flex",e,t)&&V("display","flex",{allowPrefixedProp:!1,allowPrefixedValue:e},t),viewportUnits:V("width","100vw",{allowPrefixedProp:!1,allowPrefixedValue:!1},t),visibilityState:W("visibilityState",window.document),devicePixelRatio:W("devicePixelRatio")}).doesCutMustard=Object.keys(Oe).every((function(e){return Oe[e]}))}function G(){var e=window.document.getElementById("page-shell-compatibility-dismiss"),t=window.document.getElementById("page-shell-compatibility-warning");Ue=!0,De=!1,e&&e.removeEventListener("click",G),t&&(t.style.display="none"),window.localStorage&&window.localStorage.setItem("suppress-browser-compatibility-warning","true")}function $(){if(null==Oe.doesCutMustard&&Z(!0),!(Ue||Oe.doesCutMustard||"localStorage"in window&&"true"===window.localStorage.getItem("suppress-browser-compatibility-warning"))){var e=window.document.getElementById("page-shell-compatibility-warning");if(e&&(e.style.display="block"),!De){var t=window.document.getElementById("page-shell-compatibility-dismiss");t&&t.addEventListener("click",G)}De=!0}}function K(){window.matchMedia("(min-width: "+we+"px)").matches&&te()}function ee(){var e=document.getElementById("mobile-nav-menu"),t=document.getElementById("page-header-content");e&&(Xe=!0,e.classList.add("shell-animated-menu--visible"),t.classList.add("shell-mobile-nav--visible"),Q("textOrientation",!0)||(document.querySelector(".shell-mobile-nav__trigger__bar--top").setAttribute("transform","translate(6 -1) rotate(45)"),document.querySelector(".shell-mobile-nav__trigger__bar--bottom").setAttribute("transform","translate(-6.5 6) rotate(-45)")),X(),window.addEventListener("resize",K))}function te(){var e=document.getElementById("mobile-nav-menu"),t=document.getElementById("page-header-content");e&&(Xe=!1,e.classList.remove("shell-animated-menu--visible"),t.classList.remove("shell-mobile-nav--visible"),Q("textOrientation",!0)||(document.querySelector(".shell-mobile-nav__trigger__bar--top").setAttribute("transform",""),document.querySelector(".shell-mobile-nav__trigger__bar--bottom").setAttribute("transform","")),Y(),window.removeEventListener("resize",K))}function ne(e){var t=document.getElementById("mobile-nav-trigger-toggle"),n=document.getElementById("mobile-nav-menu"),i=document.getElementById("page-header-content");t&&n&&(e.target.getAttribute&&e.target.getAttribute("data-nav-link")?(document.documentElement.scrollTop=0,document.body.scrollTop=0,te()):t.contains(e.target)?Xe?te():ee():!Xe||n.contains(e.target)||i.contains(e.target)||te())}function ie(){if(!Ye){Ye=!0;var e=document.querySelectorAll("[data-nav-trigger]");if(0!==e.length){var t=void 0,n=void 0,i=void 0;for(i=0;i \ No newline at end of file From 7c0f69e7889df329a5362ee6f85bfc3fec173eea Mon Sep 17 00:00:00 2001 From: Andrew Harvey Date: Sat, 30 Sep 2017 08:51:41 +1000 Subject: [PATCH 09/12] update gl draw example to use events (#4968) * update gl draw example to use events * don't fire alert on delete --- .../examples/3400-01-25-mapbox-gl-draw.html | 30 +++++++------------ 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/docs/_posts/examples/3400-01-25-mapbox-gl-draw.html b/docs/_posts/examples/3400-01-25-mapbox-gl-draw.html index 83eb48c9e54..9422db22dd2 100644 --- a/docs/_posts/examples/3400-01-25-mapbox-gl-draw.html +++ b/docs/_posts/examples/3400-01-25-mapbox-gl-draw.html @@ -8,27 +8,16 @@ --- \ No newline at end of file +!(function(){"use strict";function e(){return!0===window.MapboxPageShellProduction||/mapbox\.com$/.test(window.location.hostname)}function t(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}function n(){var e=document.createElement("div");e.className="shell-wrapper";var t=document.createElement("div");t.className="shell-loading shell-loading--dark shell-fixed shell-top shell-left shell-right shell-bottom shell-flex-parent shell-bg-darken50",t.style.zIndex="9999",e.appendChild(t),document.body.appendChild(e)}function i(){return ye}function o(e){ye=e}function r(){return Ie}function a(){Ie=!0}function l(){return be}function s(e){be=e}function u(e){Ee.push(e)}function c(){Ee.forEach((function(e){e()})),Ee=[]}function d(e){Le=e}function m(){Le&&Le()}function v(e){ke.push(e)}function f(){ke.forEach((function(e){e()})),ke=[]}function g(e){u(e)}function p(e,t){for(var n=document.querySelectorAll(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:window)}function Q(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:qe;return e in n.style||!!t&&Ne.some((function(t){return Q(H(t,e))}))}function V(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:qe,o=n.allowPrefixedProp,r=n.allowPrefixedValue,a=!1;return(o||r)&&(a=Ne.some((function(n){return V(o?H(n,e):e,r?F(n,t):t)}))),a||(i.style[e]=t,i.style[e]===t)}function Z(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qe;(Oe={flexBox:Q("flex",e,t)&&V("display","flex",{allowPrefixedProp:!1,allowPrefixedValue:e},t),viewportUnits:V("width","100vw",{allowPrefixedProp:!1,allowPrefixedValue:!1},t),visibilityState:W("visibilityState",window.document),devicePixelRatio:W("devicePixelRatio")}).doesCutMustard=Object.keys(Oe).every((function(e){return Oe[e]}))}function G(){var e=window.document.getElementById("page-shell-compatibility-dismiss"),t=window.document.getElementById("page-shell-compatibility-warning");Ue=!0,De=!1,e&&e.removeEventListener("click",G),t&&(t.style.display="none"),window.localStorage&&window.localStorage.setItem("suppress-browser-compatibility-warning","true")}function $(){if(null==Oe.doesCutMustard&&Z(!0),!(Ue||Oe.doesCutMustard||"localStorage"in window&&"true"===window.localStorage.getItem("suppress-browser-compatibility-warning"))){var e=window.document.getElementById("page-shell-compatibility-warning");if(e&&(e.style.display="block"),!De){var t=window.document.getElementById("page-shell-compatibility-dismiss");t&&t.addEventListener("click",G)}De=!0}}function K(){window.matchMedia("(min-width: "+we+"px)").matches&&te()}function ee(){var e=document.getElementById("mobile-nav-menu"),t=document.getElementById("page-header-content");e&&(Xe=!0,e.classList.add("shell-animated-menu--visible"),t.classList.add("shell-mobile-nav--visible"),Q("textOrientation",!0)||(document.querySelector(".shell-mobile-nav__trigger__bar--top").setAttribute("transform","translate(6 -1) rotate(45)"),document.querySelector(".shell-mobile-nav__trigger__bar--bottom").setAttribute("transform","translate(-6.5 6) rotate(-45)")),X(),window.addEventListener("resize",K))}function te(){var e=document.getElementById("mobile-nav-menu"),t=document.getElementById("page-header-content");e&&(Xe=!1,e.classList.remove("shell-animated-menu--visible"),t.classList.remove("shell-mobile-nav--visible"),Q("textOrientation",!0)||(document.querySelector(".shell-mobile-nav__trigger__bar--top").setAttribute("transform",""),document.querySelector(".shell-mobile-nav__trigger__bar--bottom").setAttribute("transform","")),Y(),window.removeEventListener("resize",K))}function ne(e){var t=document.getElementById("mobile-nav-trigger-toggle"),n=document.getElementById("mobile-nav-menu"),i=document.getElementById("page-header-content");t&&n&&(e.target.getAttribute&&e.target.getAttribute("data-nav-link")?(document.documentElement.scrollTop=0,document.body.scrollTop=0,te()):t.contains(e.target)?Xe?te():ee():!Xe||n.contains(e.target)||i.contains(e.target)||te())}function ie(){if(!Ye){Ye=!0;var e=document.querySelectorAll("[data-nav-trigger]");if(0!==e.length){var t=void 0,n=void 0,i=void 0;for(i=0;i \ No newline at end of file From 10b417b5d7e4816eefe91ef4a78ee5bfa092a96b Mon Sep 17 00:00:00 2001 From: Liz Shigetoshi Date: Tue, 10 Oct 2017 13:46:26 -0700 Subject: [PATCH 12/12] Update page shell --- docs/_layouts/default.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index 6e637848332..f40fde28449 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -136,4 +136,4 @@ {% if page.head %}{{page.head}}{% endif %}{% if layout.head %}{{layout.head}}{% endif %} \ No newline at end of file +!(function(){"use strict";function e(){return!0===window.MapboxPageShellProduction||/mapbox\.com$/.test(window.location.hostname)}function t(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}function n(){var e=document.createElement("div");e.className="shell-wrapper";var t=document.createElement("div");t.className="shell-loading shell-loading--dark shell-fixed shell-top shell-left shell-right shell-bottom shell-flex-parent shell-bg-darken50",t.style.zIndex="9999",e.appendChild(t),document.body.appendChild(e)}function i(){return ye}function o(e){ye=e}function r(){return Ie}function a(){Ie=!0}function l(){return be}function s(e){be=e}function u(e){Ee.push(e)}function c(){Ee.forEach((function(e){e()})),Ee=[]}function d(e){Le=e}function m(){Le&&Le()}function v(e){ke.push(e)}function f(){ke.forEach((function(e){e()})),ke=[]}function g(e){u(e)}function p(e,t){for(var n=document.querySelectorAll(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:window)}function Q(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:qe;return e in n.style||!!t&&Ne.some((function(t){return Q(H(t,e))}))}function V(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:qe,o=n.allowPrefixedProp,r=n.allowPrefixedValue,a=!1;return(o||r)&&(a=Ne.some((function(n){return V(o?H(n,e):e,r?F(n,t):t)}))),a||(i.style[e]=t,i.style[e]===t)}function Z(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qe;(Oe={flexBox:Q("flex",e,t)&&V("display","flex",{allowPrefixedProp:!1,allowPrefixedValue:e},t),viewportUnits:V("width","100vw",{allowPrefixedProp:!1,allowPrefixedValue:!1},t),visibilityState:W("visibilityState",window.document),devicePixelRatio:W("devicePixelRatio")}).doesCutMustard=Object.keys(Oe).every((function(e){return Oe[e]}))}function G(){var e=window.document.getElementById("page-shell-compatibility-dismiss"),t=window.document.getElementById("page-shell-compatibility-warning");Ue=!0,De=!1,e&&e.removeEventListener("click",G),t&&(t.style.display="none"),window.localStorage&&window.localStorage.setItem("suppress-browser-compatibility-warning","true")}function $(){if(null==Oe.doesCutMustard&&Z(!0),!(Ue||Oe.doesCutMustard||"localStorage"in window&&"true"===window.localStorage.getItem("suppress-browser-compatibility-warning"))){var e=window.document.getElementById("page-shell-compatibility-warning");if(e&&(e.style.display="block"),!De){var t=window.document.getElementById("page-shell-compatibility-dismiss");t&&t.addEventListener("click",G)}De=!0}}function K(){window.matchMedia("(min-width: "+we+"px)").matches&&te()}function ee(){var e=document.getElementById("mobile-nav-menu"),t=document.getElementById("page-header-content");e&&(Xe=!0,e.classList.add("shell-animated-menu--visible"),t.classList.add("shell-mobile-nav--visible"),Q("textOrientation",!0)||(document.querySelector(".shell-mobile-nav__trigger__bar--top").setAttribute("transform","translate(6 -1) rotate(45)"),document.querySelector(".shell-mobile-nav__trigger__bar--bottom").setAttribute("transform","translate(-6.5 6) rotate(-45)")),X(),window.addEventListener("resize",K))}function te(){var e=document.getElementById("mobile-nav-menu"),t=document.getElementById("page-header-content");e&&(Xe=!1,e.classList.remove("shell-animated-menu--visible"),t.classList.remove("shell-mobile-nav--visible"),Q("textOrientation",!0)||(document.querySelector(".shell-mobile-nav__trigger__bar--top").setAttribute("transform",""),document.querySelector(".shell-mobile-nav__trigger__bar--bottom").setAttribute("transform","")),Y(),window.removeEventListener("resize",K))}function ne(e){var t=document.getElementById("mobile-nav-trigger-toggle"),n=document.getElementById("mobile-nav-menu"),i=document.getElementById("page-header-content");t&&n&&(e.target.getAttribute&&e.target.getAttribute("data-nav-link")?(document.documentElement.scrollTop=0,document.body.scrollTop=0,te()):t.contains(e.target)?Xe?te():ee():!Xe||n.contains(e.target)||i.contains(e.target)||te())}function ie(){if(!Ye){Ye=!0;var e=document.querySelectorAll("[data-nav-trigger]");if(0!==e.length){var t=void 0,n=void 0,i=void 0;for(i=0;i \ No newline at end of file