Добавляем все файлы
This commit is contained in:
15
main_plugin/dgrm/infrastructure/canvas-smbl.js
Executable file
15
main_plugin/dgrm/infrastructure/canvas-smbl.js
Executable file
@@ -0,0 +1,15 @@
|
||||
export const CanvasSmbl = Symbol('Canvas');
|
||||
|
||||
/** @typedef { {x:number, y:number} } Point */
|
||||
/** @typedef {{position:Point, scale:number, cell: number}} CanvasData */
|
||||
/** @typedef {SVGGElement & { [CanvasSmbl]?: Canvas }} CanvasElement */
|
||||
/**
|
||||
@typedef {{
|
||||
move?(x:number, y:number, scale:number): void
|
||||
data: CanvasData
|
||||
|
||||
// TODO: it is not infrastructure methods -> shouldn't be here
|
||||
selectClear?(): void
|
||||
shapeMap: Record<number, import("../shapes/shape-type-map").ShapeType>
|
||||
}} Canvas
|
||||
*/
|
||||
Reference in New Issue
Block a user