MCPcopy Index your code
hub / github.com/clientIO/joint / parseExpression

Function parseExpression

packages/joint-decorators/src/parser.ts:106–120  ·  view source on GitHub ↗
(id: string, attribute: string, context: string)

Source from the content-addressed store, hash-verified

104 // noop
105 } else if (name.startsWith(':')) {
106 const parseExpression = (id: string, attribute: string, context: string) => {
107 const path = attribute;
108
109 const [triggers, pathToBinding] = parsePathToBinding(path);
110
111 const binding: SVGParserBinding = {
112 ...pathToBinding,
113 id,
114 path: [`${selector}`, name.slice(1)],
115 expression: context,
116 triggers
117 };
118
119 bindings.push(binding);
120 };
121
122 if (cbRegex.test(value)) {
123 // eslint-disable-next-line @typescript-eslint/no-explicit-any

Callers 1

buildFunction · 0.85

Calls 1

parsePathToBindingFunction · 0.85

Tested by

no test coverage detected