@hatiolab/things-scene 2.7.28 → 2.7.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/things-scene.d.ts CHANGED
@@ -203,6 +203,11 @@ declare module '@hatiolab/things-scene' {
203
203
  static register(type: string, Clazz: typeof Component): void
204
204
  static memoize(base: any, property: string, needClone: boolean): void
205
205
  static drawStroke(context: CanvasRenderingContext2D, style: Style): void
206
+ static buildSubstitutor(
207
+ expression: string,
208
+ component: Component,
209
+ customObjToVal?: (obj: any) => any
210
+ ): () => string | undefined
206
211
 
207
212
  state: Properties
208
213
  bounds: BOUNDS
@@ -258,7 +263,12 @@ declare module '@hatiolab/things-scene' {
258
263
  stop: Function /* stop function */
259
264
  }
260
265
 
266
+ access(expression: string): any
267
+ substitute(expression: string, customObjToVal?: (obj: any) => any): string
268
+
261
269
  onchange(after: Properties, before: Properties): void
270
+ onchangeData(after: Properties, before: Properties): void
271
+ onchangeMappings(after: Properties, before: Properties): void
262
272
 
263
273
  drawImage(
264
274
  context: CanvasRenderingContext2D,