Skip to content

Commit d061ab8

Browse files
committed
add wasm tag
1 parent 3c67852 commit d061ab8

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

d2js/js.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func jsGetParentID(this js.Value, args []js.Value) interface{} {
8383
return "root"
8484
}
8585
mk.Key.Path = mk.Key.Path[:len(mk.Key.Path)-1]
86-
return strings.Join(mk.Key.IDA(), ".")
86+
return strings.Join(mk.Key.StringIDA(), ".")
8787
}
8888

8989
return ""

lib/textmeasure/markdown_js.go

+4
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ func MeasureMarkdown(mdText string, ruler *Ruler, fontFamily *d2fonts.FontFamily
1111
func RenderMarkdown(m string) (string, error) {
1212
return "", nil
1313
}
14+
15+
func ReplaceSubstitutionsMarkdown(mdText string, variables map[string]string) string {
16+
return mdText
17+
}

lib/textmeasure/substitutions.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !wasm
2+
13
package textmeasure
24

35
import (

0 commit comments

Comments
 (0)