diff --git a/lite-vimeo.js b/lite-vimeo.js index c003b4942aa8b4db5a5efa32a801c50e07ea2f8e..bcb404b41ca30af17f512b658b4f760866d63bac 100644 --- a/lite-vimeo.js +++ b/lite-vimeo.js @@ -142,6 +142,7 @@ let LiteVimeoEmbed = /** @class */ (() => { border-radius: 10%; transition: all 0.2s cubic-bezier(0, 0, 0.2, 1); border: 0; + cursor: pointer; } #frame:hover .lvo-playbtn { background-color: rgb(98, 175, 237);diff --git a/LICENSE b/LICENSE index 561dff2..486c72e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ - Copyright 2020 Shane Holloway. (ES Module port) Copyright 2019 David Bau. +Copyright (C) 2010 by Johannes Baagøe Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the @@ -20,4 +20,3 @@ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff --git a/package.json b/package.json index 99e77b2..470dae8 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "type": "git", "url": "git://github.com/shanewholloway/js-esm-seedrandom.git" }, - "author": [ + "contributors": [ + "Johannes Baagøe ", "David Bau", "Shane Holloway" ], diff --git a/index.js b/index.js index 7bb9ede9700c322d39a403d41cbc3c1057db1bf6..3942421195cc3fb26bb2692016eef922160f3b7c 100644 --- a/index.js +++ b/index.js @@ -45,7 +45,7 @@ function iface () { if (!opts) opts = {} var depper = gdeps(opts) var deps = depper.inline(src, opts.basedir || basedir) - return bundle(deps) + return { source: bundle(deps), deps } } function file(filename, opts) { if (!opts) opts = {}diff --git a/build/quantities.mjs b/build/quantities.mjs index 958840ff536508004faa20ddae17e75884b39632..ac24d533965cc38fb2065835340ecb9cefb12c38 100644 --- a/build/quantities.mjs +++ b/build/quantities.mjs @@ -338,6 +338,7 @@ var UNITS = { /* molar_concentration */ "" : [["M","molar"], 1000, "molar_concentration", [""], ["","",""]], "" : [["wt%","wtpercent"], 10, "molar_concentration", [""], ["","",""]], + "" : [["DU","Dobson unit"], 4.4615e-4, "concentration", [""], ["",""]], /* activity */ "" : [["kat","katal","Katal"], 1.0, "activity", [""], [""]], diff --git a/index.js b/index.js index 85474ec0aeaed7104ccd6b4784541ed7c85220dc..2c1e423d1b155e457d974935f5049fad65165f03 100644 --- a/index.js +++ b/index.js @@ -58,7 +58,12 @@ module.exports = function glslify(userOptions = {}) { options ); - code = compile(code, fileOptions); + const { source, deps } = compile(code, fileOptions); + code = source; + + for (const dep of deps.filter(dep => !dep.entry)) { + this.addWatchFile(dep.file); + } if (typeof options.compress === 'function') { code = options.compress(code); diff --git a/LICENSE-MPL-2.0 b/LICENSE-MPL-2.0 deleted file mode 100644 index 14e2f777f6c395e7e04ab4aa306bbcc4b0c1120e..0000000000000000000000000000000000000000 diff --git a/src/RangeSlider.svelte b/src/RangeSlider.svelte index 460bf5c0bb18d349217644b625e4816a0b1ea656..dafbbf129bd599e821f7c3e42e4342fbfc2804af 100644 --- a/src/RangeSlider.svelte +++ b/src/RangeSlider.svelte @@ -20,7 +20,16 @@ export let reversed = false; export let hoverable = true; export let disabled = false; + export let value = values[0]; + // keep value and values in sync with each other + const updateValues = () => { if (value !== values[0]) values = [value] }; + const updateValue = () => { + if (alignValueToStep(value) !== values[0]) value = values[0]; + }; + $: value, updateValues(); + $: values, updateValue(); + // range pips / values props export let pips = false; export let pipstep = undefined; @@ -799,6 +808,7 @@