Skip to content

Commit 26f7032

Browse files
agachumaUJAM-JHpkellett
authored
🤖 Merge PR DefinitelyTyped#73341 Feature/mapping editor by @agachuma
Co-authored-by: Jan Hörnle <jhoernle@ujam.com> Co-authored-by: Paul Kellett <paul.kellett@mda-vst.com>
1 parent 6ccc3e0 commit 26f7032

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
declare namespace GorillaEngine.UI {
2+
23
interface Zone {
34
path: string;
45
name: string;
@@ -11,10 +12,12 @@ declare namespace GorillaEngine.UI {
1112
}
1213
interface MappingEditorProps extends Common, Bounds, Background, Clickable {
1314
zones?: Zone[];
15+
verticalZoom?: number;
16+
horizontalZoom?: number;
1417
refreshView(index?: number): void;
1518
selectAllZones(): void;
1619
deselectAllZones(): void;
17-
selectZones(zones: Partial<Zone[]>): void;
20+
selectZones(zones: Partial<Zone[]>):void;
1821
addZone(zone: Partial<Zone>): Zone;
1922
removeZone(zone: Partial<Zone>): void;
2023
}

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: "myNewMappingEditor", x: 0, y: 0 });
18+
const mappingEditor = new GorillaEngine.UI.MappingEditor({ id: 'myNewMappingEditor', x: 0, y:2})

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)