Skip to content

Commit 4f8782f

Browse files
agachumaUJAM-JHpkellett
authored
🤖 Merge PR DefinitelyTyped#72190 Feature/mapping editor by @agachuma
Co-authored-by: Jan Hörnle <[email protected]> Co-authored-by: Paul Kellett <[email protected]>
1 parent 7c75cbc commit 4f8782f

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

types/gorilla-engine/components/MappingEditor.d.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
declare namespace GorillaEngine.UI {
2+
23
interface Zone {
4+
path: string;
5+
name: string;
36
index: number;
47
rootKey: number;
58
lowKey: number;
69
highKey: number;
710
lowVel: number;
811
highVel: number;
9-
samplePath: string;
1012
}
1113
interface MappingEditorProps extends Common, Bounds, Background {
12-
parentPath: string;
1314
zones?: Zone[];
1415
refreshView(index?: number): void;
15-
addZone(zone: Partial<Zone>): Zone;
16-
removeZone(zone: Partial<Zone>): void;
16+
addZone(zone: Partial<Zone> ): Zone;
17+
removeZone(zone: Partial<Zone> ): void;
1718
}
1819

1920
// tslint:disable-next-line:no-empty-interface

types/gorilla-engine/gorilla-engine-tests.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
const mylabel = new GorillaEngine.UI.Label({ text: "rr" });
23

34
const combo = new GorillaEngine.UI.ComboBox({ id: "myCombo", x: 0 });
@@ -14,4 +15,4 @@ const label = new GorillaEngine.UI.Label({ margin: 5 });
1415

1516
const slider = new GorillaEngine.UI.Slider({ id: "slider", x: 0 });
1617

17-
const mappingEditor = new GorillaEngine.UI.MappingEditor({ id: "myMapping" });
18+
const mappingEditor = new GorillaEngine.UI.MappingEditor({ id: 'myMappingEditor'})

types/gorilla-engine/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,4 +598,4 @@ declare namespace GorillaEngine {
598598
*/
599599
function setSettingsButtonPosition(x: number, y: number): void;
600600
}
601-
}
601+
}

0 commit comments

Comments
 (0)