From 047360749f1eee4d517be7b2c8f38948b38449bc Mon Sep 17 00:00:00 2001 From: imtaotao Date: Sun, 1 Sep 2024 07:00:10 +0800 Subject: [PATCH] docs: adjust docs --- docs/en/index.md | 2 +- docs/en/reference/manager-properties.md | 2 +- docs/zh/guide/create-plugin.md | 2 +- docs/zh/index.md | 2 +- docs/zh/reference/manager-properties.md | 2 +- src/lifeCycle.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/en/index.md b/docs/en/index.md index 470afcd8..16a390a5 100644 --- a/docs/en/index.md +++ b/docs/en/index.md @@ -17,7 +17,7 @@ hero: features: - title: Multiple Rendering Algorithms - details: We offer strict collision detection algorithms, progressive collision detection algorithms, and standard full real-time rendering algorithms. + details: We provide strict and progressive, as well as ordinary full real-time rendering algorithms. icon: 🔍 - title: Rich API details: Provides a variety of APIs needed for different business scenarios, greatly simplifying the development process. diff --git a/docs/en/reference/manager-properties.md b/docs/en/reference/manager-properties.md index 20b876f5..32579f76 100644 --- a/docs/en/reference/manager-properties.md +++ b/docs/en/reference/manager-properties.md @@ -14,7 +14,7 @@ **Type: `string`** -The current npm package version of the `danmu` library. +The current version of the `danmu` library. ## `manager.options` diff --git a/docs/zh/guide/create-plugin.md b/docs/zh/guide/create-plugin.md index 1c739988..9d0157e4 100644 --- a/docs/zh/guide/create-plugin.md +++ b/docs/zh/guide/create-plugin.md @@ -4,7 +4,7 @@ ## 描述 -由于内核没有暴漏出来**根据条件来实现过滤弹幕**的功能,原因在于内核不知道弹幕内容的数据结构,这和业务的诉求强相关,所以我们在此通过插件来实现**精简弹幕**的功能用来演示。 +由于内核没有暴露出来**根据条件来实现过滤弹幕**的功能,原因在于内核不知道弹幕内容的数据结构,这和业务的诉求强相关,所以我们在此通过插件来实现**精简弹幕**的功能用来演示。 ## 💻 编写一个插件 diff --git a/docs/zh/index.md b/docs/zh/index.md index 1c8eaa16..4923487b 100644 --- a/docs/zh/index.md +++ b/docs/zh/index.md @@ -17,7 +17,7 @@ hero: features: - title: 多种渲染算法 - details: 我们提供了严格的碰撞检测算法,也提供了渐进式的碰撞检测算法,以及普通的全量实时渲染算法。 + details: 我们提供了严格和渐进式的,以及普通的全量实时渲染算法。 icon: 🔍 - title: 丰富的 api details: 提供了很多业务场景需要的 api,最大程度的简化开发方式。 diff --git a/docs/zh/reference/manager-properties.md b/docs/zh/reference/manager-properties.md index 8cb40e01..62bb798f 100644 --- a/docs/zh/reference/manager-properties.md +++ b/docs/zh/reference/manager-properties.md @@ -14,7 +14,7 @@ **类型:`string`** -当前 `danmu` 库的 npm 包版本。 +当前 `danmu` 库的版本。 ## `manager.options` diff --git a/src/lifeCycle.ts b/src/lifeCycle.ts index b1242000..81f66808 100644 --- a/src/lifeCycle.ts +++ b/src/lifeCycle.ts @@ -1,7 +1,7 @@ import { SyncHook, SyncWaterfallHook, PluginSystem } from 'hooks-plugin'; import { ids } from './utils'; import type { Manager, ManagerOptions } from './manager'; -import type { TrackData, Danmaku, DanmakuType, DanmakuPlugin } from './types'; +import type { Danmaku, DanmakuType, DanmakuPlugin } from './types'; export function createDanmakuLifeCycle>() { return new PluginSystem({