point-click-components 0.0.5 → 0.0.7
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.
- package/dist/point-click-components.d.ts +22 -1
- package/dist/point-click-components.js +3901 -3853
- package/package.json +1 -1
|
@@ -8,10 +8,11 @@ import { Order } from 'point-click-lib';
|
|
|
8
8
|
import { Provider } from 'react';
|
|
9
9
|
import { ReactNode } from 'react';
|
|
10
10
|
import { RoomData } from 'point-click-lib';
|
|
11
|
+
import { SoundValue } from 'point-click-lib';
|
|
11
12
|
import { SpriteData } from 'point-click-lib';
|
|
12
13
|
import { Zone } from 'point-click-lib';
|
|
13
14
|
|
|
14
|
-
export declare const ActorFigure: ({ data, isPaused, clickHandler, handleHover, contextClickHandler, orders, overrideSpriteData, getImageAsset, sprites, }: Props_5) => JSX.Element;
|
|
15
|
+
export declare const ActorFigure: ({ data, isPaused, clickHandler, handleHover, contextClickHandler, orders, overrideSpriteData, noSound, getImageAsset, sprites, SoundHandler, }: Props_5) => JSX.Element;
|
|
15
16
|
|
|
16
17
|
declare type ActorWithOrdersAndClickHandlers = {
|
|
17
18
|
data: ActorData;
|
|
@@ -73,6 +74,16 @@ export declare function locateClickInWorld(clickXPosition: number, clickYpositio
|
|
|
73
74
|
y: number;
|
|
74
75
|
};
|
|
75
76
|
|
|
77
|
+
export declare const Pin: ({ x, y, label, pinHeight, pinTilt }: PinProps) => JSX.Element;
|
|
78
|
+
|
|
79
|
+
declare interface PinProps {
|
|
80
|
+
x?: number;
|
|
81
|
+
y?: number;
|
|
82
|
+
label: string;
|
|
83
|
+
pinHeight?: number;
|
|
84
|
+
pinTilt?: number;
|
|
85
|
+
}
|
|
86
|
+
|
|
76
87
|
declare interface Props {
|
|
77
88
|
data: RoomData;
|
|
78
89
|
maxWidth?: number;
|
|
@@ -111,6 +122,11 @@ declare interface Props {
|
|
|
111
122
|
};
|
|
112
123
|
orderSpeed?: number;
|
|
113
124
|
sprites: SpriteData[];
|
|
125
|
+
SoundHandler?: FunctionComponent<{
|
|
126
|
+
soundValues: SoundValue[];
|
|
127
|
+
isPaused: boolean;
|
|
128
|
+
frameIndex?: number;
|
|
129
|
+
}>;
|
|
114
130
|
}
|
|
115
131
|
|
|
116
132
|
declare interface Props_2 {
|
|
@@ -149,6 +165,11 @@ declare interface Props_5 {
|
|
|
149
165
|
(id: string): ImageAsset | undefined;
|
|
150
166
|
};
|
|
151
167
|
sprites: SpriteData[];
|
|
168
|
+
SoundHandler?: FunctionComponent<{
|
|
169
|
+
soundValues: SoundValue[];
|
|
170
|
+
isPaused: boolean;
|
|
171
|
+
frameIndex?: number;
|
|
172
|
+
}>;
|
|
152
173
|
}
|
|
153
174
|
|
|
154
175
|
export declare const putActorsInDisplayOrder: (a: ActorData, b: ActorData) => number;
|