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",
|
"name": "arsene",
|
||||||
"version": "1.0.0",
|
"version": "1.1.2",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "arsene",
|
"name": "arsene",
|
||||||
"version": "1.0.0",
|
"version": "1.1.2",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"typescript": "^5.4.5"
|
"typescript": "^5.4.5"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "arsene",
|
"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.",
|
"description": "Arsene is a library for processing CJK text paragraphs, which are mixed with English characters and adding spacing between them.",
|
||||||
"author": "Astrian Zheng",
|
"author": "Astrian Zheng",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
@ -17,12 +17,14 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"typescript": "^5.4.5"
|
"typescript": "^5.4.5"
|
||||||
},
|
},
|
||||||
"repositories": [{
|
"repositories": [
|
||||||
|
{
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.nas.astrian.moe/Astrian/arsene.git"
|
"url": "https://git.nas.astrian.moe/Astrian/arsene.git"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Astrian/arsene.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",
|
"module": "es6",
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
"strict": true
|
"strict": true,
|
||||||
|
"removeComments": false
|
||||||
},
|
},
|
||||||
"include": ["src"],
|
"include": ["src"],
|
||||||
"exclude": ["node_modules", "dist"]
|
"exclude": ["node_modules", "dist"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user