SPB Git

Repository Public

model.ts 2.9 KB 65 lines typescript

1/**2 * =============================================================================3 *                  SP BOUCHER | SOFTWARE & RESEARCH4 *             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * Project          : Note SPBoucher AI8 * File             : src/lib/canvas/model.ts9 * Description      : the model of the Infinite Canvas (`spn-canvas-1`, SPEC10 *                    §3.4) — one import for everything pure: types, tolerant11 *                    reading and unknown-field preservation, ids, z-order,12 *                    hit-testing, snapping guides, group move / resize, align /13 *                    distribute (core.ts); edge routing with arrowheads14 *                    anchored on the node outlines (routing.ts); three-way15 *                    merge by node / edge id (merge.ts); grid and seeded16 *                    force-directed auto-layout (layout.ts); viewport17 *                    mathematics (viewport.ts); undo history (history.ts);18 *                    text, Markdown outline and SVG export (export.ts). No DOM19 *                    and no I/O anywhere below this file. The native apps20 *                    mirror it (SPNotesCore: Canvas.swift, CanvasMerge.swift,21 *                    CanvasLayout.swift); the contract is docs/next/CANVAS.md22 *                    and the fixtures in tests/fixtures/canvas/.23 * Module           : lib24 * Repository       : https://git.spboucher.ai/note-spboucher-ai25 * Project Website  : https://note.spboucher.ai26 * Created          : 2026-11-1927 * Last Modified    : 2026-11-1928 *29 * Author           : Simon-Pierre Boucher30 * Position         : Professor of Finance31 * Institution      : Université du Québec en Outaouais (UQO)32 * Organization     : SP Boucher33 * Website          : https://spboucher.ai34 * Git              : https://git.spboucher.ai35 *36 * Preferred Contact: contact@spboucher.ai37 * Development      : dev@spboucher.ai38 * Support          : support@spboucher.ai39 * Security/Admin   : admin@spboucher.ai40 *41 * Copyright (c) 202642 * Simon-Pierre Boucher43 * All rights reserved where applicable. This file is governed by the44 * applicable project license, copyright notices and relevant law.45 * Existing third-party rights and notices remain unaffected.46 *47 * License          : None specified (no license file in this repository)48 *49 * Do not embed credentials, private keys, access tokens,50 * certificates or confidential personal information.51 *52 * =============================================================================53 * END OF SP BOUCHER SOURCE HEADER54 * =============================================================================55 */5657export { CANVAS_FORMAT, CANVAS_LIMITS, canvasProblem, canvasRefs } from "./format";58export * from "./core";59export * from "./routing";60export * from "./merge";61export * from "./layout";62export * from "./viewport";63export * from "./history";64export * from "./export";65
Files main
Menu

Theme