Skip to content

Commit

Permalink
fix: set default shape text as general type and font-family sans-serif
Browse files Browse the repository at this point in the history
  • Loading branch information
donteatfriedrice committed Nov 13, 2023
1 parent febeef3 commit e056394
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

0 comments on commit e056394

Please sign in to comment.