|
@@ -126,6 +126,10 @@ function pickAppStatePropertiesForHistory(
|
|
|
exportBackground: appState.exportBackground,
|
|
|
currentItemStrokeColor: appState.currentItemStrokeColor,
|
|
|
currentItemBackgroundColor: appState.currentItemBackgroundColor,
|
|
|
+ currentItemFillStyle: appState.currentItemFillStyle,
|
|
|
+ currentItemStrokeWidth: appState.currentItemStrokeWidth,
|
|
|
+ currentItemRoughness: appState.currentItemRoughness,
|
|
|
+ currentItemOpacity: appState.currentItemOpacity,
|
|
|
currentItemFont: appState.currentItemFont,
|
|
|
viewBackgroundColor: appState.viewBackgroundColor,
|
|
|
name: appState.name,
|
|
@@ -791,10 +795,10 @@ export class App extends React.Component<any, AppState> {
|
|
|
y,
|
|
|
this.state.currentItemStrokeColor,
|
|
|
this.state.currentItemBackgroundColor,
|
|
|
- "hachure",
|
|
|
- 1,
|
|
|
- 1,
|
|
|
- 100,
|
|
|
+ this.state.currentItemFillStyle,
|
|
|
+ this.state.currentItemStrokeWidth,
|
|
|
+ this.state.currentItemRoughness,
|
|
|
+ this.state.currentItemOpacity,
|
|
|
);
|
|
|
|
|
|
if (isTextElement(element)) {
|
|
@@ -892,6 +896,7 @@ export class App extends React.Component<any, AppState> {
|
|
|
x: textX,
|
|
|
y: textY,
|
|
|
strokeColor: this.state.currentItemStrokeColor,
|
|
|
+ opacity: this.state.currentItemOpacity,
|
|
|
font: this.state.currentItemFont,
|
|
|
onSubmit: text => {
|
|
|
if (text) {
|
|
@@ -1234,10 +1239,10 @@ export class App extends React.Component<any, AppState> {
|
|
|
y,
|
|
|
this.state.currentItemStrokeColor,
|
|
|
this.state.currentItemBackgroundColor,
|
|
|
- "hachure",
|
|
|
- 1,
|
|
|
- 1,
|
|
|
- 100,
|
|
|
+ this.state.currentItemFillStyle,
|
|
|
+ this.state.currentItemStrokeWidth,
|
|
|
+ this.state.currentItemRoughness,
|
|
|
+ this.state.currentItemOpacity,
|
|
|
),
|
|
|
"", // default text
|
|
|
this.state.currentItemFont, // default font
|
|
@@ -1296,6 +1301,7 @@ export class App extends React.Component<any, AppState> {
|
|
|
y: textY,
|
|
|
strokeColor: element.strokeColor,
|
|
|
font: element.font,
|
|
|
+ opacity: this.state.currentItemOpacity,
|
|
|
onSubmit: text => {
|
|
|
if (text) {
|
|
|
elements = [
|