@hatiolab/things-scene 2.7.29 → 2.7.33

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
@@ -167,6 +167,7 @@ declare module '@hatiolab/things-scene' {
167
167
  ): {
168
168
  new (...args: any[]): {
169
169
  isDataSource(): boolean
170
+ _convertDataFormat(data: any, format: 'json' | 'text' | 'jsonp' | string): any
170
171
  }
171
172
  } & TBase
172
173
 
@@ -203,6 +204,11 @@ declare module '@hatiolab/things-scene' {
203
204
  static register(type: string, Clazz: typeof Component): void
204
205
  static memoize(base: any, property: string, needClone: boolean): void
205
206
  static drawStroke(context: CanvasRenderingContext2D, style: Style): void
207
+ static buildSubstitutor(
208
+ expression: string,
209
+ component: Component,
210
+ customObjToVal?: (obj: any) => any
211
+ ): () => string | undefined
206
212
 
207
213
  state: Properties
208
214
  bounds: BOUNDS
@@ -258,7 +264,12 @@ declare module '@hatiolab/things-scene' {
258
264
  stop: Function /* stop function */
259
265
  }
260
266
 
267
+ access(expression: string): any
268
+ substitute(expression: string, customObjToVal?: (obj: any) => any): string
269
+
261
270
  onchange(after: Properties, before: Properties): void
271
+ onchangeData(after: Properties, before: Properties): void
272
+ onchangeMappings(after: Properties, before: Properties): void
262
273
 
263
274
  drawImage(
264
275
  context: CanvasRenderingContext2D,