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

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
@@ -859,7 +859,6 @@ declare type Theme = {
859
859
  wallContours?: boolean;
860
860
  /** render assets with textures rather than solid colors */
861
861
  showAssetTextures?: boolean;
862
- nativeLines?: boolean;
863
862
  fontFamily?: string;
864
863
  elements?: {
865
864
  roomStamp?: {
@@ -1004,7 +1003,6 @@ declare class FloorPlanCore {
1004
1003
  */
1005
1004
  destroy(): void;
1006
1005
  }
1007
-
1008
1006
  interface FpeConfig extends StartupOptions {
1009
1007
  api?: {
1010
1008
  accessToken?: string;
@@ -1022,10 +1020,9 @@ interface FpeConfig extends StartupOptions {
1022
1020
  destroyOnDomRemove?: boolean;
1023
1021
  }
1024
1022
  interface ElementTheme {
1025
- fill?: RGBArray;
1023
+ fill?: ShapeStyle['fill'];
1026
1024
  fillOpacity?: number;
1027
- stroke?: RGBArray;
1028
- strokeWidth?: number;
1025
+ stroke?: ShapeStyle['stroke'];
1029
1026
  }
1030
1027
  interface SpaceTheme extends ElementTheme {
1031
1028
  usage?: {
@@ -1167,9 +1164,9 @@ interface StyleProps extends ShapeStyle {
1167
1164
  dash?: boolean;
1168
1165
  }
1169
1166
 
1170
- interface DrawGraphic {
1167
+ interface GraphicArgs {
1171
1168
  shapes: Shape[];
1172
- pos?: Point2d;
1169
+ position?: Point2d;
1173
1170
  alpha?: number;
1174
1171
  clearLayer?: boolean;
1175
1172
  scale?: number;
@@ -1178,11 +1175,11 @@ interface DrawGraphic {
1178
1175
  isHandler?: boolean;
1179
1176
  scaleOnZoom?: boolean;
1180
1177
  }
1181
- interface PlanGraphicArgs extends DrawGraphic {
1178
+ interface PlanGraphicArgs extends GraphicArgs {
1182
1179
  floorPlan: FloorPlanEngine;
1183
1180
  }
1184
1181
  declare type GraphicUpdate = {
1185
- pos?: Point2d;
1182
+ position?: Point2d;
1186
1183
  style?: StyleProps;
1187
1184
  shapes?: Shape[];
1188
1185
  };
@@ -1191,8 +1188,8 @@ declare class PlanGraphic {
1191
1188
  scaleOnZoom: boolean;
1192
1189
  gfxScale: number;
1193
1190
  private floorPlan;
1194
- constructor({ shapes, pos, alpha, scale, clearLayer, interactive, id, isHandler, scaleOnZoom, baseLayer, container, floorPlan }: PlanGraphicArgs);
1195
- set({ pos, style, shapes }?: GraphicUpdate): void;
1191
+ constructor({ shapes, position, alpha, scale, clearLayer, interactive, id, isHandler, scaleOnZoom, baseLayer, container, floorPlan }: PlanGraphicArgs);
1192
+ set({ position, style, shapes }?: GraphicUpdate): void;
1196
1193
  on(event: string, callback: any, context?: any): this;
1197
1194
  off(event: string, callback?: any): this;
1198
1195
  destroy(): void;
@@ -1206,13 +1203,13 @@ declare class PlanLayer {
1206
1203
  private baseLayer;
1207
1204
  private floorPlan;
1208
1205
  constructor(floorPlan: FloorPlanEngine, baseLayer?: BaseLayers, id?: string);
1209
- addGraphic(args: DrawGraphic): PlanGraphic;
1206
+ addGraphic(args: GraphicArgs): PlanGraphic;
1210
1207
  deleteGraphic(graphic: PlanGraphic): void;
1211
1208
  /**
1212
1209
  * Draw shapes on the layer
1213
1210
  * @deprecated
1214
1211
  */
1215
- draw(args: DrawGraphic): PlanGraphic;
1212
+ draw(args: GraphicArgs): PlanGraphic;
1216
1213
  drawImage({ url, width, height, mask, options }: {
1217
1214
  url: any;
1218
1215
  width: any;