@cpfr/tootframes 1.0.19 → 1.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -18,6 +18,7 @@ The name *"Tootframes"* is derived from the sound an elephant does plus *"frames
18
18
  - Menu and MenuBar
19
19
  - Node Editor
20
20
  - Panels
21
+ - TabPanels
21
22
  - TreeView
22
23
  - UndoHistory
23
24
 
package/dist/Color.d.ts CHANGED
@@ -74,6 +74,7 @@ declare class Color {
74
74
  invert(): void;
75
75
  getInverted(): Color;
76
76
  getComplement(): Color;
77
+ getRgbBlended(other: Color, alpha: number): Color;
77
78
  getBlended(other: Color, alpha: number): Color;
78
79
  }
79
80
  export { Color, ColorModificationMode };
@@ -0,0 +1,23 @@
1
+ import { Widget } from './Widget';
2
+ type Tab = {
3
+ title: string;
4
+ content: Widget;
5
+ canBeClosed: boolean;
6
+ };
7
+ declare class TabPanel extends Widget {
8
+ tabs: Tab[];
9
+ headers: HTMLDivElement[];
10
+ headerElement: HTMLDivElement;
11
+ contentElement: HTMLDivElement;
12
+ activeIndex: number;
13
+ constructor(tabs?: Tab[]);
14
+ getTabIndex(tab: Tab): number;
15
+ addTab(tab: Tab): void;
16
+ insertTab(index: number, tab: Tab): void;
17
+ removeTab(tab: Tab): void;
18
+ removeTabAtIndex(index: number): void;
19
+ setActiveTabIndex(index: number): void;
20
+ onAttached(): void;
21
+ onResize(): void;
22
+ }
23
+ export { TabPanel };
package/dist/main.d.ts CHANGED
@@ -4,6 +4,7 @@ export * from './Color';
4
4
  export * from './ColorPicker';
5
5
  export * from './Widget';
6
6
  export * from './Panel';
7
+ export * from './TabPanel';
7
8
  export * from './Button';
8
9
  export * from './Dropdown';
9
10
  export * from './ListBox';