UNPKG

wave-roll

Version:

JavaScript Library for Comparative MIDI Piano-Roll Visualization

26 lines 1.01 kB
/** * Shape renderer utility for file indicators * Creates SVG shapes based on file ID hash */ import type { OnsetMarkerShape, OnsetMarkerStyle } from "@/types"; import { StateManager } from "@/core/state"; export type ShapeType = 'circle' | 'triangle' | 'diamond' | 'square' | OnsetMarkerShape; export declare class ShapeRenderer { /** * Get shape type based on file ID hash */ static getShapeType(fileId: string, stateManager?: StateManager): ShapeType; /** * Create SVG shape element */ static createShapeSVG(shape: ShapeType, color: string, size?: number, variant?: OnsetMarkerStyle["variant"]): SVGElement; /** * Create color indicator element with shape */ static createColorIndicator(fileId: string, colorHex: string, stateManager?: StateManager): HTMLElement; /** * Create simple square color chip (for WAV files) */ static createSquareColorChip(colorHex: string): HTMLElement; } //# sourceMappingURL=shape-renderer.d.ts.map