point-click-components 0.3.2-0 → 0.3.3
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 +12 -43
- package/dist/point-click-components.js +4027 -4180
- package/package.json +1 -1
|
@@ -241,16 +241,6 @@ export declare const makeReducer: (gameDesign: GameDesign, options?: GameRunnerO
|
|
|
241
241
|
|
|
242
242
|
export declare const makeUiReducer: () => Reducer<UiState, UiAction>;
|
|
243
243
|
|
|
244
|
-
export declare const Pin: ({ x, y, label, pinHeight, pinTilt }: PinProps) => JSX.Element;
|
|
245
|
-
|
|
246
|
-
declare interface PinProps {
|
|
247
|
-
x?: number;
|
|
248
|
-
y?: number;
|
|
249
|
-
label: string;
|
|
250
|
-
pinHeight?: number;
|
|
251
|
-
pinTilt?: number;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
244
|
declare interface Props {
|
|
255
245
|
data: ActorData;
|
|
256
246
|
clickHandler?: HandleClickFunction<ActorData>;
|
|
@@ -269,14 +259,6 @@ declare interface Props {
|
|
|
269
259
|
customInteractableStyling?: CustomInteractableStyling;
|
|
270
260
|
}
|
|
271
261
|
|
|
272
|
-
declare type Props_10 = {
|
|
273
|
-
page: StoryBoardPage;
|
|
274
|
-
font?: BoardFont;
|
|
275
|
-
getImageAsset: {
|
|
276
|
-
(id: string): ImageAsset | undefined;
|
|
277
|
-
};
|
|
278
|
-
};
|
|
279
|
-
|
|
280
262
|
declare type Props_2 = {
|
|
281
263
|
gameState: GameData;
|
|
282
264
|
handleTargetClick: HandleClickFunction<CommandTarget>;
|
|
@@ -314,7 +296,6 @@ declare interface Props_5 {
|
|
|
314
296
|
contextClickHandler?: HandleClickFunction<HotspotZone>;
|
|
315
297
|
handleHover?: HandleHoverFunction;
|
|
316
298
|
highlight?: boolean;
|
|
317
|
-
markVertices?: boolean;
|
|
318
299
|
stopPropogation?: boolean;
|
|
319
300
|
customInteractableStyling?: CustomInteractableStyling;
|
|
320
301
|
}
|
|
@@ -325,24 +306,24 @@ declare interface Props_6 {
|
|
|
325
306
|
|
|
326
307
|
declare interface Props_7 {
|
|
327
308
|
zone: Zone;
|
|
328
|
-
markVertices: boolean;
|
|
329
|
-
zoneType: 'walkable' | 'obstacle';
|
|
330
|
-
zoneOptions: ZoneOptions;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
declare interface Props_8 {
|
|
334
|
-
zone: Zone;
|
|
335
|
-
markVertices?: boolean;
|
|
336
309
|
shapeSerialisedStyle?: SerializedStyles | SerializedStyles[];
|
|
337
310
|
className?: string;
|
|
338
311
|
processClick?: MouseEventHandler<SVGElement>;
|
|
339
312
|
processContextClick?: MouseEventHandler<SVGElement>;
|
|
340
313
|
}
|
|
341
314
|
|
|
342
|
-
declare interface
|
|
315
|
+
declare interface Props_8 {
|
|
343
316
|
storyBoard: StoryBoard;
|
|
344
317
|
}
|
|
345
318
|
|
|
319
|
+
declare type Props_9 = {
|
|
320
|
+
page: StoryBoardPage;
|
|
321
|
+
font?: BoardFont;
|
|
322
|
+
getImageAsset: {
|
|
323
|
+
(id: string): ImageAsset | undefined;
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
|
|
346
327
|
export declare const putActorsInDisplayOrder: (a: ActorData, b: ActorData) => number;
|
|
347
328
|
|
|
348
329
|
export declare const Room: FunctionComponent<RoomProps>;
|
|
@@ -366,13 +347,9 @@ export declare interface RoomProps {
|
|
|
366
347
|
(zone: HotspotZone, event: PointerEvent): void;
|
|
367
348
|
};
|
|
368
349
|
handleHover?: HandleHoverFunction;
|
|
369
|
-
renderAllZones?: boolean;
|
|
370
350
|
highlightHotspots?: boolean;
|
|
371
351
|
highlightActors?: boolean;
|
|
372
352
|
obstacleCells?: CellMatrix;
|
|
373
|
-
hotspotIndexToMark?: number;
|
|
374
|
-
obstacleIndexToMark?: number;
|
|
375
|
-
walkableIndexToMark?: number;
|
|
376
353
|
showCaption?: boolean;
|
|
377
354
|
isPaused?: boolean;
|
|
378
355
|
orderedActors?: ActorWithOrdersAndClickHandlers[];
|
|
@@ -420,9 +397,9 @@ export declare type SpeechBubbleProps = {
|
|
|
420
397
|
atRightEdge: boolean;
|
|
421
398
|
};
|
|
422
399
|
|
|
423
|
-
export declare const StoryBoardPlayer: React.FunctionComponent<
|
|
400
|
+
export declare const StoryBoardPlayer: React.FunctionComponent<Props_8>;
|
|
424
401
|
|
|
425
|
-
export declare const StoryPageDisplay: FunctionComponent<
|
|
402
|
+
export declare const StoryPageDisplay: FunctionComponent<Props_9>;
|
|
426
403
|
|
|
427
404
|
export declare const SurfaceFrame: ({ children }: Props_6) => JSX.Element;
|
|
428
405
|
|
|
@@ -572,19 +549,11 @@ export declare const useRoomRender: () => {
|
|
|
572
549
|
|
|
573
550
|
export declare const VerbRadioButton: () => JSX.Element;
|
|
574
551
|
|
|
575
|
-
export declare const WalkableOrObstacle: ({ zone, markVertices, zoneType, zoneOptions }: Props_7) => JSX.Element;
|
|
576
|
-
|
|
577
552
|
export declare type XY = {
|
|
578
553
|
x: number;
|
|
579
554
|
y: number;
|
|
580
555
|
};
|
|
581
556
|
|
|
582
|
-
export declare
|
|
583
|
-
disabled?: boolean;
|
|
584
|
-
flash?: boolean;
|
|
585
|
-
blink?: boolean;
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
export declare const ZoneShape: ({ zone, markVertices, shapeSerialisedStyle, className, processClick, processContextClick, }: Props_8) => JSX.Element;
|
|
557
|
+
export declare const ZoneShape: ({ zone, shapeSerialisedStyle, className, processClick, processContextClick, }: Props_7) => JSX.Element;
|
|
589
558
|
|
|
590
559
|
export { }
|