You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b9b68cb
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -98,22 +99,37 @@ You can switch between the displayed files using the project panel on the right
98
99
99
100
### Inline source
100
101
101
-
!!! warning "Not yet implemented"
102
-
103
-
This functionality hasn't been implemented yet
104
-
105
102
This example shows how to use `<kicanvas-source>` along with inline KiCAD data. In this case, it's a symbol copied from a schematic and pasted into the HTML source:
bold) (justify left bottom)) (uuid 27eb63d7-7111-4c0e-9985-c1ed90138e31)
129
+
) (sheet_instances (path "/" (page "1")) ) )
130
+
</kicanvas-source>
131
+
</kicanvas-embed>
132
+
117
133
## Attributes
118
134
119
135
!!! warning "Not yet implemented"
@@ -137,6 +153,8 @@ This example shows how to use `<kicanvas-source>` along with inline KiCAD data.
137
153
-`nopreferences` - don't show the user preferences panel. ⚠️
138
154
-`nohelp` - don't show the help panel. ⚠️
139
155
-`src` - the URL of the document to embed. If you want to show multiple documents within a single viewer, you can use multiple child `<kicanvas-source>` elements.
156
+
-`type` - when providing the file source inline, this explicitly sets the file type. If not specified, KiCanvas will attempt to determine the type automatically. If specified, it should be one of `schematic`, `board`, `project`, or `worksheet`.
157
+
-`name` - when providing the file source inline, this explicitly sets the file name. This is typically only necessary when there are multiple files within a project, as KiCAD uses the file name to link schematic sheets, drawing sheets, and PCBs together. If unspecified, KiCanvas will generate a file name like `inline_0.kicad_sch`.
140
158
-`theme` - sets the color theme to use, valid values are `kicad` and `witchhazel`. ⚠️
141
159
-`zoom` - sets the initial view into the document. ⚠️
142
160
-`objects` - zooms to show all visible objects (default). ⚠️
@@ -150,11 +168,11 @@ This example shows how to use `<kicanvas-source>` along with inline KiCAD data.
0 commit comments