@shapeshift-labs/frontier-lang-canvas
v0.1.1
Published
Runtime-neutral canvas semantic merge evidence for Frontier Lang.
Maintainers
Readme
@shapeshift-labs/frontier-lang-canvas
Runtime-neutral canvas semantic merge evidence for Frontier Lang.
This package scans source text for Canvas 2D, OffscreenCanvas, WebGL, and WebGPU semantic regions, and normalizes draw-command traces produced by higher-level runtime probes. It does not render pixels, load images, run browser workers, execute GPU commands, or claim visual/runtime equivalence. Draw order, context state, images, fonts, pixel reads, WebGL/WebGPU resources, OffscreenCanvas transfer, frame timing, hit testing, and accessibility/fallback behavior remain explicit fail-closed proof gaps unless a higher layer supplies stronger evidence.
import { createCanvasSemanticMergeEvidence } from '@shapeshift-labs/frontier-lang-canvas';
const evidence = createCanvasSemanticMergeEvidence(`
export function draw(canvas) {
const ctx = canvas.getContext('2d');
ctx.fillStyle = 'red';
ctx.fillRect(0, 0, 10, 10);
}
`);
console.log(evidence.summary.commands);
console.log(evidence.proofGaps.map((gap) => gap.code));Boundary
frontier-lang-canvas owns source-bound canvas API evidence and normalized command-trace records. Browser probes, bitmap/perceptual comparisons, GPU validation, font/image loading, worker execution, and final merge admission stay above this package.
