@compass-framework/core 1.1.5 → 1.1.6
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/AccelerateDecelerateInterpolator.d.ts +3 -0
- package/@types/AccelerateInterpolator.d.ts +3 -0
- package/@types/Adapter.d.ts +5 -0
- package/@types/Animation.d.ts +6 -3
- package/@types/AnimationSet.d.ts +2 -2
- package/@types/Animator.d.ts +4 -2
- package/@types/ApplicationFrameObserver.d.ts +5 -2
- package/@types/ApplicationWindow.d.ts +2 -1
- package/@types/BaseAdapter.d.ts +2 -0
- package/@types/BounceInterpolator.d.ts +2 -0
- package/@types/Configuration.d.ts +5 -3
- package/@types/CornerPathEffect.ts +2 -0
- package/@types/CycleInterpolator.d.ts +2 -0
- package/@types/DecelerateInterpolator.d.ts +2 -0
- package/@types/DoubleClick.d.ts +2 -0
- package/@types/DoubleClickListener.d.ts +4 -1
- package/@types/Drawable.d.ts +7 -3
- package/@types/Editable.d.ts +6 -1
- package/@types/IWindow.d.ts +5 -3
- package/@types/Interpolator.d.ts +5 -0
- package/@types/LayerDrawable.d.ts +2 -1
- package/@types/LinearInterpolator.d.ts +2 -0
- package/@types/ListAdapter.d.ts +6 -0
- package/@types/Outline.d.ts +3 -3
- package/@types/PathEffect.ts +4 -0
- package/@types/Picture.d.ts +10 -6
- package/@types/PopupWindow.d.ts +2 -1
- package/@types/Slot.d.ts +6 -1
- package/@types/TabBarLayout.d.ts +6 -3
- package/@types/Theme.d.ts +0 -1
- package/@types/TimeInterpolator.d.ts +6 -0
- package/@types/TranslateAnimation.d.ts +1 -1
- package/@types/ValueAnimator.d.ts +3 -2
- package/@types/View.d.ts +22 -21
- package/@types/ViewGroup.d.ts +2 -0
- package/@types/ViewParent.d.ts +3 -1
- package/@types/ViewSlot.d.ts +2 -0
- package/@types/ViewTreeObserver.d.ts +4 -4
- package/package.json +2 -2
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { Implements } from "@compass-framework/library";
|
|
2
|
+
|
|
1
3
|
import {
|
|
2
4
|
Interpolator,
|
|
3
5
|
} from "./Interpolator";
|
|
4
6
|
|
|
7
|
+
@Implements(Interpolator)
|
|
5
8
|
export declare class AccelerateDecelerateInterpolator implements Interpolator {
|
|
6
9
|
public getInterpolation(input: number): number;
|
|
7
10
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { Implements } from "@compass-framework/library";
|
|
2
|
+
|
|
1
3
|
import {
|
|
2
4
|
Interpolator,
|
|
3
5
|
} from "./Interpolator";
|
|
4
6
|
|
|
7
|
+
@Implements(Interpolator)
|
|
5
8
|
export declare class AccelerateInterpolator implements Interpolator {
|
|
6
9
|
public constructor();
|
|
7
10
|
public constructor(factor: number);
|
package/@types/Adapter.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InterfaceTemplate } from "@compass-framework/library";
|
|
1
2
|
import { View } from "./View";
|
|
2
3
|
import { ViewGroup } from "./ViewGroup";
|
|
3
4
|
|
|
@@ -18,3 +19,7 @@ export declare interface Adapter {
|
|
|
18
19
|
|
|
19
20
|
getItemViewType(position: number): number;
|
|
20
21
|
}
|
|
22
|
+
|
|
23
|
+
export class Adapter extends InterfaceTemplate {
|
|
24
|
+
|
|
25
|
+
}
|
package/@types/Animation.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InterfaceTemplate } from "@compass-framework/library";
|
|
2
|
+
import { Rect } from './Rect';
|
|
2
3
|
import { Transformation } from './Transformation';
|
|
3
4
|
import { Interpolator } from './Interpolator';
|
|
4
|
-
import { Rect } from './Rect';
|
|
5
5
|
import { AttributeSet } from "./AttributeSet";
|
|
6
6
|
|
|
7
7
|
export declare abstract class Animation {
|
|
@@ -108,7 +108,6 @@ export declare abstract class Animation {
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
export declare namespace Animation {
|
|
111
|
-
export const AnimationListenerInterface: Interface<AnimationListener>;
|
|
112
111
|
export interface AnimationListener {
|
|
113
112
|
onAnimationStart(animation: Animation): void
|
|
114
113
|
|
|
@@ -116,4 +115,8 @@ export declare namespace Animation {
|
|
|
116
115
|
|
|
117
116
|
onAnimationRepeat(animation: Animation): void;
|
|
118
117
|
}
|
|
118
|
+
|
|
119
|
+
export class AnimationListener extends InterfaceTemplate {
|
|
120
|
+
|
|
121
|
+
}
|
|
119
122
|
}
|
package/@types/AnimationSet.d.ts
CHANGED
|
@@ -38,11 +38,11 @@ export declare class AnimationSet extends Animation {
|
|
|
38
38
|
|
|
39
39
|
public computeDurationHint(): number;
|
|
40
40
|
|
|
41
|
-
public initializeInvalidateRegion(left, top, right, bottom):void;
|
|
41
|
+
public initializeInvalidateRegion(left: number, top: number, right: number, bottom: number):void;
|
|
42
42
|
|
|
43
43
|
public scaleCurrentDuration(scale: number):void;
|
|
44
44
|
|
|
45
|
-
public initialize(width, height, parentWidth, parentHeight): void;
|
|
45
|
+
public initialize(width: number, height: number, parentWidth: number, parentHeight: number): void;
|
|
46
46
|
|
|
47
47
|
public reset(): void;
|
|
48
48
|
|
package/@types/Animator.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TimeInterpolator } from "./TimeInterpolator";
|
|
1
|
+
import {ArrayList, InterfaceTemplate} from "@compass-framework/library";
|
|
3
2
|
import { Context } from "./Context";
|
|
3
|
+
import { TimeInterpolator } from "./TimeInterpolator";
|
|
4
4
|
|
|
5
5
|
export declare abstract class Animator {
|
|
6
6
|
public constructor(context: Context);
|
|
@@ -50,4 +50,6 @@ export declare namespace Animator {
|
|
|
50
50
|
|
|
51
51
|
onAnimationRepeat(animation: Animator): void;
|
|
52
52
|
}
|
|
53
|
+
|
|
54
|
+
export class AnimatorListener extends InterfaceTemplate {}
|
|
53
55
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InterfaceTemplate } from "@compass-framework/library";
|
|
2
2
|
|
|
3
3
|
export declare class ApplicationFrameObserver {
|
|
4
4
|
public addOnResizeListener(listener: ApplicationFrameObserver.OnResizeListener) :void;
|
|
@@ -7,8 +7,11 @@ export declare class ApplicationFrameObserver {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export namespace ApplicationFrameObserver {
|
|
10
|
-
export const OnResizeListenerInterface: Interface<OnResizeListener>;
|
|
11
10
|
export interface OnResizeListener {
|
|
12
11
|
onResize(): void;
|
|
13
12
|
}
|
|
13
|
+
|
|
14
|
+
export class OnResizeListener extends InterfaceTemplate {
|
|
15
|
+
|
|
16
|
+
}
|
|
14
17
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {ArrayList, 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";
|
|
@@ -7,6 +7,7 @@ import { WindowContext } from "./WindowContext";
|
|
|
7
7
|
import { WindowManager } from "./WindowManager";
|
|
8
8
|
import { Configuration } from "./Configuration";
|
|
9
9
|
|
|
10
|
+
@Implements(IWindow)
|
|
10
11
|
export declare class ApplicationWindow implements IWindow {
|
|
11
12
|
public constructor();
|
|
12
13
|
public constructor(context: WindowContext);
|
package/@types/BaseAdapter.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { Implements } from "@compass-framework/library";
|
|
1
2
|
import { ListAdapter } from "./ListAdapter";
|
|
2
3
|
import { View } from "./View";
|
|
3
4
|
import { ViewGroup } from "./ViewGroup";
|
|
4
5
|
|
|
6
|
+
@Implements(ListAdapter)
|
|
5
7
|
export declare abstract class BaseAdapter implements ListAdapter {
|
|
6
8
|
protected constructor();
|
|
7
9
|
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { DensityMetrics } from "./DensityMetrics";
|
|
2
|
-
import {Theme} from "./Theme";
|
|
2
|
+
import { Theme } from "./Theme";
|
|
3
3
|
|
|
4
|
-
export declare
|
|
5
|
-
|
|
4
|
+
export declare class Configuration {
|
|
5
|
+
constructor(config: Configuration)
|
|
6
6
|
|
|
7
7
|
getTheme(): Theme;
|
|
8
|
+
|
|
9
|
+
getDensityMetrics(): DensityMetrics;
|
|
8
10
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { Implements } from "@compass-framework/library";
|
|
1
2
|
import { Interpolator } from "./Interpolator";
|
|
2
3
|
|
|
4
|
+
@Implements(Interpolator)
|
|
3
5
|
export declare class DecelerateInterpolator implements Interpolator {
|
|
4
6
|
public constructor();
|
|
5
7
|
public constructor(factor: number);
|
package/@types/DoubleClick.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { Implements } from "@compass-framework/library";
|
|
1
2
|
import { DoubleClickListener } from "./DoubleClickListener";
|
|
2
3
|
import { View } from "./View";
|
|
3
4
|
import { MotionEvent } from "./MotionEvent";
|
|
4
5
|
|
|
6
|
+
@Implements(View.OnTouchListener)
|
|
5
7
|
export declare class DoubleClick implements View.OnTouchListener {
|
|
6
8
|
public constructor(doubleClickListener: DoubleClickListener, timeDifference?: number);
|
|
7
9
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InterfaceTemplate } from "@compass-framework/library";
|
|
2
2
|
import { View } from "./View";
|
|
3
|
+
import { MotionEvent } from "./MotionEvent";
|
|
3
4
|
|
|
4
5
|
export declare interface DoubleClickListener {
|
|
5
6
|
onSingleClick(event: MotionEvent, view: View): void;
|
|
@@ -8,3 +9,5 @@ export declare interface DoubleClickListener {
|
|
|
8
9
|
|
|
9
10
|
onTouchPointer(event: MotionEvent, view: View): boolean;
|
|
10
11
|
}
|
|
12
|
+
|
|
13
|
+
export class DoubleClickListener extends InterfaceTemplate {}
|
package/@types/Drawable.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Runnable } from "@compass-framework/library";
|
|
1
|
+
import { InterfaceTemplate, Runnable } from "@compass-framework/library";
|
|
2
2
|
import { Canvas } from "./Canvas";
|
|
3
3
|
import { Outline } from "./Outline";
|
|
4
4
|
import { Rect } from "./Rect";
|
|
@@ -47,7 +47,7 @@ export declare abstract class Drawable {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
export declare namespace Drawable {
|
|
50
|
-
abstract class ConstantState {
|
|
50
|
+
export abstract class ConstantState {
|
|
51
51
|
public abstract newDrawable(context: Context): Drawable;
|
|
52
52
|
|
|
53
53
|
public newResourcesDrawable(context: Context, res: Resources): Drawable;
|
|
@@ -55,7 +55,7 @@ export declare namespace Drawable {
|
|
|
55
55
|
public abstract getChangingConfigurations(): number;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
interface Callback {
|
|
58
|
+
export interface Callback {
|
|
59
59
|
invalidateDrawable(who:Drawable): void
|
|
60
60
|
|
|
61
61
|
scheduleDrawable(who: Drawable, what: Runnable, when: number): void
|
|
@@ -64,4 +64,8 @@ export declare namespace Drawable {
|
|
|
64
64
|
|
|
65
65
|
getResources(): Resources;
|
|
66
66
|
}
|
|
67
|
+
|
|
68
|
+
export class Callback extends InterfaceTemplate {
|
|
69
|
+
|
|
70
|
+
}
|
|
67
71
|
}
|
package/@types/Editable.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import { CharSequence } from "@compass-framework/library";
|
|
1
|
+
import { CharSequence, Implements, InterfaceTemplate } from "@compass-framework/library";
|
|
2
2
|
|
|
3
3
|
export declare interface Editable extends CharSequence {
|
|
4
4
|
|
|
5
5
|
}
|
|
6
|
+
|
|
7
|
+
@Implements(CharSequence)
|
|
8
|
+
export class Editable extends InterfaceTemplate {
|
|
9
|
+
|
|
10
|
+
}
|
package/@types/IWindow.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {ArrayList,
|
|
1
|
+
import {ArrayList, InterfaceTemplate, XML} from "@compass-framework/library";
|
|
2
2
|
import {Resources} from "./Resources";
|
|
3
3
|
import {View} from "./View";
|
|
4
4
|
import {WindowContext} from "./WindowContext";
|
|
5
5
|
import {WindowManager} from "./WindowManager";
|
|
6
6
|
|
|
7
|
-
export const IWindowInterface: Interface<IWindow>;
|
|
8
|
-
|
|
9
7
|
export interface IWindow {
|
|
10
8
|
findViewById(id: number): View;
|
|
11
9
|
findViewById(id: string): View;
|
|
@@ -28,3 +26,7 @@ export interface IWindow {
|
|
|
28
26
|
|
|
29
27
|
setContentXML(xml: XML): void;
|
|
30
28
|
}
|
|
29
|
+
|
|
30
|
+
export class IWindow extends InterfaceTemplate {
|
|
31
|
+
|
|
32
|
+
}
|
package/@types/Interpolator.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
import { Implements, InterfaceTemplate } from "@compass-framework/library";
|
|
2
|
+
|
|
1
3
|
import {
|
|
2
4
|
TimeInterpolator,
|
|
3
5
|
} from "./TimeInterpolator";
|
|
4
6
|
|
|
5
7
|
export declare interface Interpolator extends TimeInterpolator {
|
|
6
8
|
}
|
|
9
|
+
|
|
10
|
+
@Implements(TimeInterpolator)
|
|
11
|
+
export declare class Interpolator extends InterfaceTemplate {}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Runnable
|
|
1
|
+
import {Implements, Runnable} from "@compass-framework/library";
|
|
2
2
|
import { Canvas } from "./Canvas";
|
|
3
3
|
import { Drawable } from "./Drawable";
|
|
4
4
|
import { Context } from "./Context";
|
|
5
5
|
import { Resources } from "./Resources";
|
|
6
6
|
|
|
7
|
+
@Implements(Drawable.Callback)
|
|
7
8
|
export declare class LayerDrawable extends Drawable implements Drawable.Callback {
|
|
8
9
|
public constructor(context: Context);
|
|
9
10
|
public constructor(context: Context, layers: Drawable[]);
|
package/@types/ListAdapter.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import { Implements, InterfaceTemplate } from "@compass-framework/library";
|
|
1
2
|
import { Adapter } from "./Adapter";
|
|
2
3
|
|
|
3
4
|
export declare interface ListAdapter extends Adapter {
|
|
4
5
|
|
|
5
6
|
}
|
|
7
|
+
|
|
8
|
+
@Implements(Adapter)
|
|
9
|
+
export class ListAdapter extends InterfaceTemplate {
|
|
10
|
+
|
|
11
|
+
}
|
package/@types/Outline.d.ts
CHANGED
|
@@ -4,6 +4,9 @@ export declare class Outline {
|
|
|
4
4
|
public constructor();
|
|
5
5
|
public constructor(src: Outline);
|
|
6
6
|
|
|
7
|
+
public setRect(rect:Rect): void;
|
|
8
|
+
public setRect(left:number, top:number, right:number, bottom:number): void;
|
|
9
|
+
|
|
7
10
|
public isEmpty():boolean;
|
|
8
11
|
|
|
9
12
|
public set(src:Outline): void;
|
|
@@ -12,9 +15,6 @@ export declare class Outline {
|
|
|
12
15
|
|
|
13
16
|
public getRect(outRect:Rect): boolean;
|
|
14
17
|
|
|
15
|
-
public setRect(rect:Rect): void;
|
|
16
|
-
public setRect(left:number, top:number, right:number, bottom:number): void;
|
|
17
|
-
|
|
18
18
|
public setEmpty(): void;
|
|
19
19
|
|
|
20
20
|
public setRoundRect(rect:Rect, radius:number): void;
|
package/@types/PathEffect.ts
CHANGED
package/@types/Picture.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { Consumer } from "@compass-framework/library";
|
|
1
|
+
import { Consumer, InterfaceTemplate } from "@compass-framework/library";
|
|
2
2
|
import { Bitmap } from "./Bitmap";
|
|
3
3
|
|
|
4
4
|
export declare interface Picture {
|
|
5
|
-
addListener(notify: Consumer<Picture.PictureStatus>): void
|
|
6
|
-
|
|
7
|
-
removeListener(notify: Consumer<Picture.PictureStatus>): void
|
|
8
|
-
|
|
9
5
|
complete(): boolean;
|
|
10
6
|
|
|
11
7
|
oneListener(notify: Consumer<Picture.PictureStatus>): void
|
|
12
8
|
|
|
9
|
+
getUrl(): string;
|
|
10
|
+
|
|
13
11
|
getWidth(): number
|
|
14
12
|
|
|
15
13
|
getHeight(): number
|
|
16
14
|
|
|
17
|
-
|
|
15
|
+
addListener(notify: Consumer<Picture.PictureStatus>): void
|
|
16
|
+
|
|
17
|
+
removeListener(notify: Consumer<Picture.PictureStatus>): void
|
|
18
18
|
|
|
19
19
|
setUrl(url: string): void
|
|
20
20
|
|
|
@@ -22,6 +22,10 @@ export declare interface Picture {
|
|
|
22
22
|
asBitmap(scale: number): Bitmap
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
export class Picture extends InterfaceTemplate {
|
|
26
|
+
|
|
27
|
+
}
|
|
28
|
+
|
|
25
29
|
export declare namespace Picture {
|
|
26
30
|
enum PictureStatus {
|
|
27
31
|
OK,
|
package/@types/PopupWindow.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {ArrayList, 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";
|
|
@@ -6,6 +6,7 @@ import { WindowContext } from "./WindowContext";
|
|
|
6
6
|
import { WindowManager } from "./WindowManager";
|
|
7
7
|
import {Configuration} from "./Configuration";
|
|
8
8
|
|
|
9
|
+
@Implements(IWindow)
|
|
9
10
|
export declare class PopupWindow implements IWindow {
|
|
10
11
|
public constructor();
|
|
11
12
|
|
package/@types/Slot.d.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InterfaceTemplate } from "@compass-framework/library";
|
|
2
|
+
import { View } from "./View";
|
|
2
3
|
|
|
3
4
|
export declare interface Slot {
|
|
4
5
|
replace(target: View, options?: Slot.Options): void
|
|
5
6
|
}
|
|
6
7
|
|
|
8
|
+
export class Slot extends InterfaceTemplate {
|
|
9
|
+
|
|
10
|
+
}
|
|
11
|
+
|
|
7
12
|
export namespace Slot {
|
|
8
13
|
export interface Options {
|
|
9
14
|
patten?: 'replace' | 'wrap'
|
package/@types/TabBarLayout.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InterfaceTemplate } from "@compass-framework/library";
|
|
2
2
|
import { LinearLayout } from "./LinearLayout";
|
|
3
|
-
import { MotionEvent } from "./MotionEvent";
|
|
4
3
|
import { View } from "./View";
|
|
4
|
+
import { MotionEvent } from "./MotionEvent";
|
|
5
5
|
|
|
6
6
|
export declare class TabBarLayout extends LinearLayout {
|
|
7
7
|
public hasScroll(): boolean;
|
|
@@ -14,10 +14,13 @@ export declare class TabBarLayout extends LinearLayout {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export namespace TabBarLayout {
|
|
17
|
-
export const TabBarLayoutElementViewListenerInterface: Interface<TabBarLayoutElementViewListener>;
|
|
18
17
|
export interface TabBarLayoutElementViewListener {
|
|
19
18
|
onReady(layout: TabBarLayout): void;
|
|
20
19
|
onDoubleClick (event: MotionEvent, view: View): void;
|
|
21
20
|
onSingleClick (event: MotionEvent, view: View): void;
|
|
22
21
|
}
|
|
22
|
+
|
|
23
|
+
export class TabBarLayoutElementViewListener extends InterfaceTemplate {
|
|
24
|
+
|
|
25
|
+
}
|
|
23
26
|
}
|
package/@types/Theme.d.ts
CHANGED
|
@@ -7,5 +7,5 @@ export declare class TranslateAnimation extends Animation {
|
|
|
7
7
|
|
|
8
8
|
public applyTransformation(interpolatedTime: number, t:Transformation): void;
|
|
9
9
|
|
|
10
|
-
public initialize(width, height, parentWidth, parentHeight): void;
|
|
10
|
+
public initialize(width: number, height: number, parentWidth: number, parentHeight: number): void;
|
|
11
11
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InterfaceTemplate } from "@compass-framework/library";
|
|
2
2
|
import { Animator } from "./Animator";
|
|
3
3
|
import { Context } from "./Context";
|
|
4
4
|
import { PropertyValuesHolder } from "./PropertyValuesHolder";
|
|
@@ -104,8 +104,9 @@ export declare class ValueAnimator extends Animator {
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
export namespace ValueAnimator {
|
|
107
|
-
export const AnimatorUpdateListenerInterface: Interface<AnimatorUpdateListener>;
|
|
108
107
|
export interface AnimatorUpdateListener {
|
|
109
108
|
onAnimationUpdate(animation: ValueAnimator): void;
|
|
110
109
|
}
|
|
110
|
+
|
|
111
|
+
export class AnimatorUpdateListener extends InterfaceTemplate {}
|
|
111
112
|
}
|
package/@types/View.d.ts
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Interface,
|
|
3
|
-
Runnable,
|
|
4
2
|
ArrayList,
|
|
3
|
+
Runnable,
|
|
4
|
+
InterfaceTemplate,
|
|
5
5
|
} from "@compass-framework/library";
|
|
6
|
+
|
|
7
|
+
import { ViewOverlay } from "./ViewOverlay";
|
|
6
8
|
import { Context } from "./Context";
|
|
9
|
+
import { Configuration } from "./Configuration";
|
|
10
|
+
import { DensityMetrics } from "./DensityMetrics";
|
|
11
|
+
import { Rect } from "./Rect";
|
|
7
12
|
import { AttributeSet } from "./AttributeSet";
|
|
8
13
|
import { Canvas } from "./Canvas";
|
|
9
|
-
import {
|
|
14
|
+
import { Transformation } from "./Transformation";
|
|
15
|
+
import { KeyEvent } from "./KeyEvent";
|
|
10
16
|
import { Drawable } from "./Drawable";
|
|
17
|
+
import { Outline } from "./Outline";
|
|
18
|
+
import { ViewTreeObserver } from "./ViewTreeObserver";
|
|
19
|
+
import { ViewGroup } from "./ViewGroup";
|
|
20
|
+
import { Animation } from "./Animation";
|
|
11
21
|
import { MotionEvent } from "./MotionEvent";
|
|
12
22
|
import { Matrix } from "./Matrix";
|
|
13
23
|
import { Resources } from "./Resources";
|
|
14
24
|
import { ViewParent } from "./ViewParent";
|
|
15
|
-
import { KeyEvent } from "./KeyEvent";
|
|
16
|
-
import { Rect } from "./Rect";
|
|
17
25
|
import { ViewOutlineProvider } from "./ViewOutlineProvider";
|
|
18
|
-
import { Outline } from "./Outline";
|
|
19
|
-
import { Animation } from "./Animation";
|
|
20
|
-
import { Transformation } from "./Transformation";
|
|
21
|
-
import { ViewTreeObserver } from "./ViewTreeObserver";
|
|
22
|
-
import { ViewOverlay } from "./ViewOverlay";
|
|
23
|
-
import { Configuration } from "./Configuration";
|
|
24
|
-
import { DensityMetrics } from "./DensityMetrics";
|
|
25
26
|
|
|
26
27
|
export declare class View implements Drawable.Callback {
|
|
27
28
|
public static resolveSize(size: number, measureSpec: number): number;
|
|
@@ -292,50 +293,50 @@ export declare namespace View {
|
|
|
292
293
|
public static adjust(measureSpec: number, delta: number): number;
|
|
293
294
|
}
|
|
294
295
|
|
|
295
|
-
export const OnAttachStateChangeListenerInterface: Interface<OnAttachStateChangeListener>;
|
|
296
296
|
export interface OnAttachStateChangeListener {
|
|
297
297
|
onViewAttachedToWindow(v: View): void;
|
|
298
298
|
|
|
299
299
|
onViewDetachedFromWindow(v: View): void;
|
|
300
300
|
}
|
|
301
|
+
export class OnAttachStateChangeListener extends InterfaceTemplate {}
|
|
301
302
|
|
|
302
|
-
export const OnTouchListenerInterface:Interface<OnTouchListener>;
|
|
303
303
|
export interface OnTouchListener {
|
|
304
304
|
onTouch(v: View, event: MotionEvent): boolean;
|
|
305
305
|
}
|
|
306
|
+
export class OnTouchListener extends InterfaceTemplate {}
|
|
306
307
|
|
|
307
|
-
export const OnClickListenerInterface:Interface<OnClickListener>;
|
|
308
308
|
export interface OnClickListener {
|
|
309
309
|
onClick(v: View): void;
|
|
310
310
|
}
|
|
311
|
+
export class OnClickListener extends InterfaceTemplate {}
|
|
311
312
|
|
|
312
|
-
export const OnHoverListenerInterface: Interface<OnHoverListener>;
|
|
313
313
|
export interface OnHoverListener {
|
|
314
314
|
onHover(v: View, event: MotionEvent): boolean;
|
|
315
315
|
}
|
|
316
|
+
export class OnHoverListener extends InterfaceTemplate {}
|
|
316
317
|
|
|
317
|
-
export const OnKeyListenerInterface:Interface<OnKeyListener>;
|
|
318
318
|
export interface OnKeyListener {
|
|
319
319
|
onKey(v: View, keyCode: number, event: KeyEvent): boolean;
|
|
320
320
|
}
|
|
321
|
+
export class OnKeyListener extends InterfaceTemplate {}
|
|
321
322
|
|
|
322
|
-
export const OnFocusChangeListenerInterface:Interface<OnFocusChangeListener>;
|
|
323
323
|
export interface OnFocusChangeListener {
|
|
324
324
|
onFocusChange(v: View, hasFocus: boolean): void;
|
|
325
325
|
}
|
|
326
|
+
export class OnFocusChangeListener extends InterfaceTemplate {}
|
|
326
327
|
|
|
327
|
-
export const OnGenericMotionListenerInterface:Interface<OnGenericMotionListener>;
|
|
328
328
|
export interface OnGenericMotionListener {
|
|
329
329
|
onGenericMotion(v: View, event: MotionEvent): boolean;
|
|
330
330
|
}
|
|
331
|
+
export class OnGenericMotionListener extends InterfaceTemplate {}
|
|
331
332
|
|
|
332
|
-
export const OnLayoutChangeListenerInterface: Interface<OnLayoutChangeListener>;
|
|
333
333
|
export interface OnLayoutChangeListener {
|
|
334
334
|
onLayoutChange(v: View, left: number, top: number, right: number, bottom: number, oldLeft: number, oldTop: number, oldRight: number, oldBottom: number):void;
|
|
335
335
|
}
|
|
336
|
+
export class OnLayoutChangeListener extends InterfaceTemplate {}
|
|
336
337
|
|
|
337
|
-
export const OnFinishInflateListenerInterface: Interface<OnFinishInflateListener>;
|
|
338
338
|
export interface OnFinishInflateListener {
|
|
339
339
|
onViewFinishInflate(v: View): void;
|
|
340
340
|
}
|
|
341
|
+
export class OnFinishInflateListener extends InterfaceTemplate {}
|
|
341
342
|
}
|
package/@types/ViewGroup.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Implements } from "@compass-framework/library";
|
|
1
2
|
import { View } from "./View";
|
|
2
3
|
import { AttributeSet } from "./AttributeSet";
|
|
3
4
|
import { Context } from "./Context";
|
|
@@ -6,6 +7,7 @@ import { ViewParent } from "./ViewParent";
|
|
|
6
7
|
import { MotionEvent } from "./MotionEvent";
|
|
7
8
|
import { DensityMetrics } from "./DensityMetrics";
|
|
8
9
|
|
|
10
|
+
@Implements(ViewParent)
|
|
9
11
|
export declare abstract class ViewGroup extends View implements ViewParent {
|
|
10
12
|
public static FLAG_USE_CHILD_DRAWING_ORDER: number;
|
|
11
13
|
public static FLAG_CLIP_CHILDREN: number;
|
package/@types/ViewParent.d.ts
CHANGED
package/@types/ViewSlot.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import {Implements} from "@compass-framework/library";
|
|
1
2
|
import {FrameLayout} from "./FrameLayout";
|
|
2
3
|
import {Slot} from "./Slot";
|
|
3
4
|
import {View} from "./View";
|
|
4
5
|
|
|
6
|
+
@Implements(Slot)
|
|
5
7
|
export declare class ViewSlot extends FrameLayout implements Slot {
|
|
6
8
|
replace(target: View, options?: Slot.Options): void;
|
|
7
9
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InterfaceTemplate } from "@compass-framework/library";
|
|
2
2
|
import { View } from "./View";
|
|
3
3
|
|
|
4
4
|
export declare class ViewTreeObserver {
|
|
@@ -16,18 +16,18 @@ export declare class ViewTreeObserver {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export declare namespace ViewTreeObserver {
|
|
19
|
-
export const OnGlobalLayoutListenerInterface:Interface<OnGlobalLayoutListener>;
|
|
20
19
|
export interface OnGlobalLayoutListener {
|
|
21
20
|
onGlobalLayout(): void;
|
|
22
21
|
}
|
|
22
|
+
export class OnGlobalLayoutListener extends InterfaceTemplate {}
|
|
23
23
|
|
|
24
|
-
export const OnGlobalFocusChangeListenerInterface:Interface<OnGlobalFocusChangeListener>;
|
|
25
24
|
export interface OnGlobalFocusChangeListener {
|
|
26
25
|
onGlobalFocusChanged(oldFocus: View, newFocus: View): void;
|
|
27
26
|
}
|
|
27
|
+
export class OnGlobalFocusChangeListener extends InterfaceTemplate {}
|
|
28
28
|
|
|
29
|
-
export const OnPreDrawListenerInterface:Interface<OnPreDrawListener>;
|
|
30
29
|
export interface OnPreDrawListener {
|
|
31
30
|
onPreDraw(): boolean;
|
|
32
31
|
}
|
|
32
|
+
export class OnPreDrawListener extends InterfaceTemplate {}
|
|
33
33
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@compass-framework/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
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.3"
|
|
15
15
|
}
|
|
16
16
|
}
|