plate-renderer 0.0.5 → 0.0.6
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 +6 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# plate-renderer
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> 纯前端车牌照片生成,支持中国多种车牌
|
|
4
4
|
|
|
5
5
|

|
|
6
6
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
## ✨ 特性
|
|
10
10
|
|
|
11
11
|
- 🚀 **轻量无依赖** - 纯 TypeScript 编写,零外部依赖
|
|
12
|
-
- 🎨 **支持多种车牌类型** -
|
|
12
|
+
- 🎨 **支持多种车牌类型** - 蓝牌、绿牌、大车、港澳、使领馆、警车,持续更新
|
|
13
13
|
- 📦 **开箱即用** - 简单 API,快速上手
|
|
14
14
|
- 🛠️ **TypeScript 支持** - 自带类型声明,开发体验友好
|
|
15
15
|
|
|
@@ -31,12 +31,13 @@ PlateRenderer.create('京ADT0069', 'green', 'container')
|
|
|
31
31
|
| 参数 | 说明 |
|
|
32
32
|
|-----|-----|
|
|
33
33
|
| plateNumber | 车牌号 |
|
|
34
|
-
| plateColor | green
|
|
34
|
+
| plateColor | 小客车绿牌 green<br>小客车蓝牌 blue<br>大型车绿牌 greenLarge<br>大型车黄牌/教练车 yellow<br>大型车黄牌后号牌/挂车 yellowLarge<br>港澳车牌 HK/Macao<br>大使馆车牌 shi<br>领事馆车牌 ling<br>警车车牌 police<br>|
|
|
35
35
|
| element | HTML元素或ID名 |
|
|
36
36
|
|
|
37
37
|
## ⚠️ 注意事项
|
|
38
38
|
按照真实车牌宽高比例,来定义容器宽高比例,可以使生成的车牌照片贴合容器
|
|
39
39
|
| 车牌类型 | 宽高比例 |
|
|
40
40
|
|-----|-----|
|
|
41
|
-
|
|
|
42
|
-
|
|
|
41
|
+
| 小客车蓝牌、大型车黄牌、大使馆、领事馆、警车 | 22 : 7 |
|
|
42
|
+
| 小客车绿牌、大客车绿牌 | 24 : 7 |
|
|
43
|
+
| 大型车黄牌后号牌/挂车 | 11 : 5 |
|