mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-26 14:58:55 +08:00
feat(core): shape editor settings (#8122)
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/sJGviKxfE3Ap685cl5bj/cdf4f95c-15b4-4eac-be57-26974f9ca02b.mov">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/sJGviKxfE3Ap685cl5bj/cdf4f95c-15b4-4eac-be57-26974f9ca02b.mov">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/sJGviKxfE3Ap685cl5bj/cdf4f95c-15b4-4eac-be57-26974f9ca02b.mov">录屏2024-09-05 21.20.31.mov</video>
This commit is contained in:
@@ -1,20 +1,7 @@
|
||||
import {
|
||||
BrushSchema,
|
||||
ConnectorSchema,
|
||||
EdgelessTextSchema,
|
||||
NoteSchema,
|
||||
ShapeSchema,
|
||||
} from '@blocksuite/affine-shared/utils';
|
||||
import { NodePropsSchema } from '@blocksuite/affine-shared/utils';
|
||||
import { z } from 'zod';
|
||||
|
||||
// TODO import from BlockSuite
|
||||
export const BSEditorSettingSchema = z.object({
|
||||
connector: ConnectorSchema,
|
||||
brush: BrushSchema,
|
||||
shape: ShapeSchema,
|
||||
'affine:edgeless-text': EdgelessTextSchema,
|
||||
'affine:note': NoteSchema,
|
||||
});
|
||||
export const BSEditorSettingSchema = NodePropsSchema;
|
||||
|
||||
export type FontFamily = 'Sans' | 'Serif' | 'Mono' | 'Custom';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user