scandit-datacapture-frameworks-core 6.21.0-beta.2

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.
Files changed (102) hide show
  1. package/dist/dts/BaseController.d.ts +12 -0
  2. package/dist/dts/EventEmitter.d.ts +3 -0
  3. package/dist/dts/Expiration.d.ts +5 -0
  4. package/dist/dts/FactoryMaker.d.ts +12 -0
  5. package/dist/dts/LicenseInfo.d.ts +6 -0
  6. package/dist/dts/camera/Camera.d.ts +44 -0
  7. package/dist/dts/camera/CameraController.d.ts +30 -0
  8. package/dist/dts/camera/CameraPosition.d.ts +5 -0
  9. package/dist/dts/camera/CameraSettings.d.ts +39 -0
  10. package/dist/dts/camera/FocusGesture.d.ts +2 -0
  11. package/dist/dts/camera/FocusGestureStrategy.d.ts +6 -0
  12. package/dist/dts/camera/FocusRange.d.ts +5 -0
  13. package/dist/dts/camera/LogoStyle.d.ts +4 -0
  14. package/dist/dts/camera/PrivateFocusGestureDeserializer.d.ts +7 -0
  15. package/dist/dts/camera/SwipeToZoom.d.ts +6 -0
  16. package/dist/dts/camera/TapToFocus.d.ts +6 -0
  17. package/dist/dts/camera/TorchState.d.ts +5 -0
  18. package/dist/dts/camera/TorchSwitchControl.d.ts +15 -0
  19. package/dist/dts/camera/VideoResolution.d.ts +6 -0
  20. package/dist/dts/camera/ZoomGesture.d.ts +8 -0
  21. package/dist/dts/camera/ZoomSwitchControl.d.ts +15 -0
  22. package/dist/dts/camera/index.d.ts +16 -0
  23. package/dist/dts/common/Anchor.d.ts +11 -0
  24. package/dist/dts/common/Brush.d.ts +28 -0
  25. package/dist/dts/common/Color.d.ts +26 -0
  26. package/dist/dts/common/Direction.d.ts +9 -0
  27. package/dist/dts/common/MarginsWithUnit.d.ts +25 -0
  28. package/dist/dts/common/MeasureUnit.d.ts +5 -0
  29. package/dist/dts/common/NumberWithUnit.d.ts +17 -0
  30. package/dist/dts/common/Orientation.d.ts +7 -0
  31. package/dist/dts/common/Payload.d.ts +11 -0
  32. package/dist/dts/common/Point.d.ts +16 -0
  33. package/dist/dts/common/PointWithUnit.d.ts +19 -0
  34. package/dist/dts/common/Quadrilateral.d.ts +23 -0
  35. package/dist/dts/common/Rect.d.ts +10 -0
  36. package/dist/dts/common/RectWithUnit.d.ts +10 -0
  37. package/dist/dts/common/Size.d.ts +16 -0
  38. package/dist/dts/common/SizeWithAspect.d.ts +9 -0
  39. package/dist/dts/common/SizeWithUnit.d.ts +9 -0
  40. package/dist/dts/common/SizeWithUnitAndAspect.d.ts +31 -0
  41. package/dist/dts/common/SizingMode.d.ts +6 -0
  42. package/dist/dts/common/index.d.ts +42 -0
  43. package/dist/dts/context/ContextStatus.d.ts +17 -0
  44. package/dist/dts/context/DataCaptureComponent.d.ts +7 -0
  45. package/dist/dts/context/DataCaptureContext.d.ts +50 -0
  46. package/dist/dts/context/DataCaptureContextController.d.ts +30 -0
  47. package/dist/dts/context/DataCaptureContextCreationOptions.d.ts +3 -0
  48. package/dist/dts/context/DataCaptureContextListener.d.ts +6 -0
  49. package/dist/dts/context/DataCaptureContextSettings.d.ts +6 -0
  50. package/dist/dts/context/DataCaptureMode.d.ts +9 -0
  51. package/dist/dts/context/index.d.ts +11 -0
  52. package/dist/dts/defaults/CoreDefaults.d.ts +73 -0
  53. package/dist/dts/defaults/getCoreDefaults.d.ts +2 -0
  54. package/dist/dts/defaults/index.d.ts +2 -0
  55. package/dist/dts/defaults/loadCoreDefaults.d.ts +1 -0
  56. package/dist/dts/feedback/Feedback.d.ts +22 -0
  57. package/dist/dts/feedback/FeedbackController.d.ts +11 -0
  58. package/dist/dts/feedback/Sound.d.ts +13 -0
  59. package/dist/dts/feedback/Vibration.d.ts +30 -0
  60. package/dist/dts/feedback/index.d.ts +7 -0
  61. package/dist/dts/frame/FrameData.d.ts +16 -0
  62. package/dist/dts/frame/FrameSource.d.ts +14 -0
  63. package/dist/dts/frame/FrameSourceListener.d.ts +5 -0
  64. package/dist/dts/frame/FrameSourceState.d.ts +11 -0
  65. package/dist/dts/frame/ImageBuffer.d.ts +18 -0
  66. package/dist/dts/frame/ImageFrameSource.d.ts +41 -0
  67. package/dist/dts/frame/ImageFrameSourceController.d.ts +19 -0
  68. package/dist/dts/frame/index.d.ts +9 -0
  69. package/dist/dts/index.d.ts +16 -0
  70. package/dist/dts/locationselection/LocationSelection.d.ts +2 -0
  71. package/dist/dts/locationselection/NoneLocationSelection.d.ts +3 -0
  72. package/dist/dts/locationselection/RadiusLocationSelection.d.ts +16 -0
  73. package/dist/dts/locationselection/RectangularLocationSelection.d.ts +18 -0
  74. package/dist/dts/locationselection/index.d.ts +6 -0
  75. package/dist/dts/serializable/DefaultSerializable.d.ts +4 -0
  76. package/dist/dts/serializable/Serializable.d.ts +3 -0
  77. package/dist/dts/serializable/StringSerializable.d.ts +3 -0
  78. package/dist/dts/serializable/ignoreFromSerialization.d.ts +1 -0
  79. package/dist/dts/serializable/ignoreFromSerializationIfNull.d.ts +1 -0
  80. package/dist/dts/serializable/index.d.ts +7 -0
  81. package/dist/dts/serializable/nameForSerialization.d.ts +1 -0
  82. package/dist/dts/serializable/serializationDefault.d.ts +1 -0
  83. package/dist/dts/view/Control.d.ts +6 -0
  84. package/dist/dts/view/DataCaptureOverlay.d.ts +6 -0
  85. package/dist/dts/view/DataCaptureView.d.ts +44 -0
  86. package/dist/dts/view/DataCaptureViewController.d.ts +29 -0
  87. package/dist/dts/view/DataCaptureViewListener.d.ts +5 -0
  88. package/dist/dts/view/index.d.ts +5 -0
  89. package/dist/dts/viewfinder/AimerViewfinder.d.ts +10 -0
  90. package/dist/dts/viewfinder/LaserlineViewfinder.d.ts +15 -0
  91. package/dist/dts/viewfinder/LaserlineViewfinderStyle.d.ts +4 -0
  92. package/dist/dts/viewfinder/NoViewfinder.d.ts +3 -0
  93. package/dist/dts/viewfinder/RectangularViewfinder.d.ts +36 -0
  94. package/dist/dts/viewfinder/RectangularViewfinderAnimation.d.ts +13 -0
  95. package/dist/dts/viewfinder/RectangularViewfinderLineStyle.d.ts +4 -0
  96. package/dist/dts/viewfinder/RectangularViewfinderStyle.d.ts +5 -0
  97. package/dist/dts/viewfinder/SpotlightViewfinder.d.ts +19 -0
  98. package/dist/dts/viewfinder/Viewfinder.d.ts +2 -0
  99. package/dist/dts/viewfinder/index.d.ts +11 -0
  100. package/dist/index.js +2575 -0
  101. package/dist/index.js.map +1 -0
  102. package/package.json +22 -0
@@ -0,0 +1,12 @@
1
+ import { EventEmitter } from "./EventEmitter";
2
+ export declare class BaseController<PROXY> {
3
+ protected eventEmitter: EventEmitter;
4
+ private proxyName;
5
+ protected get _proxy(): PROXY;
6
+ constructor(proxyName: string);
7
+ emit(event: any, payload: any): void;
8
+ }
9
+ export declare class BaseNativeProxy {
10
+ protected eventEmitter: EventEmitter;
11
+ constructor();
12
+ }
@@ -0,0 +1,3 @@
1
+ import EventEmitter from "eventemitter3";
2
+ export declare function createEventEmitter(): void;
3
+ export { EventEmitter };
@@ -0,0 +1,5 @@
1
+ export declare enum Expiration {
2
+ Available = "available",
3
+ Perpetual = "perpetual",
4
+ NotAvailable = "notAvailable"
5
+ }
@@ -0,0 +1,12 @@
1
+ interface FactoryMakerItem {
2
+ instance?: any;
3
+ builder?: () => any;
4
+ }
5
+ export declare class FactoryMaker {
6
+ static instances: Map<string, FactoryMakerItem>;
7
+ static bindInstance(clsName: string, instance: any): void;
8
+ static bindLazyInstance<T>(clsName: string, builder: () => T): void;
9
+ static bindInstanceIfNotExists(clsName: string, instance: any): void;
10
+ static getInstance<T>(clsName: string): T | undefined;
11
+ }
12
+ export {};
@@ -0,0 +1,6 @@
1
+ import { DefaultSerializeable } from "./serializable";
2
+ import { Expiration } from "./Expiration";
3
+ export declare class LicenseInfo extends DefaultSerializeable {
4
+ private _expiration;
5
+ get expiration(): Expiration;
6
+ }
@@ -0,0 +1,44 @@
1
+ import { DataCaptureContext } from "../context";
2
+ import { FrameSource, FrameSourceListener, FrameSourceState } from "../frame";
3
+ import { DefaultSerializeable } from "../serializable";
4
+ import { CameraController } from "./CameraController";
5
+ import { TorchState } from "./TorchState";
6
+ import { CameraPosition } from "./CameraPosition";
7
+ import { CameraSettings } from "./CameraSettings";
8
+ export declare class Camera extends DefaultSerializeable implements FrameSource {
9
+ private type;
10
+ private settings;
11
+ private position;
12
+ private _desiredTorchState;
13
+ private _desiredState;
14
+ private listeners;
15
+ private _context;
16
+ private static get coreDefaults();
17
+ private set context(value);
18
+ private get context();
19
+ private controller;
20
+ static get default(): Camera | null;
21
+ static atPosition(cameraPosition: CameraPosition): Camera | null;
22
+ get desiredState(): FrameSourceState;
23
+ set desiredTorchState(desiredTorchState: TorchState);
24
+ get desiredTorchState(): TorchState;
25
+ private constructor();
26
+ switchToDesiredState(state: FrameSourceState): Promise<void>;
27
+ getCurrentState(): Promise<FrameSourceState>;
28
+ getIsTorchAvailable(): Promise<boolean>;
29
+ addListener(listener: FrameSourceListener | null): void;
30
+ removeListener(listener: FrameSourceListener | null): void;
31
+ applySettings(settings: CameraSettings): Promise<void>;
32
+ private didChange;
33
+ }
34
+ export interface PrivateCamera {
35
+ context: DataCaptureContext | null;
36
+ position: CameraPosition;
37
+ _desiredState: FrameSourceState;
38
+ desiredTorchState: TorchState;
39
+ settings: CameraSettings;
40
+ listeners: FrameSourceListener[];
41
+ controller: CameraController;
42
+ initialize: () => void;
43
+ didChange: () => Promise<void>;
44
+ }
@@ -0,0 +1,30 @@
1
+ import { Camera } from "./Camera";
2
+ import { FrameData, FrameSourceState } from "../frame";
3
+ import { CameraPosition } from "./CameraPosition";
4
+ export interface CameraProxy {
5
+ getLastFrame(): Promise<string>;
6
+ getLastFrameOrNull(): Promise<string | null>;
7
+ getCurrentCameraState(position: CameraPosition): Promise<FrameSourceState>;
8
+ isTorchAvailable(position: CameraPosition): Promise<boolean>;
9
+ registerListenerForCameraEvents(): void;
10
+ unregisterListenerForCameraEvents(): void;
11
+ subscribeDidChangeState(): void;
12
+ unsubscribeDidChangeState(): void;
13
+ }
14
+ export declare enum FrameSourceListenerEvents {
15
+ didChangeState = "FrameSourceListener.onStateChanged"
16
+ }
17
+ export declare class CameraController {
18
+ private camera;
19
+ private eventEmitter;
20
+ private static get _proxy();
21
+ static forCamera(camera: Camera): CameraController;
22
+ private constructor();
23
+ private get privateCamera();
24
+ static getLastFrame(): Promise<FrameData>;
25
+ static getLastFrameOrNull(): Promise<FrameData | null>;
26
+ getCurrentState(): Promise<FrameSourceState>;
27
+ getIsTorchAvailable(): Promise<boolean>;
28
+ subscribeListener(): void;
29
+ unsubscribeListener(): void;
30
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum CameraPosition {
2
+ WorldFacing = "worldFacing",
3
+ UserFacing = "userFacing",
4
+ Unspecified = "unspecified"
5
+ }
@@ -0,0 +1,39 @@
1
+ import { DefaultSerializeable } from "../serializable";
2
+ import { FocusGestureStrategy } from "./FocusGestureStrategy";
3
+ import { FocusRange } from "./FocusRange";
4
+ import { VideoResolution } from "./VideoResolution";
5
+ export interface CameraSettingsJSON {
6
+ preferredResolution: string;
7
+ zoomFactor: number;
8
+ focusRange: string;
9
+ zoomGestureZoomFactor: number;
10
+ focusGestureStrategy: string;
11
+ shouldPreferSmoothAutoFocus: boolean;
12
+ properties: {
13
+ [key: string]: any;
14
+ };
15
+ }
16
+ export interface PrivateCameraSettings {
17
+ fromJSON(json: CameraSettingsJSON): CameraSettings;
18
+ }
19
+ export declare class CameraSettings extends DefaultSerializeable {
20
+ private static get coreDefaults();
21
+ private focusHiddenProperties;
22
+ preferredResolution: VideoResolution;
23
+ zoomFactor: number;
24
+ zoomGestureZoomFactor: number;
25
+ private focus;
26
+ get focusRange(): FocusRange;
27
+ set focusRange(newRange: FocusRange);
28
+ get focusGestureStrategy(): FocusGestureStrategy;
29
+ set focusGestureStrategy(newStrategy: FocusGestureStrategy);
30
+ get shouldPreferSmoothAutoFocus(): boolean;
31
+ set shouldPreferSmoothAutoFocus(newShouldPreferSmoothAutoFocus: boolean);
32
+ get maxFrameRate(): number;
33
+ set maxFrameRate(newValue: number);
34
+ private static fromJSON;
35
+ constructor();
36
+ constructor(settings: CameraSettings);
37
+ setProperty(name: string, value: any): void;
38
+ getProperty(name: string): any;
39
+ }
@@ -0,0 +1,2 @@
1
+ export interface FocusGesture {
2
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum FocusGestureStrategy {
2
+ None = "none",
3
+ Manual = "manual",
4
+ ManualUntilCapture = "manualUntilCapture",
5
+ AutoOnLocation = "autoOnLocation"
6
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum FocusRange {
2
+ Full = "full",
3
+ Near = "near",
4
+ Far = "far"
5
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum LogoStyle {
2
+ Minimal = "minimal",
3
+ Extended = "extended"
4
+ }
@@ -0,0 +1,7 @@
1
+ import { FocusGesture } from "./FocusGesture";
2
+ export interface FocusGestureJSON {
3
+ type: string;
4
+ }
5
+ export declare class PrivateFocusGestureDeserializer {
6
+ static fromJSON(json: FocusGestureJSON | null): FocusGesture | null;
7
+ }
@@ -0,0 +1,6 @@
1
+ import { DefaultSerializeable } from "../serializable";
2
+ import { ZoomGesture } from "./ZoomGesture";
3
+ export declare class SwipeToZoom extends DefaultSerializeable implements ZoomGesture {
4
+ private type;
5
+ constructor();
6
+ }
@@ -0,0 +1,6 @@
1
+ import { DefaultSerializeable } from "../serializable";
2
+ import { FocusGesture } from "./FocusGesture";
3
+ export declare class TapToFocus extends DefaultSerializeable implements FocusGesture {
4
+ private type;
5
+ constructor();
6
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum TorchState {
2
+ On = "on",
3
+ Off = "off",
4
+ Auto = "auto"
5
+ }
@@ -0,0 +1,15 @@
1
+ import { DefaultSerializeable } from "../serializable";
2
+ import { Control } from "../view";
3
+ export declare class TorchSwitchControl extends DefaultSerializeable implements Control {
4
+ private type;
5
+ private icon;
6
+ private view;
7
+ get torchOffImage(): string | null;
8
+ set torchOffImage(torchOffImage: string | null);
9
+ get torchOffPressedImage(): string | null;
10
+ set torchOffPressedImage(torchOffPressedImage: string | null);
11
+ get torchOnImage(): string | null;
12
+ set torchOnImage(torchOnImage: string | null);
13
+ get torchOnPressedImage(): string | null;
14
+ set torchOnPressedImage(torchOnPressedImage: string | null);
15
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum VideoResolution {
2
+ Auto = "auto",
3
+ HD = "hd",
4
+ FullHD = "fullHd",
5
+ UHD4K = "uhd4k"
6
+ }
@@ -0,0 +1,8 @@
1
+ export interface ZoomGesture {
2
+ }
3
+ export interface ZoomGestureJSON {
4
+ type: string;
5
+ }
6
+ export declare class PrivateZoomGestureDeserializer {
7
+ static fromJSON(json: ZoomGestureJSON | null): ZoomGesture | null;
8
+ }
@@ -0,0 +1,15 @@
1
+ import { DefaultSerializeable } from "../serializable";
2
+ import { Control } from "../view";
3
+ export declare class ZoomSwitchControl extends DefaultSerializeable implements Control {
4
+ private type;
5
+ private icon;
6
+ private view;
7
+ get zoomedOutImage(): string | null;
8
+ set zoomedOutImage(zoomedOutImage: string | null);
9
+ get zoomedInImage(): string | null;
10
+ set zoomedInImage(zoomedInImage: string | null);
11
+ get zoomedInPressedImage(): string | null;
12
+ set zoomedInPressedImage(zoomedInPressedImage: string | null);
13
+ get zoomedOutPressedImage(): string | null;
14
+ set zoomedOutPressedImage(zoomedOutPressedImage: string | null);
15
+ }
@@ -0,0 +1,16 @@
1
+ export * from "./FocusGesture";
2
+ export * from "./TapToFocus";
3
+ export * from "./PrivateFocusGestureDeserializer";
4
+ export * from "./ZoomGesture";
5
+ export * from "./CameraController";
6
+ export * from "./Camera";
7
+ export * from "./ZoomSwitchControl";
8
+ export * from "./TorchSwitchControl";
9
+ export * from "./CameraPosition";
10
+ export * from "./VideoResolution";
11
+ export * from "./TorchState";
12
+ export * from "./FocusRange";
13
+ export * from "./FocusGestureStrategy";
14
+ export * from "./LogoStyle";
15
+ export * from "./SwipeToZoom";
16
+ export * from "./CameraSettings";
@@ -0,0 +1,11 @@
1
+ export declare enum Anchor {
2
+ TopLeft = "topLeft",
3
+ TopCenter = "topCenter",
4
+ TopRight = "topRight",
5
+ CenterLeft = "centerLeft",
6
+ Center = "center",
7
+ CenterRight = "centerRight",
8
+ BottomLeft = "bottomLeft",
9
+ BottomCenter = "bottomCenter",
10
+ BottomRight = "bottomRight"
11
+ }
@@ -0,0 +1,28 @@
1
+ import { DefaultSerializeable } from "../serializable";
2
+ import { Color } from "./Color";
3
+ export interface PrivateBrush {
4
+ readonly copy: Brush;
5
+ defaults: any;
6
+ toJSON(): BrushJSON;
7
+ }
8
+ export interface BrushJSON {
9
+ fill: {
10
+ color: Color;
11
+ };
12
+ stroke: {
13
+ color: Color;
14
+ width: number;
15
+ };
16
+ }
17
+ export declare class Brush extends DefaultSerializeable {
18
+ private static defaults;
19
+ private fill;
20
+ private stroke;
21
+ static get transparent(): Brush;
22
+ get fillColor(): Color;
23
+ get strokeColor(): Color;
24
+ get strokeWidth(): number;
25
+ private get copy();
26
+ constructor();
27
+ constructor(fillColor: Color, strokeColor: Color, strokeWidth: number);
28
+ }
@@ -0,0 +1,26 @@
1
+ import { StringSerializeable } from "../serializable";
2
+ export type ColorJSON = string;
3
+ export interface PrivateColor {
4
+ fromJSON(json: ColorJSON): Color;
5
+ }
6
+ export declare class Color implements StringSerializeable {
7
+ private hexadecimalString;
8
+ get redComponent(): string;
9
+ get greenComponent(): string;
10
+ get blueComponent(): string;
11
+ get alphaComponent(): string;
12
+ get red(): number;
13
+ get green(): number;
14
+ get blue(): number;
15
+ get alpha(): number;
16
+ static fromHex(hex: string): Color;
17
+ static fromRGBA(red: number, green: number, blue: number, alpha?: number): Color;
18
+ private static hexToNumber;
19
+ private static fromJSON;
20
+ private static numberToHex;
21
+ private static normalizeHex;
22
+ private static normalizeAlpha;
23
+ private constructor();
24
+ withAlpha(alpha: number): Color;
25
+ toJSON(): string;
26
+ }
@@ -0,0 +1,9 @@
1
+ export declare enum Direction {
2
+ None = "none",
3
+ Horizontal = "horizontal",
4
+ LeftToRight = "leftToRight",
5
+ RightToLeft = "rightToLeft",
6
+ Vertical = "vertical",
7
+ TopToBottom = "topToBottom",
8
+ BottomToTop = "bottomToTop"
9
+ }
@@ -0,0 +1,25 @@
1
+ import { DefaultSerializeable } from "../serializable";
2
+ import { NumberWithUnit, NumberWithUnitJSON } from "./NumberWithUnit";
3
+ export interface MarginsWithUnitJSON {
4
+ left: NumberWithUnitJSON;
5
+ right: NumberWithUnitJSON;
6
+ top: NumberWithUnitJSON;
7
+ bottom: NumberWithUnitJSON;
8
+ }
9
+ export interface PrivateMarginsWithUnit {
10
+ readonly zero: MarginsWithUnit;
11
+ fromJSON(json: MarginsWithUnitJSON): MarginsWithUnit;
12
+ }
13
+ export declare class MarginsWithUnit extends DefaultSerializeable {
14
+ private _left;
15
+ private _right;
16
+ private _top;
17
+ private _bottom;
18
+ get left(): NumberWithUnit;
19
+ get right(): NumberWithUnit;
20
+ get top(): NumberWithUnit;
21
+ get bottom(): NumberWithUnit;
22
+ private static fromJSON;
23
+ private static get zero();
24
+ constructor(left: NumberWithUnit, right: NumberWithUnit, top: NumberWithUnit, bottom: NumberWithUnit);
25
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum MeasureUnit {
2
+ DIP = "dip",
3
+ Pixel = "pixel",
4
+ Fraction = "fraction"
5
+ }
@@ -0,0 +1,17 @@
1
+ import { DefaultSerializeable } from "../serializable";
2
+ import { MeasureUnit } from "./MeasureUnit";
3
+ export interface NumberWithUnitJSON {
4
+ value: number;
5
+ unit: string;
6
+ }
7
+ export interface PrivateNumberWithUnit {
8
+ fromJSON(json: NumberWithUnitJSON): NumberWithUnit;
9
+ }
10
+ export declare class NumberWithUnit extends DefaultSerializeable {
11
+ private _value;
12
+ private _unit;
13
+ get value(): number;
14
+ get unit(): MeasureUnit;
15
+ private static fromJSON;
16
+ constructor(value: number, unit: MeasureUnit);
17
+ }
@@ -0,0 +1,7 @@
1
+ export declare enum Orientation {
2
+ Unknown = "unknown",
3
+ Portrait = "portrait",
4
+ PortraitUpsideDown = "portraitUpsideDown",
5
+ LandscapeRight = "landscapeRight",
6
+ LandscapeLeft = "landscapeLeft"
7
+ }
@@ -0,0 +1,11 @@
1
+ import { SizeJSON } from "./Size";
2
+ export interface DidChangeSizeEventPayload {
3
+ size: SizeJSON;
4
+ orientation: string;
5
+ }
6
+ export interface DidChangeStatusEventPayload {
7
+ status: string;
8
+ }
9
+ export interface DidChangeStateEventPayload {
10
+ state: string;
11
+ }
@@ -0,0 +1,16 @@
1
+ import { DefaultSerializeable } from "../serializable";
2
+ export interface PointJSON {
3
+ x: number;
4
+ y: number;
5
+ }
6
+ export interface PrivatePoint {
7
+ fromJSON(json: PointJSON): Point;
8
+ }
9
+ export declare class Point extends DefaultSerializeable {
10
+ private _x;
11
+ private _y;
12
+ get x(): number;
13
+ get y(): number;
14
+ private static fromJSON;
15
+ constructor(x: number, y: number);
16
+ }
@@ -0,0 +1,19 @@
1
+ import { DefaultSerializeable } from "../serializable";
2
+ import { NumberWithUnit, NumberWithUnitJSON } from "./NumberWithUnit";
3
+ export interface PointWithUnitJSON {
4
+ x: NumberWithUnitJSON;
5
+ y: NumberWithUnitJSON;
6
+ }
7
+ export interface PrivatePointWithUnit {
8
+ readonly zero: PointWithUnit;
9
+ fromJSON(json: PointWithUnitJSON): PointWithUnit;
10
+ }
11
+ export declare class PointWithUnit extends DefaultSerializeable {
12
+ private _x;
13
+ private _y;
14
+ get x(): NumberWithUnit;
15
+ get y(): NumberWithUnit;
16
+ private static fromJSON;
17
+ private static get zero();
18
+ constructor(x: NumberWithUnit, y: NumberWithUnit);
19
+ }
@@ -0,0 +1,23 @@
1
+ import { DefaultSerializeable } from "../serializable";
2
+ import { Point, PointJSON } from "./Point";
3
+ export interface QuadrilateralJSON {
4
+ topLeft: PointJSON;
5
+ topRight: PointJSON;
6
+ bottomRight: PointJSON;
7
+ bottomLeft: PointJSON;
8
+ }
9
+ export interface PrivateQuadrilateral {
10
+ fromJSON(json: QuadrilateralJSON): Quadrilateral;
11
+ }
12
+ export declare class Quadrilateral extends DefaultSerializeable {
13
+ private _topLeft;
14
+ private _topRight;
15
+ private _bottomRight;
16
+ private _bottomLeft;
17
+ get topLeft(): Point;
18
+ get topRight(): Point;
19
+ get bottomRight(): Point;
20
+ get bottomLeft(): Point;
21
+ private static fromJSON;
22
+ constructor(topLeft: Point, topRight: Point, bottomRight: Point, bottomLeft: Point);
23
+ }
@@ -0,0 +1,10 @@
1
+ import { DefaultSerializeable } from "../serializable";
2
+ import { Point } from "./Point";
3
+ import { Size } from "./Size";
4
+ export declare class Rect extends DefaultSerializeable {
5
+ private _origin;
6
+ private _size;
7
+ get origin(): Point;
8
+ get size(): Size;
9
+ constructor(origin: Point, size: Size);
10
+ }
@@ -0,0 +1,10 @@
1
+ import { DefaultSerializeable } from "../serializable";
2
+ import { PointWithUnit } from "./PointWithUnit";
3
+ import { SizeWithUnit } from "./SizeWithUnit";
4
+ export declare class RectWithUnit extends DefaultSerializeable {
5
+ private _origin;
6
+ private _size;
7
+ get origin(): PointWithUnit;
8
+ get size(): SizeWithUnit;
9
+ constructor(origin: PointWithUnit, size: SizeWithUnit);
10
+ }
@@ -0,0 +1,16 @@
1
+ import { DefaultSerializeable } from "../serializable";
2
+ export interface SizeJSON {
3
+ width: number;
4
+ height: number;
5
+ }
6
+ export interface PrivateSize {
7
+ fromJSON(json: SizeJSON): Size;
8
+ }
9
+ export declare class Size extends DefaultSerializeable {
10
+ private _width;
11
+ private _height;
12
+ get width(): number;
13
+ get height(): number;
14
+ private static fromJSON;
15
+ constructor(width: number, height: number);
16
+ }
@@ -0,0 +1,9 @@
1
+ import { DefaultSerializeable } from "../serializable";
2
+ import { NumberWithUnit } from "./NumberWithUnit";
3
+ export declare class SizeWithAspect extends DefaultSerializeable {
4
+ private _size;
5
+ private _aspect;
6
+ get size(): NumberWithUnit;
7
+ get aspect(): number;
8
+ constructor(size: NumberWithUnit, aspect: number);
9
+ }
@@ -0,0 +1,9 @@
1
+ import { DefaultSerializeable } from "../serializable";
2
+ import { NumberWithUnit } from "./NumberWithUnit";
3
+ export declare class SizeWithUnit extends DefaultSerializeable {
4
+ private _width;
5
+ private _height;
6
+ get width(): NumberWithUnit;
7
+ get height(): NumberWithUnit;
8
+ constructor(width: NumberWithUnit, height: NumberWithUnit);
9
+ }
@@ -0,0 +1,31 @@
1
+ import { Serializeable } from "../serializable";
2
+ import { SizeWithUnit } from "./SizeWithUnit";
3
+ import { SizeWithAspect } from "./SizeWithAspect";
4
+ import { SizingMode } from "./SizingMode";
5
+ import { NumberWithUnitJSON } from "./NumberWithUnit";
6
+ export interface SizeWithUnitAndAspectJSON {
7
+ width?: NumberWithUnitJSON;
8
+ height?: NumberWithUnitJSON;
9
+ shorterDimension?: NumberWithUnitJSON;
10
+ aspect?: number;
11
+ }
12
+ export interface PrivateSizeWithUnitAndAspect {
13
+ fromJSON(json: SizeWithUnitAndAspectJSON): SizeWithUnitAndAspect;
14
+ }
15
+ export declare class SizeWithUnitAndAspect implements Serializeable {
16
+ private _widthAndHeight;
17
+ private _widthAndAspectRatio;
18
+ private _heightAndAspectRatio;
19
+ private _shorterDimensionAndAspectRatio;
20
+ get widthAndHeight(): SizeWithUnit | null;
21
+ get widthAndAspectRatio(): SizeWithAspect | null;
22
+ get heightAndAspectRatio(): SizeWithAspect | null;
23
+ get shorterDimensionAndAspectRatio(): SizeWithAspect | null;
24
+ get sizingMode(): SizingMode;
25
+ private static sizeWithWidthAndHeight;
26
+ private static sizeWithWidthAndAspectRatio;
27
+ private static sizeWithHeightAndAspectRatio;
28
+ private static sizeWithShorterDimensionAndAspectRatio;
29
+ private static fromJSON;
30
+ toJSON(): object;
31
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum SizingMode {
2
+ WidthAndHeight = "widthAndHeight",
3
+ WidthAndAspectRatio = "widthAndAspectRatio",
4
+ HeightAndAspectRatio = "heightAndAspectRatio",
5
+ ShorterDimensionAndAspectRatio = "shorterDimensionAndAspectRatio"
6
+ }
@@ -0,0 +1,42 @@
1
+ export { Point } from "./Point";
2
+ export { Quadrilateral } from "./Quadrilateral";
3
+ export { NumberWithUnit } from "./NumberWithUnit";
4
+ export { PointWithUnit } from "./PointWithUnit";
5
+ export { Rect } from "./Rect";
6
+ export { RectWithUnit } from "./RectWithUnit";
7
+ export { Size } from "./Size";
8
+ export { SizeWithAspect } from "./SizeWithAspect";
9
+ export { SizeWithUnit } from "./SizeWithUnit";
10
+ export { SizeWithUnitAndAspect } from "./SizeWithUnitAndAspect";
11
+ export { MarginsWithUnit } from "./MarginsWithUnit";
12
+ export { Color } from "./Color";
13
+ export { Brush } from "./Brush";
14
+ export { Anchor } from "./Anchor";
15
+ export { MeasureUnit } from "./MeasureUnit";
16
+ export { SizingMode } from "./SizingMode";
17
+ export { Orientation } from "./Orientation";
18
+ export { Direction } from "./Direction";
19
+ export * from "./Payload";
20
+ export * from "./Point";
21
+ export * from "./Quadrilateral";
22
+ export * from "./NumberWithUnit";
23
+ export * from "./PointWithUnit";
24
+ export * from "./Rect";
25
+ export * from "./RectWithUnit";
26
+ export * from "./Size";
27
+ export * from "./SizeWithAspect";
28
+ export * from "./SizeWithUnit";
29
+ export * from "./SizeWithUnitAndAspect";
30
+ export * from "./MarginsWithUnit";
31
+ export * from "./Color";
32
+ export * from "./Brush";
33
+ export * from "./Anchor";
34
+ export * from "./MeasureUnit";
35
+ export * from "./SizingMode";
36
+ export * from "./Orientation";
37
+ export * from "./Direction";
38
+ export * from "./Anchor";
39
+ export * from "./MeasureUnit";
40
+ export * from "./SizingMode";
41
+ export * from "./Orientation";
42
+ export * from "./Direction";