diff --git a/docs/features/core.md b/docs/features/core.md index aeda8b2..f0e77d9 100644 --- a/docs/features/core.md +++ b/docs/features/core.md @@ -1 +1,12 @@ -- [x] \ No newline at end of file +- [x] Scale canvas +- [x] Scroll canvas +- [] Render data's elements + - [] Text + - [] Rect + - [] Circle + - [] Image + - [] Point +- [] Drag elements +- [] Move elements' index +- [] Transform elements's size +- [] Undo action record \ No newline at end of file diff --git a/docs/features/idraw.md b/docs/features/idraw.md index e69de29..593f526 100644 --- a/docs/features/idraw.md +++ b/docs/features/idraw.md @@ -0,0 +1,3 @@ +- [] Dashboard +- [] Data input +- [] Result export \ No newline at end of file diff --git a/packages/core/example/lib/data.js b/packages/core/example/lib/data.js index fef0559..6027f5d 100644 --- a/packages/core/example/lib/data.js +++ b/packages/core/example/lib/data.js @@ -44,10 +44,6 @@ const data = { ] } -function getData() { - return data; -} -export { - getData -}; \ No newline at end of file + +export default data; \ No newline at end of file diff --git a/packages/core/example/main.js b/packages/core/example/main.js index 9bc0b45..7e1d58f 100644 --- a/packages/core/example/main.js +++ b/packages/core/example/main.js @@ -1,10 +1,9 @@ -import { getData } from './lib/data.js'; +import data from './lib/data.js'; import { doScale } from './lib/scale.js'; import { doScroll } from './lib/scroll.js'; const { Core } = window.iDraw; -const data = getData(); const mount = document.querySelector('#mount'); const defaultConf = { scale: 0.5,