fix: edgeless pencil color
This commit is contained in:
@@ -109,7 +109,7 @@ export const useShapes = (workspace: string, rootBlockId: string) => {
|
|||||||
parentId: rootBlockId,
|
parentId: rootBlockId,
|
||||||
...shapeProps,
|
...shapeProps,
|
||||||
id: block.id,
|
id: block.id,
|
||||||
style: { ...defaultStyle },
|
style: { ...defaultStyle, ...(shapeProps.style || {}) },
|
||||||
workspace,
|
workspace,
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
@@ -128,6 +128,7 @@ export const useShapes = (workspace: string, rootBlockId: string) => {
|
|||||||
|
|
||||||
return acc;
|
return acc;
|
||||||
}, {} as Record<string, TDShape>);
|
}, {} as Record<string, TDShape>);
|
||||||
|
console.log('useShapes', blocksShapes);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
shapes: blocksShapes,
|
shapes: blocksShapes,
|
||||||
|
|||||||
@@ -35,6 +35,8 @@ const _getIconRenderColor = (shapes: TDShape[]) => {
|
|||||||
|
|
||||||
export const BorderColorConfig = ({ app, shapes }: BorderColorConfigProps) => {
|
export const BorderColorConfig = ({ app, shapes }: BorderColorConfigProps) => {
|
||||||
const setBorderColor = (color: string) => {
|
const setBorderColor = (color: string) => {
|
||||||
|
console.log('shapes', shapes, color);
|
||||||
|
|
||||||
app.style({ stroke: color }, getShapeIds(shapes));
|
app.style({ stroke: color }, getShapeIds(shapes));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user