Enhance Document and Edgeless Board Modes with Drawing Blocks and Mind Map Features; Add Hand-drawn Shape Recognition and React Component Support in BlockSuite #5473
Labels
story
Features perceivable by end-users
Description
1.Add “Board Block“ in document mode of BlockSuite Editor
Add a drawing board block to the document mode, similar to the Yuque drawing board. This block should be exclusively available in the document mode and not in the borderless mode. The drawing board block should enable the creation of mind maps and flowcharts. Note: In the drawing board block, the mind map elements should support relevant shortcuts for mind mapping, such as using the 'tab' key to create child nodes, akin to the functionality in XMind.
ps: button location
![image1](https://private-user-images.githubusercontent.com/125524146/293496123-95882682-2124-40d5-a590-0dba762d93f5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE5MzI0MjMsIm5iZiI6MTcyMTkzMjEyMywicGF0aCI6Ii8xMjU1MjQxNDYvMjkzNDk2MTIzLTk1ODgyNjgyLTIxMjQtNDBkNS1hNTkwLTBkYmE3NjJkOTNmNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzI1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyNVQxODI4NDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01NTNkYTUxYzMxOTJhZjVhZDczMWZhNmY4OGJlNzA2NTUzZWI0YTdhZWNmMjA0YTI2ZjdkNDFjNzAxZjdjMWJiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.CQCP3Ofr74NqW6v_c8KIQVeKWspVwOXbICCAjxG-bXo)
ps: performance
![image2](https://private-user-images.githubusercontent.com/125524146/293496136-1b6d1612-830a-47cd-95e3-78b498300758.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE5MzI0MjMsIm5iZiI6MTcyMTkzMjEyMywicGF0aCI6Ii8xMjU1MjQxNDYvMjkzNDk2MTM2LTFiNmQxNjEyLTgzMGEtNDdjZC05NWUzLTc4YjQ5ODMwMDc1OC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzI1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyNVQxODI4NDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iNGFmMzAyNzk1MWE5YjNhZTE2MWU4OGVkMDk2Njg4MmZiNTEwMWU1ZTIxYmZhY2IzMjFjNGQ5NzM4NTQ4NGFjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.fYbsd0jg_MIeWevafZogFjKEZ3mFzuXy9cpk3nzOMJg)
2.Add MindMap block in Edgeless mode of BlockSuite Editor
Add a special block called “mind map“ distinct from the existing graphic block. Its interactive operations, such as shortcut key , is similar to popular mind mapping software like Xmind.
In the edgeless mode, it is desired to have a hand-drawn shape recognition feature for freehand drawing, similar in operation to Notability and GoodNotes. After drawing, if the contact with the surface is maintained for 1 second, the system should recognize the corresponding shape. The recognizable shapes include square, rectangle, diamond, parallelogram, trapezoid, circle, ellipse, and arrow.
It is hoped that BlockSuite components can provide React-related components. The component usage is as follows:
const App = () => {
const ref = useRef();
return
};
Use case
No response
Anything else?
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: