@compass-framework/core 1.0.0
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/.eslintignore +9 -0
- package/.eslintrc.js +76 -0
- package/include/AbsoluteLayout.d.ts +7 -0
- package/include/AccelerateDecelerateInterpolator.d.ts +7 -0
- package/include/AccelerateInterpolator.d.ts +10 -0
- package/include/Adapter.d.ts +20 -0
- package/include/AlphaAnimation.d.ts +11 -0
- package/include/Animation.d.ts +119 -0
- package/include/AnimationSet.d.ts +58 -0
- package/include/Animator.d.ts +53 -0
- package/include/Application.d.ts +19 -0
- package/include/ApplicationContext.d.ts +11 -0
- package/include/ApplicationFrame.d.ts +62 -0
- package/include/ApplicationFrameContext.ts +25 -0
- package/include/ApplicationFrameObserver.d.ts +14 -0
- package/include/ApplicationManager.d.ts +9 -0
- package/include/ApplicationManifest.d.ts +5 -0
- package/include/ApplicationSettings.d.ts +3 -0
- package/include/ApplicationWindow.d.ts +37 -0
- package/include/ArrayAdapter.d.ts +52 -0
- package/include/Assets.d.ts +3 -0
- package/include/AttributeSet.d.ts +40 -0
- package/include/BaseAdapter.d.ts +23 -0
- package/include/Bitmap.d.ts +7 -0
- package/include/BitmapDrawable.d.ts +33 -0
- package/include/BounceInterpolator.d.ts +5 -0
- package/include/Button.d.ts +3 -0
- package/include/Canvas.d.ts +106 -0
- package/include/Color.d.ts +46 -0
- package/include/ColorDrawable.d.ts +18 -0
- package/include/Configuration.d.ts +5 -0
- package/include/Context.d.ts +8 -0
- package/include/ContextUtils.d.ts +5 -0
- package/include/CornerPathEffect.ts +5 -0
- package/include/CycleInterpolator.d.ts +7 -0
- package/include/DecelerateInterpolator.d.ts +8 -0
- package/include/DecorView.d.ts +5 -0
- package/include/DensityMetrics.d.ts +11 -0
- package/include/DisplayMetrics.d.ts +7 -0
- package/include/DoubleClick.d.ts +9 -0
- package/include/DoubleClickListener.d.ts +10 -0
- package/include/Drawable.d.ts +67 -0
- package/include/EditText.d.ts +17 -0
- package/include/Editable.d.ts +5 -0
- package/include/FrameLayout.d.ts +7 -0
- package/include/FreezeAbsoluteLayout.d.ts +7 -0
- package/include/FreezeLayoutViewGroup.d.ts +23 -0
- package/include/Gravity.d.ts +38 -0
- package/include/GridLayout.d.ts +9 -0
- package/include/GridLayoutAnimationController.d.ts +5 -0
- package/include/GridView.d.ts +8 -0
- package/include/HorizontalScrollView.ts +11 -0
- package/include/ICursor.d.ts +33 -0
- package/include/IWindow.d.ts +28 -0
- package/include/ImageView.d.ts +3 -0
- package/include/Interpolator.d.ts +6 -0
- package/include/KeyEvent.d.ts +97 -0
- package/include/LayerDrawable.d.ts +28 -0
- package/include/LayoutAnimationController.d.ts +51 -0
- package/include/LayoutInflater.ts +10 -0
- package/include/LinearGradient.d.ts +5 -0
- package/include/LinearGradientDrawable.d.ts +23 -0
- package/include/LinearInterpolator.d.ts +5 -0
- package/include/LinearLayout.d.ts +14 -0
- package/include/ListAdapter.d.ts +5 -0
- package/include/ListView.d.ts +8 -0
- package/include/Matrix.d.ts +81 -0
- package/include/MotionEvent.d.ts +57 -0
- package/include/Outline.d.ts +23 -0
- package/include/Paint.d.ts +126 -0
- package/include/Path.d.ts +77 -0
- package/include/PathEffect.ts +3 -0
- package/include/Picture.d.ts +26 -0
- package/include/PictureDrawable.d.ts +14 -0
- package/include/PopupWindow.d.ts +38 -0
- package/include/PropertyValuesHolder.d.ts +3 -0
- package/include/Readying.ts +3 -0
- package/include/Rect.d.ts +75 -0
- package/include/RelativeLayout.d.ts +7 -0
- package/include/Resources.d.ts +62 -0
- package/include/RotateAnimation.d.ts +12 -0
- package/include/RoundedCornersDrawable.d.ts +47 -0
- package/include/ScaleAnimation.d.ts +12 -0
- package/include/ScrollView.d.ts +13 -0
- package/include/Shader.d.ts +1 -0
- package/include/Shadow.d.ts +8 -0
- package/include/StackLayout.d.ts +9 -0
- package/include/TabBarLayout.d.ts +23 -0
- package/include/TableLayout.d.ts +8 -0
- package/include/TableRow.d.ts +8 -0
- package/include/TextView.d.ts +20 -0
- package/include/TimeInterpolator.d.ts +3 -0
- package/include/Transformation.d.ts +24 -0
- package/include/TranslateAnimation.d.ts +11 -0
- package/include/TypeEvaluator.d.ts +3 -0
- package/include/Typeface.d.ts +14 -0
- package/include/TypefaceFactory.d.ts +9 -0
- package/include/ValueAnimator.d.ts +111 -0
- package/include/View.d.ts +342 -0
- package/include/ViewGroup.d.ts +108 -0
- package/include/ViewGroupOverlay.d.ts +11 -0
- package/include/ViewOutlineProvider.d.ts +8 -0
- package/include/ViewOverlay.d.ts +16 -0
- package/include/ViewParent.d.ts +5 -0
- package/include/ViewTreeObserver.d.ts +33 -0
- package/include/WindowContext.d.ts +9 -0
- package/include/WindowManager.d.ts +13 -0
- package/include/XMLLayoutParser.d.ts +9 -0
- package/include/XMLResourcesParser.d.ts +8 -0
- package/include/XMLViewFactoryRegistry.d.ts +42 -0
- package/index.d.ts +105 -0
- package/package.json +17 -0
- package/tsconfig.json +32 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { XML } from "@compass-framework/library";
|
|
2
|
+
import { Resources } from "./Resources";
|
|
3
|
+
import { View } from "./View";
|
|
4
|
+
import { IWindow } from "./IWindow";
|
|
5
|
+
import { WindowContext } from "./WindowContext";
|
|
6
|
+
import { WindowManager } from "./WindowManager";
|
|
7
|
+
|
|
8
|
+
export declare class PopupWindow implements IWindow {
|
|
9
|
+
public constructor();
|
|
10
|
+
|
|
11
|
+
public onCreate(): void;
|
|
12
|
+
|
|
13
|
+
public onStart(): void;
|
|
14
|
+
|
|
15
|
+
public onResume(): void;
|
|
16
|
+
|
|
17
|
+
public onStop(): void;
|
|
18
|
+
|
|
19
|
+
public onDestroy(): void;
|
|
20
|
+
|
|
21
|
+
public createViewQuery(): View.ViewQuery;
|
|
22
|
+
|
|
23
|
+
public dismiss(): void;
|
|
24
|
+
|
|
25
|
+
public showAtLocation(parent: View, gravity: number, x: number, y: number): void;
|
|
26
|
+
|
|
27
|
+
public update(x: number, y: number, width: number, height: number): void;
|
|
28
|
+
|
|
29
|
+
public getContext(): WindowContext;
|
|
30
|
+
|
|
31
|
+
public getResources(): Resources;
|
|
32
|
+
|
|
33
|
+
public getLayoutParams(): WindowManager.LayoutParams;
|
|
34
|
+
|
|
35
|
+
public setContentXML(xml: XML): void;
|
|
36
|
+
|
|
37
|
+
public setContentView(contentView: View): void;
|
|
38
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
export declare class Rect {
|
|
2
|
+
public static MAX: Rect;
|
|
3
|
+
|
|
4
|
+
public static intersects(a: Rect, b: Rect): boolean;
|
|
5
|
+
|
|
6
|
+
public constructor();
|
|
7
|
+
public constructor(rect: Rect);
|
|
8
|
+
public constructor(width: number, height: number);
|
|
9
|
+
public constructor(left: number, top: number, right: number, bottom: number);
|
|
10
|
+
|
|
11
|
+
public equals(rect: Rect): boolean;
|
|
12
|
+
|
|
13
|
+
public isEmpty() : boolean;
|
|
14
|
+
|
|
15
|
+
public width(): number;
|
|
16
|
+
|
|
17
|
+
public height(): number;
|
|
18
|
+
|
|
19
|
+
public centerX(): number;
|
|
20
|
+
|
|
21
|
+
public centerY(): number;
|
|
22
|
+
|
|
23
|
+
public setEmpty(): void;
|
|
24
|
+
|
|
25
|
+
public exactCenterX(): number;
|
|
26
|
+
|
|
27
|
+
public exactCenterY(): number;
|
|
28
|
+
|
|
29
|
+
public set(rect: Rect):void;
|
|
30
|
+
public set(left: number, top: number, right: number, bottom: number):void;
|
|
31
|
+
|
|
32
|
+
public offset(dx: number, dy: number): void;
|
|
33
|
+
|
|
34
|
+
public offsetTo(newLeft: number, newTop: number): void;
|
|
35
|
+
|
|
36
|
+
public inset(dx: number, dy: number): void;
|
|
37
|
+
|
|
38
|
+
public contains(rect: Rect): boolean;
|
|
39
|
+
public contains(x: number, y: number): boolean;
|
|
40
|
+
public contains(left: number, top: number, right: number, bottom: number): boolean;
|
|
41
|
+
|
|
42
|
+
public intersect(rect: Rect): boolean;
|
|
43
|
+
public intersect(left: number, top: number, right: number, bottom: number): boolean;
|
|
44
|
+
|
|
45
|
+
public setIntersect(a: Rect, b: Rect): boolean;
|
|
46
|
+
|
|
47
|
+
public intersects(rect: Rect): boolean;
|
|
48
|
+
public intersects(left: number, top: number, right: number, bottom: number): boolean;
|
|
49
|
+
|
|
50
|
+
public union(rect: Rect): void;
|
|
51
|
+
public union(x: number, y: number,): void;
|
|
52
|
+
public union(left: number, top: number, right: number, bottom: number): void;
|
|
53
|
+
|
|
54
|
+
public sort(): void;
|
|
55
|
+
|
|
56
|
+
public round(): void;
|
|
57
|
+
|
|
58
|
+
public scale(scale: number): void;
|
|
59
|
+
|
|
60
|
+
public setLeft(left: number): Rect;
|
|
61
|
+
|
|
62
|
+
public setRight(right: number): Rect;
|
|
63
|
+
|
|
64
|
+
public setTop(top: number): Rect;
|
|
65
|
+
|
|
66
|
+
public setBottom(bottom: number): Rect;
|
|
67
|
+
|
|
68
|
+
public getLeft(): number;
|
|
69
|
+
|
|
70
|
+
public getRight(): number;
|
|
71
|
+
|
|
72
|
+
public getTop(): number;
|
|
73
|
+
|
|
74
|
+
public getBottom(): number;
|
|
75
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { CharSequence, RefValue, XML } from "@compass-framework/library";
|
|
2
|
+
import { Drawable } from "./Drawable";
|
|
3
|
+
import { AttributeSet } from "./AttributeSet";
|
|
4
|
+
import { ColorDrawable } from "./ColorDrawable";
|
|
5
|
+
import { Assets } from "./Assets";
|
|
6
|
+
import { DisplayMetrics } from "./DisplayMetrics";
|
|
7
|
+
|
|
8
|
+
export declare class Resources {
|
|
9
|
+
public getDisplayMetrics(): DisplayMetrics;
|
|
10
|
+
|
|
11
|
+
public getAssets(): Assets;
|
|
12
|
+
|
|
13
|
+
/// ///////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
14
|
+
/// ///////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
15
|
+
/// ///////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
16
|
+
/// ///////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
17
|
+
/// ///////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
18
|
+
/// ///////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
19
|
+
|
|
20
|
+
public getLayout(name: number, defaultValue?: XML): XML;
|
|
21
|
+
|
|
22
|
+
public getDrawable(name: string, defaultValue?: Drawable): Drawable;
|
|
23
|
+
|
|
24
|
+
public getNumber(name: string, defaultValue?: number): number;
|
|
25
|
+
|
|
26
|
+
public getInt(name: string, defaultValue?: number): number;
|
|
27
|
+
|
|
28
|
+
public getBoolean(name: string, defaultValue?: boolean): boolean;
|
|
29
|
+
|
|
30
|
+
public getColor(name: string, defaultValue?: number): number;
|
|
31
|
+
|
|
32
|
+
public getColorDrawable(name: string, defaultValue?: number): ColorDrawable;
|
|
33
|
+
|
|
34
|
+
public getText(name: string, defaultValue?: CharSequence): CharSequence;
|
|
35
|
+
|
|
36
|
+
public getString(name: string, defaultValue?: string): string;
|
|
37
|
+
|
|
38
|
+
public getStyleAttributeSet(name: string, defaultValue?: AttributeSet): AttributeSet;
|
|
39
|
+
|
|
40
|
+
/// ///////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
41
|
+
/// ///////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
42
|
+
/// ///////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
43
|
+
/// ///////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
44
|
+
/// ///////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
45
|
+
/// ///////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
46
|
+
|
|
47
|
+
public setColorDrawable(name: string, value: RefValue<ColorDrawable>): number;
|
|
48
|
+
|
|
49
|
+
public setString(name: string, value: RefValue<string>): number;
|
|
50
|
+
|
|
51
|
+
public setLayout(name: string, value: RefValue<XML>): number;
|
|
52
|
+
|
|
53
|
+
public setNumber(name: string, value: RefValue<number>): number;
|
|
54
|
+
|
|
55
|
+
public setText(name: string, value: RefValue<CharSequence>): number;
|
|
56
|
+
|
|
57
|
+
public setBoolean(name: string, value: RefValue<boolean>): number;
|
|
58
|
+
|
|
59
|
+
public setDrawable(name: string, value: RefValue<Drawable>): number;
|
|
60
|
+
|
|
61
|
+
public setStyleAttributeSet(name: string, value: RefValue<AttributeSet>): number;
|
|
62
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Animation } from "./Animation";
|
|
2
|
+
import { Transformation } from "./Transformation";
|
|
3
|
+
|
|
4
|
+
export declare class RotateAnimation extends Animation {
|
|
5
|
+
public constructor(fromDegrees: number, toDegrees: number);
|
|
6
|
+
public constructor(fromDegrees: number, toDegrees: number, pivotX: number, pivotY: number);
|
|
7
|
+
public constructor(fromDegrees: number, toDegrees: number, pivotXType: number, pivotXValue: number, pivotYType: number, pivotYValue: number);
|
|
8
|
+
|
|
9
|
+
public applyTransformation(interpolatedTime: number, t: Transformation): void;
|
|
10
|
+
|
|
11
|
+
public initialize(width: number, height: number, parentWidth: number, parentHeight: number): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Canvas } from "./Canvas";
|
|
2
|
+
import { Paint } from "./Paint";
|
|
3
|
+
import { Drawable } from "./Drawable";
|
|
4
|
+
import { Context } from "./Context";
|
|
5
|
+
|
|
6
|
+
export declare class RoundedCornersDrawable extends Drawable {
|
|
7
|
+
public constructor(context: Context);
|
|
8
|
+
public constructor(context: Context, drawable: RoundedCornersDrawable);
|
|
9
|
+
public constructor(context: Context, fillColor: number, radius: number);
|
|
10
|
+
public constructor(context: Context, strokeColor: number, radius: number, strokeWidth: number);
|
|
11
|
+
public constructor(context: Context, fillColor: number, strokeColor: number, radius: number, strokeWidth: number);
|
|
12
|
+
public constructor(context: Context, fillColor: number, lt: number, rt: number, rb: number, lb: number);
|
|
13
|
+
public constructor(context: Context, strokeColor: number, lt: number, rt: number, rb: number, lb: number, strokeWidth: number);
|
|
14
|
+
public constructor(context: Context, fillColor: number, strokeColor: number, lt: number, rt: number, rb: number, lb: number, strokeWidth: number);
|
|
15
|
+
|
|
16
|
+
public draw(canvas: Canvas): void;
|
|
17
|
+
|
|
18
|
+
public getOpacity(): number;
|
|
19
|
+
|
|
20
|
+
public setAlpha(alpha: number): void;
|
|
21
|
+
|
|
22
|
+
public getLtRadius(): number;
|
|
23
|
+
|
|
24
|
+
public getLbRadius(): number;
|
|
25
|
+
|
|
26
|
+
public getRtRadius(): number;
|
|
27
|
+
|
|
28
|
+
public getRbRadius(): number;
|
|
29
|
+
|
|
30
|
+
public setLtRadius(radius: number): void;
|
|
31
|
+
|
|
32
|
+
public setLbRadius(radius: number): void;
|
|
33
|
+
|
|
34
|
+
public setRtRadius(radius: number): void;
|
|
35
|
+
|
|
36
|
+
public setRbRadius(radius: number): void;
|
|
37
|
+
|
|
38
|
+
public setRadius(radius: number): void;
|
|
39
|
+
|
|
40
|
+
public setFillColor(color: number): void;
|
|
41
|
+
|
|
42
|
+
public setStrokeColor(color: number): void;
|
|
43
|
+
|
|
44
|
+
public setStyle(style: Paint.Style): void;
|
|
45
|
+
|
|
46
|
+
public setStrokeWidth(strokeWidth: number): void;
|
|
47
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Animation } from "./Animation";
|
|
2
|
+
import { Transformation } from "./Transformation";
|
|
3
|
+
|
|
4
|
+
export declare class ScaleAnimation extends Animation {
|
|
5
|
+
public constructor(fromX: number, toX: number, fromY: number, toY: number);
|
|
6
|
+
public constructor(fromX: number, toX: number, fromY: number, toY: number, pivotX: number, pivotY: number);
|
|
7
|
+
public constructor(fromX: number, toX: number, fromY: number, toY: number, pivotXType: number, pivotXValue: number, pivotYType: number, pivotYValue: number);
|
|
8
|
+
|
|
9
|
+
public applyTransformation(interpolatedTime: number, t: Transformation): void;
|
|
10
|
+
|
|
11
|
+
public initialize(width: number, height: number, parentWidth: number, parentHeight: number): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FrameLayout,
|
|
3
|
+
} from "./FrameLayout";
|
|
4
|
+
|
|
5
|
+
export declare class ScrollView extends FrameLayout {
|
|
6
|
+
public scrollTo(x: number, y: number): void;
|
|
7
|
+
|
|
8
|
+
public abortScroll(): void;
|
|
9
|
+
|
|
10
|
+
public setOverScrollMode(mode:number):void;
|
|
11
|
+
|
|
12
|
+
public setSmoothScrollingEnabled(smoothScrollingEnabled: boolean): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export abstract class Shader {}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Interface } from "@compass-framework/library";
|
|
2
|
+
import { LinearLayout } from "./LinearLayout";
|
|
3
|
+
import { MotionEvent } from "./MotionEvent";
|
|
4
|
+
import { View } from "./View";
|
|
5
|
+
|
|
6
|
+
export declare class TabBarLayout extends LinearLayout {
|
|
7
|
+
public hasScroll(): boolean;
|
|
8
|
+
|
|
9
|
+
public getChildCount(slot?: string): number;
|
|
10
|
+
|
|
11
|
+
public getChildAt(index: number, slot?: string): View;
|
|
12
|
+
|
|
13
|
+
public removeAllViews(slot?: string): void;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export namespace TabBarLayout {
|
|
17
|
+
export const TabBarLayoutElementViewListenerInterface: Interface<TabBarLayoutElementViewListener>;
|
|
18
|
+
export interface TabBarLayoutElementViewListener {
|
|
19
|
+
onReady(layout: TabBarLayout): void;
|
|
20
|
+
onDoubleClick (event: MotionEvent, view: View): void;
|
|
21
|
+
onSingleClick (event: MotionEvent, view: View): void;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CharSequence } from "@compass-framework/library";
|
|
2
|
+
import { View } from "./View";
|
|
3
|
+
|
|
4
|
+
export declare class TextView extends View {
|
|
5
|
+
public getHint(): CharSequence;
|
|
6
|
+
|
|
7
|
+
public getTextSize(): number;
|
|
8
|
+
|
|
9
|
+
public getText(): CharSequence;
|
|
10
|
+
|
|
11
|
+
public getCurrentTextColor(): number;
|
|
12
|
+
|
|
13
|
+
public setText(text: CharSequence): void;
|
|
14
|
+
|
|
15
|
+
public setHint(hint:CharSequence): void;
|
|
16
|
+
|
|
17
|
+
public setTextSize(size: number): void;
|
|
18
|
+
|
|
19
|
+
public setTextColor(color: number): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Matrix } from './Matrix';
|
|
2
|
+
|
|
3
|
+
export declare class Transformation {
|
|
4
|
+
public static TYPE_IDENTITY: number;
|
|
5
|
+
public static TYPE_ALPHA: number;
|
|
6
|
+
public static TYPE_MATRIX: number;
|
|
7
|
+
public static TYPE_BOTH: number;
|
|
8
|
+
|
|
9
|
+
public clear(): void;
|
|
10
|
+
|
|
11
|
+
public getTransformationType(): number;
|
|
12
|
+
|
|
13
|
+
public getAlpha(): number;
|
|
14
|
+
|
|
15
|
+
public getMatrix(): Matrix;
|
|
16
|
+
|
|
17
|
+
public setTransformationType(transformationType: number): void;
|
|
18
|
+
|
|
19
|
+
public set(t: Transformation): void;
|
|
20
|
+
|
|
21
|
+
public setAlpha(alpha: number): void;
|
|
22
|
+
|
|
23
|
+
public compose(t: Transformation) : void;
|
|
24
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Animation } from "./Animation";
|
|
2
|
+
import { Transformation } from "./Transformation";
|
|
3
|
+
|
|
4
|
+
export declare class TranslateAnimation extends Animation {
|
|
5
|
+
public constructor(fromXDelta: number, toXDelta: number, fromYDelta: number, toYDelta: number);
|
|
6
|
+
public constructor(fromXType: number, fromXValue: number, toXType: number, toXValue: number, fromYType: number, fromYValue: number, toYType: number, toYValue: number);
|
|
7
|
+
|
|
8
|
+
public applyTransformation(interpolatedTime: number, t:Transformation): void;
|
|
9
|
+
|
|
10
|
+
public initialize(width, height, parentWidth, parentHeight): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Typeface } from "./Typeface";
|
|
2
|
+
|
|
3
|
+
export declare class TypefaceFactory {
|
|
4
|
+
public static getInstance(): TypefaceFactory;
|
|
5
|
+
|
|
6
|
+
public create(name: string, style?: Typeface.TypefaceStyle): Typeface;
|
|
7
|
+
|
|
8
|
+
public load(name: string, url: string, style?: Typeface.TypefaceStyle,): Promise<Typeface>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { Interface } from "@compass-framework/library";
|
|
2
|
+
import { Animator } from "./Animator";
|
|
3
|
+
import { Context } from "./Context";
|
|
4
|
+
import { PropertyValuesHolder } from "./PropertyValuesHolder";
|
|
5
|
+
import { TimeInterpolator } from "./TimeInterpolator";
|
|
6
|
+
import { TypeEvaluator } from "./TypeEvaluator";
|
|
7
|
+
|
|
8
|
+
export declare class ValueAnimator extends Animator {
|
|
9
|
+
public static getCurrentAnimationsCount(): number;
|
|
10
|
+
|
|
11
|
+
public static getFrameDelay(): number;
|
|
12
|
+
|
|
13
|
+
public static setFrameDelay(frameDelay: number): void;
|
|
14
|
+
|
|
15
|
+
public static ofInt(context: Context, ...values: number[]): ValueAnimator;
|
|
16
|
+
|
|
17
|
+
public static ofFloat(context: Context, ...values: number[]): ValueAnimator;
|
|
18
|
+
|
|
19
|
+
public static ofDouble(context: Context, ...values: number[]): ValueAnimator;
|
|
20
|
+
|
|
21
|
+
public static ofLong(context: Context, ...values: number[]): ValueAnimator;
|
|
22
|
+
|
|
23
|
+
public static ofObject(context: Context, evaluator: TypeEvaluator, ...values: Object[]): ValueAnimator;
|
|
24
|
+
|
|
25
|
+
public static ofPropertyValuesHolder(context: Context, ...values: PropertyValuesHolder[]): ValueAnimator;
|
|
26
|
+
|
|
27
|
+
public static ANIMATION_START;
|
|
28
|
+
public static ANIMATION_FRAME;
|
|
29
|
+
public static DEFAULT_FRAME_DELAY;
|
|
30
|
+
|
|
31
|
+
public static STOPPED;
|
|
32
|
+
public static RUNNING;
|
|
33
|
+
public static CANCELED;
|
|
34
|
+
public static ENDED;
|
|
35
|
+
public static SEEKED;
|
|
36
|
+
|
|
37
|
+
public static RESTART;
|
|
38
|
+
public static REVERSE;
|
|
39
|
+
public static INFINITE;
|
|
40
|
+
|
|
41
|
+
public isRunning(): boolean;
|
|
42
|
+
|
|
43
|
+
public start(): void;
|
|
44
|
+
public start(playBackwards: boolean): void;
|
|
45
|
+
|
|
46
|
+
public cancel(): void;
|
|
47
|
+
|
|
48
|
+
public end(): void;
|
|
49
|
+
|
|
50
|
+
public reverse(): void;
|
|
51
|
+
|
|
52
|
+
public addUpdateListener(listener: ValueAnimator.AnimatorUpdateListener): void;
|
|
53
|
+
|
|
54
|
+
public removeAllUpdateListeners(): void;
|
|
55
|
+
|
|
56
|
+
public removeUpdateListener(listener: ValueAnimator.AnimatorUpdateListener): void;
|
|
57
|
+
|
|
58
|
+
public getPlayingState(): number;
|
|
59
|
+
|
|
60
|
+
public getRepeatMode(): number;
|
|
61
|
+
|
|
62
|
+
public getValues(): PropertyValuesHolder[];
|
|
63
|
+
|
|
64
|
+
public getInterpolator(): TimeInterpolator;
|
|
65
|
+
|
|
66
|
+
public getAnimatedValue(): Object;
|
|
67
|
+
public getAnimatedValue(propertyName: string): Object;
|
|
68
|
+
|
|
69
|
+
public getRepeatCount(): number;
|
|
70
|
+
|
|
71
|
+
public getDuration(): number;
|
|
72
|
+
|
|
73
|
+
public getCurrentPlayTime(): number;
|
|
74
|
+
|
|
75
|
+
public getStartDelay(): number;
|
|
76
|
+
|
|
77
|
+
public getContext(): Context;
|
|
78
|
+
|
|
79
|
+
public setIntValues(...values: number[]): void;
|
|
80
|
+
|
|
81
|
+
public setFloatValues(...values: number[]) : void;
|
|
82
|
+
|
|
83
|
+
public setLongValues(...values: number[]): void;
|
|
84
|
+
|
|
85
|
+
public setDoubleValues(...values: number[]): void;
|
|
86
|
+
|
|
87
|
+
public setObjectValues(...values: Object[]): void;
|
|
88
|
+
|
|
89
|
+
public setValues(...values: PropertyValuesHolder[]): void;
|
|
90
|
+
|
|
91
|
+
public setStartDelay(startDelay: number): void;
|
|
92
|
+
|
|
93
|
+
public setRepeatMode(value: number): void;
|
|
94
|
+
|
|
95
|
+
public setRepeatCount(value: number) :void;
|
|
96
|
+
|
|
97
|
+
public setEvaluator(value: TypeEvaluator) : void;
|
|
98
|
+
|
|
99
|
+
public setDuration(duration: number): Animator;
|
|
100
|
+
|
|
101
|
+
public setInterpolator(value: TimeInterpolator): void;
|
|
102
|
+
|
|
103
|
+
public setCurrentPlayTime(playTime: number): void;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export namespace ValueAnimator {
|
|
107
|
+
export const AnimatorUpdateListenerInterface: Interface<AnimatorUpdateListener>;
|
|
108
|
+
export interface AnimatorUpdateListener {
|
|
109
|
+
onAnimationUpdate(animation: ValueAnimator): void;
|
|
110
|
+
}
|
|
111
|
+
}
|