@compass-framework/core 1.2.10 → 1.2.11
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/.eslintrc.js +12 -0
- package/@types/Animator.d.ts +1 -1
- package/@types/ApplicationFrame.d.ts +1 -1
- package/@types/ApplicationWindow.d.ts +1 -1
- package/@types/BounceInterpolator.d.ts +1 -1
- package/@types/Configuration.d.ts +1 -1
- package/@types/IWindow.d.ts +5 -5
- package/@types/ImageView.d.ts +2 -2
- package/@types/LayerDrawable.d.ts +1 -1
- package/@types/PathEffect.ts +1 -1
- package/@types/PictureDrawable.d.ts +1 -1
- package/@types/PopupWindow.d.ts +2 -2
- package/@types/Resources.d.ts +1 -1
- package/@types/ResourcesInflater.d.ts +4 -4
- package/@types/RoundedCornersDrawable.d.ts +17 -17
- package/@types/Theme.d.ts +3 -3
- package/@types/ViewParent.d.ts +1 -1
- package/@types/ViewSlot.d.ts +4 -4
- package/package.json +2 -2
- package/tsconfig.json +7 -0
package/.eslintrc.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
const baseConfig = require("../../.eslintrc.js")
|
|
3
|
+
|
|
4
|
+
module.exports = {
|
|
5
|
+
...baseConfig,
|
|
6
|
+
"parserOptions": {
|
|
7
|
+
"warnOnUnsupportedTypeScriptVersion": false,
|
|
8
|
+
"ecmaVersion": 12,
|
|
9
|
+
"sourceType": "module",
|
|
10
|
+
"project": path.resolve(__dirname, "tsconfig.json")
|
|
11
|
+
}
|
|
12
|
+
}
|
package/@types/Animator.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ICursor } from "./ICursor";
|
|
|
3
3
|
import { Configuration } from "./Configuration";
|
|
4
4
|
import { IWindow } from "./IWindow";
|
|
5
5
|
import { ApplicationFrameContext } from "./ApplicationFrameContext";
|
|
6
|
-
import {ApplicationFrameSettings} from "./ApplicationFrameSettings";
|
|
6
|
+
import { ApplicationFrameSettings } from "./ApplicationFrameSettings";
|
|
7
7
|
|
|
8
8
|
export declare class ApplicationFrame {
|
|
9
9
|
public constructor(settings?: ApplicationFrameSettings);
|
package/@types/IWindow.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {ArrayList, InterfaceTemplate, XML} from "@compass-framework/library";
|
|
2
|
-
import {Resources} from "./Resources";
|
|
3
|
-
import {View} from "./View";
|
|
4
|
-
import {WindowContext} from "./WindowContext";
|
|
5
|
-
import {WindowManager} from "./WindowManager";
|
|
1
|
+
import { ArrayList, InterfaceTemplate, XML } from "@compass-framework/library";
|
|
2
|
+
import { Resources } from "./Resources";
|
|
3
|
+
import { View } from "./View";
|
|
4
|
+
import { WindowContext } from "./WindowContext";
|
|
5
|
+
import { WindowManager } from "./WindowManager";
|
|
6
6
|
|
|
7
7
|
export interface IWindow {
|
|
8
8
|
findViewById(id: number): View;
|
package/@types/ImageView.d.ts
CHANGED
package/@types/PathEffect.ts
CHANGED
package/@types/PopupWindow.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {ArrayList, Implements, XML} from "@compass-framework/library";
|
|
1
|
+
import { ArrayList, Implements, XML } from "@compass-framework/library";
|
|
2
2
|
import { Resources } from "./Resources";
|
|
3
3
|
import { View } from "./View";
|
|
4
4
|
import { IWindow } from "./IWindow";
|
|
5
5
|
import { WindowContext } from "./WindowContext";
|
|
6
6
|
import { WindowManager } from "./WindowManager";
|
|
7
|
-
import {Configuration} from "./Configuration";
|
|
7
|
+
import { Configuration } from "./Configuration";
|
|
8
8
|
|
|
9
9
|
@Implements(IWindow)
|
|
10
10
|
export declare class PopupWindow implements IWindow {
|
package/@types/Resources.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Drawable } from "./Drawable";
|
|
|
3
3
|
import { DisplayMetrics } from "./DisplayMetrics";
|
|
4
4
|
import { Assets } from "./Assets";
|
|
5
5
|
import { ColorDrawable } from "./ColorDrawable";
|
|
6
|
-
import {Configuration} from "./Configuration";
|
|
6
|
+
import { Configuration } from "./Configuration";
|
|
7
7
|
import { AttributeSet } from "./AttributeSet";
|
|
8
8
|
|
|
9
9
|
export declare class Resources {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {XML} from "@compass-framework/library";
|
|
2
|
-
import {Context} from "./Context"
|
|
1
|
+
import { XML } from "@compass-framework/library";
|
|
2
|
+
import { Context } from "./Context";
|
|
3
3
|
|
|
4
4
|
export declare class ResourcesInflater {
|
|
5
|
-
public static from(context: Context): ResourcesInflater
|
|
5
|
+
public static from(context: Context): ResourcesInflater;
|
|
6
6
|
|
|
7
7
|
protected constructor();
|
|
8
8
|
|
|
9
|
-
public inflate(resource: XML): void
|
|
9
|
+
public inflate(resource: XML): void;
|
|
10
10
|
}
|
|
@@ -4,41 +4,41 @@ import { Drawable } from "./Drawable";
|
|
|
4
4
|
import { Resources } from "./Resources";
|
|
5
5
|
|
|
6
6
|
export declare class RoundedCornersDrawable extends Drawable {
|
|
7
|
-
public constructor(configuration: RoundedCornersDrawable.Configuration, resources?: Resources)
|
|
7
|
+
public constructor(configuration: RoundedCornersDrawable.Configuration, resources?: Resources);
|
|
8
8
|
|
|
9
9
|
public draw(canvas: Canvas): void;
|
|
10
10
|
|
|
11
|
-
public getLeftTopRadius(): number
|
|
11
|
+
public getLeftTopRadius(): number;
|
|
12
12
|
|
|
13
|
-
public getLeftBottomRadius(): number
|
|
13
|
+
public getLeftBottomRadius(): number;
|
|
14
14
|
|
|
15
|
-
public getRightTopRadius(): number
|
|
15
|
+
public getRightTopRadius(): number;
|
|
16
16
|
|
|
17
|
-
public getRightBottomRadius(): number
|
|
17
|
+
public getRightBottomRadius(): number;
|
|
18
18
|
|
|
19
|
-
public getStyle(): Paint.Style
|
|
19
|
+
public getStyle(): Paint.Style;
|
|
20
20
|
|
|
21
|
-
public getOpacity(): number
|
|
21
|
+
public getOpacity(): number;
|
|
22
22
|
|
|
23
|
-
public setStyle(style: Paint.Style): void
|
|
23
|
+
public setStyle(style: Paint.Style): void;
|
|
24
24
|
|
|
25
|
-
public setStrokeWidth(strokeWidth: number): void
|
|
25
|
+
public setStrokeWidth(strokeWidth: number): void;
|
|
26
26
|
|
|
27
|
-
public setFillColor(color: number): void
|
|
27
|
+
public setFillColor(color: number): void;
|
|
28
28
|
|
|
29
|
-
public setRadius(radius: number): void
|
|
29
|
+
public setRadius(radius: number): void;
|
|
30
30
|
|
|
31
|
-
public setStrokeColor(color: number): void
|
|
31
|
+
public setStrokeColor(color: number): void;
|
|
32
32
|
|
|
33
|
-
public setAlpha(alpha: number): void
|
|
33
|
+
public setAlpha(alpha: number): void;
|
|
34
34
|
|
|
35
|
-
public setLeftBottomRadius(radius: number): void
|
|
35
|
+
public setLeftBottomRadius(radius: number): void;
|
|
36
36
|
|
|
37
|
-
public setLeftTopRadius(radius: number): void
|
|
37
|
+
public setLeftTopRadius(radius: number): void;
|
|
38
38
|
|
|
39
|
-
public setRightTopRadius(radius: number): void
|
|
39
|
+
public setRightTopRadius(radius: number): void;
|
|
40
40
|
|
|
41
|
-
public setRightBottomRadius(radius: number): void
|
|
41
|
+
public setRightBottomRadius(radius: number): void;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
export namespace RoundedCornersDrawable {
|
package/@types/Theme.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ export declare class Theme {
|
|
|
2
2
|
public constructor();
|
|
3
3
|
public constructor(theme: Theme);
|
|
4
4
|
|
|
5
|
-
public set(theme: Theme): void
|
|
5
|
+
public set(theme: Theme): void;
|
|
6
6
|
|
|
7
|
-
public getMode(): Theme.Mode
|
|
7
|
+
public getMode(): Theme.Mode;
|
|
8
8
|
|
|
9
|
-
public setMode(mode: Theme.Mode): void
|
|
9
|
+
public setMode(mode: Theme.Mode): void;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export namespace Theme {
|
package/@types/ViewParent.d.ts
CHANGED
package/@types/ViewSlot.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {Implements} from "@compass-framework/library";
|
|
2
|
-
import {FrameLayout} from "./FrameLayout";
|
|
3
|
-
import {Slot} from "./Slot";
|
|
4
|
-
import {View} from "./View";
|
|
1
|
+
import { Implements } from "@compass-framework/library";
|
|
2
|
+
import { FrameLayout } from "./FrameLayout";
|
|
3
|
+
import { Slot } from "./Slot";
|
|
4
|
+
import { View } from "./View";
|
|
5
5
|
|
|
6
6
|
@Implements(Slot)
|
|
7
7
|
export declare class ViewSlot extends FrameLayout implements Slot {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@compass-framework/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.11",
|
|
4
4
|
"description": "@compass-framework/core public api",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -11,6 +11,6 @@
|
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@compass-framework/library": "1.0.
|
|
14
|
+
"@compass-framework/library": "1.0.12"
|
|
15
15
|
}
|
|
16
16
|
}
|