mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-12 23:56:36 +08:00
fix: edgeless pencil color
This commit is contained in:
@@ -109,7 +109,7 @@ export const useShapes = (workspace: string, rootBlockId: string) => {
|
||||
parentId: rootBlockId,
|
||||
...shapeProps,
|
||||
id: block.id,
|
||||
style: { ...defaultStyle },
|
||||
style: { ...defaultStyle, ...(shapeProps.style || {}) },
|
||||
workspace,
|
||||
};
|
||||
} else {
|
||||
@@ -128,6 +128,7 @@ export const useShapes = (workspace: string, rootBlockId: string) => {
|
||||
|
||||
return acc;
|
||||
}, {} as Record<string, TDShape>);
|
||||
console.log('useShapes', blocksShapes);
|
||||
|
||||
return {
|
||||
shapes: blocksShapes,
|
||||
|
||||
@@ -35,6 +35,8 @@ const _getIconRenderColor = (shapes: TDShape[]) => {
|
||||
|
||||
export const BorderColorConfig = ({ app, shapes }: BorderColorConfigProps) => {
|
||||
const setBorderColor = (color: string) => {
|
||||
console.log('shapes', shapes, color);
|
||||
|
||||
app.style({ stroke: color }, getShapeIds(shapes));
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user