Typos and grammatical (English) cleanups. Changes made to comments and text output, not css classes or variable names.
This commit is contained in:
parent
796ee2fdc6
commit
5301e2507a
20 changed files with 26 additions and 26 deletions
|
|
@ -77,7 +77,7 @@ function updateWidget(widget, options={}) {
|
|||
|
||||
// save state
|
||||
if (stateManager.queueCounter === 0) {
|
||||
scrollState = {} // scrollbale modals don't store their scroll state in their value
|
||||
scrollState = {} // scrollable modals don't store their scroll state in their value
|
||||
}
|
||||
stateManager.incrementQueue()
|
||||
for (let w of removedWidgets) {
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ class Editor {
|
|||
})
|
||||
console.error(
|
||||
`Error while setting ${propName} to: ${JSON.stringify(value)}.\n` +
|
||||
'It\'s probably a bug, please open a new bug ticket with the followigin informations at' +
|
||||
'It\'s probably a bug, please open a new bug ticket with the following informations at' +
|
||||
'https://github.com/jean-emmanuel/open-stage-control/issues'
|
||||
)
|
||||
throw e
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ module.exports = class EventEmitter {
|
|||
}
|
||||
|
||||
// Event bubbling
|
||||
// DOM events won't buttle
|
||||
// DOM events won't bubble
|
||||
// Virtual events will unless data.stopPropagation is set
|
||||
if (!data || !data.stopPropagation) {
|
||||
if (this.parent) this.parent.trigger(evt, data)
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ module.exports = {
|
|||
|
||||
|
||||
// if (!event.traversing) {
|
||||
// // css transfom fix (doesn't work well with traversing gestures)
|
||||
// // css transform fix (doesn't work well with traversing gestures)
|
||||
// var transformedCoords = cssTransformCoords(event.firstTarget, event.movementX, event.movementY)
|
||||
// event.movementX = transformedCoords.x
|
||||
// event.movementY = transformedCoords.y
|
||||
|
|
@ -102,7 +102,7 @@ module.exports = {
|
|||
event.offsetY = event.pageY - off.top
|
||||
|
||||
// if (!event.traversing) {
|
||||
// // css transfom fix (doesn't work well with traversing gestures)
|
||||
// // css transform fix (doesn't work well with traversing gestures)
|
||||
// var transformedCoords = cssTransformCoords(event.firstTarget, event.offsetX, event.offsetY)
|
||||
// event.offsetX = transformedCoords.x
|
||||
// event.offsetY = transformedCoords.y
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ module.exports = {
|
|||
fullscreen_addtohome: 'You must add this page to your home screen to launch it in fullscreen',
|
||||
|
||||
// inspector
|
||||
inspector_error: 'An error just occured, open the console to read more.',
|
||||
inspector_error: 'An error just occurred, open the console to read more.',
|
||||
|
||||
// nosleep
|
||||
nosleep: 'Prevent sleep',
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ var Parser = class Parser {
|
|||
if (i.indexOf('_') !== 0 && props[i] === undefined) props[i] = deepCopy(defaults[i])
|
||||
}
|
||||
|
||||
// Genrate widget's id, based on its type
|
||||
// Generate widget's id, based on its type
|
||||
if (props.id === 'auto' || !props.id) {
|
||||
var id
|
||||
while (!id || widgetManager.getWidgetById(id).length) {
|
||||
|
|
|
|||
|
|
@ -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.'
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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(':', '_:_')
|
||||
|
|
|
|||
|
|
@ -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)'
|
||||
|
|
|
|||
|
|
@ -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% }`',
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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, '\\\\')
|
||||
|
||||
|
|
|
|||
|
|
@ -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')) {
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue