chore(ui): delete unused files

This commit is contained in:
psychedelicious
2023-11-13 08:43:27 +11:00
parent 71e298b722
commit 5eaea9dd64
81 changed files with 0 additions and 2780 deletions

View File

@ -1,16 +0,0 @@
import Konva from 'konva';
import { IRect } from 'konva/lib/types';
/**
* Converts a Konva node to a dataURL
* @param node - The Konva node to convert to a dataURL
* @param boundingBox - The bounding box to crop to
* @returns A dataURL of the node cropped to the bounding box
*/
export const konvaNodeToDataURL = (
node: Konva.Node,
boundingBox: IRect
): string => {
// get a dataURL of the bbox'd region
return node.toDataURL(boundingBox);
};