@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
package/@types/Context.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Environment } from "./Environment";
|
|
2
|
-
import { Resources } from "./Resources";
|
|
3
|
-
import { XMLViewFactoryRegistry } from "./XMLViewFactoryRegistry";
|
|
4
|
-
import { DisplayMetrics } from "./DisplayMetrics";
|
|
5
|
-
import { MouseCursor } from "./MouseCursor";
|
|
6
|
-
import { RendererBackend } from "./RendererBackend";
|
|
7
|
-
import { WindowManager } from "./WindowManager";
|
|
8
|
-
import { SurfaceProvider } from "./SurfaceProvider";
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* 全局运行时上下文,提供资源、环境与窗口管理等服务。
|
|
12
|
-
*/
|
|
13
|
-
export declare interface Context {
|
|
14
|
-
getDisplayMetrics(): DisplayMetrics
|
|
15
|
-
|
|
16
|
-
getMouseCursor(): MouseCursor
|
|
17
|
-
|
|
18
|
-
getRendererBackend(): RendererBackend
|
|
19
|
-
|
|
20
|
-
getResources(): Resources
|
|
21
|
-
|
|
22
|
-
getSurfaceProvider(): SurfaceProvider
|
|
23
|
-
|
|
24
|
-
getViewFactoryRegistry() :XMLViewFactoryRegistry
|
|
25
|
-
|
|
26
|
-
getEnvironment(): Environment
|
|
27
|
-
|
|
28
|
-
getWindowManager(): WindowManager
|
|
29
|
-
}
|
package/@types/Gravity.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { Rect } from "./Rect";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* 重力对齐常量与布局定位工具。
|
|
5
|
-
*/
|
|
6
|
-
export declare class Gravity {
|
|
7
|
-
public static NO_GRAVITY;
|
|
8
|
-
public static AXIS_PULL_BEFORE;
|
|
9
|
-
public static AXIS_SPECIFIED;
|
|
10
|
-
public static AXIS_PULL_AFTER;
|
|
11
|
-
public static AXIS_CLIP;
|
|
12
|
-
public static AXIS_X_SHIFT;
|
|
13
|
-
public static AXIS_Y_SHIFT;
|
|
14
|
-
public static TOP;
|
|
15
|
-
public static BOTTOM;
|
|
16
|
-
public static LEFT;
|
|
17
|
-
public static RIGHT;
|
|
18
|
-
public static CENTER_VERTICAL;
|
|
19
|
-
public static FILL_VERTICAL;
|
|
20
|
-
public static CENTER_HORIZONTAL;
|
|
21
|
-
public static FILL_HORIZONTAL;
|
|
22
|
-
public static CENTER;
|
|
23
|
-
public static FILL;
|
|
24
|
-
public static CLIP_VERTICAL;
|
|
25
|
-
public static CLIP_HORIZONTAL;
|
|
26
|
-
public static HORIZONTAL_GRAVITY_MASK;
|
|
27
|
-
public static VERTICAL_GRAVITY_MASK;
|
|
28
|
-
public static DISPLAY_CLIP_VERTICAL;
|
|
29
|
-
public static DISPLAY_CLIP_HORIZONTAL;
|
|
30
|
-
|
|
31
|
-
public static convert(type: string, defaultValue?: number): number;
|
|
32
|
-
|
|
33
|
-
public static apply(gravity: number, w: number, h: number, container: Rect, outRect: Rect): void;
|
|
34
|
-
public static apply(gravity: number, w: number, h: number, container: Rect, xAdj: number, yAdj: number, outRect: Rect): void;
|
|
35
|
-
|
|
36
|
-
public static applyDisplay(gravity: number, display: Rect, inoutObj: Rect): void;
|
|
37
|
-
|
|
38
|
-
public static isVertical(gravity: number): boolean;
|
|
39
|
-
|
|
40
|
-
public static isHorizontal(gravity: number): boolean;
|
|
41
|
-
}
|
package/@types/Paint.d.ts
DELETED
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import { CharSequence, InterfaceTemplate } from "@compass-framework/library";
|
|
2
|
-
import { Shader } from "./Shader";
|
|
3
|
-
import { Shadow } from "./Shadow";
|
|
4
|
-
import { Rect } from "./Rect";
|
|
5
|
-
import { Typeface } from "./Typeface";
|
|
6
|
-
import { PathEffect } from "./PathEffect";
|
|
7
|
-
import { Context } from "./Context";
|
|
8
|
-
import { ColorFilter } from "./ColorFilter";
|
|
9
|
-
import { BlendMode } from "./BlendMode";
|
|
10
|
-
import { ImageFilter } from "./ImageFilter";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* 画笔,描述颜色、样式、字体等绘制属性。
|
|
14
|
-
*/
|
|
15
|
-
export interface Paint {
|
|
16
|
-
measureText(text: CharSequence): number;
|
|
17
|
-
measureText(text: CharSequence, start: number, end: number): number;
|
|
18
|
-
|
|
19
|
-
set(paint: Paint): Paint
|
|
20
|
-
|
|
21
|
-
adjustForPixelPerfectLine(pixel: number): void;
|
|
22
|
-
|
|
23
|
-
isAntiAlias(): boolean;
|
|
24
|
-
|
|
25
|
-
isTextSkewX(): boolean;
|
|
26
|
-
|
|
27
|
-
getPixelPerfectLine(): number
|
|
28
|
-
|
|
29
|
-
getFontMetrics(): Paint.FontMetrics
|
|
30
|
-
getFontMetrics(fontMetrics: Paint.FontMetrics): number
|
|
31
|
-
|
|
32
|
-
getTextWidths(text: CharSequence, widths: number[]): number
|
|
33
|
-
getTextWidths(text: CharSequence, start: number, end: number, widths: number[]): number
|
|
34
|
-
getTextWidths(text: string[], index:number, count:number, widths: number[]): number
|
|
35
|
-
|
|
36
|
-
getTextBounds(text: CharSequence, bounds: Rect): void
|
|
37
|
-
getTextBounds(text: CharSequence, start: number, end: number, bounds: Rect): void
|
|
38
|
-
|
|
39
|
-
breakText(text: CharSequence, measureForwards: boolean, maxWidth: number, measuredWidth: number[]): number
|
|
40
|
-
breakText(text: CharSequence, start: number, end: number, measureForwards: boolean, maxWidth: number, measuredWidth: number[]): number
|
|
41
|
-
|
|
42
|
-
getStyle(): Paint.Style;
|
|
43
|
-
|
|
44
|
-
copy(): Paint;
|
|
45
|
-
|
|
46
|
-
getImageFilter(): ImageFilter;
|
|
47
|
-
|
|
48
|
-
getFlags(): number
|
|
49
|
-
|
|
50
|
-
getAlpha(): number
|
|
51
|
-
|
|
52
|
-
getColor(): number
|
|
53
|
-
|
|
54
|
-
getColorString(): string
|
|
55
|
-
|
|
56
|
-
getStrokeJoin(): Paint.Join
|
|
57
|
-
|
|
58
|
-
getStrokeCap(): Paint.Cap
|
|
59
|
-
|
|
60
|
-
getShadow(): Shadow
|
|
61
|
-
|
|
62
|
-
getTextSize(): number
|
|
63
|
-
|
|
64
|
-
getColorFilter(): ColorFilter;
|
|
65
|
-
|
|
66
|
-
getTextAlign(): Paint.Align
|
|
67
|
-
|
|
68
|
-
getShader(): Shader;
|
|
69
|
-
|
|
70
|
-
getStrokeWidth(): number
|
|
71
|
-
|
|
72
|
-
getTextSkewX(): number;
|
|
73
|
-
|
|
74
|
-
getFakeBoldText(): boolean;
|
|
75
|
-
|
|
76
|
-
getBlendMode(): BlendMode;
|
|
77
|
-
|
|
78
|
-
getTypeface(): Typeface;
|
|
79
|
-
|
|
80
|
-
getPathEffect(): PathEffect
|
|
81
|
-
|
|
82
|
-
getTextScaleX(): number;
|
|
83
|
-
|
|
84
|
-
setStrokeWidth(width: number): void
|
|
85
|
-
|
|
86
|
-
setPathEffect(pathEffect: PathEffect): void
|
|
87
|
-
|
|
88
|
-
setAntiAlias(aa: boolean): void;
|
|
89
|
-
|
|
90
|
-
setColor(color: number): void
|
|
91
|
-
|
|
92
|
-
setStrokeJoin(join: Paint.Join): void
|
|
93
|
-
|
|
94
|
-
setTextSize(textSize: number): void
|
|
95
|
-
|
|
96
|
-
setStrokeCap(cap: Paint.Cap): void
|
|
97
|
-
|
|
98
|
-
getFontSpacing(): number;
|
|
99
|
-
|
|
100
|
-
setTextAlign(textAlign: Paint.Align): void
|
|
101
|
-
|
|
102
|
-
setFlags(flags: number): void
|
|
103
|
-
|
|
104
|
-
setImageFilter(imageFilter: ImageFilter): void;
|
|
105
|
-
|
|
106
|
-
setStyle(style: Paint.Style): void
|
|
107
|
-
|
|
108
|
-
setAlpha(a: number): void
|
|
109
|
-
|
|
110
|
-
setShadow(shadow: Shadow): void
|
|
111
|
-
|
|
112
|
-
setShader(shader: Shader): void
|
|
113
|
-
|
|
114
|
-
setColorFilter(filter: ColorFilter): void;
|
|
115
|
-
|
|
116
|
-
setARGB(a: number, r: number, g: number, b: number): void
|
|
117
|
-
|
|
118
|
-
setTypeface(typeface: Typeface): void;
|
|
119
|
-
|
|
120
|
-
setTextScaleX(scaleX: number): void;
|
|
121
|
-
|
|
122
|
-
setTextSkewX(value: number): void;
|
|
123
|
-
|
|
124
|
-
setFakeBoldText(value: boolean): void;
|
|
125
|
-
|
|
126
|
-
setBlendMode(mode: BlendMode): void;
|
|
127
|
-
|
|
128
|
-
setStrikeThruText(value: boolean): void;
|
|
129
|
-
|
|
130
|
-
dispose(): void;
|
|
131
|
-
|
|
132
|
-
toString(): CharSequence;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* Paint 接口的实现基类。
|
|
137
|
-
*/
|
|
138
|
-
export abstract class Paint extends InterfaceTemplate {}
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Paint 相关类型与工厂方法。
|
|
142
|
-
*/
|
|
143
|
-
export namespace Paint {
|
|
144
|
-
export const UNDERLINE_TEXT_FLAG: number;
|
|
145
|
-
export const STRIKE_THRU_TEXT_FLAG: number;
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* 字体度量信息。
|
|
149
|
-
*/
|
|
150
|
-
export class FontMetrics {
|
|
151
|
-
public ascent: number;
|
|
152
|
-
public descent: number;
|
|
153
|
-
public top: number;
|
|
154
|
-
public bottom: number;
|
|
155
|
-
public leading: number;
|
|
156
|
-
public left: number;
|
|
157
|
-
public right: number;
|
|
158
|
-
|
|
159
|
-
public set(metrics: FontMetrics): FontMetrics;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* 描边转角连接样式。
|
|
164
|
-
*/
|
|
165
|
-
export enum Join {
|
|
166
|
-
BEVEL = "bevel",
|
|
167
|
-
MITER = "miter",
|
|
168
|
-
ROUND = "round",
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* 描边端点样式。
|
|
173
|
-
*/
|
|
174
|
-
export enum Cap {
|
|
175
|
-
BUTT = "butt",
|
|
176
|
-
ROUND = "round",
|
|
177
|
-
SQUARE = "square",
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* 填充与描边绘制样式。
|
|
182
|
-
*/
|
|
183
|
-
export enum Style {
|
|
184
|
-
FILL,
|
|
185
|
-
STROKE,
|
|
186
|
-
FILL_AND_STROKE,
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* 文本水平对齐方式。
|
|
191
|
-
*/
|
|
192
|
-
export enum Align {
|
|
193
|
-
LEFT = 'left',
|
|
194
|
-
CENTER = 'center',
|
|
195
|
-
RIGHT = 'right',
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* 创建 Paint 实例。
|
|
200
|
-
*/
|
|
201
|
-
export function create(context: Context): Paint;
|
|
202
|
-
}
|
package/@types/PopupWindow.d.ts
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { ArrayList, Implements, XML } from "@compass-framework/library";
|
|
2
|
-
import { Resources } from "./Resources";
|
|
3
|
-
import { View } from "./View";
|
|
4
|
-
import { ViewGroup } from "./ViewGroup";
|
|
5
|
-
import { WindowManager } from "./WindowManager";
|
|
6
|
-
import { Window } from "./Window";
|
|
7
|
-
import { Configuration } from "./Configuration";
|
|
8
|
-
import { Context } from "./Context";
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* 弹出窗口,在指定位置展示浮动内容视图。
|
|
12
|
-
*/
|
|
13
|
-
@Implements(Window)
|
|
14
|
-
export declare class PopupWindow implements Window {
|
|
15
|
-
public constructor();
|
|
16
|
-
|
|
17
|
-
public findViewById(id: number): View;
|
|
18
|
-
public findViewById(id: string): View;
|
|
19
|
-
|
|
20
|
-
public findViewByTag(tag: string): View;
|
|
21
|
-
|
|
22
|
-
public findViewsByTag(tag: string): ArrayList<View>;
|
|
23
|
-
|
|
24
|
-
public onAttach(context: Context): void;
|
|
25
|
-
|
|
26
|
-
public onCreate(): void;
|
|
27
|
-
|
|
28
|
-
public onResume(): void;
|
|
29
|
-
|
|
30
|
-
public onDestroy(): void;
|
|
31
|
-
|
|
32
|
-
public onDetach(): void;
|
|
33
|
-
|
|
34
|
-
public onConfigurationChanged(configuration: Configuration): void;
|
|
35
|
-
|
|
36
|
-
public showAtLocation(parent: View, gravity: number, x: number, y: number): void;
|
|
37
|
-
|
|
38
|
-
public isShowing() : boolean;
|
|
39
|
-
|
|
40
|
-
public isOutsideTouchable():boolean;
|
|
41
|
-
|
|
42
|
-
public dismiss(): void;
|
|
43
|
-
|
|
44
|
-
public update(x: number, y: number, width: number, height: number): void;
|
|
45
|
-
|
|
46
|
-
public getDecorView(): ViewGroup;
|
|
47
|
-
|
|
48
|
-
public getContentView(): View;
|
|
49
|
-
|
|
50
|
-
public getOnGenericMotionListener(): View.OnGenericMotionListener;
|
|
51
|
-
|
|
52
|
-
public getOnTouchListener(): View.OnTouchListener;
|
|
53
|
-
|
|
54
|
-
public getContext(): Context;
|
|
55
|
-
|
|
56
|
-
public getResources(): Resources;
|
|
57
|
-
|
|
58
|
-
public getWindowLayoutType(): number;
|
|
59
|
-
|
|
60
|
-
public getLayoutParams(): WindowManager.LayoutParams;
|
|
61
|
-
|
|
62
|
-
public setWindowLayoutType(layoutType: number): void;
|
|
63
|
-
|
|
64
|
-
public setOnTouchListener(l: View.OnTouchListener): void;
|
|
65
|
-
|
|
66
|
-
public setOnGenericMotionListener(l: View.OnGenericMotionListener): void;
|
|
67
|
-
|
|
68
|
-
public setContentXML(xml: XML): void;
|
|
69
|
-
|
|
70
|
-
public setOutsideTouchable(touchable: boolean):void;
|
|
71
|
-
|
|
72
|
-
public setContentView(contentView: View): void;
|
|
73
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { XML } from "@compass-framework/library";
|
|
2
|
-
import { Context } from "./Context";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* 资源填充器,将 XML 资源解析并注入 Resources。
|
|
6
|
-
*/
|
|
7
|
-
export declare class ResourcesInflater {
|
|
8
|
-
public static from(context: Context): ResourcesInflater;
|
|
9
|
-
|
|
10
|
-
protected constructor();
|
|
11
|
-
|
|
12
|
-
public inflate(resource: XML): void;
|
|
13
|
-
}
|
package/@types/Window.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { ArrayList, InterfaceTemplate, XML } from "@compass-framework/library";
|
|
2
|
-
import { Resources } from "./Resources";
|
|
3
|
-
import { View } from "./View";
|
|
4
|
-
import { ViewGroup } from "./ViewGroup";
|
|
5
|
-
import { WindowManager } from "./WindowManager";
|
|
6
|
-
import { Context } from "./Context";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* 窗口契约,定义内容视图与生命周期回调。
|
|
10
|
-
*/
|
|
11
|
-
export interface Window {
|
|
12
|
-
findViewsByTag(tag: string): ArrayList<View>;
|
|
13
|
-
|
|
14
|
-
findViewByTag(tag: string): View;
|
|
15
|
-
|
|
16
|
-
findViewById(id: number): View;
|
|
17
|
-
findViewById(id: string): View;
|
|
18
|
-
|
|
19
|
-
onCreate(): void;
|
|
20
|
-
|
|
21
|
-
onResume(): void;
|
|
22
|
-
|
|
23
|
-
onDestroy(): void;
|
|
24
|
-
|
|
25
|
-
getLayoutParams(): WindowManager.LayoutParams;
|
|
26
|
-
|
|
27
|
-
getContext(): Context;
|
|
28
|
-
|
|
29
|
-
getDecorView(): ViewGroup;
|
|
30
|
-
|
|
31
|
-
getContentView(): View;
|
|
32
|
-
|
|
33
|
-
getResources(): Resources;
|
|
34
|
-
|
|
35
|
-
setContentView(view: View): void;
|
|
36
|
-
|
|
37
|
-
setContentXML(xml: XML): void;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Window 接口的实现基类。
|
|
42
|
-
*/
|
|
43
|
-
export class Window extends InterfaceTemplate {
|
|
44
|
-
|
|
45
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Context } from "./Context";
|
|
2
|
-
import { View } from "./View";
|
|
3
|
-
import { ViewGroup } from "./ViewGroup";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* XML 布局解析器,将布局 XML 解析为视图。
|
|
7
|
-
*/
|
|
8
|
-
export declare class XMLLayoutParser {
|
|
9
|
-
public static from(context: Context): XMLLayoutParser;
|
|
10
|
-
|
|
11
|
-
public parseLayoutXML<T = View>(root: ViewGroup, xml: string, attach?: boolean): T;
|
|
12
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { XML } from "@compass-framework/library";
|
|
2
|
-
import { Context } from "./Context";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* XML 资源解析器,解析资源 XML 并写入 Resources。
|
|
6
|
-
*/
|
|
7
|
-
declare class XMLResourcesParser {
|
|
8
|
-
public static from(context: Context): XMLResourcesParser;
|
|
9
|
-
|
|
10
|
-
public parseResourceXML(xml: XML): void;
|
|
11
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|