Skip to content

Commit

Permalink
fix(edgeless): set default shape style as general type and text font-…
Browse files Browse the repository at this point in the history
…family as sans-serif (#5314)
  • Loading branch information
donteatfriedrice authored Nov 13, 2023
1 parent 6c9ea20 commit 0c7eb06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/blocks/src/surface-block/elements/shape/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const ShapeElementDefaultProps: IElementDefaultProps<'shape'> = {
rotate: 0,

shapeType: 'rect',
shapeStyle: ShapeStyle.Scribbled,
shapeStyle: ShapeStyle.General,
radius: 0,
filled: false,
fillColor: '#ffffff',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ export class ShapeElement extends SurfaceElement<IShape, IShapeLocalRecord> {

get fontFamily() {
const fontFamily =
(this.yMap.get('fontFamily') as IShape['fontFamily']) ??
"'Kalam', cursive";
(this.yMap.get('fontFamily') as IShape['fontFamily']) ?? 'sans-serif';
return fontFamily;
}

Expand Down

1 comment on commit 0c7eb06

@vercel
Copy link

@vercel vercel bot commented on 0c7eb06 Nov 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

blocksuite – ./packages/playground

blocksuite-five.vercel.app
blocksuite-git-master-toeverything.vercel.app
blocksuite-toeverything.vercel.app

Please sign in to comment.