@compass-framework/core 1.2.22 → 1.2.24
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/@types/{ApplicationManager.d.ts → ApplicationBoot.ts} +1 -3
- package/@types/ApplicationContext.d.ts +1 -9
- package/@types/ApplicationFrame.d.ts +5 -18
- package/@types/ApplicationFrameContext.ts +1 -21
- package/@types/Configuration.d.ts +2 -2
- package/@types/Context.d.ts +3 -3
- package/@types/CornersDrawable.d.ts +14 -12
- package/@types/DisplayMetrics.d.ts +8 -2
- package/@types/Drawable.d.ts +2 -2
- package/@types/View.d.ts +2 -2
- package/@types/ViewGroup.d.ts +2 -2
- package/@types/WindowContext.d.ts +4 -7
- package/@types/WindowManager.d.ts +7 -0
- package/index.d.ts +1 -3
- package/package.json +1 -1
- package/@types/ApplicationSettings.d.ts +0 -3
- package/@types/DensityMetrics.d.ts +0 -11
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Application } from "./Application";
|
|
2
2
|
|
|
3
|
-
export declare class
|
|
4
|
-
public static readying(): Promise<void>;
|
|
5
|
-
|
|
3
|
+
export declare class ApplicationBoot {
|
|
6
4
|
public installApplication(application: Application): void;
|
|
7
5
|
|
|
8
6
|
public uninstallApplication(application: Application): void;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import { ApplicationFrame } from "./ApplicationFrame";
|
|
2
|
-
import { ApplicationManifest } from "./ApplicationManifest";
|
|
3
1
|
import { Context } from "./Context";
|
|
4
2
|
|
|
5
|
-
export
|
|
6
|
-
public attachFrame(applicationFrame: ApplicationFrame): void;
|
|
7
|
-
|
|
8
|
-
public detachFrame(applicationFrame: ApplicationFrame): void;
|
|
9
|
-
|
|
10
|
-
public getApplicationManifest(): ApplicationManifest;
|
|
11
|
-
}
|
|
3
|
+
export interface ApplicationContext extends Context {}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ApplicationFrameObserver } from "./ApplicationFrameObserver";
|
|
2
2
|
import { ICursor } from "./ICursor";
|
|
3
|
-
import {
|
|
3
|
+
import { DisplayMetrics } from "./DisplayMetrics";
|
|
4
4
|
import { IWindow } from "./IWindow";
|
|
5
|
+
import { Configuration } from "./Configuration";
|
|
5
6
|
import { ApplicationFrameContext } from "./ApplicationFrameContext";
|
|
6
7
|
import { ApplicationFrameSettings } from "./ApplicationFrameSettings";
|
|
7
8
|
|
|
@@ -10,8 +11,6 @@ export declare class ApplicationFrame {
|
|
|
10
11
|
|
|
11
12
|
public applicationFrameScreenshot(): string;
|
|
12
13
|
|
|
13
|
-
public closeApplicationFrame(): void;
|
|
14
|
-
|
|
15
14
|
public attachWindow(window: IWindow): void;
|
|
16
15
|
|
|
17
16
|
public detachWindow(window: IWindow): void;
|
|
@@ -22,25 +21,13 @@ export declare class ApplicationFrame {
|
|
|
22
21
|
|
|
23
22
|
public onConfigurationChanged(configuration: Configuration): void;
|
|
24
23
|
|
|
25
|
-
public
|
|
26
|
-
|
|
27
|
-
public getApplicationFrameHeight(): number;
|
|
24
|
+
public getApplicationFrameCursor(): ICursor;
|
|
28
25
|
|
|
29
|
-
public
|
|
26
|
+
public getApplicationFrameDisplayMetrics(): DisplayMetrics;
|
|
30
27
|
|
|
31
|
-
public
|
|
28
|
+
public getApplicationFrameContext(): ApplicationFrameContext;
|
|
32
29
|
|
|
33
30
|
public getApplicationFrameContext(): ApplicationFrameContext;
|
|
34
31
|
|
|
35
32
|
public getApplicationFrameObserver(): ApplicationFrameObserver;
|
|
36
|
-
|
|
37
|
-
public getApplicationFrameCursor(): ICursor;
|
|
38
|
-
|
|
39
|
-
public setApplicationFrameLeft(applicationFrameLeft: number): void;
|
|
40
|
-
|
|
41
|
-
public setApplicationFrameWidth(applicationFrameWidth: number): void;
|
|
42
|
-
|
|
43
|
-
public setApplicationFrameTop(applicationFrameTop: number): void;
|
|
44
|
-
|
|
45
|
-
public setApplicationFrameHeight(applicationFrameHeight: number): void;
|
|
46
33
|
}
|
|
@@ -1,25 +1,5 @@
|
|
|
1
|
-
import { ApplicationContext } from "./ApplicationContext";
|
|
2
|
-
import { ApplicationFrameObserver } from "./ApplicationFrameObserver";
|
|
3
|
-
import { ICursor } from "./ICursor";
|
|
4
|
-
import { IWindow } from "./IWindow";
|
|
5
1
|
import { Context } from "./Context";
|
|
6
2
|
|
|
7
|
-
export
|
|
8
|
-
public attachWindow(window: IWindow): void;
|
|
3
|
+
export interface ApplicationFrameContext extends Context {
|
|
9
4
|
|
|
10
|
-
public detachWindow(window: IWindow): void;
|
|
11
|
-
|
|
12
|
-
public getApplicationContext(): ApplicationContext;
|
|
13
|
-
|
|
14
|
-
public getApplicationFrameLeft(): number;
|
|
15
|
-
|
|
16
|
-
public getApplicationFrameTop(): number;
|
|
17
|
-
|
|
18
|
-
public getApplicationFrameWidth(): number;
|
|
19
|
-
|
|
20
|
-
public getApplicationFrameHeight(): number;
|
|
21
|
-
|
|
22
|
-
public getApplicationFrameCursor(): ICursor;
|
|
23
|
-
|
|
24
|
-
public getApplicationFrameObserver(): ApplicationFrameObserver;
|
|
25
5
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DensityMetrics } from "./DensityMetrics";
|
|
2
1
|
import { Theme } from "./Theme";
|
|
2
|
+
import { DisplayMetrics } from "./DisplayMetrics";
|
|
3
3
|
|
|
4
4
|
export declare class Configuration {
|
|
5
5
|
constructor(config: Configuration);
|
|
6
6
|
|
|
7
7
|
getTheme(): Theme;
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
getDisplayMetrics(): DisplayMetrics;
|
|
10
10
|
}
|
package/@types/Context.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Resources } from "./Resources";
|
|
2
2
|
import { XMLViewFactoryRegistry } from "./XMLViewFactoryRegistry";
|
|
3
3
|
|
|
4
|
-
export declare
|
|
5
|
-
|
|
4
|
+
export declare interface Context {
|
|
5
|
+
getViewFactoryRegistry(): XMLViewFactoryRegistry;
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
getResources(): Resources;
|
|
8
8
|
}
|
|
@@ -2,19 +2,8 @@ import { Drawable } from "./Drawable";
|
|
|
2
2
|
import { Canvas } from "./Canvas";
|
|
3
3
|
import { Resources } from "./Resources";
|
|
4
4
|
|
|
5
|
-
export declare interface CornersInfo {
|
|
6
|
-
leftTopRadius?: number,
|
|
7
|
-
leftBottomRadius?: number,
|
|
8
|
-
rightTopRadius?: number,
|
|
9
|
-
rightBottomRadius?: number,
|
|
10
|
-
radius?: number,
|
|
11
|
-
borderStrokeColor?: number,
|
|
12
|
-
backgroundColor?: number,
|
|
13
|
-
borderStrokeWidth?: number
|
|
14
|
-
}
|
|
15
|
-
|
|
16
5
|
export declare class CornersDrawable extends Drawable {
|
|
17
|
-
public constructor(info: CornersInfo, resources?: Resources);
|
|
6
|
+
public constructor(info: CornersDrawable.CornersInfo, resources?: Resources);
|
|
18
7
|
|
|
19
8
|
public draw(canvas: Canvas): void;
|
|
20
9
|
|
|
@@ -46,3 +35,16 @@ export declare class CornersDrawable extends Drawable {
|
|
|
46
35
|
|
|
47
36
|
public setRightBottomRadius(radius: number): void;
|
|
48
37
|
}
|
|
38
|
+
|
|
39
|
+
export namespace CornersDrawable {
|
|
40
|
+
export interface CornersInfo {
|
|
41
|
+
leftTopRadius?: number,
|
|
42
|
+
leftBottomRadius?: number,
|
|
43
|
+
rightTopRadius?: number,
|
|
44
|
+
rightBottomRadius?: number,
|
|
45
|
+
radius?: number,
|
|
46
|
+
borderStrokeColor?: number,
|
|
47
|
+
backgroundColor?: number,
|
|
48
|
+
borderStrokeWidth?: number
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
export class DisplayMetrics {
|
|
2
|
+
public dp2px(dp: number): number;
|
|
3
|
+
|
|
4
|
+
public px2dp(px: number): number;
|
|
5
|
+
|
|
6
|
+
public set(dm: DisplayMetrics): void;
|
|
2
7
|
|
|
3
|
-
export class DisplayMetrics extends DensityMetrics {
|
|
4
8
|
public getWidth(): number;
|
|
5
9
|
|
|
6
10
|
public getHeight(): number;
|
|
11
|
+
|
|
12
|
+
public getDensity(): number;
|
|
7
13
|
}
|
package/@types/Drawable.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { Canvas } from "./Canvas";
|
|
|
4
4
|
import { Configuration } from "./Configuration";
|
|
5
5
|
import { Outline } from "./Outline";
|
|
6
6
|
import { Resources } from "./Resources";
|
|
7
|
-
import {
|
|
7
|
+
import { DisplayMetrics } from "./DisplayMetrics";
|
|
8
8
|
|
|
9
9
|
export declare abstract class Drawable {
|
|
10
10
|
protected constructor();
|
|
@@ -39,7 +39,7 @@ export declare abstract class Drawable {
|
|
|
39
39
|
|
|
40
40
|
public getIntrinsicHeight():number;
|
|
41
41
|
|
|
42
|
-
public
|
|
42
|
+
public getDisplayMetrics(): DisplayMetrics;
|
|
43
43
|
|
|
44
44
|
public setBounds(bounds: Rect): void;
|
|
45
45
|
public setBounds(left: number, top: number, right: number, bottom: number): void;
|
package/@types/View.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ import {
|
|
|
7
7
|
import { ViewOverlay } from "./ViewOverlay";
|
|
8
8
|
import { Context } from "./Context";
|
|
9
9
|
import { Configuration } from "./Configuration";
|
|
10
|
-
import { DensityMetrics } from "./DensityMetrics";
|
|
11
10
|
import { Rect } from "./Rect";
|
|
12
11
|
import { AttributeSet } from "./AttributeSet";
|
|
13
12
|
import { Canvas } from "./Canvas";
|
|
@@ -23,6 +22,7 @@ import { Matrix } from "./Matrix";
|
|
|
23
22
|
import { Resources } from "./Resources";
|
|
24
23
|
import { ViewParent } from "./ViewParent";
|
|
25
24
|
import { ViewOutlineProvider } from "./ViewOutlineProvider";
|
|
25
|
+
import { DisplayMetrics } from "./DisplayMetrics";
|
|
26
26
|
|
|
27
27
|
export declare class View implements Drawable.Callback {
|
|
28
28
|
public static resolveSize(size: number, measureSpec: number): number;
|
|
@@ -123,7 +123,7 @@ export declare class View implements Drawable.Callback {
|
|
|
123
123
|
|
|
124
124
|
public getY(): number;
|
|
125
125
|
|
|
126
|
-
public
|
|
126
|
+
public getDisplayMetrics(): DisplayMetrics;
|
|
127
127
|
|
|
128
128
|
public getScrollX(): number;
|
|
129
129
|
|
package/@types/ViewGroup.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { AttributeSet } from "./AttributeSet";
|
|
|
4
4
|
import { Configuration } from "./Configuration";
|
|
5
5
|
import { ViewParent } from "./ViewParent";
|
|
6
6
|
import { MotionEvent } from "./MotionEvent";
|
|
7
|
-
import {
|
|
7
|
+
import { DisplayMetrics } from "./DisplayMetrics";
|
|
8
8
|
|
|
9
9
|
@Implements(ViewParent)
|
|
10
10
|
export declare abstract class ViewGroup extends View implements ViewParent {
|
|
@@ -66,7 +66,7 @@ export declare namespace ViewGroup {
|
|
|
66
66
|
|
|
67
67
|
public onDensityMetricsChanged(newConfig: Configuration): void;
|
|
68
68
|
|
|
69
|
-
public
|
|
69
|
+
public getDisplayMetrics(): DisplayMetrics;
|
|
70
70
|
|
|
71
71
|
public getWidth(): number;
|
|
72
72
|
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { ApplicationFrameContext } from "./ApplicationFrameContext";
|
|
2
1
|
import { Context } from "./Context";
|
|
3
2
|
import { ICursor } from "./ICursor";
|
|
4
|
-
import {
|
|
3
|
+
import { WindowManager } from "./WindowManager";
|
|
5
4
|
|
|
6
|
-
export declare
|
|
7
|
-
|
|
5
|
+
export declare interface WindowContext extends Context {
|
|
6
|
+
getWindowCursor(): ICursor;
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
public getWindowCursor(): ICursor;
|
|
8
|
+
getWindowManager(): WindowManager
|
|
12
9
|
}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { ViewGroup } from "./ViewGroup";
|
|
2
|
+
import { IWindow } from "./IWindow";
|
|
2
3
|
|
|
3
4
|
export declare class WindowManager {
|
|
5
|
+
public attachWindow(window: IWindow): void;
|
|
6
|
+
public attachWindow(window: IWindow, params: WindowManager.LayoutParams): void;
|
|
4
7
|
|
|
8
|
+
public detachWindow(window: IWindow): void;
|
|
9
|
+
|
|
10
|
+
public updateWindowLayout(window: IWindow): void;
|
|
11
|
+
public updateWindowLayout(window: IWindow, params: WindowManager.LayoutParams): void;
|
|
5
12
|
}
|
|
6
13
|
|
|
7
14
|
export declare namespace WindowManager {
|
package/index.d.ts
CHANGED
|
@@ -9,9 +9,8 @@ export * from "./@types/Assets";
|
|
|
9
9
|
export * from "./@types/Animator";
|
|
10
10
|
export * from "./@types/Application";
|
|
11
11
|
export * from "./@types/ApplicationContext";
|
|
12
|
-
export * from "./@types/
|
|
12
|
+
export * from "./@types/ApplicationBoot";
|
|
13
13
|
export * from "./@types/ApplicationManifest";
|
|
14
|
-
export * from "./@types/ApplicationSettings";
|
|
15
14
|
export * from "./@types/ApplicationWindow";
|
|
16
15
|
export * from "./@types/ListAdapter";
|
|
17
16
|
export * from "./@types/ArrayAdapter";
|
|
@@ -103,7 +102,6 @@ export * from './@types/LayoutInflater';
|
|
|
103
102
|
export * from './@types/PathEffect';
|
|
104
103
|
export * from './@types/Configuration';
|
|
105
104
|
export * from './@types/CornerPathEffect';
|
|
106
|
-
export * from './@types/DensityMetrics';
|
|
107
105
|
export * from './@types/ApplicationFrameContext';
|
|
108
106
|
export * from './@types/ResourcesInflater';
|
|
109
107
|
export * from './@types/ApplicationFrameSettings';
|
package/package.json
CHANGED