|
|
@ -104,7 +104,6 @@ class Editor extends React.Component {
|
|
|
|
|
|
|
|
|
|
|
|
updateCode = code => this.updateState({ code })
|
|
|
|
updateCode = code => this.updateState({ code })
|
|
|
|
updateAspectRatio = aspectRatio => this.updateState({ aspectRatio })
|
|
|
|
updateAspectRatio = aspectRatio => this.updateState({ aspectRatio })
|
|
|
|
updateTitleBar = titleBar => this.updateState({ titleBar })
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async getCarbonImage(
|
|
|
|
async getCarbonImage(
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -285,12 +284,11 @@ class Editor extends React.Component {
|
|
|
|
backgroundImage,
|
|
|
|
backgroundImage,
|
|
|
|
backgroundMode,
|
|
|
|
backgroundMode,
|
|
|
|
aspectRatio,
|
|
|
|
aspectRatio,
|
|
|
|
titleBar,
|
|
|
|
|
|
|
|
code,
|
|
|
|
code,
|
|
|
|
exportSize
|
|
|
|
exportSize
|
|
|
|
} = this.state
|
|
|
|
} = this.state
|
|
|
|
|
|
|
|
|
|
|
|
const config = omit(this.state, ['code', 'aspectRatio', 'titleBar'])
|
|
|
|
const config = omit(this.state, ['code', 'aspectRatio'])
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<>
|
|
|
@ -347,8 +345,6 @@ class Editor extends React.Component {
|
|
|
|
config={this.state}
|
|
|
|
config={this.state}
|
|
|
|
onChange={this.updateCode}
|
|
|
|
onChange={this.updateCode}
|
|
|
|
onAspectRatioChange={this.updateAspectRatio}
|
|
|
|
onAspectRatioChange={this.updateAspectRatio}
|
|
|
|
titleBar={titleBar}
|
|
|
|
|
|
|
|
updateTitleBar={this.updateTitleBar}
|
|
|
|
|
|
|
|
loading={this.state.loading}
|
|
|
|
loading={this.state.loading}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
{code != null ? code : DEFAULT_CODE}
|
|
|
|
{code != null ? code : DEFAULT_CODE}
|
|
|
|