@compass-framework/core 1.2.66 → 1.2.68
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/animation/Animation.d.ts +1 -1
- package/@types/animation/Transformation.d.ts +1 -1
- package/@types/app/ApplicationCreatorConfig.d.ts +1 -1
- package/@types/content/AttributeSet.d.ts +3 -3
- package/@types/content/AttributeSetBuilder.ts +9 -0
- package/@types/content/Context.d.ts +1 -1
- package/@types/content/ContextWrapper.d.ts +1 -1
- package/@types/content/Resources.d.ts +2 -2
- package/@types/display/SurfaceProvider.d.ts +1 -1
- package/@types/{drawable → graphics/drawable}/ColorDrawable.d.ts +2 -2
- package/@types/{drawable → graphics/drawable}/CornersDrawable.d.ts +2 -2
- package/@types/{drawable → graphics/drawable}/Drawable.d.ts +7 -7
- package/@types/{drawable → graphics/drawable}/ImageDrawable.ts +3 -3
- package/@types/{drawable → graphics/drawable}/LayerDrawable.d.ts +3 -3
- package/@types/{drawable → graphics/drawable}/LinearGradientDrawable.d.ts +1 -1
- package/@types/{drawable → graphics/drawable}/PictureDrawable.d.ts +4 -4
- package/@types/imm/InputConnection.ts +1 -1
- package/@types/view/Gravity.d.ts +1 -1
- package/@types/view/Outline.d.ts +1 -1
- package/@types/view/View.d.ts +4 -4
- package/@types/view/ViewGroupOverlay.d.ts +1 -1
- package/@types/view/ViewOverlay.d.ts +1 -1
- package/index.d.ts +27 -26
- package/package.json +1 -1
- /package/@types/{canvas → graphics}/BlendMode.ts +0 -0
- /package/@types/{canvas → graphics}/Canvas.d.ts +0 -0
- /package/@types/{canvas → graphics}/Color.d.ts +0 -0
- /package/@types/{canvas → graphics}/ColorFilter.ts +0 -0
- /package/@types/{canvas → graphics}/CornerPathEffect.d.ts +0 -0
- /package/@types/{canvas → graphics}/ImageFilter.ts +0 -0
- /package/@types/{canvas → graphics}/LinearGradient.d.ts +0 -0
- /package/@types/{canvas → graphics}/Matrix.d.ts +0 -0
- /package/@types/{canvas → graphics}/Paint.d.ts +0 -0
- /package/@types/{canvas → graphics}/Path.d.ts +0 -0
- /package/@types/{canvas → graphics}/PathEffect.ts +0 -0
- /package/@types/{canvas → graphics}/Picture.d.ts +0 -0
- /package/@types/{canvas → graphics}/Rect.d.ts +0 -0
- /package/@types/{canvas → graphics}/RendererBackend.ts +0 -0
- /package/@types/{canvas → graphics}/Shader.d.ts +0 -0
- /package/@types/{canvas → graphics}/Shadow.d.ts +0 -0
- /package/@types/{canvas → graphics}/Surface.d.ts +0 -0
- /package/@types/{canvas → graphics}/Typeface.d.ts +0 -0
- /package/@types/{canvas → graphics}/TypefaceFactory.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InterfaceTemplate } from "@compass-framework/library";
|
|
2
|
-
import { Rect } from '../
|
|
2
|
+
import { Rect } from '../graphics/Rect';
|
|
3
3
|
import { Transformation } from './Transformation';
|
|
4
4
|
import { Interpolator } from './Interpolator';
|
|
5
5
|
import { AttributeSet } from "../content/AttributeSet";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RendererBackend } from "../
|
|
1
|
+
import { RendererBackend } from "../graphics/RendererBackend";
|
|
2
2
|
import { CanvaskitPlatformHostConfig } from "../host/backend/CanvaskitPlatformHostConfig";
|
|
3
3
|
import { WebPlatformHostConfig } from "../host/backend/WebPlatformHostConfig";
|
|
4
4
|
import { NodePlatformHostConfig } from "../host/backend/NodePlatformHostConfig";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CharSequence, Influence, Nullable } from "@compass-framework/library";
|
|
2
2
|
import { Resources } from "./Resources";
|
|
3
|
-
import { PictureDrawable } from "../drawable/PictureDrawable";
|
|
4
|
-
import { Drawable } from "../drawable/Drawable";
|
|
5
|
-
import { ColorDrawable } from "../drawable/ColorDrawable";
|
|
3
|
+
import { PictureDrawable } from "../graphics/drawable/PictureDrawable";
|
|
4
|
+
import { Drawable } from "../graphics/drawable/Drawable";
|
|
5
|
+
import { ColorDrawable } from "../graphics/drawable/ColorDrawable";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* 属性集合,从资源或布局中按名称读取类型化属性值。
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Context } from "./Context";
|
|
2
|
+
import { AttributeSet } from "./AttributeSet";
|
|
3
|
+
|
|
4
|
+
export declare class AttributeSetBuilder {
|
|
5
|
+
public static from(context: Context): AttributeSetBuilder;
|
|
6
|
+
|
|
7
|
+
public build(): AttributeSet;
|
|
8
|
+
public build(attribute: Record<string, string>): AttributeSet;
|
|
9
|
+
}
|
|
@@ -2,7 +2,7 @@ import { Class } from "@compass-framework/library";
|
|
|
2
2
|
import { Environment } from "../evaluate/Environment";
|
|
3
3
|
import { Resources } from "./Resources";
|
|
4
4
|
import { MouseCursor } from "../display/MouseCursor";
|
|
5
|
-
import { RendererBackend } from "../
|
|
5
|
+
import { RendererBackend } from "../graphics/RendererBackend";
|
|
6
6
|
import { WindowManager } from "../window/WindowManager";
|
|
7
7
|
import { SurfaceProvider } from "../display/SurfaceProvider";
|
|
8
8
|
import { ViewFactoryRegistry } from "./ViewFactoryRegistry";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Context } from "./Context";
|
|
2
2
|
import { Environment } from "../evaluate/Environment";
|
|
3
3
|
import { MouseCursor } from "../display/MouseCursor";
|
|
4
|
-
import { RendererBackend } from "../
|
|
4
|
+
import { RendererBackend } from "../graphics/RendererBackend";
|
|
5
5
|
import { Resources } from "./Resources";
|
|
6
6
|
import { SurfaceProvider } from "../display/SurfaceProvider";
|
|
7
7
|
import { ViewFactoryRegistry } from "./ViewFactoryRegistry";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CharSequence, RefValue, XML } from "@compass-framework/library";
|
|
2
|
-
import { Drawable } from "../drawable/Drawable";
|
|
2
|
+
import { Drawable } from "../graphics/drawable/Drawable";
|
|
3
3
|
import { DisplayMetrics } from "./DisplayMetrics";
|
|
4
|
-
import { ColorDrawable } from "../drawable/ColorDrawable";
|
|
4
|
+
import { ColorDrawable } from "../graphics/drawable/ColorDrawable";
|
|
5
5
|
import { AttributeSet } from "./AttributeSet";
|
|
6
6
|
import { Configuration } from "./Configuration";
|
|
7
7
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { InterfaceTemplate, Runnable } from "@compass-framework/library";
|
|
2
|
-
import { Resources } from "
|
|
3
|
-
import { Canvas } from "../
|
|
4
|
-
import { Outline } from "
|
|
5
|
-
import { Rect } from "../
|
|
6
|
-
import { Configuration } from "
|
|
7
|
-
import { Context } from "
|
|
8
|
-
import { DisplayMetrics } from "
|
|
2
|
+
import { Resources } from "../../content/Resources";
|
|
3
|
+
import { Canvas } from "../Canvas";
|
|
4
|
+
import { Outline } from "../../view/Outline";
|
|
5
|
+
import { Rect } from "../Rect";
|
|
6
|
+
import { Configuration } from "../../content/Configuration";
|
|
7
|
+
import { Context } from "../../content/Context";
|
|
8
|
+
import { DisplayMetrics } from "../../content/DisplayMetrics";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* 可绘制对象的基类,封装边界、透明度与绘制回调。
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Drawable } from "./Drawable";
|
|
2
|
-
import { Image } from "
|
|
3
|
-
import { Canvas } from "../
|
|
4
|
-
import { Context } from "
|
|
2
|
+
import { Image } from "../../widget/Image";
|
|
3
|
+
import { Canvas } from "../Canvas";
|
|
4
|
+
import { Context } from "../../content/Context";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* 图像 Drawable,将 Image 按重力对齐绘制到边界内。
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Implements, Runnable } from "@compass-framework/library";
|
|
2
2
|
import { Drawable } from "./Drawable";
|
|
3
|
-
import { Canvas } from "../
|
|
4
|
-
import { Resources } from "
|
|
5
|
-
import { Context } from "
|
|
3
|
+
import { Canvas } from "../Canvas";
|
|
4
|
+
import { Resources } from "../../content/Resources";
|
|
5
|
+
import { Context } from "../../content/Context";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* 图层 Drawable,按顺序叠加绘制多个子 Drawable。
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Consumer, Implements } from "@compass-framework/library";
|
|
2
|
-
import { Paint } from "../
|
|
2
|
+
import { Paint } from "../Paint";
|
|
3
3
|
import { ImageDrawable } from "./ImageDrawable";
|
|
4
|
-
import { Picture } from "../
|
|
5
|
-
import { ImageView } from "
|
|
6
|
-
import { Context } from "
|
|
4
|
+
import { Picture } from "../Picture";
|
|
5
|
+
import { ImageView } from "../../widget/ImageView";
|
|
6
|
+
import { Context } from "../../content/Context";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* 基于 Picture 的图像 Drawable,支持加载状态通知。
|
package/@types/view/Gravity.d.ts
CHANGED
package/@types/view/Outline.d.ts
CHANGED
package/@types/view/View.d.ts
CHANGED
|
@@ -7,18 +7,18 @@ import {
|
|
|
7
7
|
import { ViewOverlay } from "./ViewOverlay";
|
|
8
8
|
import { Context } from "../content/Context";
|
|
9
9
|
import { Configuration } from "../content/Configuration";
|
|
10
|
-
import { Rect } from "../
|
|
10
|
+
import { Rect } from "../graphics/Rect";
|
|
11
11
|
import { AttributeSet } from "../content/AttributeSet";
|
|
12
|
-
import { Canvas } from "../
|
|
12
|
+
import { Canvas } from "../graphics/Canvas";
|
|
13
13
|
import { Transformation } from "../animation/Transformation";
|
|
14
14
|
import { KeyEvent } from "../event/KeyEvent";
|
|
15
|
-
import { Drawable } from "../drawable/Drawable";
|
|
15
|
+
import { Drawable } from "../graphics/drawable/Drawable";
|
|
16
16
|
import { Outline } from "./Outline";
|
|
17
17
|
import { ViewTreeObserver } from "./ViewTreeObserver";
|
|
18
18
|
import { ViewGroup } from "./ViewGroup";
|
|
19
19
|
import { Animation } from "../animation/Animation";
|
|
20
20
|
import { MotionEvent } from "../event/MotionEvent";
|
|
21
|
-
import { Matrix } from "../
|
|
21
|
+
import { Matrix } from "../graphics/Matrix";
|
|
22
22
|
import { Resources } from "../content/Resources";
|
|
23
23
|
import { ViewParent } from "./ViewParent";
|
|
24
24
|
import { ViewOutlineProvider } from "./ViewOutlineProvider";
|
package/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export * from "./@types/content/BaseAdapter";
|
|
|
26
26
|
export * from "./@types/content/Theme";
|
|
27
27
|
export * from "./@types/content/ArrayAdapter";
|
|
28
28
|
export * from "./@types/content/AttributeSet";
|
|
29
|
+
export * from "./@types/content/AttributeSetBuilder";
|
|
29
30
|
export * from "./@types/content/Configuration";
|
|
30
31
|
export * from "./@types/content/Context";
|
|
31
32
|
export * from "./@types/content/PixelFormat";
|
|
@@ -35,25 +36,25 @@ export * from "./@types/content/ServiceRegister";
|
|
|
35
36
|
export * from "./@types/content/LayoutInflater";
|
|
36
37
|
export * from "./@types/content/ViewFactoryRegistry";
|
|
37
38
|
|
|
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
|
-
export * from "./@types/
|
|
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/
|
|
39
|
+
export * from "./@types/graphics/BlendMode";
|
|
40
|
+
export * from "./@types/graphics/Canvas";
|
|
41
|
+
export * from "./@types/graphics/Color";
|
|
42
|
+
export * from "./@types/graphics/ColorFilter";
|
|
43
|
+
export * from "./@types/graphics/CornerPathEffect";
|
|
44
|
+
export * from "./@types/graphics/ImageFilter";
|
|
45
|
+
export * from "./@types/graphics/LinearGradient";
|
|
46
|
+
export * from "./@types/graphics/Paint";
|
|
47
|
+
export * from "./@types/graphics/Path";
|
|
48
|
+
export * from "./@types/graphics/Rect";
|
|
49
|
+
export * from "./@types/graphics/Matrix";
|
|
50
|
+
export * from "./@types/graphics/RendererBackend";
|
|
51
|
+
export * from "./@types/graphics/PathEffect";
|
|
52
|
+
export * from "./@types/graphics/Picture";
|
|
53
|
+
export * from "./@types/graphics/Shader";
|
|
54
|
+
export * from "./@types/graphics/Shadow";
|
|
55
|
+
export * from "./@types/graphics/Surface";
|
|
56
|
+
export * from "./@types/graphics/Typeface";
|
|
57
|
+
export * from "./@types/graphics/TypefaceFactory";
|
|
57
58
|
|
|
58
59
|
export * from "./@types/animation/AccelerateDecelerateInterpolator";
|
|
59
60
|
export * from "./@types/animation/AccelerateInterpolator";
|
|
@@ -88,13 +89,13 @@ export * from "./@types/animator/ValueAnimator";
|
|
|
88
89
|
export * from "./@types/animator/Animator";
|
|
89
90
|
export * from "./@types/animator/PropertyValuesHolder";
|
|
90
91
|
|
|
91
|
-
export * from "./@types/drawable/CornersDrawable";
|
|
92
|
-
export * from "./@types/drawable/Drawable";
|
|
93
|
-
export * from "./@types/drawable/ImageDrawable";
|
|
94
|
-
export * from "./@types/drawable/LayerDrawable";
|
|
95
|
-
export * from "./@types/drawable/LinearGradientDrawable";
|
|
96
|
-
export * from "./@types/drawable/PictureDrawable";
|
|
97
|
-
export * from "./@types/drawable/ColorDrawable";
|
|
92
|
+
export * from "./@types/graphics/drawable/CornersDrawable";
|
|
93
|
+
export * from "./@types/graphics/drawable/Drawable";
|
|
94
|
+
export * from "./@types/graphics/drawable/ImageDrawable";
|
|
95
|
+
export * from "./@types/graphics/drawable/LayerDrawable";
|
|
96
|
+
export * from "./@types/graphics/drawable/LinearGradientDrawable";
|
|
97
|
+
export * from "./@types/graphics/drawable/PictureDrawable";
|
|
98
|
+
export * from "./@types/graphics/drawable/ColorDrawable";
|
|
98
99
|
|
|
99
100
|
export * from "./@types/evaluate/Resolver";
|
|
100
101
|
export * from "./@types/evaluate/Environment";
|
package/package.json
CHANGED
|
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
|