MCPcopy Index your code
hub / github.com/microsoft/SandDance / createMark

Function createMark

docs/app/js/sanddance-app.js:123183–123198  ·  view source on GitHub ↗
(def2, group7)

Source from the content-addressed store, hash-verified

123181 }
123182};
123183function createMark(def2, group7) {
123184 const mark = {
123185 bounds: new Bounds(),
123186 clip: !!def2.clip,
123187 group: group7,
123188 interactive: def2.interactive === false ? false : true,
123189 items: [],
123190 marktype: def2.marktype,
123191 name: def2.name || undefined,
123192 role: def2.role || undefined,
123193 zindex: def2.zindex || 0
123194 }; // add accessibility properties if defined
123195 if (def2.aria != null) mark.aria = def2.aria;
123196 if (def2.description) mark.description = def2.description;
123197 return mark;
123198}
123199// create a new DOM element
123200function domCreate(doc, tag, ns) {
123201 if (!doc && typeof document !== "undefined" && document.createElement) doc = document;

Callers 2

ScenegraphFunction · 0.70
markFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected