Isometric line figures that answer the pointer. For React and for anything with a DOM.
Skill: the kernel's index names tour and LAP, the bench's business
Lucas Marques5f614e436bf8
diff --git a/packages/hairline/test/skill/kernel.test.ts b/packages/hairline/test/skill/kernel.test.tsindex 64b06e9..2ebae2f 100644--- a/packages/hairline/test/skill/kernel.test.ts+++ b/packages/hairline/test/skill/kernel.test.ts@@ -26,7 +26,9 @@ it("defines one global, HL, holding what its index lists and nothing else", () =const HL = new Function(`${src}\nreturn HL;`)() as Record<string, unknown>;const indexed = [...src.slice(0, src.indexOf("var HL")).matchAll(/^ \* {3}(\w+)/gm)].map((m) => m[1]);expect(indexed.slice().sort()).toEqual(Object.keys(HL).sort());- expect(Object.keys(HL)).toHaveLength(44);+ expect(Object.keys(HL)).toHaveLength(46);+ expect(typeof HL.tour).toBe("function");+ expect(Array.isArray(HL.LAP)).toBe(true);expect(typeof HL.register).toBe("function");expect(typeof HL.EASE_LIFT).toBe("function");});diff --git a/scripts/kernel.mjs b/scripts/kernel.mjsindex 1b3a3f1..84db1f3 100644--- a/scripts/kernel.mjs+++ b/scripts/kernel.mjs@@ -89,6 +89,8 @@ const INDEX = `/** The bench's business, not a figure's* css(lightDark)* inject(root)+ * tour(stage, stops, onStop) an unseen pointer that walks the stops, [x, y] in viewBox units or null to leave, and gives way to a real one; onStop(i) on each arrival; returns {stop}+ * LAP the default stops: a diamond around the centre, then a leave** Classes, on path, polygon, ellipse and line. They are the whole palette; a* figure sets no colour, width or fill of its own.diff --git a/skills/hairline-create/kernel.js b/skills/hairline-create/kernel.jsindex de45fa9..ad471d8 100644--- a/skills/hairline-create/kernel.js+++ b/skills/hairline-create/kernel.js@@ -1,4 +1,4 @@-/* hairline kernel sha256:713a89cee2645cb50226350c813ef2de043fbe6d2c7b86e418d19665276377fe */+/* hairline kernel sha256:a0e1deb5b5f20bfb1424b477e60b2f8e9d8e10cf480bf64c028b4da0142e34cb *//** HL: everything a figure may call. Read this index; the code under it is the* package's src/core, unchanged, and a figure should not need to read it.@@ -69,6 +69,8 @@* The bench's business, not a figure's* css(lightDark)* inject(root)+ * tour(stage, stops, onStop) an unseen pointer that walks the stops, [x, y] in viewBox units or null to leave, and gives way to a real one; onStop(i) on each arrival; returns {stop}+ * LAP the default stops: a diamond around the centre, then a leave** Classes, on path, polygon, ellipse and line. They are the whole palette; a* figure sets no colour, width or fill of its own.