@archilogic/floor-plan-sdk 5.0.0-beta.0 → 5.0.0-beta.1

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/dist/fpe.d.ts CHANGED
@@ -1167,9 +1167,9 @@ interface StyleProps extends ShapeStyle {
1167
1167
  dash?: boolean;
1168
1168
  }
1169
1169
 
1170
- interface DrawGraphic {
1170
+ interface GraphicArgs {
1171
1171
  shapes: Shape[];
1172
- pos?: Point2d;
1172
+ position?: Point2d;
1173
1173
  alpha?: number;
1174
1174
  clearLayer?: boolean;
1175
1175
  scale?: number;
@@ -1178,11 +1178,11 @@ interface DrawGraphic {
1178
1178
  isHandler?: boolean;
1179
1179
  scaleOnZoom?: boolean;
1180
1180
  }
1181
- interface PlanGraphicArgs extends DrawGraphic {
1181
+ interface PlanGraphicArgs extends GraphicArgs {
1182
1182
  floorPlan: FloorPlanEngine;
1183
1183
  }
1184
1184
  declare type GraphicUpdate = {
1185
- pos?: Point2d;
1185
+ position?: Point2d;
1186
1186
  style?: StyleProps;
1187
1187
  shapes?: Shape[];
1188
1188
  };
@@ -1191,8 +1191,8 @@ declare class PlanGraphic {
1191
1191
  scaleOnZoom: boolean;
1192
1192
  gfxScale: number;
1193
1193
  private floorPlan;
1194
- constructor({ shapes, pos, alpha, scale, clearLayer, interactive, id, isHandler, scaleOnZoom, baseLayer, container, floorPlan }: PlanGraphicArgs);
1195
- set({ pos, style, shapes }?: GraphicUpdate): void;
1194
+ constructor({ shapes, position, alpha, scale, clearLayer, interactive, id, isHandler, scaleOnZoom, baseLayer, container, floorPlan }: PlanGraphicArgs);
1195
+ set({ position, style, shapes }?: GraphicUpdate): void;
1196
1196
  on(event: string, callback: any, context?: any): this;
1197
1197
  off(event: string, callback?: any): this;
1198
1198
  destroy(): void;
@@ -1206,13 +1206,13 @@ declare class PlanLayer {
1206
1206
  private baseLayer;
1207
1207
  private floorPlan;
1208
1208
  constructor(floorPlan: FloorPlanEngine, baseLayer?: BaseLayers, id?: string);
1209
- addGraphic(args: DrawGraphic): PlanGraphic;
1209
+ addGraphic(args: GraphicArgs): PlanGraphic;
1210
1210
  deleteGraphic(graphic: PlanGraphic): void;
1211
1211
  /**
1212
1212
  * Draw shapes on the layer
1213
1213
  * @deprecated
1214
1214
  */
1215
- draw(args: DrawGraphic): PlanGraphic;
1215
+ draw(args: GraphicArgs): PlanGraphic;
1216
1216
  drawImage({ url, width, height, mask, options }: {
1217
1217
  url: any;
1218
1218
  width: any;