(parent: HfId | null, index: number, html: string)
| 141 | } |
| 142 | |
| 143 | addElement(parent: HfId | null, index: number, html: string): HfId { |
| 144 | const result = this._dispatch({ type: "addElement", parent, index, html }, ORIGIN_LOCAL); |
| 145 | return result.meta?.newId ?? ""; |
| 146 | } |
| 147 | |
| 148 | setVariableValue(id: string, value: string | number | boolean | FontValue | ImageValue): void { |
| 149 | this.dispatch({ type: "setVariableValue", id, value }); |