Merge branch 'master' of github.com:jean-emmanuel/open-stage-control
This commit is contained in:
commit
c1061071bb
7 changed files with 33 additions and 6 deletions
|
|
@ -1,5 +1,5 @@
|
|||
anHsudo: required
|
||||
dist: bionic
|
||||
dist: focal
|
||||
language: node_js
|
||||
node_js:
|
||||
- "12"
|
||||
|
|
|
|||
10
CHANGELOG.md
10
CHANGELOG.md
|
|
@ -1,9 +1,19 @@
|
|||
# Changelog
|
||||
|
||||
## 1.16.2
|
||||
|
||||
- bug fixes
|
||||
- widget visibility not updated properly when set as a non-boolean value
|
||||
|
||||
- widgets
|
||||
- tabs: detach hidden tabs from the DOM (reduces lag caused by heavy tabs)
|
||||
|
||||
## 1.16.1
|
||||
|
||||
- bug fixes
|
||||
- eq widgets not properly converted when importing v0 sessions
|
||||
- image paths with url queries not loaded properly
|
||||
- @{} syntax not returning truncated value according to the widget's precision property (fixed for primitive values only, object values are still returned as is)
|
||||
|
||||
## 1.16.0
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "open-stage-control",
|
||||
"productName": "Open Stage Control",
|
||||
"description": "Libre and modular OSC / MIDI controller",
|
||||
"version": "1.16.0",
|
||||
"version": "1.16.2",
|
||||
"author": {
|
||||
"name": "Jean-Emmanuel Doucet",
|
||||
"email": "jean-emmanuel@ammd.net"
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
| <h6 id="id">id<a class="headerlink" href="#id" title="Permanent link">#</a></h6> | `string` | <code>"auto"</code> | Widgets sharing the same `id` will act as clones and update each other's value(s) without sending extra osc messages. |
|
||||
| <h6 id="visible">visible<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#visible" title="Permanent link">#</a></h6> | `boolean` | <code>true</code> | Set to `false` to hide the widget. |
|
||||
| <h6 id="interaction">interaction<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#interaction" title="Permanent link">#</a></h6> | `boolean` | <code>true</code> | Set to `false` to disable pointer interactions. |
|
||||
| <h6 id="comments">comments<a class="headerlink" href="#comments" title="Permanent link">#</a></h6> | `string` | <code>""</code> | User comments. |
|
||||
| <h6 id="comments">comments<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#comments" title="Permanent link">#</a></h6> | `string` | <code>""</code> | User comments. |
|
||||
|
||||
|
||||
=== "geometry"
|
||||
|
|
@ -741,6 +741,7 @@
|
|||
| <h6 id="multixy_rangeY">rangeY<a class="headerlink" href="#multixy_rangeY" title="Permanent link">#</a></h6> | `object` | <code>\{<br/> "min": 0,<br/> "max": 1<br/>}</code> | Defines the min and max values for the y axis |
|
||||
| <h6 id="multixy_logScaleX">logScaleX<a class="headerlink" href="#multixy_logScaleX" title="Permanent link">#</a></h6> | `boolean`|<br/>`number` | <code>false</code> | Set to `true` to use logarithmic scale for the x axis. Set to `-1` for exponential scale. |
|
||||
| <h6 id="multixy_logScaleY">logScaleY<a class="headerlink" href="#multixy_logScaleY" title="Permanent link">#</a></h6> | `boolean`|<br/>`number` | <code>false</code> | Set to `true` to use logarithmic scale for the y axis. Set to `-1` for exponential scale. |
|
||||
| <h6 id="multixy_doubleTap">doubleTap<a class="headerlink" href="#multixy_doubleTap" title="Permanent link">#</a></h6> | `boolean`|<br/>`string` | <code>false</code> | Set to `true` to make the fader reset to its default value when receiving a double tap.<br/><br/>Can also be an osc address, which case the widget will just send an osc message: `/<doubleTap> <preArgs>` |
|
||||
| <h6 id="multixy_sensitivity">sensitivity<a class="headerlink" href="#multixy_sensitivity" title="Permanent link">#</a></h6> | `number` | <code>1</code> | Defines the pad's sensitivity when `snap` is `false` |
|
||||
|
||||
=== "scripting"
|
||||
|
|
|
|||
|
|
@ -668,7 +668,7 @@ class Widget extends EventEmitter {
|
|||
var r
|
||||
switch (k) {
|
||||
case 'value':
|
||||
r = widgets[i].value
|
||||
r = typeof widgets[i].value === 'object' ? widgets[i].value : widgets[i].getValue(true)
|
||||
break
|
||||
case 'uuid':
|
||||
r = widgets[i].hash
|
||||
|
|
@ -1051,6 +1051,19 @@ class Widget extends EventEmitter {
|
|||
|
||||
}
|
||||
|
||||
|
||||
log(message) {
|
||||
|
||||
if (!uiConsole) return
|
||||
|
||||
var widget = this,
|
||||
id = widget.getProp('id')
|
||||
|
||||
console._log(`${id}${name ? '.' + name : ''}: ${message}`)
|
||||
uiConsole.log('log', `<span class="edit-widget" data-widget="${widget.builtIn ? widget.parent.hash : widget.hash}">${id}</span>: ${message}`, true)
|
||||
|
||||
}
|
||||
|
||||
errorProp(name, type, error) {
|
||||
|
||||
let stackline = error.stack ? (error.stack.match(/>:([0-9]+):[0-9]+/) || '') : '',
|
||||
|
|
@ -1242,10 +1255,10 @@ class Widget extends EventEmitter {
|
|||
|
||||
setVisibility() {
|
||||
|
||||
|
||||
var visible = this.isVisible()
|
||||
|
||||
if (visible !== this.visible) {
|
||||
this.visible = visible
|
||||
this.visible = !!visible
|
||||
this.container.style.display = this.getProp('visible') ? '' : 'none'
|
||||
|
||||
for (var c of this.children) {
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ class Tab extends Panel {
|
|||
hide() {
|
||||
if (this.detached) return
|
||||
this.container.classList.remove('show')
|
||||
this.container.removeChild(this.widget)
|
||||
this.detached = true
|
||||
this.setVisibility()
|
||||
}
|
||||
|
|
@ -66,6 +67,7 @@ class Tab extends Panel {
|
|||
show() {
|
||||
if (!this.detached) return
|
||||
this.container.classList.add('show')
|
||||
this.container.appendChild(this.widget)
|
||||
this.detached = false
|
||||
this.setVisibility()
|
||||
resize.check(this.widget, true)
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@ function resolvePath(url, clientId) {
|
|||
}
|
||||
|
||||
url = resolveHomeDir(url)
|
||||
url = url.split('?')[0]
|
||||
|
||||
for (var i = sessionPath ? -1 : 0; i < resolveDirs.length; i++) {
|
||||
var p = i === -1 ? sessionPath : resolveDirs[i]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue