Added typings for slot shape and replaced built files

This commit is contained in:
ilya
2020-07-10 12:23:43 +03:00
parent 628c6c15a7
commit ea63884c83
3 changed files with 3280 additions and 3264 deletions

7
src/litegraph.d.ts vendored
View File

@@ -11,6 +11,11 @@ export type widgetTypes =
| "text"
| "toggle"
| "button";
export type SlotShape =
| typeof LiteGraph.BOX_SHAPE
| typeof LiteGraph.CIRCLE_SHAPE
| typeof LiteGraph.ARROW_SHAPE
| typeof LiteGraph.SQUARE_SHAPE
/** https://github.com/jagenjo/litegraph.js/tree/master/guides#node-slots */
export interface INodeSlot {
@@ -24,6 +29,7 @@ export interface INodeSlot {
| typeof LiteGraph.LEFT;
color_on?: string;
color_off?: string;
shape?: SlotShape;
locked?: boolean;
nameLocked?: boolean;
}
@@ -174,6 +180,7 @@ export const LiteGraph: {
CIRCLE_SHAPE: 3;
CARD_SHAPE: 4;
ARROW_SHAPE: 5;
SQUARE_SHAPE: 6;
//enums
INPUT: 1;