point-click-components 0.0.7 → 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 & {
@@ -172,6 +187,12 @@ declare interface Props_5 {
172
187
  }>;
173
188
  }
174
189
 
190
+ declare interface Props_6 {
191
+ y: number;
192
+ color?: string;
193
+ text?: string;
194
+ }
195
+
175
196
  export declare const putActorsInDisplayOrder: (a: ActorData, b: ActorData) => number;
176
197
 
177
198
  export declare const Room: FunctionComponent<Props>;