MCPcopy Index your code
hub / github.com/g3n/engine / AttribCheckPosition

Function AttribCheckPosition

gui/builder.go:957–969  ·  view source on GitHub ↗

AttribCheckPosition checks and convert attribute with x and y position

(b *Builder, am map[string]interface{}, fname string)

Source from the content-addressed store, hash-verified

955
956// AttribCheckPosition checks and convert attribute with x and y position
957func AttribCheckPosition(b *Builder, am map[string]interface{}, fname string) error {
958
959 v := am[fname]
960 if v == nil {
961 return nil
962 }
963 af, err := b.parseFloats(am, fname, 2, 2)
964 if err != nil {
965 return err
966 }
967 am[fname] = af
968 return nil
969}
970
971// AttribCheckStringLower checks and convert string attribute to lower case
972func AttribCheckStringLower(b *Builder, am map[string]interface{}, fname string) error {

Callers

nothing calls this directly

Calls 1

parseFloatsMethod · 0.80

Tested by

no test coverage detected