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

feat: 新增变形文字 #540

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 7 additions & 0 deletions .eslintrc-auto-import.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
"Component": true,
"ComponentPublicInstance": true,
"ComputedRef": true,
"DirectiveBinding": true,
"EffectScope": true,
"ExtractDefaultPropTypes": true,
"ExtractPropTypes": true,
"ExtractPublicPropTypes": true,
"InjectionKey": true,
"MaybeRef": true,
"MaybeRefOrGetter": true,
"PropType": true,
"Ref": true,
"VNode": true,
Expand Down Expand Up @@ -41,6 +44,7 @@
"onServerPrefetch": true,
"onUnmounted": true,
"onUpdated": true,
"onWatcherCleanup": true,
"provide": true,
"reactive": true,
"readonly": true,
Expand All @@ -58,7 +62,10 @@
"useAttrs": true,
"useCssModule": true,
"useCssVars": true,
"useId": true,
"useModel": true,
"useSlots": true,
"useTemplateRef": true,
"watch": true,
"watchEffect": true,
"watchPostEffect": true,
Expand Down
19 changes: 19 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,25 @@ module.exports = {
'vue/no-setup-props-destructure': 'off',
'vuejs-accessibility/anchor-has-content': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'prefer-const': 'off', //如果一个变量从未被重新赋值,那么使用const声明会更好。
'@typescript-eslint/ban-ts-comment': 'off', // 关闭禁止ts注释忽略校验
'@typescript-eslint/ban-types': [
//忽略默认的禁止类型
'error',
{
types: {
String: false,
Boolean: false,
Number: false,
Symbol: false,
'{}': false,
Object: false,
object: false,
Function: false,
},
extendDefaults: true,
},
],
},
overrides: [
{
Expand Down
4 changes: 3 additions & 1 deletion packages/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ import EventType from './eventType';
import Utils from './utils/utils';
import CustomRect from './objects/CustomRect';
import CustomTextbox from './objects/CustomTextbox';
import ArcText from './objects/ArcText';

// import { extend } from 'dayjs';

export { EventType, Utils, CustomRect, CustomTextbox };
export { EventType, Utils, CustomRect, CustomTextbox, ArcText };
export default Editor;

export * from './interface/Editor';
Loading
Loading