Add notes
This commit is contained in:
parent
db7c6e0a08
commit
8e7799266d
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "arsene",
|
||||
"version": "1.0.0",
|
||||
"version": "1.1.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "arsene",
|
||||
"version": "1.0.0",
|
||||
"version": "1.1.2",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"typescript": "^5.4.5"
|
||||
|
|
16
package.json
16
package.json
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "arsene",
|
||||
"version": "1.1.2",
|
||||
"version": "1.1.3",
|
||||
"description": "Arsene is a library for processing CJK text paragraphs, which are mixed with English characters and adding spacing between them.",
|
||||
"author": "Astrian Zheng",
|
||||
"keywords": [
|
||||
|
@ -17,12 +17,14 @@
|
|||
"devDependencies": {
|
||||
"typescript": "^5.4.5"
|
||||
},
|
||||
"repositories": [{
|
||||
"repositories": [
|
||||
{
|
||||
"type": "git",
|
||||
"url": "https://git.nas.astrian.moe/Astrian/arsene.git"
|
||||
},
|
||||
{
|
||||
"type": "git",
|
||||
"url": "https://github.com/Astrian/arsene.git"
|
||||
}]
|
||||
},
|
||||
{
|
||||
"type": "git",
|
||||
"url": "https://github.com/Astrian/arsene.git"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
8
src/index.d.ts
vendored
8
src/index.d.ts
vendored
|
@ -0,0 +1,8 @@
|
|||
/**
|
||||
* @description 在页面上使用 Arsene 添加中英/中日文间隙
|
||||
* @param selectedNode 一个 CSS 选择器,用于选择要添加间隙的元素。支持 `.class`、`#id`、`tag` 等选择器。全局使用可以直接使用 `body`。
|
||||
* @param spacing 间隙大小,由大至小有 `2xl`、`xl`、`l`、`m`、`s` 选项。默认为 `s`。
|
||||
* @example arsene('body')
|
||||
* @example arsene('.post-content', 'm')
|
||||
*/
|
||||
export default function (selectedNode: string, spacing?: '2xl' | 'xl' | 'l' | 'm' | 's'): void
|
|
@ -4,7 +4,8 @@
|
|||
"module": "es6",
|
||||
"declaration": true,
|
||||
"outDir": "./dist",
|
||||
"strict": true
|
||||
"strict": true,
|
||||
"removeComments": false
|
||||
},
|
||||
"include": ["src"],
|
||||
"exclude": ["node_modules", "dist"]
|
||||
|
|
Loading…
Reference in New Issue
Block a user