Repository navigation
Architecture maps: plugin.ts per layer, compiled systems, faster routing, quieter hover - #294
Merged
Merged
Conversation
A layer has at most one plugin, so it is `plugin` in `plugin.ts`, its parts in `plugin/`. Other modules import it through a PascalCase namespace of the layer's index named for its feature and layer (`TodosView.plugin`; `App<Layer>` at the root). The checker enforces the file name and the import form, follows `Namespace.plugin` members in plugin systems and connects, and the map viewer labels plugins by feature and layer. The sample apps and the viewer follow it. Co-Authored-By: OpenCode <noreply@opencode.ai>
…ng one fainter Co-Authored-By: OpenCode <noreply@opencode.ai>
Co-Authored-By: OpenCode <noreply@opencode.ai>
… gap widens for the room it breaks up The top corridor's tracks were squeezed past a row's leg running along it, 2px off other nets. Corridors now fill the pieces between pins and widen for the tracks lost there; the browser check covers runs along the top and bottom. Co-Authored-By: OpenCode <noreply@opencode.ai>
…n bench Co-Authored-By: OpenCode <noreply@opencode.ai>
…, runs found in one pass and once per link The routes drawn are unchanged. Co-Authored-By: OpenCode <noreply@opencode.ai>
The routes drawn are unchanged. Co-Authored-By: OpenCode <noreply@opencode.ai>
… as its shape changes The routes drawn are unchanged. Co-Authored-By: OpenCode <noreply@opencode.ai>
The routes drawn are unchanged. Co-Authored-By: OpenCode <noreply@opencode.ai>
…each move weighed by its own crossings, orders tried in place The routes drawn are unchanged. Co-Authored-By: OpenCode <noreply@opencode.ai>
Co-Authored-By: OpenCode <noreply@opencode.ai>
Co-Authored-By: OpenCode <noreply@opencode.ai>
Co-Authored-By: OpenCode <noreply@opencode.ai>
…eap empties The routes drawn are unchanged. Co-Authored-By: OpenCode <noreply@opencode.ai>
Co-Authored-By: OpenCode <noreply@opencode.ai>
A path through every grid node it passed made each later step walk hundreds of points, and the crossing pass, matching a run by where it starts among them, lost runs to the nodes a moved run dragged along, so it reordered fewer corridors than it could. With only its corners, a link has the same shape, tracking and lessening crossings are about twice as fast, and the crossing pass reorders those corridors, crossing a few fewer. Co-Authored-By: OpenCode <noreply@opencode.ai>
The voxel editor's 'view' module's margin below it doesn't move the heading below the gap its links' tracks need, so each pass widened it again, to no avail, and routed every link again for it. Co-Authored-By: OpenCode <noreply@opencode.ai>
Co-Authored-By: OpenCode <noreply@opencode.ai>
Co-Authored-By: OpenCode <noreply@opencode.ai>
Co-Authored-By: OpenCode <noreply@opencode.ai>
Co-Authored-By: OpenCode <noreply@opencode.ai>
…e runs it changed Co-Authored-By: OpenCode <noreply@opencode.ai>
… as they are now, and what's left in the follow-ups Co-Authored-By: OpenCode <noreply@opencode.ai>
…ld describes them Co-Authored-By: OpenCode <noreply@opencode.ai>
Co-Authored-By: OpenCode <noreply@opencode.ai>
Each gap's widening is measured once all are made: where what bounds it on one side didn't move off what bounds it on the other, as below the voxel editor's 'view' module, last in its column, whose margin below moved nothing, the widening is taken back, adding no space that holds no tracks, and the links aren't routed again for it. Co-Authored-By: OpenCode <noreply@opencode.ai>
Co-Authored-By: OpenCode <noreply@opencode.ai>
Co-Authored-By: OpenCode <noreply@opencode.ai>
…ery order The first cheapest in lexicographic order, as before, from what's left to place at best for each set placed. Co-Authored-By: OpenCode <noreply@opencode.ai>
Co-Authored-By: OpenCode <noreply@opencode.ai>
The pinned note docks in the window's bottom right corner for every kind, translucent over a light blur, with a close button; scrolling keeps it. related derives from the pinned and hovered nodes (relate, in RelatedModel.plugin) and heatLinks heats both nodes' links, so the pinned node's places stay tinted and its links stay in front and flowing as the pointer moves on. Co-Authored-By: OpenCode <noreply@opencode.ai>
…ter are left as they are Co-Authored-By: OpenCode <noreply@opencode.ai>
…ery name still show their tips Co-Authored-By: OpenCode <noreply@opencode.ai>
…spread
Systems' components, lookups, Index.create, System.render, System.entered/exited,
commands.despawnWhere and readonly systems' tables declare with, not and where
directly, typed from the declaration. Query.create and Query.and stay for named,
reusable queries, which a site spreads ({ ...visible, changed: [done] }); a
query's kind is non-enumerable at runtime and a private member in types, so it
never spreads. despawnWhere takes a query as it is too. Query.and takes query
declarations as well as queries.
The build follows inline declarations and spreads of query constants through
consts, imports, re-exports and namespaces, and hoists despawnWhere literals of
module keys and literal values so they're read once.
ecs-persistence 0.4.0: snapshot's selection is { entities?: { with, not, where }, resources? }.
ecs-gpu 0.0.6. ecs-architecture: query-in-place rule; map reads the flattened
form and spreads. Rules and agent files regenerated; samples, guides, benchmark migrated.
Co-Authored-By: OpenCode <noreply@opencode.ai>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Architecture maps: one plugin per layer as
plugin.ts, compiled systems, faster routing, and quieter hover.Plugins:
plugin.ts, reached through a namespaceplugin.tsexportingplugin; its parts live inplugin/. A layer has at most one plugin, sopluginis both its kind and its name.import * as TodosView from "…/todos/view/index.js"→TodosView.plugin,...FilterView.plugin.systems.plugin-import(new) reports a named import ofpluginfrom another layer, or a namespace whose.pluginis used under another name;plugin-nameaccepts onlyplugin.ts;plugin-name-clashis removed. The standard, rules, agent rules and README (with an upgrade note) describe it.Compiled systems
compiled: { runsOn, js?, wasm?, wgsl? }, each compiled, eligible (with why) or made at registration.JS,WASM,GPU), and a system's pinned note shows its JavaScript, WAT and WGSL after its TypeScript.Routing
pnpm run benchtimes each phase; the README's "Routing performance" note records what helped and what didn't.Hover
Versions
@adobe/ecs-architecture0.7.2,@adobe/ecs-architecture-viewer0.1.3.Tests
From a clean build of
ecs/:check:workspace, typecheck, lint, build and every package's tests withCI=truepass;ecs-architecture checkis clean in all seven apps; the root installs frozen. The viewer's routing tests (directions, clearances, tracks, crossings — thresholds only lowered — zoom exactness) pass locally and in CI mode.Left in FOLLOWUPS.md: the voxel editor routes in ~0.6 s, not under 0.5 s (the router's search needs a cheaper strong length estimate); render systems have no compiled form in the build's description.