Changeset - 72c589cb96d1
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 20 months ago 2023-06-03 22:45:27
drewp@bigasterisk.com
looknig for a bug
1 file changed with 5 insertions and 5 deletions:
0 comments (0 inline, 0 general)
light9/fade/Light9FadeUi.ts
Show inline comments
 
@@ -10,7 +10,7 @@ import { SyncedGraph } from "../web/Sync
 
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 FaderConfig {
 

	
 
class FadePage {
 
  constructor(public uri: NamedNode) { }
 
  faders: FaderConfig[] = [];
 
  faderConfigs: FaderConfig[] = [];
 
}
 
class FadePages {
 
  pages: FadePage[] = [];
 
@@ -65,7 +65,7 @@ export class Light9FadeUi extends LitEle
 
          <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 @@ export class Light9FadeUi extends LitEle
 
      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);
0 comments (0 inline, 0 general)