-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #332 from idrawjs/dev-v0.4
feat: support custom style of middlewares
- Loading branch information
Showing
32 changed files
with
557 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"private": false, | ||
"version": "0.4.0-beta.30", | ||
"version": "0.4.0-beta.31", | ||
"workspaces": [ | ||
"packages/*" | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import type { MiddlewareInfoStyle } from '@idraw/types'; | ||
|
||
const infoBackground = '#1973bac6'; | ||
const infoTextColor = '#ffffff'; | ||
|
||
export const infoFontSize = 10; | ||
export const infoLineHeight = 16; | ||
|
||
export const defaltStyle: MiddlewareInfoStyle = { | ||
textBackground: infoBackground, | ||
textColor: infoTextColor | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import type { MiddlewareRulerStyle } from '@idraw/types'; | ||
|
||
export const rulerSize = 16; | ||
export const fontSize = 10; | ||
export const fontWeight = 100; | ||
export const lineSize = 1; | ||
export const fontFamily = 'monospace'; | ||
|
||
const background = '#FFFFFFA8'; | ||
const borderColor = '#00000080'; | ||
const scaleColor = '#000000'; | ||
const textColor = '#00000080'; | ||
const gridColor = '#AAAAAA20'; | ||
const gridPrimaryColor = '#AAAAAA40'; | ||
const selectedAreaColor = '#196097'; | ||
|
||
export const defaultStyle: MiddlewareRulerStyle = { | ||
background, | ||
borderColor, | ||
scaleColor, | ||
textColor, | ||
gridColor, | ||
gridPrimaryColor, | ||
selectedAreaColor | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.