@@ -7,7 +7,7 @@ import { htmlAutoLayoutProps } from "./builderImpl/htmlAutoLayout";
77import { formatWithJSX } from "../common/parseJSX" ;
88import { commonSortChildrenWhenInferredAutoLayout } from "../common/commonChildrenOrder" ;
99
10- let showLayerName = false ;
10+ let showLayerNames = false ;
1111
1212const selfClosingTags = [ "img" ] ;
1313
@@ -21,7 +21,7 @@ export const htmlMain = (
2121 settings : PluginSettings ,
2222 isPreview : boolean = false ,
2323) : string => {
24- showLayerName = settings . layerName ;
24+ showLayerNames = settings . showLayerNames ;
2525 isPreviewGlobal = isPreview ;
2626 previousExecutionCache = [ ] ;
2727 localSettings = settings ;
@@ -95,7 +95,7 @@ const htmlGroup = (node: GroupNode, isJsx: boolean = false): string => {
9595 // this needs to be called after CustomNode because widthHeight depends on it
9696 const builder = new HtmlDefaultBuilder (
9797 node ,
98- showLayerName ,
98+ showLayerNames ,
9999 isJsx ,
100100 ) . commonPositionStyles ( node , localSettings . optimizeLayout ) ;
101101
@@ -112,7 +112,7 @@ const htmlGroup = (node: GroupNode, isJsx: boolean = false): string => {
112112
113113// this was split from htmlText to help the UI part, where the style is needed (without <p></p>).
114114export const htmlText = ( node : TextNode , isJsx : boolean ) : string => {
115- let layoutBuilder = new HtmlTextBuilder ( node , showLayerName , isJsx )
115+ let layoutBuilder = new HtmlTextBuilder ( node , showLayerNames , isJsx )
116116 . commonPositionStyles ( node , localSettings . optimizeLayout )
117117 . textAlign ( node ) ;
118118
@@ -168,7 +168,7 @@ export const htmlAsset = (node: SceneNode, isJsx: boolean = false): string => {
168168 return "" ;
169169 }
170170
171- const builder = new HtmlDefaultBuilder ( node , showLayerName , isJsx )
171+ const builder = new HtmlDefaultBuilder ( node , showLayerNames , isJsx )
172172 . commonPositionStyles ( node , localSettings . optimizeLayout )
173173 . commonShapeStyles ( node ) ;
174174
@@ -208,7 +208,7 @@ export const htmlContainer = (
208208 return children ;
209209 }
210210
211- const builder = new HtmlDefaultBuilder ( node , showLayerName , isJsx )
211+ const builder = new HtmlDefaultBuilder ( node , showLayerNames , isJsx )
212212 . commonPositionStyles ( node , localSettings . optimizeLayout )
213213 . commonShapeStyles ( node ) ;
214214
@@ -253,7 +253,7 @@ export const htmlSection = (
253253 isJsx : boolean = false ,
254254) : string => {
255255 const childrenStr = htmlWidgetGenerator ( node . children , isJsx ) ;
256- const builder = new HtmlDefaultBuilder ( node , showLayerName , isJsx )
256+ const builder = new HtmlDefaultBuilder ( node , showLayerNames , isJsx )
257257 . size ( node , localSettings . optimizeLayout )
258258 . position ( node , localSettings . optimizeLayout )
259259 . applyFillsToStyle ( node . fills , "background" ) ;
@@ -266,7 +266,7 @@ export const htmlSection = (
266266} ;
267267
268268export const htmlLine = ( node : LineNode , isJsx : boolean ) : string => {
269- const builder = new HtmlDefaultBuilder ( node , showLayerName , isJsx )
269+ const builder = new HtmlDefaultBuilder ( node , showLayerNames , isJsx )
270270 . commonPositionStyles ( node , localSettings . optimizeLayout )
271271 . commonShapeStyles ( node ) ;
272272
0 commit comments