add wasm tag

This commit is contained in:
Alexander Wang 2024-12-12 15:27:28 -07:00
parent 784a961885
commit 2a561265c1
No known key found for this signature in database
GPG key ID: BE3937D0D52D8927
3 changed files with 7 additions and 1 deletions

View file

@ -83,7 +83,7 @@ func jsGetParentID(this js.Value, args []js.Value) interface{} {
return "root"
}
mk.Key.Path = mk.Key.Path[:len(mk.Key.Path)-1]
return strings.Join(mk.Key.IDA(), ".")
return strings.Join(mk.Key.StringIDA(), ".")
}
return ""

View file

@ -11,3 +11,7 @@ func MeasureMarkdown(mdText string, ruler *Ruler, fontFamily *d2fonts.FontFamily
func RenderMarkdown(m string) (string, error) {
return "", nil
}
func ReplaceSubstitutionsMarkdown(mdText string, variables map[string]string) string {
return mdText
}

View file

@ -1,3 +1,5 @@
//go:build !wasm
package textmeasure
import (