@compass-framework/core 1.2.9 → 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 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
+ }
@@ -1,4 +1,4 @@
1
- import {ArrayList, InterfaceTemplate} from "@compass-framework/library";
1
+ import { ArrayList, InterfaceTemplate } from "@compass-framework/library";
2
2
  import { Context } from "./Context";
3
3
  import { TimeInterpolator } from "./TimeInterpolator";
4
4
 
@@ -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);
@@ -1,4 +1,4 @@
1
- import {ArrayList, Implements, XML} from "@compass-framework/library";
1
+ import { ArrayList, Implements, XML } from "@compass-framework/library";
2
2
  import { IWindow } from "./IWindow";
3
3
  import { Resources } from "./Resources";
4
4
  import { View } from "./View";
@@ -1,5 +1,5 @@
1
- import { Interpolator } from "./Interpolator";
2
1
  import { Implements } from "@compass-framework/library";
2
+ import { Interpolator } from "./Interpolator";
3
3
 
4
4
  @Implements(Interpolator)
5
5
  export declare class BounceInterpolator implements Interpolator {
@@ -2,7 +2,7 @@ import { DensityMetrics } from "./DensityMetrics";
2
2
  import { Theme } from "./Theme";
3
3
 
4
4
  export declare class Configuration {
5
- constructor(config: Configuration)
5
+ constructor(config: Configuration);
6
6
 
7
7
  getTheme(): Theme;
8
8
 
@@ -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;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Consumer,
3
- InterfaceTemplate
3
+ InterfaceTemplate,
4
4
  } from "@compass-framework/library";
5
5
 
6
6
  import {
7
- View
7
+ View,
8
8
  } from "./View";
9
9
 
10
10
  export declare class ImageView extends View {}
@@ -1,4 +1,4 @@
1
- import {Implements, Runnable} from "@compass-framework/library";
1
+ import { Implements, Runnable } from "@compass-framework/library";
2
2
  import { Canvas } from "./Canvas";
3
3
  import { Drawable } from "./Drawable";
4
4
  import { Resources } from "./Resources";
@@ -1,4 +1,4 @@
1
- import {InterfaceTemplate} from "@compass-framework/library";
1
+ import { InterfaceTemplate } from "@compass-framework/library";
2
2
 
3
3
  export declare interface PathEffect {
4
4
 
@@ -26,5 +26,5 @@ export declare class PictureDrawable extends BitmapDrawable implements ImageView
26
26
 
27
27
  public getPictureWidth(): number;
28
28
 
29
- public getPictureHeight(): number
29
+ public getPictureHeight(): number;
30
30
  }
@@ -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 {
@@ -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 {
@@ -1,4 +1,4 @@
1
- import {InterfaceTemplate, Nullable} from "@compass-framework/library";
1
+ import { InterfaceTemplate, Nullable } from "@compass-framework/library";
2
2
 
3
3
  export interface ViewParent {
4
4
  getParent(): Nullable<ViewParent>;
@@ -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.9",
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.9"
14
+ "@compass-framework/library": "1.0.12"
15
15
  }
16
16
  }
package/tsconfig.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "../../tsconfig.json",
3
+ "include": [
4
+ "../../global.d.ts",
5
+ "@types/"
6
+ ]
7
+ }