├── .browserslistrc ├── .editorconfig ├── .eslintignore ├── .eslintrc ├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .hintrc ├── .husky ├── commit-msg └── pre-commit ├── .lintstagedrc ├── .prettierignore ├── .prettierrc ├── .stylelintignore ├── .stylelintrc ├── README.md ├── babel.config.js ├── commitlint.config.cjs ├── index.html ├── lib.d.ts ├── package.json ├── packages ├── EditorTools │ ├── EditorBox │ │ ├── EditorBox.less │ │ ├── EditorBox.tsx │ │ ├── index.ts │ │ └── props.ts │ ├── MagneticLine │ │ ├── MagneticLine.less │ │ ├── MagneticLine.tsx │ │ ├── index.ts │ │ └── props.ts │ ├── constants │ │ ├── AxleDirection.ts │ │ ├── EditorBox.ts │ │ ├── Magnetic.ts │ │ └── Points.ts │ ├── core │ │ ├── MagneticLineHandler.ts │ │ ├── MaskContainScaleHandler.ts │ │ ├── MaskCoverScaleHandler.ts │ │ ├── RotateHandler.ts │ │ ├── ScaleHandler.ts │ │ └── dragAction.ts │ ├── enum │ │ └── point-type.ts │ ├── helper │ │ ├── magneticLine.ts │ │ ├── math.ts │ │ └── utils.ts │ ├── index.ts │ └── types │ │ ├── Editor.ts │ │ └── MagneticLine.ts └── Screenshot │ ├── CloneNode.ts │ ├── CopyCssStyles.ts │ ├── CreateContext.ts │ ├── Document.ts │ ├── Fetch.ts │ ├── File.ts │ ├── ImageToBlob.ts │ ├── Screenshot.ts │ ├── Svg.ts │ └── index.ts ├── public └── magic.svg ├── scripts └── prepare.js ├── src ├── App.tsx ├── assets │ └── styles │ │ ├── common.less │ │ ├── index.less │ │ ├── reset.less │ │ └── setting.less ├── components │ ├── ContextMenu │ │ ├── ContextMenu.module.less │ │ ├── ContextMenu.tsx │ │ ├── ContextMenuContent.tsx │ │ ├── MenuItemComponent.tsx │ │ ├── SubMenu.tsx │ │ ├── index.ts │ │ └── props.ts │ ├── Crop │ │ ├── Crop.module.less │ │ ├── Crop.tsx │ │ └── index.ts │ ├── Editor │ │ ├── Editor.module.less │ │ ├── Editor.tsx │ │ ├── EditorControl │ │ │ ├── EditorControl.module.less │ │ │ ├── EditorControl.tsx │ │ │ └── index.ts │ │ ├── Hover │ │ │ ├── Hover.module.less │ │ │ ├── Hover.tsx │ │ │ └── index.ts │ │ ├── RichText │ │ │ ├── RichText.module.less │ │ │ ├── RichText.tsx │ │ │ └── index.ts │ │ └── index.ts │ ├── LayerBaseSetting │ │ ├── Flip │ │ │ ├── Flip.module.less │ │ │ ├── Flip.tsx │ │ │ └── index.ts │ │ ├── LayerBaseSetting.module.less │ │ ├── LayerBaseSetting.tsx │ │ ├── LayerPosition │ │ │ ├── LayerPosition.module.less │ │ │ ├── LayerPosition.tsx │ │ │ └── index.ts │ │ └── index.ts │ ├── MenuPopover │ │ ├── MenuPopover.module.less │ │ ├── MenuPopover.tsx │ │ └── index.ts │ ├── Renderer │ │ ├── Layer │ │ │ ├── Back │ │ │ │ ├── Back.module.less │ │ │ │ ├── Back.tsx │ │ │ │ └── index.ts │ │ │ ├── Group │ │ │ │ ├── Group.tsx │ │ │ │ └── index.ts │ │ │ ├── Image │ │ │ │ ├── Image.module.less │ │ │ │ ├── Image.tsx │ │ │ │ └── index.ts │ │ │ ├── Layer.module.less │ │ │ ├── Layer.tsx │ │ │ ├── Shape │ │ │ │ ├── Shape.tsx │ │ │ │ └── index.ts │ │ │ ├── Text │ │ │ │ ├── Text.module.less │ │ │ │ ├── Text.tsx │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── Renderer.module.less │ │ ├── Renderer.tsx │ │ └── index.ts │ ├── SettingContainer │ │ ├── SettingContainer.module.less │ │ ├── SettingContainer.tsx │ │ └── index.ts │ ├── SliderNumberInput │ │ ├── SliderNumberInput.module.less │ │ ├── SliderNumberInput.tsx │ │ └── index.ts │ └── Upload │ │ ├── Upload.tsx │ │ └── index.ts ├── config │ ├── Cmd.ts │ ├── ColorList.ts │ ├── DefaultValues.ts │ ├── Fonts.ts │ ├── HotKeys.ts │ ├── Mocks.ts │ ├── Shape.ts │ └── StageContextMenu.tsx ├── constants │ ├── CacheKeys.ts │ ├── CmdEnum.ts │ ├── Device.ts │ ├── Font.ts │ ├── FontSize.ts │ ├── HotKeyScope.ts │ ├── KeyCode.ts │ ├── LayerRatio.ts │ ├── LayerTypeEnum.ts │ ├── MaterialEnum.ts │ ├── MimeTypes.ts │ ├── NodeNamePlate.ts │ ├── PointList.ts │ ├── Refs.ts │ ├── TemplateSize.ts │ └── ZoomLevel.ts ├── core │ ├── Decorator │ │ └── History.ts │ ├── FormatData │ │ ├── Layer.ts │ │ └── Scene.ts │ ├── Manager │ │ ├── Clipboard.ts │ │ ├── Cmd.ts │ │ ├── ContextMenuManager.ts │ │ ├── History.ts │ │ ├── Keyboard.ts │ │ └── LocalCache.ts │ └── Tools │ │ └── CropMove.ts ├── helpers │ ├── Chain.ts │ ├── Crop.ts │ ├── HotKey.ts │ ├── Node.ts │ ├── Obb.ts │ └── Styles.ts ├── hooks │ ├── index.ts │ ├── useEscapeClose.ts │ ├── useGlobalClick.ts │ └── useResizeObserver.ts ├── layout │ ├── Header │ │ ├── Header.module.less │ │ ├── Header.tsx │ │ └── index.ts │ ├── Layout.module.less │ ├── Layout.tsx │ ├── Material │ │ ├── Content │ │ │ ├── Back │ │ │ │ ├── Back.module.less │ │ │ │ ├── Back.tsx │ │ │ │ └── index.ts │ │ │ ├── Image │ │ │ │ ├── Image.tsx │ │ │ │ └── index.ts │ │ │ ├── Shape │ │ │ │ ├── Shape.module.less │ │ │ │ ├── Shape.tsx │ │ │ │ └── index.ts │ │ │ └── Text │ │ │ │ ├── Text.module.less │ │ │ │ ├── Text.tsx │ │ │ │ └── index.ts │ │ ├── Material.module.less │ │ ├── Material.tsx │ │ ├── SidebarMenu │ │ │ ├── SidebarMenu.module.less │ │ │ ├── SidebarMenu.tsx │ │ │ └── index.ts │ │ ├── constants.ts │ │ └── index.ts │ ├── Setting │ │ ├── Canvas │ │ │ ├── Canvas.module.less │ │ │ ├── Canvas.tsx │ │ │ └── index.ts │ │ ├── Group │ │ │ ├── Group.tsx │ │ │ └── index.ts │ │ ├── Image │ │ │ ├── Image.module.less │ │ │ ├── Image.tsx │ │ │ └── index.ts │ │ ├── Setting.module.less │ │ ├── Setting.tsx │ │ ├── Shape │ │ │ ├── Shape.tsx │ │ │ └── index.ts │ │ ├── Text │ │ │ ├── Text.module.less │ │ │ ├── Text.tsx │ │ │ ├── TextAlign.tsx │ │ │ ├── TextColor.tsx │ │ │ ├── TextFamilyWithSize.tsx │ │ │ ├── TextStyle.tsx │ │ │ └── index.ts │ │ └── index.ts │ ├── Stage │ │ ├── Canvas │ │ │ ├── Canvas.module.less │ │ │ ├── Canvas.tsx │ │ │ └── index.ts │ │ ├── Scenes │ │ │ ├── Scene │ │ │ │ ├── Scene.module.less │ │ │ │ ├── Scene.tsx │ │ │ │ └── index.ts │ │ │ ├── Scenes.module.less │ │ │ ├── Scenes.tsx │ │ │ └── index.ts │ │ ├── Stage.module.less │ │ ├── Stage.tsx │ │ └── index.ts │ └── index.ts ├── main.tsx ├── models │ ├── FactoryStruc │ │ ├── LayerFactory.ts │ │ └── SceneFactory.ts │ ├── LayerStruc │ │ ├── BackgroundStruc.ts │ │ ├── GroupStruc.ts │ │ ├── ImageStruc.ts │ │ ├── LayerStruc.ts │ │ ├── ShapeStruc.ts │ │ ├── TextStruc.ts │ │ └── index.ts │ ├── MagicStruc │ │ ├── MagicStruc.ts │ │ └── index.ts │ └── SceneStruc │ │ ├── SceneStruc.ts │ │ └── index.ts ├── store │ ├── Font.ts │ ├── History.ts │ ├── Magic.ts │ ├── Material.ts │ ├── OS.ts │ └── index.ts ├── types │ ├── canvas.ts │ ├── componentProps.ts │ ├── history.ts │ ├── magic.d.ts │ ├── material.ts │ ├── model.ts │ └── updateOptions.ts └── utils │ ├── charAttrs.ts │ ├── collision.ts │ ├── copyText.ts │ ├── download.ts │ ├── equals.ts │ ├── file.ts │ ├── filterData.ts │ ├── font.ts │ ├── getPreviewSizePosition.ts │ ├── getRectData.ts │ ├── image.ts │ ├── layers.ts │ ├── logo.ts │ ├── mergeData.ts │ ├── move.ts │ ├── penetration.ts │ ├── portalRender.ts │ └── random.ts ├── tsconfig.image.json ├── tsconfig.json ├── tsconfig.node.json ├── vite-env.d.ts └── vite.config.ts /.browserslistrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/.browserslistrc -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/.eslintrc -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/.gitignore -------------------------------------------------------------------------------- /.hintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/.hintrc -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | . "$(dirname -- "$0")/_/husky.sh" 3 | 4 | npm run commitlint 5 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | . "$(dirname -- "$0")/_/husky.sh" 3 | 4 | npm run lint-staged 5 | -------------------------------------------------------------------------------- /.lintstagedrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/.lintstagedrc -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/.prettierrc -------------------------------------------------------------------------------- /.stylelintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/.stylelintignore -------------------------------------------------------------------------------- /.stylelintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/.stylelintrc -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/README.md -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/babel.config.js -------------------------------------------------------------------------------- /commitlint.config.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: ['@commitlint/config-conventional'], 3 | }; 4 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/index.html -------------------------------------------------------------------------------- /lib.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/lib.d.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/package.json -------------------------------------------------------------------------------- /packages/EditorTools/EditorBox/EditorBox.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/EditorTools/EditorBox/EditorBox.less -------------------------------------------------------------------------------- /packages/EditorTools/EditorBox/EditorBox.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/EditorTools/EditorBox/EditorBox.tsx -------------------------------------------------------------------------------- /packages/EditorTools/EditorBox/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './EditorBox'; 2 | -------------------------------------------------------------------------------- /packages/EditorTools/EditorBox/props.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/EditorTools/EditorBox/props.ts -------------------------------------------------------------------------------- /packages/EditorTools/MagneticLine/MagneticLine.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/EditorTools/MagneticLine/MagneticLine.less -------------------------------------------------------------------------------- /packages/EditorTools/MagneticLine/MagneticLine.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/EditorTools/MagneticLine/MagneticLine.tsx -------------------------------------------------------------------------------- /packages/EditorTools/MagneticLine/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './MagneticLine'; 2 | -------------------------------------------------------------------------------- /packages/EditorTools/MagneticLine/props.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/EditorTools/MagneticLine/props.ts -------------------------------------------------------------------------------- /packages/EditorTools/constants/AxleDirection.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/EditorTools/constants/AxleDirection.ts -------------------------------------------------------------------------------- /packages/EditorTools/constants/EditorBox.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/EditorTools/constants/EditorBox.ts -------------------------------------------------------------------------------- /packages/EditorTools/constants/Magnetic.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/EditorTools/constants/Magnetic.ts -------------------------------------------------------------------------------- /packages/EditorTools/constants/Points.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/EditorTools/constants/Points.ts -------------------------------------------------------------------------------- /packages/EditorTools/core/MagneticLineHandler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/EditorTools/core/MagneticLineHandler.ts -------------------------------------------------------------------------------- /packages/EditorTools/core/MaskContainScaleHandler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/EditorTools/core/MaskContainScaleHandler.ts -------------------------------------------------------------------------------- /packages/EditorTools/core/MaskCoverScaleHandler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/EditorTools/core/MaskCoverScaleHandler.ts -------------------------------------------------------------------------------- /packages/EditorTools/core/RotateHandler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/EditorTools/core/RotateHandler.ts -------------------------------------------------------------------------------- /packages/EditorTools/core/ScaleHandler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/EditorTools/core/ScaleHandler.ts -------------------------------------------------------------------------------- /packages/EditorTools/core/dragAction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/EditorTools/core/dragAction.ts -------------------------------------------------------------------------------- /packages/EditorTools/enum/point-type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/EditorTools/enum/point-type.ts -------------------------------------------------------------------------------- /packages/EditorTools/helper/magneticLine.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/EditorTools/helper/magneticLine.ts -------------------------------------------------------------------------------- /packages/EditorTools/helper/math.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/EditorTools/helper/math.ts -------------------------------------------------------------------------------- /packages/EditorTools/helper/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/EditorTools/helper/utils.ts -------------------------------------------------------------------------------- /packages/EditorTools/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/EditorTools/index.ts -------------------------------------------------------------------------------- /packages/EditorTools/types/Editor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/EditorTools/types/Editor.ts -------------------------------------------------------------------------------- /packages/EditorTools/types/MagneticLine.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/EditorTools/types/MagneticLine.ts -------------------------------------------------------------------------------- /packages/Screenshot/CloneNode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/Screenshot/CloneNode.ts -------------------------------------------------------------------------------- /packages/Screenshot/CopyCssStyles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/Screenshot/CopyCssStyles.ts -------------------------------------------------------------------------------- /packages/Screenshot/CreateContext.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/Screenshot/CreateContext.ts -------------------------------------------------------------------------------- /packages/Screenshot/Document.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/Screenshot/Document.ts -------------------------------------------------------------------------------- /packages/Screenshot/Fetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/Screenshot/Fetch.ts -------------------------------------------------------------------------------- /packages/Screenshot/File.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/Screenshot/File.ts -------------------------------------------------------------------------------- /packages/Screenshot/ImageToBlob.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/Screenshot/ImageToBlob.ts -------------------------------------------------------------------------------- /packages/Screenshot/Screenshot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/Screenshot/Screenshot.ts -------------------------------------------------------------------------------- /packages/Screenshot/Svg.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/packages/Screenshot/Svg.ts -------------------------------------------------------------------------------- /packages/Screenshot/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Screenshot'; 2 | -------------------------------------------------------------------------------- /public/magic.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/public/magic.svg -------------------------------------------------------------------------------- /scripts/prepare.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/scripts/prepare.js -------------------------------------------------------------------------------- /src/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/App.tsx -------------------------------------------------------------------------------- /src/assets/styles/common.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/assets/styles/common.less -------------------------------------------------------------------------------- /src/assets/styles/index.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/assets/styles/index.less -------------------------------------------------------------------------------- /src/assets/styles/reset.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/assets/styles/reset.less -------------------------------------------------------------------------------- /src/assets/styles/setting.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/assets/styles/setting.less -------------------------------------------------------------------------------- /src/components/ContextMenu/ContextMenu.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/ContextMenu/ContextMenu.module.less -------------------------------------------------------------------------------- /src/components/ContextMenu/ContextMenu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/ContextMenu/ContextMenu.tsx -------------------------------------------------------------------------------- /src/components/ContextMenu/ContextMenuContent.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/ContextMenu/ContextMenuContent.tsx -------------------------------------------------------------------------------- /src/components/ContextMenu/MenuItemComponent.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/ContextMenu/MenuItemComponent.tsx -------------------------------------------------------------------------------- /src/components/ContextMenu/SubMenu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/ContextMenu/SubMenu.tsx -------------------------------------------------------------------------------- /src/components/ContextMenu/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/ContextMenu/index.ts -------------------------------------------------------------------------------- /src/components/ContextMenu/props.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/ContextMenu/props.ts -------------------------------------------------------------------------------- /src/components/Crop/Crop.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/Crop/Crop.module.less -------------------------------------------------------------------------------- /src/components/Crop/Crop.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/Crop/Crop.tsx -------------------------------------------------------------------------------- /src/components/Crop/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Crop'; 2 | -------------------------------------------------------------------------------- /src/components/Editor/Editor.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/Editor/Editor.module.less -------------------------------------------------------------------------------- /src/components/Editor/Editor.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/Editor/Editor.tsx -------------------------------------------------------------------------------- /src/components/Editor/EditorControl/EditorControl.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/Editor/EditorControl/EditorControl.module.less -------------------------------------------------------------------------------- /src/components/Editor/EditorControl/EditorControl.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/Editor/EditorControl/EditorControl.tsx -------------------------------------------------------------------------------- /src/components/Editor/EditorControl/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './EditorControl'; 2 | -------------------------------------------------------------------------------- /src/components/Editor/Hover/Hover.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/Editor/Hover/Hover.module.less -------------------------------------------------------------------------------- /src/components/Editor/Hover/Hover.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/Editor/Hover/Hover.tsx -------------------------------------------------------------------------------- /src/components/Editor/Hover/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Hover'; 2 | -------------------------------------------------------------------------------- /src/components/Editor/RichText/RichText.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/Editor/RichText/RichText.module.less -------------------------------------------------------------------------------- /src/components/Editor/RichText/RichText.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/Editor/RichText/RichText.tsx -------------------------------------------------------------------------------- /src/components/Editor/RichText/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './RichText'; 2 | -------------------------------------------------------------------------------- /src/components/Editor/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Editor'; 2 | -------------------------------------------------------------------------------- /src/components/LayerBaseSetting/Flip/Flip.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/LayerBaseSetting/Flip/Flip.module.less -------------------------------------------------------------------------------- /src/components/LayerBaseSetting/Flip/Flip.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/LayerBaseSetting/Flip/Flip.tsx -------------------------------------------------------------------------------- /src/components/LayerBaseSetting/Flip/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Flip'; 2 | -------------------------------------------------------------------------------- /src/components/LayerBaseSetting/LayerBaseSetting.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/LayerBaseSetting/LayerBaseSetting.module.less -------------------------------------------------------------------------------- /src/components/LayerBaseSetting/LayerBaseSetting.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/LayerBaseSetting/LayerBaseSetting.tsx -------------------------------------------------------------------------------- /src/components/LayerBaseSetting/LayerPosition/LayerPosition.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/LayerBaseSetting/LayerPosition/LayerPosition.module.less -------------------------------------------------------------------------------- /src/components/LayerBaseSetting/LayerPosition/LayerPosition.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/LayerBaseSetting/LayerPosition/LayerPosition.tsx -------------------------------------------------------------------------------- /src/components/LayerBaseSetting/LayerPosition/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './LayerPosition'; 2 | -------------------------------------------------------------------------------- /src/components/LayerBaseSetting/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './LayerBaseSetting'; 2 | -------------------------------------------------------------------------------- /src/components/MenuPopover/MenuPopover.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/MenuPopover/MenuPopover.module.less -------------------------------------------------------------------------------- /src/components/MenuPopover/MenuPopover.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/MenuPopover/MenuPopover.tsx -------------------------------------------------------------------------------- /src/components/MenuPopover/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './MenuPopover'; 2 | -------------------------------------------------------------------------------- /src/components/Renderer/Layer/Back/Back.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/Renderer/Layer/Back/Back.module.less -------------------------------------------------------------------------------- /src/components/Renderer/Layer/Back/Back.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/Renderer/Layer/Back/Back.tsx -------------------------------------------------------------------------------- /src/components/Renderer/Layer/Back/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Back'; 2 | -------------------------------------------------------------------------------- /src/components/Renderer/Layer/Group/Group.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/Renderer/Layer/Group/Group.tsx -------------------------------------------------------------------------------- /src/components/Renderer/Layer/Group/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Group'; 2 | -------------------------------------------------------------------------------- /src/components/Renderer/Layer/Image/Image.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/Renderer/Layer/Image/Image.module.less -------------------------------------------------------------------------------- /src/components/Renderer/Layer/Image/Image.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/Renderer/Layer/Image/Image.tsx -------------------------------------------------------------------------------- /src/components/Renderer/Layer/Image/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Image'; 2 | -------------------------------------------------------------------------------- /src/components/Renderer/Layer/Layer.module.less: -------------------------------------------------------------------------------- 1 | .layer { 2 | position: absolute; 3 | overflow: hidden; 4 | } 5 | -------------------------------------------------------------------------------- /src/components/Renderer/Layer/Layer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/Renderer/Layer/Layer.tsx -------------------------------------------------------------------------------- /src/components/Renderer/Layer/Shape/Shape.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/Renderer/Layer/Shape/Shape.tsx -------------------------------------------------------------------------------- /src/components/Renderer/Layer/Shape/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Shape'; 2 | -------------------------------------------------------------------------------- /src/components/Renderer/Layer/Text/Text.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/Renderer/Layer/Text/Text.module.less -------------------------------------------------------------------------------- /src/components/Renderer/Layer/Text/Text.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/Renderer/Layer/Text/Text.tsx -------------------------------------------------------------------------------- /src/components/Renderer/Layer/Text/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Text'; 2 | -------------------------------------------------------------------------------- /src/components/Renderer/Layer/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Layer'; 2 | -------------------------------------------------------------------------------- /src/components/Renderer/Renderer.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/Renderer/Renderer.module.less -------------------------------------------------------------------------------- /src/components/Renderer/Renderer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/Renderer/Renderer.tsx -------------------------------------------------------------------------------- /src/components/Renderer/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Renderer'; 2 | -------------------------------------------------------------------------------- /src/components/SettingContainer/SettingContainer.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/SettingContainer/SettingContainer.module.less -------------------------------------------------------------------------------- /src/components/SettingContainer/SettingContainer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/SettingContainer/SettingContainer.tsx -------------------------------------------------------------------------------- /src/components/SettingContainer/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './SettingContainer'; 2 | -------------------------------------------------------------------------------- /src/components/SliderNumberInput/SliderNumberInput.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/SliderNumberInput/SliderNumberInput.module.less -------------------------------------------------------------------------------- /src/components/SliderNumberInput/SliderNumberInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/SliderNumberInput/SliderNumberInput.tsx -------------------------------------------------------------------------------- /src/components/SliderNumberInput/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './SliderNumberInput'; 2 | -------------------------------------------------------------------------------- /src/components/Upload/Upload.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/components/Upload/Upload.tsx -------------------------------------------------------------------------------- /src/components/Upload/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Upload'; 2 | -------------------------------------------------------------------------------- /src/config/Cmd.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/config/Cmd.ts -------------------------------------------------------------------------------- /src/config/ColorList.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/config/ColorList.ts -------------------------------------------------------------------------------- /src/config/DefaultValues.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/config/DefaultValues.ts -------------------------------------------------------------------------------- /src/config/Fonts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/config/Fonts.ts -------------------------------------------------------------------------------- /src/config/HotKeys.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/config/HotKeys.ts -------------------------------------------------------------------------------- /src/config/Mocks.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/config/Mocks.ts -------------------------------------------------------------------------------- /src/config/Shape.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/config/Shape.ts -------------------------------------------------------------------------------- /src/config/StageContextMenu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/config/StageContextMenu.tsx -------------------------------------------------------------------------------- /src/constants/CacheKeys.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/constants/CacheKeys.ts -------------------------------------------------------------------------------- /src/constants/CmdEnum.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/constants/CmdEnum.ts -------------------------------------------------------------------------------- /src/constants/Device.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/constants/Device.ts -------------------------------------------------------------------------------- /src/constants/Font.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/constants/Font.ts -------------------------------------------------------------------------------- /src/constants/FontSize.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/constants/FontSize.ts -------------------------------------------------------------------------------- /src/constants/HotKeyScope.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/constants/HotKeyScope.ts -------------------------------------------------------------------------------- /src/constants/KeyCode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/constants/KeyCode.ts -------------------------------------------------------------------------------- /src/constants/LayerRatio.ts: -------------------------------------------------------------------------------- 1 | /** 复制位置偏移量 与画布大小的百分比 */ 2 | export const COPY_OFFSET_RATIO = 0.01; 3 | -------------------------------------------------------------------------------- /src/constants/LayerTypeEnum.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/constants/LayerTypeEnum.ts -------------------------------------------------------------------------------- /src/constants/MaterialEnum.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/constants/MaterialEnum.ts -------------------------------------------------------------------------------- /src/constants/MimeTypes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/constants/MimeTypes.ts -------------------------------------------------------------------------------- /src/constants/NodeNamePlate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/constants/NodeNamePlate.ts -------------------------------------------------------------------------------- /src/constants/PointList.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/constants/PointList.ts -------------------------------------------------------------------------------- /src/constants/Refs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/constants/Refs.ts -------------------------------------------------------------------------------- /src/constants/TemplateSize.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/constants/TemplateSize.ts -------------------------------------------------------------------------------- /src/constants/ZoomLevel.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/constants/ZoomLevel.ts -------------------------------------------------------------------------------- /src/core/Decorator/History.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/core/Decorator/History.ts -------------------------------------------------------------------------------- /src/core/FormatData/Layer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/core/FormatData/Layer.ts -------------------------------------------------------------------------------- /src/core/FormatData/Scene.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/core/FormatData/Scene.ts -------------------------------------------------------------------------------- /src/core/Manager/Clipboard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/core/Manager/Clipboard.ts -------------------------------------------------------------------------------- /src/core/Manager/Cmd.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/core/Manager/Cmd.ts -------------------------------------------------------------------------------- /src/core/Manager/ContextMenuManager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/core/Manager/ContextMenuManager.ts -------------------------------------------------------------------------------- /src/core/Manager/History.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/core/Manager/History.ts -------------------------------------------------------------------------------- /src/core/Manager/Keyboard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/core/Manager/Keyboard.ts -------------------------------------------------------------------------------- /src/core/Manager/LocalCache.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/core/Manager/LocalCache.ts -------------------------------------------------------------------------------- /src/core/Tools/CropMove.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/core/Tools/CropMove.ts -------------------------------------------------------------------------------- /src/helpers/Chain.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/helpers/Chain.ts -------------------------------------------------------------------------------- /src/helpers/Crop.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/helpers/Crop.ts -------------------------------------------------------------------------------- /src/helpers/HotKey.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/helpers/HotKey.ts -------------------------------------------------------------------------------- /src/helpers/Node.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/helpers/Node.ts -------------------------------------------------------------------------------- /src/helpers/Obb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/helpers/Obb.ts -------------------------------------------------------------------------------- /src/helpers/Styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/helpers/Styles.ts -------------------------------------------------------------------------------- /src/hooks/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/hooks/index.ts -------------------------------------------------------------------------------- /src/hooks/useEscapeClose.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/hooks/useEscapeClose.ts -------------------------------------------------------------------------------- /src/hooks/useGlobalClick.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/hooks/useGlobalClick.ts -------------------------------------------------------------------------------- /src/hooks/useResizeObserver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/hooks/useResizeObserver.ts -------------------------------------------------------------------------------- /src/layout/Header/Header.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Header/Header.module.less -------------------------------------------------------------------------------- /src/layout/Header/Header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Header/Header.tsx -------------------------------------------------------------------------------- /src/layout/Header/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Header'; 2 | -------------------------------------------------------------------------------- /src/layout/Layout.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Layout.module.less -------------------------------------------------------------------------------- /src/layout/Layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Layout.tsx -------------------------------------------------------------------------------- /src/layout/Material/Content/Back/Back.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Material/Content/Back/Back.module.less -------------------------------------------------------------------------------- /src/layout/Material/Content/Back/Back.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Material/Content/Back/Back.tsx -------------------------------------------------------------------------------- /src/layout/Material/Content/Back/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Back'; 2 | -------------------------------------------------------------------------------- /src/layout/Material/Content/Image/Image.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Material/Content/Image/Image.tsx -------------------------------------------------------------------------------- /src/layout/Material/Content/Image/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Image'; 2 | -------------------------------------------------------------------------------- /src/layout/Material/Content/Shape/Shape.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Material/Content/Shape/Shape.module.less -------------------------------------------------------------------------------- /src/layout/Material/Content/Shape/Shape.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Material/Content/Shape/Shape.tsx -------------------------------------------------------------------------------- /src/layout/Material/Content/Shape/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Shape'; 2 | -------------------------------------------------------------------------------- /src/layout/Material/Content/Text/Text.module.less: -------------------------------------------------------------------------------- 1 | .text { 2 | position: relative; 3 | } 4 | -------------------------------------------------------------------------------- /src/layout/Material/Content/Text/Text.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Material/Content/Text/Text.tsx -------------------------------------------------------------------------------- /src/layout/Material/Content/Text/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Text'; 2 | -------------------------------------------------------------------------------- /src/layout/Material/Material.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Material/Material.module.less -------------------------------------------------------------------------------- /src/layout/Material/Material.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Material/Material.tsx -------------------------------------------------------------------------------- /src/layout/Material/SidebarMenu/SidebarMenu.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Material/SidebarMenu/SidebarMenu.module.less -------------------------------------------------------------------------------- /src/layout/Material/SidebarMenu/SidebarMenu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Material/SidebarMenu/SidebarMenu.tsx -------------------------------------------------------------------------------- /src/layout/Material/SidebarMenu/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './SidebarMenu'; 2 | -------------------------------------------------------------------------------- /src/layout/Material/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Material/constants.ts -------------------------------------------------------------------------------- /src/layout/Material/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Material'; 2 | -------------------------------------------------------------------------------- /src/layout/Setting/Canvas/Canvas.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Setting/Canvas/Canvas.module.less -------------------------------------------------------------------------------- /src/layout/Setting/Canvas/Canvas.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Setting/Canvas/Canvas.tsx -------------------------------------------------------------------------------- /src/layout/Setting/Canvas/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Canvas'; 2 | -------------------------------------------------------------------------------- /src/layout/Setting/Group/Group.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Setting/Group/Group.tsx -------------------------------------------------------------------------------- /src/layout/Setting/Group/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Group'; 2 | -------------------------------------------------------------------------------- /src/layout/Setting/Image/Image.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Setting/Image/Image.module.less -------------------------------------------------------------------------------- /src/layout/Setting/Image/Image.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Setting/Image/Image.tsx -------------------------------------------------------------------------------- /src/layout/Setting/Image/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Image'; 2 | -------------------------------------------------------------------------------- /src/layout/Setting/Setting.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Setting/Setting.module.less -------------------------------------------------------------------------------- /src/layout/Setting/Setting.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Setting/Setting.tsx -------------------------------------------------------------------------------- /src/layout/Setting/Shape/Shape.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Setting/Shape/Shape.tsx -------------------------------------------------------------------------------- /src/layout/Setting/Shape/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Shape'; 2 | -------------------------------------------------------------------------------- /src/layout/Setting/Text/Text.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Setting/Text/Text.module.less -------------------------------------------------------------------------------- /src/layout/Setting/Text/Text.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Setting/Text/Text.tsx -------------------------------------------------------------------------------- /src/layout/Setting/Text/TextAlign.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Setting/Text/TextAlign.tsx -------------------------------------------------------------------------------- /src/layout/Setting/Text/TextColor.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Setting/Text/TextColor.tsx -------------------------------------------------------------------------------- /src/layout/Setting/Text/TextFamilyWithSize.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Setting/Text/TextFamilyWithSize.tsx -------------------------------------------------------------------------------- /src/layout/Setting/Text/TextStyle.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Setting/Text/TextStyle.tsx -------------------------------------------------------------------------------- /src/layout/Setting/Text/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Text'; 2 | -------------------------------------------------------------------------------- /src/layout/Setting/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Setting'; 2 | -------------------------------------------------------------------------------- /src/layout/Stage/Canvas/Canvas.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Stage/Canvas/Canvas.module.less -------------------------------------------------------------------------------- /src/layout/Stage/Canvas/Canvas.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Stage/Canvas/Canvas.tsx -------------------------------------------------------------------------------- /src/layout/Stage/Canvas/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Canvas'; 2 | -------------------------------------------------------------------------------- /src/layout/Stage/Scenes/Scene/Scene.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Stage/Scenes/Scene/Scene.module.less -------------------------------------------------------------------------------- /src/layout/Stage/Scenes/Scene/Scene.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Stage/Scenes/Scene/Scene.tsx -------------------------------------------------------------------------------- /src/layout/Stage/Scenes/Scene/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Stage/Scenes/Scene/index.ts -------------------------------------------------------------------------------- /src/layout/Stage/Scenes/Scenes.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Stage/Scenes/Scenes.module.less -------------------------------------------------------------------------------- /src/layout/Stage/Scenes/Scenes.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Stage/Scenes/Scenes.tsx -------------------------------------------------------------------------------- /src/layout/Stage/Scenes/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Scenes'; 2 | -------------------------------------------------------------------------------- /src/layout/Stage/Stage.module.less: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Stage/Stage.module.less -------------------------------------------------------------------------------- /src/layout/Stage/Stage.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/layout/Stage/Stage.tsx -------------------------------------------------------------------------------- /src/layout/Stage/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Stage'; 2 | -------------------------------------------------------------------------------- /src/layout/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Layout'; 2 | -------------------------------------------------------------------------------- /src/main.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/main.tsx -------------------------------------------------------------------------------- /src/models/FactoryStruc/LayerFactory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/models/FactoryStruc/LayerFactory.ts -------------------------------------------------------------------------------- /src/models/FactoryStruc/SceneFactory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/models/FactoryStruc/SceneFactory.ts -------------------------------------------------------------------------------- /src/models/LayerStruc/BackgroundStruc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/models/LayerStruc/BackgroundStruc.ts -------------------------------------------------------------------------------- /src/models/LayerStruc/GroupStruc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/models/LayerStruc/GroupStruc.ts -------------------------------------------------------------------------------- /src/models/LayerStruc/ImageStruc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/models/LayerStruc/ImageStruc.ts -------------------------------------------------------------------------------- /src/models/LayerStruc/LayerStruc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/models/LayerStruc/LayerStruc.ts -------------------------------------------------------------------------------- /src/models/LayerStruc/ShapeStruc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/models/LayerStruc/ShapeStruc.ts -------------------------------------------------------------------------------- /src/models/LayerStruc/TextStruc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/models/LayerStruc/TextStruc.ts -------------------------------------------------------------------------------- /src/models/LayerStruc/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/models/LayerStruc/index.ts -------------------------------------------------------------------------------- /src/models/MagicStruc/MagicStruc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/models/MagicStruc/MagicStruc.ts -------------------------------------------------------------------------------- /src/models/MagicStruc/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './MagicStruc'; 2 | -------------------------------------------------------------------------------- /src/models/SceneStruc/SceneStruc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/models/SceneStruc/SceneStruc.ts -------------------------------------------------------------------------------- /src/models/SceneStruc/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './SceneStruc'; 2 | -------------------------------------------------------------------------------- /src/store/Font.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/store/Font.ts -------------------------------------------------------------------------------- /src/store/History.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/store/History.ts -------------------------------------------------------------------------------- /src/store/Magic.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/store/Magic.ts -------------------------------------------------------------------------------- /src/store/Material.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/store/Material.ts -------------------------------------------------------------------------------- /src/store/OS.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/store/OS.ts -------------------------------------------------------------------------------- /src/store/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/store/index.ts -------------------------------------------------------------------------------- /src/types/canvas.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/types/canvas.ts -------------------------------------------------------------------------------- /src/types/componentProps.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/types/componentProps.ts -------------------------------------------------------------------------------- /src/types/history.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/types/history.ts -------------------------------------------------------------------------------- /src/types/magic.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/types/magic.d.ts -------------------------------------------------------------------------------- /src/types/material.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/types/material.ts -------------------------------------------------------------------------------- /src/types/model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/types/model.ts -------------------------------------------------------------------------------- /src/types/updateOptions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/types/updateOptions.ts -------------------------------------------------------------------------------- /src/utils/charAttrs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/utils/charAttrs.ts -------------------------------------------------------------------------------- /src/utils/collision.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/utils/collision.ts -------------------------------------------------------------------------------- /src/utils/copyText.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/utils/copyText.ts -------------------------------------------------------------------------------- /src/utils/download.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/utils/download.ts -------------------------------------------------------------------------------- /src/utils/equals.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/utils/equals.ts -------------------------------------------------------------------------------- /src/utils/file.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/utils/file.ts -------------------------------------------------------------------------------- /src/utils/filterData.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/utils/filterData.ts -------------------------------------------------------------------------------- /src/utils/font.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/utils/font.ts -------------------------------------------------------------------------------- /src/utils/getPreviewSizePosition.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/utils/getPreviewSizePosition.ts -------------------------------------------------------------------------------- /src/utils/getRectData.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/utils/getRectData.ts -------------------------------------------------------------------------------- /src/utils/image.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/utils/image.ts -------------------------------------------------------------------------------- /src/utils/layers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/utils/layers.ts -------------------------------------------------------------------------------- /src/utils/logo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/utils/logo.ts -------------------------------------------------------------------------------- /src/utils/mergeData.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/utils/mergeData.ts -------------------------------------------------------------------------------- /src/utils/move.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/utils/move.ts -------------------------------------------------------------------------------- /src/utils/penetration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/utils/penetration.ts -------------------------------------------------------------------------------- /src/utils/portalRender.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/utils/portalRender.ts -------------------------------------------------------------------------------- /src/utils/random.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/src/utils/random.ts -------------------------------------------------------------------------------- /tsconfig.image.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/tsconfig.image.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.node.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/tsconfig.node.json -------------------------------------------------------------------------------- /vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qiangqiang-id/magic/HEAD/vite.config.ts --------------------------------------------------------------------------------