Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

84 feature line图形关键点编辑 #90

Merged
merged 31 commits into from
Sep 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
4143a5f
update: 更新不同锚点对应的鼠标样式处理逻辑
Apr 7, 2024
9126064
update: 取消高亮框时的事件处理补充
Apr 11, 2024
66b4c13
refactor: 重构方法名
Apr 11, 2024
ac95361
update: 更新方法名
Apr 11, 2024
f93eded
update: 初始化pointAnchor创建函数
Apr 11, 2024
14a9b3a
refactor: 代码重构
Apr 11, 2024
7376395
update: 创建line的关键点锚点
JessYan0913 Apr 16, 2024
954f5e0
Merge remote-tracking branch 'origin/main' into 84-featureline图形关键点编辑
Apr 17, 2024
59a8c75
Merge remote-tracking branch 'origin/main' into 84-featureline图形关键点编辑
Sep 4, 2024
3b33e18
style: 格式化换行逗号
Sep 4, 2024
d9d7335
update: 删除无用配置
Sep 4, 2024
163fcca
build: 删除无用的依赖库,简化项目依赖
Sep 4, 2024
e8a9d40
style: 更新commitlint配置文件
Sep 4, 2024
5d879c5
style: 更新eslint及prettier配置文件名称
Sep 4, 2024
014a10c
style: 更新代码校验格式
Sep 4, 2024
3454e88
refactor: 升级core包的依赖代码
Sep 4, 2024
4c9b628
refactor: 防止toJSON报错
Sep 5, 2024
e00596a
feat: 增加线条顶点锚点图形,可用于编辑线条顶点
Sep 5, 2024
6e34836
refactor: 更新连线锚点编辑
Sep 5, 2024
04a77dc
feat: 实现锚点编辑line顶点的功能
Sep 5, 2024
aff482a
refactor: destroy的时候销毁innerPortal
Sep 5, 2024
bc8048c
refactor: 存在一个奇怪的现象,鼠标移动时会将enable切换为false??
Sep 5, 2024
4dbbd1e
fix(packages/plugin-alignment/src/alignment packages/plugin-history/s…
Sep 6, 2024
3f5542d
fix: 解决选择器锚点拖拽形变后无法点击空白处取消选择问题
Sep 6, 2024
05968d7
refactor: 顶点锚点在line拖拽时跟随更新
Sep 6, 2024
c1d266c
refactor: 解决line形变后锚点位置创建失败
Sep 6, 2024
3182d5d
refactor: 重构代码结构
Sep 6, 2024
479d921
refactor: 优化代码结构
Sep 6, 2024
893617c
refactor: 代码结构优化
Sep 6, 2024
e7987ea
refactor: 代码结构优化
Sep 6, 2024
698ffdf
feat: 完成选择器line关键点编辑功能
JessYan0913 Sep 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": ["@commitlint/config-conventional"],
"rules": {
"type-enum": [
2,
"always",
["build", "chore", "ci", "docs", "feat", "fix", "perf", "refactor", "revert", "style", "test"]
],
"subject-case": [2, "never", ["sentence-case", "start-case", "pascal-case", "upper-case"]]
}
}
151 changes: 0 additions & 151 deletions .eslintrc.js

This file was deleted.

160 changes: 160 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
{
"root": true,
"env": {
"node": true,
"browser": true,
"es2022": true
},
"globals": {
"describe": true,
"it": true,
"expect": true,
"beforeEach": true,
"NodeJS": true
},
"extends": ["plugin:vue/vue3-recommended", "eslint:recommended", "plugin:prettier/recommended"],
"parser": "vue-eslint-parser",
"parserOptions": {
"ecmaVersion": 12,
"parser": "@typescript-eslint/parser",
"extraFileExtensions": [".vue"],
"sourceType": "module",
"project": ["./tsconfig.json"]
},
"plugins": ["vue", "@typescript-eslint", "simple-import-sort", "prettier"],
"ignorePatterns": [".eslintrc.js"],
"rules": {
// eslint (http://eslint.cn/docs/rules)
"no-var": ["error"],
"no-multiple-empty-lines": ["error", { "max": 1 }],
"no-debugger": ["error"],
"no-extra-bind": ["error"],

// typescript (http://typescript-eslint.io/rules)
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "all",
"argsIgnorePattern": "^_",
"caughtErrors": "all",
"caughtErrorsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
],
"@typescript-eslint/class-literal-property-style": ["error", "getters"],
"@typescript-eslint/no-empty-function": ["off"],
"@typescript-eslint/no-require-imports": ["off"],
"@typescript-eslint/no-misused-promises": [
"error",
{
"checksVoidReturn": false
}
],

// vue (http://eslint.vuejs.org/rules)
"vue/one-component-per-file": ["error"],
"vue/require-default-prop": ["off"],
"vue/no-mutating-props": ["off"],
"vue/multi-word-component-names": ["off"],
"vue/padding-line-between-blocks": ["error"],
"vue/require-component-is": ["error"],
"vue/require-toggle-inside-transition": ["off"],
"vue/component-definition-name-casing": ["error", "PascalCase"],
"vue/component-name-in-template-casing": ["error", "PascalCase"],
"vue/component-options-name-casing": ["error", "PascalCase"],
"vue/no-reserved-component-names": ["error", { "disallowVue3BuiltInComponents": true }],
"vue/component-tags-order": ["error", { "order": ["script:not([setup])", "script[setup]", "template", "style"] }],
"vue/block-lang": ["error", { "script": { "lang": "ts" } }],
"vue/no-template-shadow": ["off"],
"vue/attributes-order": [
"error",
{
"order": [
"LIST_RENDERING",
"CONDITIONALS",
"RENDER_MODIFIERS",
"GLOBAL",
"UNIQUE",
"TWO_WAY_BINDING",
"DEFINITION",
"OTHER_ATTR",
"EVENTS",
"CONTENT"
]
}
],
"vue/order-in-components": [
"error",
{
"order": [
"name",
["components", "directives"],
["mixins", "provide", "inject"],
"props",
"emits",
"data",
"computed",
"watch",
"LIFECYCLE_HOOKS",
"methods",
["template", "render"],
"renderError"
]
}
],
"vue/valid-attribute-name": ["off"],
"vue/no-v-html": ["error"],
"vue/no-unused-refs": ["error"],
"vue/no-unused-vars": ["error"],
"vue/no-undef-properties": ["error"],
"vue/no-lone-template": ["error"],
"vue/v-on-function-call": ["error"],
"vue/v-on-event-hyphenation": ["error", "always", { "autofix": true }],

"simple-import-sort/imports": [
"error",
{
"groups": [
["./polyfills"],
// Node.js builtins. You could also generate this regex if you use a `.js` config.
// For example: `^(${require("module").builtinModules.join("|")})(/|$)`
[
"^(assert|buffer|child_process|cluster|console|constants|crypto|dgram|dns|domain|events|fs|http|https|module|net|os|path|punycode|querystring|readline|repl|stream|string_decoder|sys|timers|tls|tty|url|util|vm|zlib|freelist|v8|process|async_hooks|http2|perf_hooks)(/.*|$)"
],
// Packages. `react|vue` related packages come first.
["^(react|vue|vite)", "^@?\\w"],
["^(@tmagic)(/.*|$)"],
// Internal packages.
["^(@|@editor)(/.*|$)"],
// Side effect imports.
["^\\u0000"],
// Parent imports. Put `..` last.
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
// Other relative imports. Put same-folder imports and `.` last.
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
// Style imports.
["^.+\\.s?css$"]
]
}
],

"prettier/prettier": [
"error",
{
"singleQuote": true,
"trailingComma": "all",
"semi": true,
"arrowParens": "always",
"bracketSpacing": true,
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
"endOfLine": "auto",
"vueIndentScriptAndStyle": false,
"vueIndentHTML": false
}
]
}
}
13 changes: 0 additions & 13 deletions .prettierrc.js

This file was deleted.

13 changes: 13 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"singleQuote": true,
"trailingComma": "all",
"semi": true,
"arrowParens": "always",
"bracketSpacing": true,
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
"endOfLine": "auto",
"vueIndentScriptAndStyle": false,
"vueIndentHTML": false
}
3 changes: 0 additions & 3 deletions babel.config.js

This file was deleted.

6 changes: 0 additions & 6 deletions commitlint.config.js

This file was deleted.

Loading