@archilogic/floor-plan-sdk 3.2.1 → 4.4.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/README.md CHANGED
@@ -2,9 +2,20 @@
2
2
 
3
3
  The @archilogic/floor-plan-sdk package enables you to create and embed interactive, customizable floor plans in the browser
4
4
 
5
- ## Documentation
5
+ ## Install
6
6
 
7
- https://developers.archilogic.com/floor-plan-engine/guide.html
7
+ ```bash
8
+ npm i @archilogic/floor-plan-sdk
9
+ ```
10
+
11
+ ## API Extractor
12
+
13
+ This package uses [API Extractor](https://api-extractor.com/) to generate [API report](./api.md) and [doc model](https://api-extractor.com/pages/overview/demo_docs/#whats-in-the-json-file) files
14
+
15
+ - The API report is used to track changes to the public API. This file is internal and tracked by git
16
+ - The doc model file is distributed with the npm package, and is used to generate the public documentation
17
+
18
+ Both files are generated by the `npm run build:api` command
8
19
 
9
20
  ## Usage
10
21
 
@@ -13,22 +24,16 @@ https://developers.archilogic.com/floor-plan-engine/guide.html
13
24
  npm i @archilogic/floor-plan-sdk
14
25
  ```
15
26
  ```js
16
- // importing the npm package as ES module (recommended)
17
- import FloorPlanEngine from '@archilogic/floor-plan-sdk'
27
+ import { FloorPlanEngine } from '@archilogic/floor-plan-sdk'
18
28
  ```
19
29
 
30
+ ### es module import via CDN
20
31
  ```js
21
- // importing the npm package as UMD bundle (when the global FloorPlanEngine variable is required)
22
- import '@archilogic/floor-plan-sdk'
32
+ import { FloorPlanEngine } from 'https://code.archilogic.com/fpe-sdk/v5.0.0-beta.0/fpe.es.js'
23
33
  ```
24
34
 
25
- ### CDN
26
- ```js
27
- // importing as ES module via public CDN (useful for environments where npm is not supported)
28
- import FloorPlanEngine from 'https://unpkg.com/@archilogic/floor-plan-sdk?module'
35
+ ### umd module import via CDN
36
+ ```html
37
+ <script src="https://code.archilogic.com/fpe-sdk/v5.0.0-beta.0/fpe.umd.js" >
29
38
  ```
30
39
 
31
- ```js
32
- // importing as UMD module via public CDN
33
- import 'https://unpkg.com/@archilogic/floor-plan-sdk'
34
- ```