changeset 2350:72c589cb96d1

looknig for a bug
author drewp@bigasterisk.com
date Sat, 03 Jun 2023 15:45:27 -0700
parents f7e564b42af3
children 1bb30b0eaa38
files light9/fade/Light9FadeUi.ts
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/light9/fade/Light9FadeUi.ts	Sat Jun 03 15:22:38 2023 -0700
+++ b/light9/fade/Light9FadeUi.ts	Sat Jun 03 15:45:27 2023 -0700
@@ -10,7 +10,7 @@
 export { EditChoice } from "../web/EditChoice";
 export { Light9EffectFader } from "./Light9EffectFader";
 
-debug.enable("*,-autodep");
+debug.enable("*,autodep");
 const log = debug("fade");
 
 class FaderConfig {
@@ -19,7 +19,7 @@
 
 class FadePage {
   constructor(public uri: NamedNode) { }
-  faders: FaderConfig[] = [];
+  faderConfigs: FaderConfig[] = [];
 }
 class FadePages {
   pages: FadePage[] = [];
@@ -65,7 +65,7 @@
           <button @click=${(ev: Event) => this.mapThisToHw(page.uri)}>Map this to hw</button>
           `}
         </legend>
-        ${page.faders.map((fd) => html` <light9-effect-fader .uri=${fd.uri}></light9-effect-fader> `)}
+        ${page.faderConfigs.map((fd) => html` <light9-effect-fader .uri=${fd.uri}></light9-effect-fader> `)}
       </fieldset>
     </div>`;
   }
@@ -98,9 +98,9 @@
       try {
         for (let fader of this.graph.objects(page, U(":fader"))) {
           const colLit = this.graph.stringValue(fader, U(':column'))
-          fp.faders.push(new FaderConfig(fader as NamedNode, parseFloat(colLit)));
+          fp.faderConfigs.push(new FaderConfig(fader as NamedNode, parseFloat(colLit)));
         }
-        fp.faders.sort((a, b) => {
+        fp.faderConfigs.sort((a, b) => {
           return a.column - (b.column);
         });
         fadePages.pages.push(fp);