Merge pull request #792 from erictheise/typos-src

src: typos and grammatical (English) cleanups.
This commit is contained in:
jean-emmanuel 2022-10-15 23:09:00 +02:00 • committed by GitHub
commit cd70fd60dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 29 additions and 29 deletions

View file

@ -36,7 +36,7 @@ class Button extends Widget {
'Set to `null` to send send no argument in the osc message. Must be different from `on`. Ignored if `mode` is `momentary` or `tap`.',
]},
mode: {type: 'string', value: 'toggle', choices: ['toggle', 'push', 'momentary', 'tap'], help: [
'Interraction mode:',
'Interaction mode:',
'- `toggle` (classic on/off switch)',
'- `push` (press & release)',
'- `momentary` (no release, no value sent with the address)',
@ -53,7 +53,7 @@ class Button extends Widget {
})
defaults.scripting.onValue.help.push(
'Additionnal variables:',
'Additional variables:',
'- `locals.touchCoords`: `[x, y]` array representing the touch coordinates, normalized between 0 and 1.'
)

View file

@ -29,7 +29,7 @@ class Switch extends MenuBase {
'`Object` of `"label":value` pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won\'t be kept',
]},
mode: {type: 'string', value: 'tap', choices: ['tap', 'slide', 'click', 'flip'], help: [
'Interraction mode:',
'Interaction mode:',
'- `tap`: activates when the pointer is down but prevents further scrolling',
'- `slide`: same as `tap` but allows sliding between values',
'- `click`: activates upon click only and allows further scrolling',

View file

@ -124,7 +124,7 @@ class Widget extends EventEmitter {
]},
typeTags: {type: 'string', value: '', help: [
'Defines the osc argument types, one letter per argument (including preArgs)',
'- If empty, the types are infered automatically from the values (with numbers casted to floats by default)',
'- If empty, the types are inferred automatically from the values (with numbers casted to floats by default)',
'- If there are more arguments than type letters, the last type is used for the extra arguments',
'See <a href="http://opensoundcontrol.org/">OSC 1.0 specification</a> for existing typetags'
]},
@ -1128,7 +1128,7 @@ class Widget extends EventEmitter {
})
// escpape windows absolute file paths
// escape windows absolute file paths
css = css.replace(/url\(([^)]*)\)/g, (m, url)=>{
var parser = urlParser(url)
if (!parser.protocol.match(/http|data/)) m = m.replace(':', '_:_')

View file

@ -120,7 +120,7 @@ class Clone extends Container() {
getCloneTarget() {
// attempt to acquire a cloneTarget if 'widget-created' event has not been catched
// attempt to acquire a cloneTarget if 'widget-created' event has not been caught
// (the target might have been created before the clone itself)
var widgets = widgetManager.getWidgetById(this.getProp('widgetId'))
@ -197,7 +197,7 @@ class Clone extends Container() {
this.cloneTarget = target
// listen for cloneTarget's deletion
// if it is just edited, its recreation will be catched by the global 'widget-created' event handler
// if it is just edited, its recreation will be caught by the global 'widget-created' event handler
this.cloneTarget.on('widget-removed', (e)=>{
if (this.cloneTarget === e.widget) {
this.unbindTarget()

View file

@ -37,7 +37,7 @@ class Keyboard extends Panel {
'Set to `true` to map the touch coordinates between `off` (top) and `on` (bottom). Requires `on` and `off` to be numbers',
]},
mode: {type: 'string', value: 'push', choices: ['push', 'toggle', 'tap'], help: [
'Interraction mode:',
'Interaction mode:',
'- `push` (press & release)',
'- `toggle` (on/off switches)',
'- `tap` (no release)'

View file

@ -94,7 +94,7 @@ class PatchBay extends Container(Canvas) {
})
defaults.style.css.help.concat(
'The inputs/ouputs width can be adjusted by using the `.nodes` selector:',
'The inputs/outputs width can be adjusted by using the `.nodes` selector:',
'`.nodes { width: 25% }`',
)

View file

@ -87,7 +87,7 @@ module.exports = class Image extends StaticProperties(Widget, {bypass: true}) {
var url = this.value,
parser = urlParser(url)
// escpape windows absolute file paths
// escape windows absolute file paths
if (!parser.protocol.match(/http|data/)) url = url.replace(':', '_:_')
url = url.replace(/\\/g, '\\\\')

View file

@ -5,7 +5,7 @@ module.exports = class Encoder extends StaticProperties(Knob, {angle: 360, range
static description() {
return 'A knob that sends a relative direction infomation instead of an absolute value.'
return 'A knob that sends a relative direction information instead of an absolute value.'
}
@ -45,7 +45,7 @@ module.exports = class Encoder extends StaticProperties(Knob, {angle: 360, range
})
defaults.scripting.onValue.help.push(
'Additionnal variables:',
'Additional variables:',
'- `locals.speed`: encoder\'s speed (reduce `sensitivity` to increase averaging)',
'- `locals.angle`: encoder\'s angle in degrees'
)
@ -218,7 +218,7 @@ module.exports = class Encoder extends StaticProperties(Knob, {angle: 360, range
) return
// sensitivity = ingore value updates
// sensitivity = ignore value updates
var sensitivityIgnore = false
if (this.getProp('sensitivity') < 1) {
if (v != this.getProp('release')) {

View file

@ -162,7 +162,7 @@ class Range extends Fader {
if (!i) return
e.inertia = 1 // cancel mutlifinger inertia
e.inertia = 1 // cancel multifinger inertia
if (e.shiftKey) {
this.faders[0].trigger('drag', e)