data-d2-version
This commit is contained in:
parent
87ce08c6b7
commit
d0294d4d4f
1 changed files with 1 additions and 1 deletions
|
|
@ -2112,7 +2112,7 @@ func Render(diagram *d2target.Diagram, opts *RenderOpts) ([]byte, error) {
|
|||
tag := "g"
|
||||
// Many things change when this is rendering for animation
|
||||
if opts.MasterID == "" {
|
||||
fitToScreenWrapperOpening = fmt.Sprintf(`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" d2Version="%s" preserveAspectRatio="%s meet" viewBox="0 0 %d %d"%s>`,
|
||||
fitToScreenWrapperOpening = fmt.Sprintf(`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-d2-version="%s" preserveAspectRatio="%s meet" viewBox="0 0 %d %d"%s>`,
|
||||
version.Version,
|
||||
alignment,
|
||||
w, h,
|
||||
|
|
|
|||
Loading…
Reference in a new issue