Skip to content

Commit

Permalink
Remove unwanted API
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhicks committed Jan 30, 2025
1 parent bceb5d6 commit 888a0c8
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 63 deletions.
19 changes: 0 additions & 19 deletions docs/Main/FeltController.md
Original file line number Diff line number Diff line change
Expand Up @@ -885,25 +885,6 @@ will still be selected when clicked.

***

### enableToolSettingsUi()

> **enableToolSettingsUi**(`enabled`: `boolean`): `void`
Enables or disables the tool settings UI which shows up on the right hand side
when a tool is in use.

#### Parameters

| Parameter | Type | Description |
| --------- | --------- | --------------------------------------- |
| `enabled` | `boolean` | Whether to enable the tool settings UI. |

#### Returns

`void`

***

### getViewport()

> **getViewport**(): `Promise`\<[`ViewportState`](../Viewport/ViewportState.md)>
Expand Down
19 changes: 0 additions & 19 deletions docs/UI/UiController.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,22 +50,3 @@ will still be selected when clicked.
#### Returns

`void`

***

### enableToolSettingsUi()

> **enableToolSettingsUi**(`enabled`: `boolean`): `void`
Enables or disables the tool settings UI which shows up on the right hand side
when a tool is in use.

#### Parameters

| Parameter | Type | Description |
| --------- | --------- | --------------------------------------- |
| `enabled` | `boolean` | Whether to enable the tool settings UI. |

#### Returns

`void`
1 change: 0 additions & 1 deletion etc/js-sdk.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,6 @@ export { ToolType }

// @public
export interface UiController {
enableToolSettingsUi(enabled: boolean): void;
setOnMapInteractionsUi(options: OnMapInteractionsOptions): void;
updateUiControls(controls: UiControlsOptions): void;
}
Expand Down
9 changes: 0 additions & 9 deletions src/modules/ui/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import type { UiControlsOptions, UiOnMapInteractionsOptions } from "./types";
export const uiController = (feltWindow: Window): UiController => ({
updateUiControls: method(feltWindow, "updateUiControls"),
setOnMapInteractionsUi: method(feltWindow, "setOnMapInteractionsUi"),
enableToolSettingsUi: method(feltWindow, "enableToolSettingsUi"),
});

/**
Expand Down Expand Up @@ -37,12 +36,4 @@ export interface UiController {
* will still be selected when clicked.
*/
setOnMapInteractionsUi(options: UiOnMapInteractionsOptions): void;

/**
* Enables or disables the tool settings UI which shows up on the right hand side
* when a tool is in use.
*
* @param enabled - Whether to enable the tool settings UI.
*/
enableToolSettingsUi(enabled: boolean): void;
}
16 changes: 1 addition & 15 deletions src/modules/ui/schema.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { z } from "zod";
import type { ModuleSchema } from "~/lib/ModuleSchema";
import { type Method, methodMessage } from "~/lib/builders";
import type { zInfer } from "~/lib/utils";
Expand All @@ -17,17 +16,8 @@ const OnMapInteractionsMessage = methodMessage(
UiOnMapInteractionsOptionsSchema,
);

const EnableToolSettingsUiMessage = methodMessage(
"enableToolSettingsUi",
z.boolean(),
);

export const uiSchema = {
methods: [
UiControlsMessage,
OnMapInteractionsMessage,
EnableToolSettingsUiMessage,
],
methods: [UiControlsMessage, OnMapInteractionsMessage],
listeners: null,
} satisfies ModuleSchema;

Expand All @@ -38,10 +28,6 @@ export type UiSchema = {
zInfer<typeof OnMapInteractionsMessage>,
void
>;
enableToolSettingsUi: Method<
zInfer<typeof EnableToolSettingsUiMessage>,
void
>;
};
listeners: {};
};

0 comments on commit 888a0c8

Please sign in to comment.