@hatiolab/things-scene 2.7.30 → 2.7.34

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
@@ -222,6 +228,9 @@ declare module '@hatiolab/things-scene' {
222
228
  get data(): any
223
229
  set data(data: any)
224
230
 
231
+ get text(): string
232
+ set text(text: string)
233
+
225
234
  get center(): POINT
226
235
  set center(point: POINT)
227
236
 
@@ -258,7 +267,12 @@ declare module '@hatiolab/things-scene' {
258
267
  stop: Function /* stop function */
259
268
  }
260
269
 
270
+ access(expression: string): any
271
+ substitute(expression: string, customObjToVal?: (obj: any) => any): string
272
+
261
273
  onchange(after: Properties, before: Properties): void
274
+ onchangeData(after: Properties, before: Properties): void
275
+ onchangeMappings(after: Properties, before: Properties): void
262
276
 
263
277
  drawImage(
264
278
  context: CanvasRenderingContext2D,