@compass-framework/core 1.2.60 → 1.2.62

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.
Files changed (134) hide show
  1. package/@types/activity/Activity.d.ts +24 -0
  2. package/@types/activity/ActivityType.ts +3 -0
  3. package/@types/activity/ExtraValue.d.ts +1 -0
  4. package/@types/activity/Intent.ts +14 -0
  5. package/@types/{AlphaAnimation.d.ts → animation/AlphaAnimation.d.ts} +1 -1
  6. package/@types/{Animation.d.ts → animation/Animation.d.ts} +3 -3
  7. package/@types/{AnimationSet.d.ts → animation/AnimationSet.d.ts} +1 -1
  8. package/@types/{Interpolator.d.ts → animation/Interpolator.d.ts} +1 -1
  9. package/@types/{LayoutAnimationController.d.ts → animation/LayoutAnimationController.d.ts} +3 -3
  10. package/@types/{RotateAnimation.d.ts → animation/RotateAnimation.d.ts} +1 -1
  11. package/@types/{ScaleAnimation.d.ts → animation/ScaleAnimation.d.ts} +1 -1
  12. package/@types/{Transformation.d.ts → animation/Transformation.d.ts} +2 -2
  13. package/@types/{TranslateAnimation.d.ts → animation/TranslateAnimation.d.ts} +1 -1
  14. package/@types/{Animator.d.ts → animator/Animator.d.ts} +1 -1
  15. package/@types/{ValueAnimator.d.ts → animator/ValueAnimator.d.ts} +1 -1
  16. package/@types/app/Application.d.ts +11 -0
  17. package/@types/app/ApplicationConfig.d.ts +5 -0
  18. package/@types/app/ApplicationCreator.d.ts +9 -0
  19. package/@types/app/ApplicationCreatorConfig.d.ts +10 -0
  20. package/@types/{Canvas.d.ts → canvas/Canvas.d.ts} +1 -1
  21. package/@types/{CornerPathEffect.d.ts → canvas/CornerPathEffect.d.ts} +1 -1
  22. package/@types/{LinearGradient.d.ts → canvas/LinearGradient.d.ts} +1 -1
  23. package/@types/{Matrix.d.ts → canvas/Matrix.d.ts} +1 -1
  24. package/@types/{Paint.d.ts → canvas/Paint.d.ts} +1 -1
  25. package/@types/{Path.d.ts → canvas/Path.d.ts} +1 -1
  26. package/@types/{Picture.d.ts → canvas/Picture.d.ts} +2 -2
  27. package/@types/{Rect.d.ts → canvas/Rect.d.ts} +1 -1
  28. package/@types/{Shadow.d.ts → canvas/Shadow.d.ts} +1 -1
  29. package/@types/{Surface.d.ts → canvas/Surface.d.ts} +2 -2
  30. package/@types/{TypefaceFactory.d.ts → canvas/TypefaceFactory.d.ts} +1 -1
  31. package/@types/{ArrayAdapter.d.ts → content/ArrayAdapter.d.ts} +2 -2
  32. package/@types/{AttributeSet.d.ts → content/AttributeSet.d.ts} +3 -3
  33. package/@types/{BaseAdapter.d.ts → content/BaseAdapter.d.ts} +3 -3
  34. package/@types/content/Context.d.ts +28 -0
  35. package/@types/content/ContextWrapper.d.ts +29 -0
  36. package/@types/{LayoutInflater.ts → content/LayoutInflater.ts} +2 -2
  37. package/@types/{Resources.d.ts → content/Resources.d.ts} +3 -6
  38. package/@types/{XMLViewFactoryRegistry.d.ts → content/ViewFactoryRegistry.d.ts} +10 -10
  39. package/@types/{MouseCursor.ts → display/MouseCursor.ts} +1 -1
  40. package/@types/{SurfaceProvider.d.ts → display/SurfaceProvider.d.ts} +2 -2
  41. package/@types/{ColorDrawable.d.ts → drawable/ColorDrawable.d.ts} +2 -2
  42. package/@types/{CornersDrawable.d.ts → drawable/CornersDrawable.d.ts} +2 -2
  43. package/@types/{Drawable.d.ts → drawable/Drawable.d.ts} +7 -7
  44. package/@types/{ImageDrawable.ts → drawable/ImageDrawable.ts} +3 -3
  45. package/@types/{LayerDrawable.d.ts → drawable/LayerDrawable.d.ts} +3 -3
  46. package/@types/{LinearGradientDrawable.d.ts → drawable/LinearGradientDrawable.d.ts} +1 -1
  47. package/@types/{PictureDrawable.d.ts → drawable/PictureDrawable.d.ts} +4 -4
  48. package/@types/{Resolver.ts → evaluate/Resolver.ts} +1 -1
  49. package/@types/host/EditContext.d.ts +179 -0
  50. package/@types/host/backend/CanvaskitPlatformHostConfig.d.ts +3 -0
  51. package/@types/host/backend/NodePlatformHostConfig.d.ts +4 -0
  52. package/@types/host/backend/WebPlatformHostConfig.d.ts +3 -0
  53. package/@types/imm/InputConnection.ts +17 -0
  54. package/@types/imm/InputMethod.d.ts +3 -0
  55. package/@types/{AbsoluteLayout.d.ts → layout/AbsoluteLayout.d.ts} +1 -1
  56. package/@types/{FrameLayout.d.ts → layout/FrameLayout.d.ts} +1 -1
  57. package/@types/{GridLayout.d.ts → layout/GridLayout.d.ts} +1 -1
  58. package/@types/{GridLayoutAnimationController.d.ts → layout/GridLayoutAnimationController.d.ts} +1 -1
  59. package/@types/{LinearLayout.d.ts → layout/LinearLayout.d.ts} +1 -1
  60. package/@types/{RelativeLayout.d.ts → layout/RelativeLayout.d.ts} +1 -1
  61. package/@types/{TabBarLayout.d.ts → layout/TabBarLayout.d.ts} +1 -1
  62. package/@types/{TableLayout.d.ts → layout/TableLayout.d.ts} +1 -1
  63. package/@types/{TableRow.d.ts → layout/TableRow.d.ts} +1 -1
  64. package/@types/{DoubleClick.d.ts → misc/DoubleClick.d.ts} +2 -2
  65. package/@types/{DoubleClickListener.d.ts → misc/DoubleClickListener.d.ts} +2 -2
  66. package/@types/{ContextUtils.d.ts → shared/ContextUtils.d.ts} +1 -1
  67. package/@types/text/EditorInfo.d.ts +7 -0
  68. package/@types/{Gravity.d.ts → view/Gravity.d.ts} +1 -1
  69. package/@types/{Outline.d.ts → view/Outline.d.ts} +2 -2
  70. package/@types/{View.d.ts → view/View.d.ts} +14 -14
  71. package/@types/{ViewGroup.d.ts → view/ViewGroup.d.ts} +4 -4
  72. package/@types/{ViewGroupOverlay.d.ts → view/ViewGroupOverlay.d.ts} +1 -1
  73. package/@types/{ViewOverlay.d.ts → view/ViewOverlay.d.ts} +1 -1
  74. package/@types/{ViewSlot.d.ts → view/ViewSlot.d.ts} +2 -2
  75. package/@types/{ViewTreeObserver.d.ts → view/ViewTreeObserver.d.ts} +1 -1
  76. package/@types/{Adapter.d.ts → widget/Adapter.d.ts} +2 -2
  77. package/@types/widget/DecorView.ts +5 -0
  78. package/@types/{EditRichText.d.ts → widget/EditRichText.d.ts} +4 -4
  79. package/@types/{EditText.d.ts → widget/EditText.d.ts} +1 -1
  80. package/@types/{FreezeLayoutViewGroup.d.ts → widget/FreezeLayoutViewGroup.d.ts} +1 -1
  81. package/@types/{GridView.d.ts → widget/GridView.d.ts} +1 -1
  82. package/@types/{HorizontalScrollView.ts → widget/HorizontalScrollView.ts} +1 -1
  83. package/@types/{Image.d.ts → widget/Image.d.ts} +1 -1
  84. package/@types/{ImageView.d.ts → widget/ImageView.d.ts} +1 -1
  85. package/@types/{ListView.d.ts → widget/ListView.d.ts} +1 -1
  86. package/@types/{ScrollView.d.ts → widget/ScrollView.d.ts} +1 -1
  87. package/@types/{Slot.d.ts → widget/Slot.d.ts} +1 -1
  88. package/@types/{TextView.d.ts → widget/TextView.d.ts} +1 -1
  89. package/@types/window/ApplicationWindow.ts +12 -0
  90. package/@types/window/PopupWindow.d.ts +41 -0
  91. package/@types/window/Window.d.ts +24 -0
  92. package/@types/{WindowManager.d.ts → window/WindowManager.d.ts} +8 -6
  93. package/index.d.ts +128 -111
  94. package/package.json +1 -1
  95. package/@types/Application.d.ts +0 -58
  96. package/@types/ApplicationWindow.d.ts +0 -46
  97. package/@types/Assets.d.ts +0 -6
  98. package/@types/Context.d.ts +0 -29
  99. package/@types/InputMethodService.d.ts +0 -6
  100. package/@types/PopupWindow.d.ts +0 -73
  101. package/@types/ResourcesInflater.d.ts +0 -13
  102. package/@types/Window.d.ts +0 -45
  103. package/@types/XMLLayoutParser.d.ts +0 -12
  104. package/@types/XMLResourcesParser.d.ts +0 -11
  105. /package/@types/{AccelerateDecelerateInterpolator.d.ts → animation/AccelerateDecelerateInterpolator.d.ts} +0 -0
  106. /package/@types/{AccelerateInterpolator.d.ts → animation/AccelerateInterpolator.d.ts} +0 -0
  107. /package/@types/{BounceInterpolator.d.ts → animation/BounceInterpolator.d.ts} +0 -0
  108. /package/@types/{CycleInterpolator.d.ts → animation/CycleInterpolator.d.ts} +0 -0
  109. /package/@types/{DecelerateInterpolator.d.ts → animation/DecelerateInterpolator.d.ts} +0 -0
  110. /package/@types/{LinearInterpolator.d.ts → animation/LinearInterpolator.d.ts} +0 -0
  111. /package/@types/{PropertyValuesHolder.d.ts → animator/PropertyValuesHolder.d.ts} +0 -0
  112. /package/@types/{TimeInterpolator.d.ts → animator/TimeInterpolator.d.ts} +0 -0
  113. /package/@types/{TypeEvaluator.d.ts → animator/TypeEvaluator.d.ts} +0 -0
  114. /package/@types/{BlendMode.ts → canvas/BlendMode.ts} +0 -0
  115. /package/@types/{Color.d.ts → canvas/Color.d.ts} +0 -0
  116. /package/@types/{ColorFilter.ts → canvas/ColorFilter.ts} +0 -0
  117. /package/@types/{ImageFilter.ts → canvas/ImageFilter.ts} +0 -0
  118. /package/@types/{PathEffect.ts → canvas/PathEffect.ts} +0 -0
  119. /package/@types/{RendererBackend.ts → canvas/RendererBackend.ts} +0 -0
  120. /package/@types/{Shader.d.ts → canvas/Shader.d.ts} +0 -0
  121. /package/@types/{Typeface.d.ts → canvas/Typeface.d.ts} +0 -0
  122. /package/@types/{Configuration.d.ts → content/Configuration.d.ts} +0 -0
  123. /package/@types/{DisplayMetrics.d.ts → content/DisplayMetrics.d.ts} +0 -0
  124. /package/@types/{PixelFormat.ts → content/PixelFormat.ts} +0 -0
  125. /package/@types/{Theme.d.ts → content/Theme.d.ts} +0 -0
  126. /package/@types/{Environment.ts → evaluate/Environment.ts} +0 -0
  127. /package/@types/{KeyEvent.d.ts → event/KeyEvent.d.ts} +0 -0
  128. /package/@types/{MotionEvent.d.ts → event/MotionEvent.d.ts} +0 -0
  129. /package/@types/{Editable.d.ts → text/Editable.d.ts} +0 -0
  130. /package/@types/{ViewOutlineProvider.d.ts → view/ViewOutlineProvider.d.ts} +0 -0
  131. /package/@types/{ViewParent.d.ts → view/ViewParent.d.ts} +0 -0
  132. /package/@types/{Button.d.ts → widget/Button.d.ts} +0 -0
  133. /package/@types/{FreezeAbsoluteLayout.d.ts → widget/FreezeAbsoluteLayout.d.ts} +0 -0
  134. /package/@types/{ListAdapter.d.ts → widget/ListAdapter.d.ts} +0 -0
package/index.d.ts CHANGED
@@ -1,111 +1,128 @@
1
- export * from "./@types/AbsoluteLayout";
2
- export * from "./@types/AccelerateDecelerateInterpolator";
3
- export * from "./@types/AccelerateInterpolator";
4
- export * from "./@types/Adapter";
5
- export * from "./@types/AlphaAnimation";
6
- export * from "./@types/Animation";
7
- export * from "./@types/AnimationSet";
8
- export * from "./@types/Animator";
9
- export * from "./@types/Application";
10
- export * from "./@types/ApplicationWindow";
11
- export * from "./@types/ArrayAdapter";
12
- export * from "./@types/Assets";
13
- export * from "./@types/AttributeSet";
14
- export * from "./@types/BaseAdapter";
15
- export * from "./@types/BlendMode";
16
- export * from "./@types/BounceInterpolator";
17
- export * from "./@types/Button";
18
- export * from "./@types/Canvas";
19
- export * from "./@types/Color";
20
- export * from "./@types/ColorDrawable";
21
- export * from "./@types/ColorFilter";
22
- export * from "./@types/Configuration";
23
- export * from "./@types/Context";
24
- export * from "./@types/ContextUtils";
25
- export * from "./@types/CornerPathEffect";
26
- export * from "./@types/CornersDrawable";
27
- export * from "./@types/CycleInterpolator";
28
- export * from "./@types/DecelerateInterpolator";
29
- export * from "./@types/DisplayMetrics";
30
- export * from "./@types/DoubleClick";
31
- export * from "./@types/DoubleClickListener";
32
- export * from "./@types/Drawable";
33
- export * from "./@types/Editable";
34
- export * from "./@types/EditRichText";
35
- export * from "./@types/EditText";
36
- export * from "./@types/Environment";
37
- export * from "./@types/FrameLayout";
38
- export * from "./@types/FreezeAbsoluteLayout";
39
- export * from "./@types/FreezeLayoutViewGroup";
40
- export * from "./@types/Gravity";
41
- export * from "./@types/GridLayout";
42
- export * from "./@types/GridLayoutAnimationController";
43
- export * from "./@types/GridView";
44
- export * from "./@types/HorizontalScrollView";
45
- export * from "./@types/Image";
46
- export * from "./@types/ImageDrawable";
47
- export * from "./@types/ImageFilter";
48
- export * from "./@types/ImageView";
49
- export * from "./@types/InputMethodService";
50
- export * from "./@types/Interpolator";
51
- export * from "./@types/KeyEvent";
52
- export * from "./@types/LayerDrawable";
53
- export * from "./@types/LayoutAnimationController";
54
- export * from "./@types/LayoutInflater";
55
- export * from "./@types/LinearGradient";
56
- export * from "./@types/LinearGradientDrawable";
57
- export * from "./@types/LinearInterpolator";
58
- export * from "./@types/LinearLayout";
59
- export * from "./@types/ListAdapter";
60
- export * from "./@types/ListView";
61
- export * from "./@types/Matrix";
62
- export * from "./@types/MotionEvent";
63
- export * from "./@types/MouseCursor";
64
- export * from "./@types/Outline";
65
- export * from "./@types/Paint";
66
- export * from "./@types/Path";
67
- export * from "./@types/PathEffect";
68
- export * from "./@types/Picture";
69
- export * from "./@types/PictureDrawable";
70
- export * from "./@types/PixelFormat";
71
- export * from "./@types/PopupWindow";
72
- export * from "./@types/PropertyValuesHolder";
73
- export * from "./@types/Rect";
74
- export * from "./@types/RelativeLayout";
75
- export * from "./@types/RendererBackend";
76
- export * from "./@types/Resolver";
77
- export * from "./@types/Resources";
78
- export * from "./@types/ResourcesInflater";
79
- export * from "./@types/RotateAnimation";
80
- export * from "./@types/ScaleAnimation";
81
- export * from "./@types/ScrollView";
82
- export * from "./@types/Shader";
83
- export * from "./@types/Shadow";
84
- export * from "./@types/Slot";
85
- export * from "./@types/Surface";
86
- export * from "./@types/SurfaceProvider";
87
- export * from "./@types/TabBarLayout";
88
- export * from "./@types/TableLayout";
89
- export * from "./@types/TableRow";
90
- export * from "./@types/TextView";
91
- export * from "./@types/Theme";
92
- export * from "./@types/TimeInterpolator";
93
- export * from "./@types/Transformation";
94
- export * from "./@types/TranslateAnimation";
95
- export * from "./@types/TypeEvaluator";
96
- export * from "./@types/Typeface";
97
- export * from "./@types/TypefaceFactory";
98
- export * from "./@types/ValueAnimator";
99
- export * from "./@types/View";
100
- export * from "./@types/ViewGroup";
101
- export * from "./@types/ViewGroupOverlay";
102
- export * from "./@types/ViewOutlineProvider";
103
- export * from "./@types/ViewOverlay";
104
- export * from "./@types/ViewParent";
105
- export * from "./@types/ViewSlot";
106
- export * from "./@types/ViewTreeObserver";
107
- export * from "./@types/Window";
108
- export * from "./@types/WindowManager";
109
- export * from "./@types/XMLLayoutParser";
110
- export * from "./@types/XMLResourcesParser";
111
- export * from "./@types/XMLViewFactoryRegistry";
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/text/Editable";
18
+ export * from "./@types/text/EditorInfo";
19
+
20
+ export * from "./@types/app/Application";
21
+ export * from "./@types/shared/ContextUtils";
22
+
23
+ export * from "./@types/layout/FrameLayout";
24
+ export * from "./@types/layout/GridLayout";
25
+ export * from "./@types/layout/AbsoluteLayout";
26
+ export * from "./@types/layout/LinearLayout";
27
+ export * from "./@types/layout/RelativeLayout";
28
+ export * from "./@types/layout/GridLayoutAnimationController";
29
+
30
+ export * from "./@types/drawable/CornersDrawable";
31
+ export * from "./@types/drawable/Drawable";
32
+ export * from "./@types/drawable/ImageDrawable";
33
+ export * from "./@types/drawable/LayerDrawable";
34
+ export * from "./@types/drawable/LinearGradientDrawable";
35
+ export * from "./@types/drawable/PictureDrawable";
36
+ export * from "./@types/drawable/ColorDrawable";
37
+
38
+ export * from "./@types/content/AttributeSet";
39
+ export * from "./@types/content/Configuration";
40
+ export * from "./@types/content/Context";
41
+ export * from "./@types/content/DisplayMetrics";
42
+ export * from "./@types/evaluate/Environment";
43
+ export * from "./@types/content/LayoutInflater";
44
+ export * from "./@types/content/PixelFormat";
45
+ export * from "./@types/evaluate/Resolver";
46
+ export * from "./@types/content/Resources";
47
+
48
+ export * from "./@types/canvas/BlendMode";
49
+ export * from "./@types/canvas/Canvas";
50
+ export * from "./@types/canvas/Color";
51
+ export * from "./@types/canvas/ColorFilter";
52
+ export * from "./@types/canvas/CornerPathEffect";
53
+ export * from "./@types/canvas/ImageFilter";
54
+ export * from "./@types/canvas/LinearGradient";
55
+ export * from "./@types/canvas/Paint";
56
+ export * from "./@types/canvas/Path";
57
+ export * from "./@types/canvas/Rect";
58
+ export * from "./@types/canvas/Matrix";
59
+ export * from "./@types/canvas/RendererBackend";
60
+ export * from "./@types/canvas/PathEffect";
61
+ export * from "./@types/canvas/Picture";
62
+ export * from "./@types/canvas/Shader";
63
+ export * from "./@types/canvas/Shadow";
64
+ export * from "./@types/canvas/Surface";
65
+ export * from "./@types/canvas/Typeface";
66
+ export * from "./@types/canvas/TypefaceFactory";
67
+
68
+ export * from "./@types/animation/AccelerateDecelerateInterpolator";
69
+ export * from "./@types/animation/AccelerateInterpolator";
70
+ export * from "./@types/animation/AlphaAnimation";
71
+ export * from "./@types/animation/Animation";
72
+ export * from "./@types/animation/AnimationSet";
73
+ export * from "./@types/animation/BounceInterpolator";
74
+ export * from "./@types/animation/CycleInterpolator";
75
+ export * from "./@types/animation/DecelerateInterpolator";
76
+
77
+ export * from "./@types/imm/InputConnection";
78
+ export * from "./@types/imm/InputMethod";
79
+
80
+ export * from "./@types/widget/Slot";
81
+ export * from "./@types/widget/TextView";
82
+ export * from "./@types/widget/ListAdapter";
83
+ export * from "./@types/widget/ListView";
84
+ export * from "./@types/widget/ScrollView";
85
+
86
+ export * from "./@types/display/SurfaceProvider";
87
+ export * from "./@types/layout/TableLayout";
88
+ export * from "./@types/layout/TableRow";
89
+ export * from "./@types/content/Theme";
90
+ export * from "./@types/layout/TabBarLayout";
91
+
92
+ export * from "./@types/animation/RotateAnimation";
93
+ export * from "./@types/animation/ScaleAnimation";
94
+ export * from "./@types/animation/Transformation";
95
+ export * from "./@types/animation/TranslateAnimation";
96
+
97
+ export * from "./@types/animator/TimeInterpolator";
98
+ export * from "./@types/animator/TypeEvaluator";
99
+ export * from "./@types/animator/ValueAnimator";
100
+ export * from "./@types/animator/Animator";
101
+ export * from "./@types/animator/PropertyValuesHolder";
102
+
103
+ export * from "./@types/view/Gravity";
104
+ export * from "./@types/view/Outline";
105
+ export * from "./@types/view/View";
106
+ export * from "./@types/view/ViewGroup";
107
+ export * from "./@types/view/ViewGroupOverlay";
108
+ export * from "./@types/view/ViewOutlineProvider";
109
+ export * from "./@types/view/ViewOverlay";
110
+ export * from "./@types/view/ViewParent";
111
+ export * from "./@types/view/ViewSlot";
112
+ export * from "./@types/view/ViewTreeObserver";
113
+
114
+ export * from "./@types/animation/Interpolator";
115
+ export * from "./@types/event/KeyEvent";
116
+ export * from "./@types/animation/LayoutAnimationController";
117
+ export * from "./@types/animation/LinearInterpolator";
118
+ export * from "./@types/event/MotionEvent";
119
+ export * from "./@types/display/MouseCursor";
120
+
121
+ export * from "./@types/window/Window";
122
+ export * from "./@types/window/PopupWindow";
123
+ export * from "./@types/window/WindowManager";
124
+
125
+ export * from "./@types/host/EditContext";
126
+ export * from "./@types/host/backend/NodePlatformHostConfig";
127
+ export * from "./@types/host/backend/WebPlatformHostConfig";
128
+ export * from "./@types/host/backend/CanvaskitPlatformHostConfig";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compass-framework/core",
3
- "version": "1.2.60",
3
+ "version": "1.2.62",
4
4
  "description": "@compass-framework/core public api",
5
5
  "types": "./index.d.ts",
6
6
  "main": "./index.js",
@@ -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,46 +0,0 @@
1
- import { ArrayList, Implements, XML } from "@compass-framework/library";
2
- import { Resources } from "./Resources";
3
- import { View } from "./View";
4
- import { Context } from "./Context";
5
- import { WindowManager } from "./WindowManager";
6
- import { ViewGroup } from "./ViewGroup";
7
- import { Window } from "./Window";
8
- import { Configuration } from "./Configuration";
9
-
10
- /**
11
- * 应用程序主窗口,承载内容视图与窗口生命周期。
12
- */
13
- @Implements(Window)
14
- export declare class ApplicationWindow implements Window {
15
- public constructor();
16
- public constructor(context: Context);
17
-
18
- public findViewById(id: number): View;
19
- public findViewById(id: string): View;
20
-
21
- public findViewByTag(tag: string): View;
22
-
23
- public findViewsByTag(tag: string): ArrayList<View>;
24
-
25
- public onCreate(): void;
26
-
27
- public onResume(): void;
28
-
29
- public onDestroy(): void;
30
-
31
- public onConfigurationChanged(configuration: Configuration): void;
32
-
33
- public getDecorView(): ViewGroup;
34
-
35
- public getContentView(): View;
36
-
37
- public getLayoutParams(): WindowManager.LayoutParams;
38
-
39
- public getResources(): Resources;
40
-
41
- public getContext(): Context;
42
-
43
- public setContentXML(xml: XML): void;
44
-
45
- public setContentView(view: View): void;
46
- }
@@ -1,6 +0,0 @@
1
- /**
2
- * 资源资产访问,按名称解析资产 ID。
3
- */
4
- export declare class Assets {
5
- public getAssetsId(name: string, defaultValue?: number): number;
6
- }
@@ -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
- }
@@ -1,6 +0,0 @@
1
- /**
2
- * 输入法服务抽象基类。
3
- */
4
- export abstract class InputMethodService {
5
-
6
- }
@@ -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
- }
@@ -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