@compass-framework/core 1.2.59 → 1.2.61
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/activity/Activity.d.ts +24 -0
- package/@types/activity/ActivityType.ts +3 -0
- package/@types/activity/ExtraValue.d.ts +1 -0
- package/@types/activity/Intent.ts +14 -0
- package/@types/{AlphaAnimation.d.ts → animation/AlphaAnimation.d.ts} +1 -1
- package/@types/{Animation.d.ts → animation/Animation.d.ts} +3 -3
- package/@types/{AnimationSet.d.ts → animation/AnimationSet.d.ts} +1 -1
- package/@types/{Interpolator.d.ts → animation/Interpolator.d.ts} +1 -1
- package/@types/{LayoutAnimationController.d.ts → animation/LayoutAnimationController.d.ts} +3 -3
- package/@types/{RotateAnimation.d.ts → animation/RotateAnimation.d.ts} +1 -1
- package/@types/{ScaleAnimation.d.ts → animation/ScaleAnimation.d.ts} +1 -1
- package/@types/{Transformation.d.ts → animation/Transformation.d.ts} +2 -2
- package/@types/{TranslateAnimation.d.ts → animation/TranslateAnimation.d.ts} +1 -1
- package/@types/{Animator.d.ts → animator/Animator.d.ts} +1 -1
- package/@types/{ValueAnimator.d.ts → animator/ValueAnimator.d.ts} +1 -1
- package/@types/app/Application.d.ts +11 -0
- package/@types/app/ApplicationConfig.d.ts +5 -0
- package/@types/app/ApplicationCreator.d.ts +9 -0
- package/@types/app/ApplicationCreatorConfig.d.ts +10 -0
- package/@types/{Canvas.d.ts → canvas/Canvas.d.ts} +1 -1
- package/@types/{Color.d.ts → canvas/Color.d.ts} +2 -2
- package/@types/{CornerPathEffect.d.ts → canvas/CornerPathEffect.d.ts} +1 -1
- package/@types/{LinearGradient.d.ts → canvas/LinearGradient.d.ts} +1 -1
- package/@types/{Matrix.d.ts → canvas/Matrix.d.ts} +1 -1
- package/@types/canvas/Paint.d.ts +475 -0
- package/@types/{Path.d.ts → canvas/Path.d.ts} +1 -1
- package/@types/{Picture.d.ts → canvas/Picture.d.ts} +2 -2
- package/@types/{Rect.d.ts → canvas/Rect.d.ts} +1 -1
- package/@types/{Shadow.d.ts → canvas/Shadow.d.ts} +1 -1
- package/@types/{Surface.d.ts → canvas/Surface.d.ts} +2 -2
- package/@types/{TypefaceFactory.d.ts → canvas/TypefaceFactory.d.ts} +1 -1
- package/@types/{ArrayAdapter.d.ts → content/ArrayAdapter.d.ts} +2 -2
- package/@types/{AttributeSet.d.ts → content/AttributeSet.d.ts} +3 -3
- package/@types/{BaseAdapter.d.ts → content/BaseAdapter.d.ts} +3 -3
- package/@types/content/Context.d.ts +28 -0
- package/@types/content/ContextWrapper.d.ts +29 -0
- package/@types/{LayoutInflater.ts → content/LayoutInflater.ts} +2 -2
- package/@types/{Resources.d.ts → content/Resources.d.ts} +3 -6
- package/@types/{XMLViewFactoryRegistry.d.ts → content/ViewFactoryRegistry.d.ts} +10 -10
- package/@types/{MouseCursor.ts → display/MouseCursor.ts} +1 -1
- package/@types/{SurfaceProvider.d.ts → display/SurfaceProvider.d.ts} +2 -2
- package/@types/{ColorDrawable.d.ts → drawable/ColorDrawable.d.ts} +2 -2
- package/@types/{CornersDrawable.d.ts → drawable/CornersDrawable.d.ts} +2 -2
- package/@types/{Drawable.d.ts → drawable/Drawable.d.ts} +7 -7
- package/@types/{ImageDrawable.ts → drawable/ImageDrawable.ts} +3 -3
- package/@types/{LayerDrawable.d.ts → drawable/LayerDrawable.d.ts} +3 -3
- package/@types/{LinearGradientDrawable.d.ts → drawable/LinearGradientDrawable.d.ts} +1 -1
- package/@types/{PictureDrawable.d.ts → drawable/PictureDrawable.d.ts} +4 -4
- package/@types/{Resolver.ts → evaluate/Resolver.ts} +1 -1
- package/@types/host/CanvaskitPlatformHostConfig.d.ts +3 -0
- package/@types/host/NodePlatformHostConfig.d.ts +4 -0
- package/@types/host/WebPlatformHostConfig.d.ts +3 -0
- package/@types/imm/InputMethod.d.ts +3 -0
- package/@types/{AbsoluteLayout.d.ts → layout/AbsoluteLayout.d.ts} +1 -1
- package/@types/{FrameLayout.d.ts → layout/FrameLayout.d.ts} +1 -1
- package/@types/{GridLayout.d.ts → layout/GridLayout.d.ts} +1 -1
- package/@types/{GridLayoutAnimationController.d.ts → layout/GridLayoutAnimationController.d.ts} +1 -1
- package/@types/{LinearLayout.d.ts → layout/LinearLayout.d.ts} +1 -1
- package/@types/{RelativeLayout.d.ts → layout/RelativeLayout.d.ts} +1 -1
- package/@types/{TabBarLayout.d.ts → layout/TabBarLayout.d.ts} +1 -1
- package/@types/{TableLayout.d.ts → layout/TableLayout.d.ts} +1 -1
- package/@types/{TableRow.d.ts → layout/TableRow.d.ts} +1 -1
- package/@types/{DoubleClick.d.ts → misc/DoubleClick.d.ts} +2 -2
- package/@types/{DoubleClickListener.d.ts → misc/DoubleClickListener.d.ts} +2 -2
- package/@types/{ContextUtils.d.ts → shared/ContextUtils.d.ts} +1 -1
- package/@types/view/Gravity.d.ts +41 -0
- package/@types/{Outline.d.ts → view/Outline.d.ts} +2 -2
- package/@types/{View.d.ts → view/View.d.ts} +477 -15
- package/@types/{ViewGroup.d.ts → view/ViewGroup.d.ts} +4 -4
- package/@types/{ViewGroupOverlay.d.ts → view/ViewGroupOverlay.d.ts} +1 -1
- package/@types/{ViewOverlay.d.ts → view/ViewOverlay.d.ts} +1 -1
- package/@types/{ViewSlot.d.ts → view/ViewSlot.d.ts} +2 -2
- package/@types/{ViewTreeObserver.d.ts → view/ViewTreeObserver.d.ts} +1 -1
- package/@types/{Adapter.d.ts → widget/Adapter.d.ts} +2 -2
- package/@types/widget/DecorView.ts +5 -0
- package/@types/{EditRichText.d.ts → widget/EditRichText.d.ts} +4 -4
- package/@types/{EditText.d.ts → widget/EditText.d.ts} +1 -1
- package/@types/{FreezeLayoutViewGroup.d.ts → widget/FreezeLayoutViewGroup.d.ts} +1 -1
- package/@types/{GridView.d.ts → widget/GridView.d.ts} +1 -1
- package/@types/{HorizontalScrollView.ts → widget/HorizontalScrollView.ts} +1 -1
- package/@types/{Image.d.ts → widget/Image.d.ts} +1 -1
- package/@types/{ImageView.d.ts → widget/ImageView.d.ts} +1 -1
- package/@types/{ListView.d.ts → widget/ListView.d.ts} +1 -1
- package/@types/{ScrollView.d.ts → widget/ScrollView.d.ts} +1 -1
- package/@types/{Slot.d.ts → widget/Slot.d.ts} +1 -1
- package/@types/{TextView.d.ts → widget/TextView.d.ts} +1 -1
- package/@types/window/ApplicationWindow.ts +12 -0
- package/@types/window/PopupWindow.d.ts +41 -0
- package/@types/window/Window.d.ts +24 -0
- package/@types/{WindowManager.d.ts → window/WindowManager.d.ts} +8 -6
- package/index.d.ts +118 -111
- package/package.json +1 -1
- package/@types/Application.d.ts +0 -58
- package/@types/ApplicationWindow.d.ts +0 -47
- package/@types/Assets.d.ts +0 -6
- package/@types/Context.d.ts +0 -29
- package/@types/Gravity.d.ts +0 -41
- package/@types/InputMethodService.d.ts +0 -6
- package/@types/Paint.d.ts +0 -202
- package/@types/PopupWindow.d.ts +0 -73
- package/@types/ResourcesInflater.d.ts +0 -13
- package/@types/Window.d.ts +0 -45
- package/@types/XMLLayoutParser.d.ts +0 -12
- package/@types/XMLResourcesParser.d.ts +0 -11
- /package/@types/{AccelerateDecelerateInterpolator.d.ts → animation/AccelerateDecelerateInterpolator.d.ts} +0 -0
- /package/@types/{AccelerateInterpolator.d.ts → animation/AccelerateInterpolator.d.ts} +0 -0
- /package/@types/{BounceInterpolator.d.ts → animation/BounceInterpolator.d.ts} +0 -0
- /package/@types/{CycleInterpolator.d.ts → animation/CycleInterpolator.d.ts} +0 -0
- /package/@types/{DecelerateInterpolator.d.ts → animation/DecelerateInterpolator.d.ts} +0 -0
- /package/@types/{LinearInterpolator.d.ts → animation/LinearInterpolator.d.ts} +0 -0
- /package/@types/{PropertyValuesHolder.d.ts → animator/PropertyValuesHolder.d.ts} +0 -0
- /package/@types/{TimeInterpolator.d.ts → animator/TimeInterpolator.d.ts} +0 -0
- /package/@types/{TypeEvaluator.d.ts → animator/TypeEvaluator.d.ts} +0 -0
- /package/@types/{BlendMode.ts → canvas/BlendMode.ts} +0 -0
- /package/@types/{ColorFilter.ts → canvas/ColorFilter.ts} +0 -0
- /package/@types/{ImageFilter.ts → canvas/ImageFilter.ts} +0 -0
- /package/@types/{PathEffect.ts → canvas/PathEffect.ts} +0 -0
- /package/@types/{RendererBackend.ts → canvas/RendererBackend.ts} +0 -0
- /package/@types/{Shader.d.ts → canvas/Shader.d.ts} +0 -0
- /package/@types/{Typeface.d.ts → canvas/Typeface.d.ts} +0 -0
- /package/@types/{Configuration.d.ts → content/Configuration.d.ts} +0 -0
- /package/@types/{DisplayMetrics.d.ts → content/DisplayMetrics.d.ts} +0 -0
- /package/@types/{PixelFormat.ts → content/PixelFormat.ts} +0 -0
- /package/@types/{Theme.d.ts → content/Theme.d.ts} +0 -0
- /package/@types/{Environment.ts → evaluate/Environment.ts} +0 -0
- /package/@types/{KeyEvent.d.ts → event/KeyEvent.d.ts} +0 -0
- /package/@types/{MotionEvent.d.ts → event/MotionEvent.d.ts} +0 -0
- /package/@types/{Editable.d.ts → text/Editable.d.ts} +0 -0
- /package/@types/{ViewOutlineProvider.d.ts → view/ViewOutlineProvider.d.ts} +0 -0
- /package/@types/{ViewParent.d.ts → view/ViewParent.d.ts} +0 -0
- /package/@types/{Button.d.ts → widget/Button.d.ts} +0 -0
- /package/@types/{FreezeAbsoluteLayout.d.ts → widget/FreezeAbsoluteLayout.d.ts} +0 -0
- /package/@types/{ListAdapter.d.ts → widget/ListAdapter.d.ts} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Implements } from "@compass-framework/library";
|
|
2
2
|
import { View } from "./View";
|
|
3
|
-
import { AttributeSet } from "
|
|
4
|
-
import { Configuration } from "
|
|
3
|
+
import { AttributeSet } from "../content/AttributeSet";
|
|
4
|
+
import { Configuration } from "../content/Configuration";
|
|
5
5
|
import { ViewParent } from "./ViewParent";
|
|
6
|
-
import { MotionEvent } from "
|
|
7
|
-
import { DisplayMetrics } from "
|
|
6
|
+
import { MotionEvent } from "../event/MotionEvent";
|
|
7
|
+
import { DisplayMetrics } from "../content/DisplayMetrics";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* 视图组,可容纳并管理子视图的测量、布局与触摸分发。
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Implements } from "@compass-framework/library";
|
|
2
|
-
import { FrameLayout } from "
|
|
3
|
-
import { Slot } from "
|
|
2
|
+
import { FrameLayout } from "../layout/FrameLayout";
|
|
3
|
+
import { Slot } from "../widget/Slot";
|
|
4
4
|
import { View } from "./View";
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FrameLayout } from "
|
|
2
|
-
import { Context } from "
|
|
3
|
-
import { AttributeSet } from "
|
|
4
|
-
import { View } from "
|
|
1
|
+
import { FrameLayout } from "../layout/FrameLayout";
|
|
2
|
+
import { Context } from "../content/Context";
|
|
3
|
+
import { AttributeSet } from "../content/AttributeSet";
|
|
4
|
+
import { View } from "../view/View";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* 富文本编辑器,支持 HTML 互转与选区样式操作。
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Context } from "../content/Context";
|
|
2
|
+
import { View } from "../view/View";
|
|
3
|
+
import { DecorView } from "../widget/DecorView";
|
|
4
|
+
import { Window } from "./Window";
|
|
5
|
+
|
|
6
|
+
export declare class ApplicationWindow extends Window {
|
|
7
|
+
public getCurrentFocus(): View;
|
|
8
|
+
|
|
9
|
+
public getContext(): Context;
|
|
10
|
+
|
|
11
|
+
public getDecorView(): DecorView;
|
|
12
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { WindowManager } from "./WindowManager";
|
|
2
|
+
import { View } from "../view/View";
|
|
3
|
+
import { Context } from "../content/Context";
|
|
4
|
+
import { DecorView } from "../widget/DecorView";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* 弹出窗口,在指定位置展示浮动内容视图。
|
|
8
|
+
*/
|
|
9
|
+
export declare class PopupWindow {
|
|
10
|
+
public constructor();
|
|
11
|
+
|
|
12
|
+
public showAtLocation(parent: View, gravity: number, x: number, y: number): void;
|
|
13
|
+
|
|
14
|
+
public isShowing() : boolean;
|
|
15
|
+
|
|
16
|
+
public isOutsideTouchable():boolean;
|
|
17
|
+
|
|
18
|
+
public dismiss(): void;
|
|
19
|
+
|
|
20
|
+
public update(x: number, y: number, width: number, height: number): void;
|
|
21
|
+
|
|
22
|
+
public getDecorView(): DecorView;
|
|
23
|
+
|
|
24
|
+
public getContentView(): View;
|
|
25
|
+
|
|
26
|
+
public getOnGenericMotionListener(): View.OnGenericMotionListener;
|
|
27
|
+
|
|
28
|
+
public getOnTouchListener(): View.OnTouchListener;
|
|
29
|
+
|
|
30
|
+
public getContext(): Context;
|
|
31
|
+
|
|
32
|
+
public getLayoutParams(): WindowManager.LayoutParams;
|
|
33
|
+
|
|
34
|
+
public setOnTouchListener(l: View.OnTouchListener): void;
|
|
35
|
+
|
|
36
|
+
public setContentView(contentView: View): void;
|
|
37
|
+
|
|
38
|
+
public setOutsideTouchable(touchable: boolean):void;
|
|
39
|
+
|
|
40
|
+
public setOnGenericMotionListener(l: View.OnGenericMotionListener): void;
|
|
41
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ArrayList } from "@compass-framework/library";
|
|
2
|
+
import { View } from "../view/View";
|
|
3
|
+
import { DecorView } from "../widget/DecorView";
|
|
4
|
+
import { Context } from "../content/Context";
|
|
5
|
+
import { WindowManager } from "./WindowManager";
|
|
6
|
+
|
|
7
|
+
export declare abstract class Window {
|
|
8
|
+
public findViewById(id: number): View;
|
|
9
|
+
public findViewById(id: string): View;
|
|
10
|
+
|
|
11
|
+
public findViewByTag(tag: string): View;
|
|
12
|
+
|
|
13
|
+
public findViewsByTag(tag: string): ArrayList<View>;
|
|
14
|
+
|
|
15
|
+
public abstract getCurrentFocus(): View;
|
|
16
|
+
|
|
17
|
+
public abstract getContext(): Context;
|
|
18
|
+
|
|
19
|
+
public abstract getDecorView(): DecorView;
|
|
20
|
+
|
|
21
|
+
public getAttributes(): WindowManager.LayoutParams;
|
|
22
|
+
|
|
23
|
+
public setAttributes(a: WindowManager.LayoutParams): void;
|
|
24
|
+
}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { ViewGroup } from "
|
|
1
|
+
import { ViewGroup } from "../view/ViewGroup";
|
|
2
|
+
import { View } from "../view/View";
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* 窗口管理器,负责添加、移除与更新窗口布局。
|
|
5
6
|
*/
|
|
6
7
|
export declare class WindowManager {
|
|
7
|
-
public
|
|
8
|
-
public
|
|
8
|
+
public addView(view: View): void;
|
|
9
|
+
public addView(view: View, params: WindowManager.LayoutParams): void;
|
|
10
|
+
public addView(view: View, params: WindowManager.LayoutParams, nest: boolean): void;
|
|
9
11
|
|
|
10
|
-
public
|
|
12
|
+
public removeView(view: View): void;
|
|
11
13
|
|
|
12
|
-
public
|
|
13
|
-
public
|
|
14
|
+
public updateViewLayout(view: View): void;
|
|
15
|
+
public updateViewLayout(view: View, params: WindowManager.LayoutParams): void;
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
/**
|
package/index.d.ts
CHANGED
|
@@ -1,111 +1,118 @@
|
|
|
1
|
-
export * from "./@types/
|
|
2
|
-
export * from "./@types/
|
|
3
|
-
export * from "./@types/
|
|
4
|
-
export * from "./@types/
|
|
5
|
-
export * from "./@types/
|
|
6
|
-
export * from "./@types/
|
|
7
|
-
export * from "./@types/
|
|
8
|
-
export * from "./@types/
|
|
9
|
-
export * from "./@types/
|
|
10
|
-
export * from "./@types/
|
|
11
|
-
export * from "./@types/
|
|
12
|
-
export * from "./@types/
|
|
13
|
-
|
|
14
|
-
export * from "./@types/
|
|
15
|
-
export * from "./@types/
|
|
16
|
-
|
|
17
|
-
export * from "./@types/
|
|
18
|
-
export * from "./@types/
|
|
19
|
-
export * from "./@types/
|
|
20
|
-
|
|
21
|
-
export * from "./@types/
|
|
22
|
-
export * from "./@types/
|
|
23
|
-
export * from "./@types/
|
|
24
|
-
export * from "./@types/
|
|
25
|
-
export * from "./@types/
|
|
26
|
-
export * from "./@types/
|
|
27
|
-
|
|
28
|
-
export * from "./@types/
|
|
29
|
-
export * from "./@types/
|
|
30
|
-
export * from "./@types/
|
|
31
|
-
export * from "./@types/
|
|
32
|
-
export * from "./@types/
|
|
33
|
-
export * from "./@types/
|
|
34
|
-
export * from "./@types/
|
|
35
|
-
|
|
36
|
-
export * from "./@types/
|
|
37
|
-
export * from "./@types/
|
|
38
|
-
export * from "./@types/
|
|
39
|
-
export * from "./@types/
|
|
40
|
-
export * from "./@types/
|
|
41
|
-
export * from "./@types/
|
|
42
|
-
export * from "./@types/
|
|
43
|
-
export * from "./@types/
|
|
44
|
-
export * from "./@types/
|
|
45
|
-
|
|
46
|
-
export * from "./@types/
|
|
47
|
-
export * from "./@types/
|
|
48
|
-
export * from "./@types/
|
|
49
|
-
export * from "./@types/
|
|
50
|
-
export * from "./@types/
|
|
51
|
-
export * from "./@types/
|
|
52
|
-
export * from "./@types/
|
|
53
|
-
export * from "./@types/
|
|
54
|
-
export * from "./@types/
|
|
55
|
-
export * from "./@types/
|
|
56
|
-
export * from "./@types/
|
|
57
|
-
export * from "./@types/
|
|
58
|
-
export * from "./@types/
|
|
59
|
-
export * from "./@types/
|
|
60
|
-
export * from "./@types/
|
|
61
|
-
export * from "./@types/
|
|
62
|
-
export * from "./@types/
|
|
63
|
-
export * from "./@types/
|
|
64
|
-
export * from "./@types/
|
|
65
|
-
|
|
66
|
-
export * from "./@types/
|
|
67
|
-
export * from "./@types/
|
|
68
|
-
export * from "./@types/
|
|
69
|
-
export * from "./@types/
|
|
70
|
-
export * from "./@types/
|
|
71
|
-
export * from "./@types/
|
|
72
|
-
export * from "./@types/
|
|
73
|
-
export * from "./@types/
|
|
74
|
-
|
|
75
|
-
export * from "./@types/
|
|
76
|
-
export * from "./@types/
|
|
77
|
-
export * from "./@types/
|
|
78
|
-
export * from "./@types/
|
|
79
|
-
export * from "./@types/
|
|
80
|
-
|
|
81
|
-
export * from "./@types/
|
|
82
|
-
export * from "./@types/
|
|
83
|
-
export * from "./@types/
|
|
84
|
-
export * from "./@types/
|
|
85
|
-
export * from "./@types/
|
|
86
|
-
|
|
87
|
-
export * from "./@types/
|
|
88
|
-
export * from "./@types/
|
|
89
|
-
export * from "./@types/
|
|
90
|
-
export * from "./@types/
|
|
91
|
-
|
|
92
|
-
export * from "./@types/TimeInterpolator";
|
|
93
|
-
export * from "./@types/
|
|
94
|
-
export * from "./@types/
|
|
95
|
-
export * from "./@types/
|
|
96
|
-
export * from "./@types/
|
|
97
|
-
|
|
98
|
-
export * from "./@types/
|
|
99
|
-
export * from "./@types/
|
|
100
|
-
export * from "./@types/
|
|
101
|
-
export * from "./@types/
|
|
102
|
-
export * from "./@types/
|
|
103
|
-
export * from "./@types/
|
|
104
|
-
export * from "./@types/
|
|
105
|
-
export * from "./@types/
|
|
106
|
-
export * from "./@types/
|
|
107
|
-
export * from "./@types/
|
|
108
|
-
|
|
109
|
-
export * from "./@types/
|
|
110
|
-
export * from "./@types/
|
|
111
|
-
export * from "./@types/
|
|
1
|
+
export * from "./@types/widget/Adapter";
|
|
2
|
+
export * from "./@types/content/BaseAdapter";
|
|
3
|
+
export * from "./@types/content/ArrayAdapter";
|
|
4
|
+
export * from "./@types/widget/Button";
|
|
5
|
+
export * from "./@types/widget/EditRichText";
|
|
6
|
+
export * from "./@types/widget/EditText";
|
|
7
|
+
export * from "./@types/widget/FreezeAbsoluteLayout";
|
|
8
|
+
export * from "./@types/widget/FreezeLayoutViewGroup";
|
|
9
|
+
export * from "./@types/widget/GridView";
|
|
10
|
+
export * from "./@types/widget/HorizontalScrollView";
|
|
11
|
+
export * from "./@types/widget/Image";
|
|
12
|
+
export * from "./@types/widget/ImageView";
|
|
13
|
+
|
|
14
|
+
export * from "./@types/misc/DoubleClick";
|
|
15
|
+
export * from "./@types/misc/DoubleClickListener";
|
|
16
|
+
|
|
17
|
+
export * from "./@types/app/Application";
|
|
18
|
+
export * from "./@types/text/Editable";
|
|
19
|
+
export * from "./@types/shared/ContextUtils";
|
|
20
|
+
|
|
21
|
+
export * from "./@types/layout/FrameLayout";
|
|
22
|
+
export * from "./@types/layout/GridLayout";
|
|
23
|
+
export * from "./@types/layout/AbsoluteLayout";
|
|
24
|
+
export * from "./@types/layout/LinearLayout";
|
|
25
|
+
export * from "./@types/layout/RelativeLayout";
|
|
26
|
+
export * from "./@types/layout/GridLayoutAnimationController";
|
|
27
|
+
|
|
28
|
+
export * from "./@types/drawable/CornersDrawable";
|
|
29
|
+
export * from "./@types/drawable/Drawable";
|
|
30
|
+
export * from "./@types/drawable/ImageDrawable";
|
|
31
|
+
export * from "./@types/drawable/LayerDrawable";
|
|
32
|
+
export * from "./@types/drawable/LinearGradientDrawable";
|
|
33
|
+
export * from "./@types/drawable/PictureDrawable";
|
|
34
|
+
export * from "./@types/drawable/ColorDrawable";
|
|
35
|
+
|
|
36
|
+
export * from "./@types/content/AttributeSet";
|
|
37
|
+
export * from "./@types/content/Configuration";
|
|
38
|
+
export * from "./@types/content/Context";
|
|
39
|
+
export * from "./@types/content/DisplayMetrics";
|
|
40
|
+
export * from "./@types/evaluate/Environment";
|
|
41
|
+
export * from "./@types/content/LayoutInflater";
|
|
42
|
+
export * from "./@types/content/PixelFormat";
|
|
43
|
+
export * from "./@types/evaluate/Resolver";
|
|
44
|
+
export * from "./@types/content/Resources";
|
|
45
|
+
|
|
46
|
+
export * from "./@types/canvas/BlendMode";
|
|
47
|
+
export * from "./@types/canvas/Canvas";
|
|
48
|
+
export * from "./@types/canvas/Color";
|
|
49
|
+
export * from "./@types/canvas/ColorFilter";
|
|
50
|
+
export * from "./@types/canvas/CornerPathEffect";
|
|
51
|
+
export * from "./@types/canvas/ImageFilter";
|
|
52
|
+
export * from "./@types/canvas/LinearGradient";
|
|
53
|
+
export * from "./@types/canvas/Paint";
|
|
54
|
+
export * from "./@types/canvas/Path";
|
|
55
|
+
export * from "./@types/canvas/Rect";
|
|
56
|
+
export * from "./@types/canvas/Matrix";
|
|
57
|
+
export * from "./@types/canvas/RendererBackend";
|
|
58
|
+
export * from "./@types/canvas/PathEffect";
|
|
59
|
+
export * from "./@types/canvas/Picture";
|
|
60
|
+
export * from "./@types/canvas/Shader";
|
|
61
|
+
export * from "./@types/canvas/Shadow";
|
|
62
|
+
export * from "./@types/canvas/Surface";
|
|
63
|
+
export * from "./@types/canvas/Typeface";
|
|
64
|
+
export * from "./@types/canvas/TypefaceFactory";
|
|
65
|
+
|
|
66
|
+
export * from "./@types/animation/AccelerateDecelerateInterpolator";
|
|
67
|
+
export * from "./@types/animation/AccelerateInterpolator";
|
|
68
|
+
export * from "./@types/animation/AlphaAnimation";
|
|
69
|
+
export * from "./@types/animation/Animation";
|
|
70
|
+
export * from "./@types/animation/AnimationSet";
|
|
71
|
+
export * from "./@types/animation/BounceInterpolator";
|
|
72
|
+
export * from "./@types/animation/CycleInterpolator";
|
|
73
|
+
export * from "./@types/animation/DecelerateInterpolator";
|
|
74
|
+
|
|
75
|
+
export * from "./@types/widget/Slot";
|
|
76
|
+
export * from "./@types/widget/TextView";
|
|
77
|
+
export * from "./@types/widget/ListAdapter";
|
|
78
|
+
export * from "./@types/widget/ListView";
|
|
79
|
+
export * from "./@types/widget/ScrollView";
|
|
80
|
+
|
|
81
|
+
export * from "./@types/display/SurfaceProvider";
|
|
82
|
+
export * from "./@types/layout/TableLayout";
|
|
83
|
+
export * from "./@types/layout/TableRow";
|
|
84
|
+
export * from "./@types/content/Theme";
|
|
85
|
+
export * from "./@types/layout/TabBarLayout";
|
|
86
|
+
|
|
87
|
+
export * from "./@types/animation/RotateAnimation";
|
|
88
|
+
export * from "./@types/animation/ScaleAnimation";
|
|
89
|
+
export * from "./@types/animation/Transformation";
|
|
90
|
+
export * from "./@types/animation/TranslateAnimation";
|
|
91
|
+
|
|
92
|
+
export * from "./@types/animator/TimeInterpolator";
|
|
93
|
+
export * from "./@types/animator/TypeEvaluator";
|
|
94
|
+
export * from "./@types/animator/ValueAnimator";
|
|
95
|
+
export * from "./@types/animator/Animator";
|
|
96
|
+
export * from "./@types/animator/PropertyValuesHolder";
|
|
97
|
+
|
|
98
|
+
export * from "./@types/view/Gravity";
|
|
99
|
+
export * from "./@types/view/Outline";
|
|
100
|
+
export * from "./@types/view/View";
|
|
101
|
+
export * from "./@types/view/ViewGroup";
|
|
102
|
+
export * from "./@types/view/ViewGroupOverlay";
|
|
103
|
+
export * from "./@types/view/ViewOutlineProvider";
|
|
104
|
+
export * from "./@types/view/ViewOverlay";
|
|
105
|
+
export * from "./@types/view/ViewParent";
|
|
106
|
+
export * from "./@types/view/ViewSlot";
|
|
107
|
+
export * from "./@types/view/ViewTreeObserver";
|
|
108
|
+
|
|
109
|
+
export * from "./@types/animation/Interpolator";
|
|
110
|
+
export * from "./@types/event/KeyEvent";
|
|
111
|
+
export * from "./@types/animation/LayoutAnimationController";
|
|
112
|
+
export * from "./@types/animation/LinearInterpolator";
|
|
113
|
+
export * from "./@types/event/MotionEvent";
|
|
114
|
+
export * from "./@types/display/MouseCursor";
|
|
115
|
+
|
|
116
|
+
export * from "./@types/window/Window";
|
|
117
|
+
export * from "./@types/window/PopupWindow";
|
|
118
|
+
export * from "./@types/window/WindowManager";
|
package/package.json
CHANGED
package/@types/Application.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Consumer } from "@compass-framework/library";
|
|
2
|
-
import { Context } from "./Context";
|
|
3
|
-
import { RendererBackend } from "./RendererBackend";
|
|
4
|
-
import { Window } from "./Window";
|
|
5
|
-
import { InputMethodService } from "./InputMethodService";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Web 端应用启动配置。
|
|
9
|
-
*/
|
|
10
|
-
export interface WebApplicationConfig {
|
|
11
|
-
ime?: () => InputMethodService
|
|
12
|
-
container?: string | HTMLElement
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* CanvasKit 渲染后端的应用启动配置。
|
|
17
|
-
*/
|
|
18
|
-
export interface CanvaskitApplicationConfig extends WebApplicationConfig {
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Node 端应用启动配置。
|
|
24
|
-
*/
|
|
25
|
-
export interface NodeApplicationConfig {
|
|
26
|
-
width: number;
|
|
27
|
-
height: number;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* 应用程序入口与生命周期管理。
|
|
32
|
-
*/
|
|
33
|
-
export declare interface Application {
|
|
34
|
-
onReady(consumer: Consumer<Context>): void;
|
|
35
|
-
|
|
36
|
-
addWindow(window: Window): void;
|
|
37
|
-
|
|
38
|
-
removeWindow(window: Window): void;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Application 工厂与配置映射。
|
|
43
|
-
*/
|
|
44
|
-
export namespace Application {
|
|
45
|
-
/**
|
|
46
|
-
* 按渲染后端区分的应用配置映射。
|
|
47
|
-
*/
|
|
48
|
-
export interface ApplicationConfig {
|
|
49
|
-
[RendererBackend.CanvasKit]: CanvaskitApplicationConfig,
|
|
50
|
-
[RendererBackend.Web]: WebApplicationConfig,
|
|
51
|
-
[RendererBackend.Node]: NodeApplicationConfig,
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* 按渲染后端创建应用实例。
|
|
56
|
-
*/
|
|
57
|
-
export function create<T extends keyof ApplicationConfig>(render: RendererBackend, config: ApplicationConfig[T]): Application;
|
|
58
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { ArrayList, Implements, 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
|
-
import { ViewGroup } from "./ViewGroup";
|
|
7
|
-
import { Context } from "./Context";
|
|
8
|
-
import { Window } from "./Window";
|
|
9
|
-
import { Configuration } from "./Configuration";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* 应用程序主窗口,承载内容视图与窗口生命周期。
|
|
13
|
-
*/
|
|
14
|
-
@Implements(Window)
|
|
15
|
-
export declare class ApplicationWindow implements Window {
|
|
16
|
-
public constructor();
|
|
17
|
-
public constructor(context: WindowContext);
|
|
18
|
-
|
|
19
|
-
public findViewById(id: number): View;
|
|
20
|
-
public findViewById(id: string): View;
|
|
21
|
-
|
|
22
|
-
public findViewByTag(tag: string): View;
|
|
23
|
-
|
|
24
|
-
public findViewsByTag(tag: string): ArrayList<View>;
|
|
25
|
-
|
|
26
|
-
public onCreate(): void;
|
|
27
|
-
|
|
28
|
-
public onResume(): void;
|
|
29
|
-
|
|
30
|
-
public onDestroy(): void;
|
|
31
|
-
|
|
32
|
-
public onConfigurationChanged(configuration: Configuration): void;
|
|
33
|
-
|
|
34
|
-
public getDecorView(): ViewGroup;
|
|
35
|
-
|
|
36
|
-
public getContentView(): View;
|
|
37
|
-
|
|
38
|
-
public getLayoutParams(): WindowManager.LayoutParams;
|
|
39
|
-
|
|
40
|
-
public getResources(): Resources;
|
|
41
|
-
|
|
42
|
-
public getContext(): Context;
|
|
43
|
-
|
|
44
|
-
public setContentXML(xml: XML): void;
|
|
45
|
-
|
|
46
|
-
public setContentView(view: View): void;
|
|
47
|
-
}
|