diff options
-rw-r--r-- | docs/style-generator/index.html | 2 | ||||
-rw-r--r-- | docs/style-generator/style-generator.e65d4760.js | 2 | ||||
-rw-r--r-- | style-generator/package.json | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/docs/style-generator/index.html b/docs/style-generator/index.html index c3638e1..6b28656 100644 --- a/docs/style-generator/index.html +++ b/docs/style-generator/index.html @@ -1 +1 @@ -<!DOCTYPE html><html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title>Mapbox Style to Elm</title> <link rel="stylesheet" href="/style-generator.90798390.css"></head> <body> <script src="/style-generator.e65d4760.js"></script> </body> </html>
\ No newline at end of file +<!DOCTYPE html><html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title>Mapbox Style to Elm</title> <link rel="stylesheet" href="style-generator.90798390.css"></head> <body> <script src="style-generator.e65d4760.js"></script> </body> </html>
\ No newline at end of file diff --git a/docs/style-generator/style-generator.e65d4760.js b/docs/style-generator/style-generator.e65d4760.js index 4cb025c..6c20e83 100644 --- a/docs/style-generator/style-generator.e65d4760.js +++ b/docs/style-generator/style-generator.e65d4760.js @@ -36,4 +36,4 @@ var e;!function(t){"object"==typeof exports&&"object"==typeof module?t(require(" },{"../../lib/codemirror":"e7zg"}],"Focm":[function(require,module,exports) { "use strict";var e=require("./src/Main.elm"),t=require("@mapbox/mapbox-gl-style-spec"),r=o(require("@mapbox/mapbox-gl-style-spec/migrate/v9")),n=o(require("codemirror/lib/codemirror.js"));function o(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),e}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?a(e):t}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}function p(e){var t="function"==typeof Map?new Map:void 0;return(p=function(e){if(null===e||!h(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return y(e,arguments,b(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),m(r,e)})(e)}function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function y(e,t,r){return(y=d()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&m(o,r.prototype),o}).apply(null,arguments)}function h(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}require("codemirror/lib/codemirror.css"),require("codemirror/theme/base16-light.css"),require("codemirror/mode/elm/elm.js"),require("codemirror/mode/javascript/javascript.js");var _=e.Elm.Main.init({});customElements.define("code-editor",function(e){function t(){var e;return u(this,t),(e=s(this,b(t).call(this)))._editorValue="",e}return f(t,p(HTMLElement)),l(t,[{key:"connectedCallback",value:function(){var e=this;this._editor=(0,n.default)(this,{identUnit:4,mode:this._mode,lineNumbers:!0,value:this._editorValue,readOnly:this._readonly,lineWrapping:!0}),this._editor.on("changes",function(){e._editorValue=e._editor.getValue(),console.log("changes",e._editorValue),e.dispatchEvent(new CustomEvent("editorChanged",{detail:e._editorValue}))});var t=this.getBoundingClientRect(),r=t.width,o=t.height;this._editor.setSize(r,o)}},{key:"editorValue",get:function(){return this._editorValue},set:function(e){this._editorValue!==e&&(this._editorValue=e,this._editor&&this._editor.setValue(e))}},{key:"readonly",get:function(){return this._readonly},set:function(e){this._readonly=e,this._editor&&this._editor.setOption("readonly",e)}},{key:"mode",get:function(){return this._mode},set:function(e){this._mode=e,this._editor&&this._editor.setOption("mode",e)}}]),t}()),_.ports.requestStyleUpgrade.subscribe(function(e){try{var n=(0,r.default)((0,t.migrate)(JSON.parse(e)));_.ports.styleUpgradeComplete.send({type:"Ok",result:n})}catch(o){_.ports.styleUpgradeComplete.send({type:"Err",error:o})}}); },{"./src/Main.elm":"3oS9","@mapbox/mapbox-gl-style-spec":"WCBj","@mapbox/mapbox-gl-style-spec/migrate/v9":"Ldbb","codemirror/lib/codemirror.js":"e7zg","codemirror/lib/codemirror.css":"5Uxn","codemirror/theme/base16-light.css":"5Uxn","codemirror/mode/elm/elm.js":"BaoT","codemirror/mode/javascript/javascript.js":"iOBI"}]},{},["Focm"], null) -//# sourceMappingURL=/style-generator.3de3c5f3.map
\ No newline at end of file +//# sourceMappingURL=style-generator.3de3c5f3.map
\ No newline at end of file diff --git a/style-generator/package.json b/style-generator/package.json index a765962..ebb3436 100644 --- a/style-generator/package.json +++ b/style-generator/package.json @@ -6,7 +6,7 @@ "scripts": { "test": "elm-test", "start": "parcel index.html", - "build": "parcel build index.html --out-dir ../docs/style-generator" + "build": "parcel build index.html --out-dir ../docs/style-generator --public-url ." }, "keywords": [ "mapbox", |