Skip to content

Commit

Permalink
remove unused extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyie committed Jun 10, 2024
1 parent 8a3a83c commit a873e02
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 17 deletions.
10 changes: 1 addition & 9 deletions packages/api/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { OverlayExtension } from './dist/extensions/overlay';
import type { StatsExtension } from './dist/extensions/stats';
import type { TreeExtension } from './dist/extensions/tree';
import type { PropertiesExtension } from './dist/extensions/properties';
import type { ScenePanelExtension } from './dist/extensions/scenePanel';
import type { NodeExtension } from './dist/extensions/node';
import type { PixiDevtools } from './dist/pixi';

Expand All @@ -20,14 +19,7 @@ declare global {
app?: Application | undefined;
stage?: Container | undefined;
renderer?: Renderer | undefined;
plugins?: (
| OverlayExtension
| StatsExtension
| TreeExtension
| PropertiesExtension
| ScenePanelExtension
| NodeExtension
)[];
plugins?: (OverlayExtension | StatsExtension | TreeExtension | PropertiesExtension | NodeExtension)[];
};
$pixi: Container | null;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/extensions/ext.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Collection of valid extension types.
*/
export type ExtensionType = 'overlay' | 'stats' | 'sceneTree' | 'sceneProperties' | 'scenePanel';
export type ExtensionType = 'overlay' | 'stats' | 'sceneTree' | 'sceneProperties';

export enum ExtensionPriority {
Low = -1,
Expand Down
3 changes: 2 additions & 1 deletion packages/api/src/extensions/properties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ export interface PropertiesExtension {

setProperty(container: Container, prop: string, value: any): void;
getProperties(container: Container): PropertiesEntry[];
copyProperty(container: Container, prop: string): void;
// TODO: Implement copyProperty
copyProperty?(container: Container, prop: string): void;
}
5 changes: 0 additions & 5 deletions packages/api/src/extensions/scenePanel.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import type { Devtools, DevtoolsAPI } from './types';
export * from './extensions/ext';
export * from './extensions/overlay';
export * from './extensions/properties';
export * from './extensions/scenePanel';
export * from './extensions/stats';
export * from './extensions/tree';
export * from './types';
Expand Down

0 comments on commit a873e02

Please sign in to comment.