@tomorrowevening/hermes 0.0.158 → 0.0.160

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.
@@ -1,27 +1,28 @@
1
- import { Component, ReactNode, RefObject } from 'react';
2
- import { Application } from '@/core/Application';
3
- import RemoteThree from '@/core/remote/RemoteThree';
4
- import { GroupData } from '@/core/types';
5
- import InspectorGroup from './inspector/InspectorGroup';
6
- interface DebugDataProps {
7
- app: Application;
8
- three: RemoteThree;
9
- }
10
- type DebugDataState = {
11
- lastUpdate: number;
12
- };
13
- export default class DebugData extends Component<DebugDataProps, DebugDataState> {
14
- static instance: DebugData;
15
- static groups: JSX.Element[];
16
- static groupsRefs: RefObject<InspectorGroup>[];
17
- static groupTitles: string[];
18
- static app: Application;
19
- constructor(props: DebugDataProps);
20
- componentWillUnmount(): void;
21
- render(): ReactNode;
22
- private addGroup;
23
- private removeGroup;
24
- static addEditorGroup(data: GroupData): RefObject<InspectorGroup> | null;
25
- static removeEditorGroup(name: string): void;
26
- }
27
- export {};
1
+ import { Component, ReactNode, RefObject } from 'react';
2
+ import { Application } from '@/core/Application';
3
+ import RemoteThree from '@/core/remote/RemoteThree';
4
+ import { GroupData } from '@/core/types';
5
+ import InspectorGroup from './inspector/InspectorGroup';
6
+ interface DebugDataProps {
7
+ app: Application;
8
+ three: RemoteThree;
9
+ }
10
+ type DebugDataState = {
11
+ lastUpdate: number;
12
+ };
13
+ export default class DebugData extends Component<DebugDataProps, DebugDataState> {
14
+ static instance: DebugData;
15
+ static groups: JSX.Element[];
16
+ static groupsRefs: RefObject<InspectorGroup>[];
17
+ static groupTitles: string[];
18
+ static app: Application;
19
+ constructor(props: DebugDataProps);
20
+ componentWillUnmount(): void;
21
+ render(): ReactNode;
22
+ private addGroup;
23
+ private removeGroup;
24
+ static addEditorGroup(data: GroupData): RefObject<InspectorGroup> | null;
25
+ static removeEditorGroup(name: string): void;
26
+ static removeAllGroups(): void;
27
+ }
28
+ export {};
@@ -10,7 +10,7 @@ export interface InspectNumberProps {
10
10
  step?: number;
11
11
  disabled?: boolean;
12
12
  className?: string;
13
- labelRef: RefObject<HTMLLabelElement>;
13
+ labelRef: RefObject<HTMLElement>;
14
14
  onChange?: (prop: string, value: number) => void;
15
15
  }
16
16
  export default function InspectNumber(props: InspectNumberProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { RefObject } from 'react';
2
2
  interface DragProps {
3
- label: RefObject<HTMLLabelElement>;
3
+ label: RefObject<HTMLElement>;
4
4
  input: RefObject<HTMLInputElement>;
5
5
  sliderRef?: RefObject<HTMLInputElement>;
6
6
  defaultValue: number;