point-click-components 0.0.6 → 0.0.8

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.
@@ -2,6 +2,7 @@ import { ActorData } from 'point-click-lib';
2
2
  import { CellMatrix } from 'point-click-lib';
3
3
  import { CommandTarget } from 'point-click-lib';
4
4
  import { Context } from 'react';
5
+ import { Direction } from 'point-click-lib';
5
6
  import { FunctionComponent } from 'react';
6
7
  import { HotspotZone } from 'point-click-lib';
7
8
  import { Order } from 'point-click-lib';
@@ -14,6 +15,22 @@ import { Zone } from 'point-click-lib';
14
15
 
15
16
  export declare const ActorFigure: ({ data, isPaused, clickHandler, handleHover, contextClickHandler, orders, overrideSpriteData, noSound, getImageAsset, sprites, SoundHandler, }: Props_5) => JSX.Element;
16
17
 
18
+ export declare const ActorPreview: ({ data, overrideSpriteData, scale, noBaseLine, maxHeight, animation, direction, getImageAsset, sprites, }: ActorPreviewProps) => JSX.Element;
19
+
20
+ export declare type ActorPreviewProps = {
21
+ data: ActorData;
22
+ overrideSpriteData?: SpriteData;
23
+ scale?: number;
24
+ noBaseLine?: boolean;
25
+ maxHeight?: number;
26
+ animation?: string;
27
+ direction?: Direction;
28
+ getImageAsset: {
29
+ (id: string): ImageAsset | undefined;
30
+ };
31
+ sprites: SpriteData[];
32
+ };
33
+
17
34
  declare type ActorWithOrdersAndClickHandlers = {
18
35
  data: ActorData;
19
36
  orders?: Order[];
@@ -21,15 +38,11 @@ declare type ActorWithOrdersAndClickHandlers = {
21
38
  contextClickHandler?: HandleClickFunction<ActorData>;
22
39
  };
23
40
 
24
- export declare function calculateScreenX(xPosition: number, viewAngleX: number, roomData: RoomData): number;
25
-
26
- export declare function calculateScreenY(yPosition: number, viewAngleY: number, roomData: RoomData): number;
27
-
28
41
  export declare const cameraPointContext: Context< {
29
42
  cameraPoint?: XY;
30
43
  }>;
31
44
 
32
- export declare const CamerPointProvider: Provider< {
45
+ export declare const CameraPointProvider: Provider< {
33
46
  cameraPoint?: XY;
34
47
  }>;
35
48
 
@@ -56,6 +69,8 @@ declare type HandleHoverFunction = {
56
69
  (target: CommandTarget, event: 'enter' | 'leave'): void;
57
70
  };
58
71
 
72
+ export declare const HorizontalLine: FunctionComponent<Props_6>;
73
+
59
74
  export declare const Hotspot: FunctionComponent<Props_2>;
60
75
 
61
76
  declare type ImageAsset = FileAsset & {
@@ -74,6 +89,16 @@ export declare function locateClickInWorld(clickXPosition: number, clickYpositio
74
89
  y: number;
75
90
  };
76
91
 
92
+ export declare const Pin: ({ x, y, label, pinHeight, pinTilt }: PinProps) => JSX.Element;
93
+
94
+ declare interface PinProps {
95
+ x?: number;
96
+ y?: number;
97
+ label: string;
98
+ pinHeight?: number;
99
+ pinTilt?: number;
100
+ }
101
+
77
102
  declare interface Props {
78
103
  data: RoomData;
79
104
  maxWidth?: number;
@@ -162,6 +187,12 @@ declare interface Props_5 {
162
187
  }>;
163
188
  }
164
189
 
190
+ declare interface Props_6 {
191
+ y: number;
192
+ color?: string;
193
+ text?: string;
194
+ }
195
+
165
196
  export declare const putActorsInDisplayOrder: (a: ActorData, b: ActorData) => number;
166
197
 
167
198
  export declare const Room: FunctionComponent<Props>;