# HG changeset patch # User drewp@bigasterisk.com # Date 2023-05-25 18:46:08 # Node ID 91ae65157e5ff3a5b60b91a842d97da11f4cb9a9 # Parent 7a7877eb7e8b6b50e85709903aae4bbf8891ad77 logging and comments diff --git a/light9/live/Effect.ts b/light9/live/Effect.ts --- a/light9/live/Effect.ts +++ b/light9/live/Effect.ts @@ -5,6 +5,7 @@ import { Patch, patchContainsPreds, patc import { SyncedGraph } from "../web/SyncedGraph"; import { shortShow } from "../web/show_specific"; +// todo: Align these names with newtypes.py, which uses HexColor and VTUnion. type Color = string; export type ControlValue = number | Color | NamedNode; diff --git a/light9/live/Light9DeviceControl.ts b/light9/live/Light9DeviceControl.ts --- a/light9/live/Light9DeviceControl.ts +++ b/light9/live/Light9DeviceControl.ts @@ -84,9 +84,10 @@ export class Light9DeviceControl extends a + ${this.deviceAttrs.map( (dattr: DeviceAttrRow) => html` -
+
attr { sortBy(this.graph.subjects(U("rdf:type"), dc), "value").forEach((dev) => { - log(`found dev ${dev.value}`) + log(`found dev ${dev.value}`); this.devices.push(dev as NamedNode); }); });