likec4 1.36.0 → 1.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -55,22 +55,6 @@ export class LikeC4View extends HTMLElement {
55
55
  this.hostCss = undefined
56
56
  }
57
57
 
58
- // protected get view(): DiagramView {
59
- // const viewId = this.getAttribute('view-id') ?? 'index'
60
- // let view = LikeC4Views[viewId as LikeC4ViewId]
61
- // if (view) {
62
- // return view
63
- // }
64
-
65
- // console.error(`Invalid view id: ${viewId},\nAvailable: ${Object.keys(LikeC4Views).join(', ')}`)
66
- // view = LikeC4Views['index' as LikeC4ViewId] ?? Object.values(LikeC4Views)[0]
67
- // invariant(view, `Empty LikeC4Views`)
68
- // console.warn(`LikeC4: Falling back to view: ${view.id}`)
69
- // const fallbackViewId = view.id
70
- // setTimeout(() => this.setAttribute('view-id', fallbackViewId), 50)
71
- // return view
72
- // }
73
-
74
58
  protected render() {
75
59
  const viewId = this.getAttribute('view-id') ?? 'index'
76
60
  const browserAttr = this.getAttribute('browser') ?? 'true'
@@ -87,12 +71,6 @@ export class LikeC4View extends HTMLElement {
87
71
  )
88
72
  }
89
73
 
90
- // openBrowser(viewId?: ViewId) {
91
- // const fs = document.createElement(ComponentName.Browser)
92
- // fs.setAttribute('view-id', viewId ?? this.view.id)
93
- // document.body.appendChild(fs)
94
- // }
95
-
96
74
  attributeChangedCallback(_name: string) {
97
75
  if (this.root) {
98
76
  this.render()