@react-native-ohos/react-native-amap3d
v3.3.1
Published
react-native 高德地图组件,支持 harmonyOS
Readme
模板版本:v0.4.2
本项目基于 react-native-amap3d 开发。
该第三方库的仓库已迁移至 Gitcode,且支持直接从 npm 下载,新的包名为:@react-native-ohos/react-native-amap3d 版本所属关系如下:
| 三方库名称 | 三方库版本(npm地址) | 发布信息 | 支持RN版本 | Autolink | 编译API版本 | 社区基线版本 | 源码地址| | --------- | ----- | --------- | ------------- | -------- | ------- | ------ | -------- | | @react-native-ohos/react-native-amap3d |~3.3.0 | Gitcode Releases | 0.77.* | 否 | API17+ | 3.2.4 |br_rnoh0.77 |
简介
react-native 高德地图组件,使用最新 3D SDK,受 react-native-maps 启发,提供功能丰富且易用的接口
下载安装
进入到工程目录并输入以下命令:
npm
npm install @react-native-ohos/react-native-amap3dyarn
yarn add @react-native-ohos/react-native-amap3dLink
| | 是否支持autolink | RN框架版本 | |--------------------------------------|-----------------------|----------------------| | ~3.3.0 | No | 0.77 |
使用AutoLink的工程需要根据该文档配置,Autolink框架指导文档:https://gitcode.com/CPF-RN/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md
首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 harmony
1. 在工程根目录的 oh-package.json5 添加 overrides 字段
{
...
"overrides": {
"@rnoh/react-native-openharmony" : "./react_native_openharmony"
}
}2.引入原生端代码
目前有两种方法:
- 通过 har 包引入(在 IDE 完善相关功能后该方法会被遗弃,目前首选此方法);
- 直接链接源码。
方法一:通过 har 包引入(推荐)
[!TIP] har 包位于三方库安装路径的
harmony文件夹下。
打开 entry/oh-package.json5,添加以下依赖
"dependencies": {
"@rnoh/react-native-openharmony": "file:../react_native_openharmony",
"@react-native-ohos/react-native-amap3d": "file:../../node_modules/@react-native-ohos/react-native-amap3d/harmony/rn_amap3d.har"
}点击右上角的 sync 按钮
或者在终端执行:
cd entry
ohpm install方法二:直接链接源码
[!TIP] 如需使用直接链接源码,请参考直接链接源码说明
3.配置 CMakeLists 和引入 MapViewPackage
打开 entry/src/main/cpp/CMakeLists.txt,添加:
project(rnapp)
cmake_minimum_required(VERSION 3.4.1)
set(CMAKE_SKIP_BUILD_RPATH TRUE)
set(RNOH_APP_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
set(NODE_MODULES "${CMAKE_CURRENT_SOURCE_DIR}/../../../../../node_modules")
+ set(OH_MODULES "${CMAKE_CURRENT_SOURCE_DIR}/../../../oh_modules")
set(RNOH_CPP_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../../../../../react-native-harmony/harmony/cpp")
set(LOG_VERBOSITY_LEVEL 1)
set(CMAKE_ASM_FLAGS "-Wno-error=unused-command-line-argument -Qunused-arguments")
set(CMAKE_CXX_FLAGS "-fstack-protector-strong -Wl,-z,relro,-z,now,-z,noexecstack -s -fPIE -pie")
set(WITH_HITRACE_SYSTRACE 1) # for other CMakeLists.txt files to use
add_compile_definitions(WITH_HITRACE_SYSTRACE)
add_subdirectory("${RNOH_CPP_DIR}" ./rn)
# RNOH_BEGIN: manual_package_linking_1
add_subdirectory("../../../../sample_package/src/main/cpp" ./sample-package)
+ add_subdirectory("${OH_MODULES}/@react-native-ohos/react-native-amap3d/src/main/cpp" ./rn_amap3d)
# RNOH_END: manual_package_linking_1
file(GLOB GENERATED_CPP_FILES "./generated/*.cpp")
add_library(rnoh_app SHARED
${GENERATED_CPP_FILES}
"./PackageProvider.cpp"
"${RNOH_CPP_DIR}/RNOHAppNapiBridge.cpp"
)
target_link_libraries(rnoh_app PUBLIC rnoh)
# RNOH_BEGIN: manual_package_linking_2
target_link_libraries(rnoh_app PUBLIC rnoh_sample_package)
+ target_link_libraries(rnoh_app PUBLIC rnoh_amap3d)
# RNOH_END: manual_package_linking_2打开 entry/src/main/cpp/PackageProvider.cpp,添加:
#include "RNOH/PackageProvider.h"
#include "generated/RNOHGeneratedPackage.h"
#include "SamplePackage.h"
+ #include "MapViewPackage.h"
using namespace rnoh;
std::vector<std::shared_ptr<Package>> PackageProvider::getPackages(Package::Context ctx) {
return {
std::make_shared<RNOHGeneratedPackage>(ctx),
std::make_shared<SamplePackage>(ctx),
+ std::make_shared<MapViewPackage>(ctx)
};
}4.在 ArkTs 侧引入 react-native-amap3d 组件
找到 function buildCustomRNComponent(),一般位于 entry/src/main/ets/pages/index.ets 或 entry/src/main/ets/rn/LoadBundle.ets,添加:
...
+ import {
+ A_MAP_CIRCLE_VIEW_TYPE,
+ A_MAP_MARKER_TYPE,
+ A_MAP_POLYGON_TYPE,
+ A_MAP_POLYLINE_TYPE,
+ AMapCircle,
+ AMapMarker,
+ AMapPolygon,
+ AMapPolyline,
+ AMapView,
+ GOADE_MAP_VIEW_TYPE
+} from '@react-native-ohos/react-native-amap3d';
@Builder
export function buildCustomRNComponent(ctx: ComponentBuilderContext) {
...
+ if (ctx.componentName === GOADE_MAP_VIEW_TYPE) {
+ AMapView({
+ ctx: ctx.rnComponentContext,
+ tag: ctx.tag,
+ })
+ }
+ if (ctx.componentName === A_MAP_CIRCLE_VIEW_TYPE) {
+ AMapCircle({
+ ctx: ctx.rnComponentContext,
+ tag: ctx.tag,
+ })
+ }
+ if (ctx.componentName === A_MAP_MARKER_TYPE) {
+ AMapMarker({
+ ctx: ctx.rnComponentContext,
+ tag: ctx.tag,
+ })
+ }
+ if (ctx.componentName === A_MAP_POLYGON_TYPE) {
+ AMapPolygon({
+ ctx: ctx.rnComponentContext,
+ tag: ctx.tag,
+ })
+ }
+ if (ctx.componentName === A_MAP_POLYLINE_TYPE) {
+ AMapPolyline({
+ ctx: ctx.rnComponentContext,
+ tag: ctx.tag,
+ })
+ }
...
}
...[!TIP] 本库使用了混合方案,需要添加组件名。
在entry/src/main/ets/pages/index.ets 或 entry/src/main/ets/rn/LoadBundle.ets 找到常量 arkTsComponentNames 在其数组里添加组件名
const arkTsComponentNames: Array<string> = [
SampleView.NAME,
GeneratedSampleView.NAME,
PropsDisplayer.NAME,
+ A_MAP_CIRCLE_VIEW_TYPE,
+ A_MAP_MARKER_TYPE,
+ A_MAP_POLYGON_TYPE,
+ A_MAP_POLYLINE_TYPE,
+ GOADE_MAP_VIEW_TYPE
];5.在 ArkTs 侧引入 AMap3DPackage
打开 entry/src/main/ets/RNPackagesFactory.ts,添加:
...
+ import {AMap3DPackage} from '@react-native-ohos/react-native-amap3d/ts';
export function createRNPackages(ctx: RNPackageContext): RNPackage[] {
return [
new SamplePackage(ctx),
+ new AMap3DPackage(ctx)
];
}运行
点击右上角的 sync 按钮
或者在终端执行:
cd entry
ohpm install然后编译、运行即可。
约束与限制
兼容性
要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。
[!TIP] version>=3.2.5的版本需要在DevEco Studio 5.0.5(API17) 及以上版本编译
在以下版本验证通过:
- RNOH: 0.77.18; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.858; ROM: 6.0.0.112;
权限要求
[!TIP] 以下权限为按需申请:若不使用相关功能,无需配置。
| 权限名 | 触发场景 |
| --- | --- |
| ohos.permission.APPROXIMATELY_LOCATION | 设置 myLocationEnabled={true},请求定位时。 |
| ohos.permission.LOCATION | 设置 myLocationEnabled ,请求定位时。 |
| ohos.permission.INTERNET | 加载高德地图时。 |
在 entry 目录下的 module.json5 中添加权限
"requestPermissions": [
+ {
+ "name": "ohos.permission.APPROXIMATELY_LOCATION",
+ "reason": "$string:Access_Location",
+ "usedScene": {
+ "abilities": [
+ "EntryAbility"
+ ],
+ "when":"inuse"
+ }
+ },
+ {
+ "name": "ohos.permission.LOCATION",
+ "reason": "$string:location_reason",
+ "usedScene": {
+ "abilities": [
+ "EntryAbility"
+ ],
+ "when":"inuse"
+ }
+ },
+ {
+ "name": "ohos.permission.INTERNET",
+ "reason": "$string:internet_reason",
+ "usedScene": {
+ "abilities": [
+ "EntryAbility"
+ ],
+ "when":"inuse"
+ }
+ },
]在 entry 目录下添加申请以上权限的原因
打开 entry/src/main/resources/base/element/string.json,添加:
{
"string": [
+ {
"name": "location_reason",
"value": "获取当前位置"
},
+ {
"name": "internet_reason",
"value": "网络请求数据"
},
{
"name": "Access_Location",
"value": "access Location"
},
]
}使用示例
下面的代码展示了这个库的基本使用场景:
[!WARNING] 使用时 import 的库名不变。
import React from 'react';
import { ScrollView, Text, View,StyleSheet, Alert } from 'react-native';
import {MapView, Circle, Polygon, Polyline, Marker, LatLng,CameraPosition,voidEvent, HeatMap} from 'react-native-amap3d';
import type * as ReactNative from "react-native";
const points = [
{
latitude: 39.806901,
longitude: 116.397972,
},
{
latitude: 39.806901,
longitude: 116.297972,
},
{
latitude: 39.906901,
longitude: 116.397972,
},
];
const points2 = [
{
latitude: 39.836901,
longitude: 116.497972,
},
{
latitude: 39.836901,
longitude: 116.397972,
},
{
latitude: 39.936901,
longitude: 116.497972,
},
];
const line1 = [
{ latitude: 40.006901, longitude: 116.097972 },
{ latitude: 40.006901, longitude: 116.597972 },
];
const line3 = [
{ latitude: 39.806901, longitude: 116.097972 },
{ latitude: 39.806901, longitude: 116.257972 },
{ latitude: 39.806901, longitude: 116.457972 },
{ latitude: 39.806901, longitude: 116.597972 },
];
const coordinates = new Array(5).fill(0).map(() => ({
latitude: 39.5 + Math.random(),
longitude: 116 + Math.random(),
}));
function AMapDemo() {
return (
<View style={styles.container}>
<MapView
mapType={1}
style={{ width: '100%', height: '100%' }}
myLocationEnabled = {true}
onPress={(event: ReactNative.NativeSyntheticEvent<LatLng>)=>{
console.info("AMapViewEventType map3d demo " + event.nativeEvent.latitude + "===" + event.nativeEvent.longitude)
}}
onLongPress={(event: ReactNative.NativeSyntheticEvent<LatLng>)=>{
console.info("AMapViewEventType map3d demo longevent===" + event.nativeEvent.latitude + "===" + event.nativeEvent.longitude)
}}
onLoad={(event: ReactNative.NativeSyntheticEvent<voidEvent>) => {
Alert.alert("onLoad successful")
}}
>
<Circle
strokeWidth={5}
strokeColor="rgba(0, 0, 255, 0.5)"
fillColor="rgba(255, 0, 0, 0.5)"
radius={500}
center={{ latitude: 39.906901, longitude: 116.397972 }}
/>
<Polygon
strokeWidth={5}
strokeColor="rgba(0, 0, 255, 0.5)"
fillColor="rgba(255, 0, 0, 0.5)"
points={points}
/>
<Polyline width={100} color="rgba(0, 255, 0, 0.5)" points={line1} onPress={() => { console.info("AMapViewEventType map3d polyline onPress width 200")}} />
<Marker
draggable={true}
position={{ latitude: 39.806901, longitude: 116.397972 }}
onPress={() => Alert.alert("onPress")}
onDragEnd={({ nativeEvent }) =>
Alert.alert(`onDragEnd: ${nativeEvent.latitude}, ${nativeEvent.longitude}`)}
/>
<HeatMap opacity={0.8} radius={20} data={coordinates} />
<Marker
draggable={true}
flat={false}
position={{ latitude: 45.806901, longitude: 117.397972 }}
>
<Text
style={{
color: "#fff",
backgroundColor: "#ff6977",
margin:5,
width:"14%",
}}
>
{"testMarker"}
</Text>
</Marker>
</MapView>
</View>
);
};
const styles = StyleSheet.create({
container: {
backgroundColor: '#fff',
flex: 1,
paddingTop: 24,
}
});
export default AMapDemo;使用说明
<MapView
mapType={1}
style={{ width: '100%', height: '100%' }}
myLocationEnabled = {true}
>接口说明
[!TIP] "Platform"列表示该属性在原三方库上支持的平台。
[!TIP] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
MapView
| Name | Description | Type | Required | Platform | HarmonyOS Support | | ---- | ----------- | ---- | -------- |-----------|-------------------| | mapType | 地图类型(支持:Bus、Navi、Night、Satellite、Standard) | int | no | iOS/Android | yes | | initialCameraPosition | 初始状态 | CameraPosition | no | iOS/Android | yes | | myLocationEnabled | 是否显示当前定位 | boolean | no | iOS/Android | yes | | indoorViewEnabled | 是否显示室内地图 | boolean | no | iOS/Android | no | | buildingsEnabled | 是否显示3D建筑 | boolean | no | iOS/Android | no | | labelsEnabled | 是否显示标注 | boolean | no | iOS/Android | yes | | compassEnabled | 是否显示指南针 | boolean | no | iOS/Android | yes | | zoomControlsEnabled | 是否显示放大缩小按钮 | boolean | no | Android | yes | | scaleControlsEnabled | 是否显示比例尺 | boolean | no | iOS/Android | yes | | trafficEnabled | 是否显示路况 | boolean | no | iOS/Android | yes | | maxZoom | 最大缩放级别 | float | no | iOS/Android | yes | | minZoom | 最小缩放级别 | float | no | iOS/Android | yes | | zoomGesturesEnabled | 是否启用缩放手势,用于放大缩小 | boolean | no | iOS/Android | yes | | scrollGesturesEnabled | 是否启用滑动手势,用于平移 | boolean | no | iOS/Android | yes | | rotateGesturesEnabled | 是否启用旋转手势,用于调整方向 | boolean | no | iOS/Android | yes | | tiltGesturesEnabled | 是否启用倾斜手势,用于改变视角 | boolean | no | iOS/Android | yes | | distanceFilter | 设定定位的最小更新距离 | float | no | iOS | yes | | headingFilter | 设定最小更新角度,默认为 1 度 | float | no | iOS | no | | locationButtonEnable | 是否显示定位按钮 | boolean | no | iOS/Android | no |
Circle
| Name | Description | Type | Required | Platform | HarmonyOS Support | | ---- | ----------- | ---- | -------- | -------- | ------------------ | | center | 圆点坐标 | LatLng | yes | iOS/Android | yes | | radius | 半径(米) | Float | yes | iOS/Android | yes | | strokeWidth | 边线宽度 | Float | no | iOS/Android | yes | | strokeColor | 边线颜色 | string | no | iOS/Android | yes | | fillColor | 填充颜色 | string | no | iOS/Android | yes | | zIndex | 层级 | Float | no | iOS/Android | yes |
Marker
| Name | Description | Type | Required | Platform | HarmonyOS Support | | ---- | ----------- | ---- | -------- | -------- |-------------------| | position | 坐标 | LatLng | yes | iOS/Android | yes | | icon | 图标(网络图片支持 png、jpg/jpeg、webp、gif(仅显示第一帧)) | ImageSourcePropType | no | iOS/Android | yes | | draggable | 是否可拖拽 | boolean | no | iOS/Android | yes | | flat | 是否平贴地图 | boolean | no | Android | yes | | zIndex | 层级 | Float | no | iOS/Android | yes | | anchor | 覆盖物锚点比例 | Point | no | Android | yes | | centerOffset | 覆盖物偏移位置 | Point | no | iOS | yes | | opacity | 设置marker的透明度 | Float | no | iOS/Android | yes |
Polygon
| Name | Description | Type | Required | Platform | HarmonyOS Support | | ---- | ----------- | ---- | -------- | -------- | ------------------ | | points | 节点坐标 | LatLng[] | yes | iOS/Android | yes | | strokeWidth | 边线宽度 | Float | no | iOS/Android | yes | | strokeColor | 边线颜色 | string | no | iOS/Android | yes | | fillColor | 填充颜色 | string | no | iOS/Android | yes | | zIndex | 层级 | Float | no | iOS/Android | yes |
Polyline
| Name | Description | Type | Required | Platform | HarmonyOS Support | | ---- | ----------- | ---- | -------- | -------- | ------------------ | | points | 节点坐标 | LatLng[] | yes | iOS/Android | yes | | width | 边线宽度 | Float | no | iOS/Android | yes | | color | 线段颜色 | ColorValue | no | iOS/Android | yes | | zIndex | 层级 | Float | no | iOS/Android | yes | | colors | 多段颜色 | ColorValue[] | no | iOS/Android | yes | | gradient | 是否使用颜色渐变 | boolean | no | iOS/Android | yes | | geodesic | 是否绘制大地线 | boolean | no | iOS/Android | no | | dotted | 是否绘制虚线 | boolean | no | iOS/Android | yes |
HeatMap
| Name | Description | Type | Required | Platform | HarmonyOS Support | |-------------|-------------| ---- | -------- | -------- | ------------------ | | opacity | 热力图的透明度 | Float | no | iOS/Android | yes | | radius | 热力图半径 | Float | no | iOS/Android | yes | | data | 热力图的数据 | LatLng[] | yes | iOS/Android | yes |
静态方法
[!TIP] "Platform"列表示该属性在原三方库上支持的平台。
[!TIP] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
MapView
| Name | Description | Type | Required | Platform | HarmonyOS Support | | ---- | ----------- | ---- | -------- | -------- |-------------------| | onPress | 点击事件 | LatLng | no | iOS/Android | yes | | onPressPoi | 标注点击事件 | Poi | no | iOS/Android | yes | | onLongPress | 长按事件 | LatLng | no | iOS/Android | yes | | onCameraMove | 地图状态改变事件,随地图状态变化不停地触发 | CameraEvent | no | iOS/Android | yes | | onCameraIdle | 地图状态改变事件,在停止变化后触发 | CameraEvent | no | iOS/Android | no | | onLoad | 地图初始化完成事件 | void | no | iOS/Android | yes | | onLocation | 地图定位更新事件 | GeolocationPosition | no | iOS/Android | yes | | moveCamera | 移动视角 | void | yes | iOS/Android | yes | | call | 调用 | void | no | iOS/Android | no | | getLatLng | 将屏幕坐标转换为经纬度坐标 | Promise | no | iOS/Android | yes |
Marker
| Name | Description | Type | Required | Platform | HarmonyOS Support | | ---- | ----------- | ---- | -------- | -------- |-------------------| | onPress | 点击事件 | void | no | iOS/Android | yes | | onDragStart | 拖放开始事件 | void | no | iOS/Android | yes | | onDrag | 拖放进行事件,类似于mousemove,在结束之前会不断调用 | void | no | iOS/Android | yes | | onDragEnd | 拖放结束事件 | LatLng | no | iOS/Android | yes | | update | 触发自定义view更新 | void | no | iOS/Android | no |
Polyline
| Name | Description | Type | Required | Platform | HarmonyOS Support | | ---- | ----------- | ---- | -------- | -------- | ------------------ | | onPress | 点击事件 | void | no | iOS/Android | yes |
API
[!TIP] "Platform"列表示该属性在原三方库上支持的平台。
[!TIP] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
| Name | Description | Type | Required | Platform | HarmonyOS Support | | ---- | ----------- | ---- | -------- | -------- | ------------------ | | AMapSdk.init() | 初始化高德SDK | void | no | iOS/Android | yes | | AMapSdk.getVersion() | 获取版本信息 | Promise | no | iOS/Android | yes |
遗留问题
MapView
- [ ] indoorViewEnabled:高德SDK暂不支持: issue#6
- [ ] buildingsEnabled:高德SDK暂不支持: issue#33
- [X] myLocationEnabled:高德SDK暂不支持: issue#29
- [X] distanceFilter:高德SDK暂不支持: issue#11
- [X] anchor: 高德SDK暂不支持:issue#34
- [X] centerOffset: 高德SDK暂不支持:issue#35
- [ ] headingFilter:高德SDK暂不支持: issue#12
- [ ] geodesic:高德SDK暂不支持: issue#36
- [ ] onCameraIdle: 高德SDK暂不支持: issue#15
- [X] onLocation:高德SDK暂不支持: issue#10
- [X] onCallback:高德SDK部分支持: issue#21
- [ ] call:高德SDK部分支持: issue#5
- [X] opacity: 高德SDK暂不支持: issue#30
- [ ] locationButtonEnable: 高德SDK暂不支持: issue#30
- [X] getLatLng: 高德SDK暂不支持: issue#30
Marker
- [ ] marker自定义宽度自适应: issue#64
Cluster
- [ ] Cluster:高德SDK暂不支持添加该组件: issue#2
HeatMap
- [X] HeatMap:高德SDK暂不支持添加该组件: issue#3
MultiPoint
- [ ] MultiPoint:高德SDK暂不支持添加该组件: issue#4
其他
目录结构
rn_amap3d/
├── BuildProfile.ets
├── build-profile.json5
├── consumer-rules.txt
├── hvigorfile.ts
├── index.ets
├── obfuscation-rules.txt
├── oh-package.json5
├── ts.ets
└── src/
└── main/
├── module.json5
├── cpp/
│ ├── AMap3dEventEmitRequestHandler.h
│ ├── AMapEventEmitters.cpp
│ ├── AMapEventEmitters.h
│ ├── CMakeLists.txt
│ ├── ComponentDescriptors.h
│ ├── MapViewJSIBinder.h
│ ├── MapViewPackage.h
│ ├── Props.cpp
│ ├── Props.h
│ ├── ShadowNodes.cpp
│ ├── ShadowNodes.h
│ └── generated/
│ └── RNOH/
│ └── generated/
│ ├── BaseReactNativeAmap3dPackage.h
│ └── turbo_modules/
│ ├── AMapSdk.cpp
│ └── AMapSdk.h
├── ets/
│ ├── AMap3DModule.ets
│ ├── AMap3DPackage.ets
│ ├── DownloadIcon.ets
│ ├── GlobalCache.ets
│ ├── Logger.ets
│ ├── View/
│ │ ├── AMapCircle.ets
│ │ ├── AMapMarker.ets
│ │ ├── AMapPolygon.ets
│ │ ├── AMapPolyline.ets
│ │ └── MapView.ets
│ ├── generated/
│ │ ├── index.ets
│ │ ├── ts.ts
│ │ ├── components/
│ │ │ └── ts.ts
│ │ └── turboModules/
│ │ ├── AMapSdk.ts
│ │ └── ts.ts
│ └── modules/
│ └── SdkModule.ets
└── resources/
├── base/element/
├── en_US/element/
├── zh_CN/element/
└── rawfile/贡献代码
使用过程中发现任何问题都可以提交 Issue,当然,也非常欢迎提交 PR 。
开源协议
本项目基于 MIT License (MIT) ,请自由地享受和参与开源。
