Mercurial > code > home > repos > light9
diff light9/live/Effect.ts @ 2259:7d26fa1ed4e7
renames and comments (mostly)
author | drewp@bigasterisk.com |
---|---|
date | Mon, 29 May 2023 11:44:22 -0700 |
parents | d3ecee9bfab5 |
children | 4074dbec5c46 |
line wrap: on
line diff
--- a/light9/live/Effect.ts Mon May 29 11:41:11 2023 -0700 +++ b/light9/live/Effect.ts Mon May 29 11:44:22 2023 -0700 @@ -145,7 +145,7 @@ return value != null && value !== 0 && value !== "#000000"; } - _addEffectSetting(device: NamedNode, deviceAttr: NamedNode, value: ControlValue): Patch { + private addEffectSetting(device: NamedNode, deviceAttr: NamedNode, value: ControlValue): Patch { log(" _addEffectSetting", deviceAttr.value, value); const U = (x: string) => this.graph.Uri(x); const quad = (s: Quad_Subject, p: Quad_Predicate, o: Quad_Object) => this.graph.Quad(s, p, o, this.ctxForEffect); @@ -171,12 +171,12 @@ return this.graph.getObjectPatch( effectSetting, // valuePred(this.graph, deviceAttr), - this._nodeForValue(value), + this.nodeForValue(value), this.ctxForEffect ); } - _removeEffectSetting(effectSetting: NamedNode): Patch { + private removeEffectSetting(effectSetting: NamedNode): Patch { const U = (x: string) => this.graph.Uri(x); log(" _removeEffectSetting", effectSetting.value); const toDel = [this.graph.Quad(this.uri, U(":setting"), effectSetting, this.ctxForEffect)]; @@ -186,7 +186,7 @@ return new Patch(toDel, []); } - _nodeForValue(value: ControlValue): NamedNode | Literal { + private nodeForValue(value: ControlValue): NamedNode | Literal { if (value === null) { throw new Error("no value"); }