@eva/plugin-ui 2.1.0-beta.1
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/README.md +25 -0
- package/dist/EVA.plugin.ui.js +7948 -0
- package/dist/EVA.plugin.ui.min.js +1 -0
- package/dist/plugin-ui.cjs.js +1926 -0
- package/dist/plugin-ui.cjs.prod.js +1 -0
- package/dist/plugin-ui.d.ts +623 -0
- package/dist/plugin-ui.esm.js +1902 -0
- package/index.js +7 -0
- package/package.json +28 -0
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# @eva/plugin-ui
|
|
2
|
+
|
|
3
|
+
Vector UI shape plugin for Eva.js. Provides a `UI` Component that draws
|
|
4
|
+
rect / circle / ellipse / roundedRect with solid color or `linear-gradient`
|
|
5
|
+
fill + stroke, backed by `@eva/plugin-renderer-graphics`.
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
import { UI, UISystem, UIShapeType } from '@eva/plugin-ui';
|
|
9
|
+
|
|
10
|
+
new UI({
|
|
11
|
+
type: UIShapeType.ROUNDED_RECT,
|
|
12
|
+
style: {
|
|
13
|
+
width: 200,
|
|
14
|
+
height: 80,
|
|
15
|
+
radius: 16,
|
|
16
|
+
fill: 'linear-gradient(180deg, #340033 4%, #93005D 83%, #CB2269 99%)',
|
|
17
|
+
stroke: '#FFFFFF',
|
|
18
|
+
lineWidth: 2,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
More Introduction
|
|
24
|
+
- [EN](https://eva.js.org)
|
|
25
|
+
- [中文](https://eva-engine.gitee.io)
|