Change log

v1.5.5

March 25th 2020

  • Changes
    • Send SDK version in request header
    • Allow to set the publishableApiKey in the startup options

v1.5.3, v1.5.4

March 10th 2020

  • Fixes
    • Disable resize handler when printing
  • Changes
    • Replace document resize with resize handler

v1.5.2

February 3rd 2020

  • New
    • Option to toggle usage and area independently for room stamps

v1.5.1

October 17th 2019

v1.5.0

October 2nd 2019

v1.3.2

June 25th 2019

  • New

    • Added support for multiple instances
  • Changes

    • fpe.loadScene returns promise directly
    • fpe.sceneLoaded.promise is deprecated
    • Furniture svg nodes contain product id:
    <g class="interior" product-id="<product-id>">
        <path></path>
    </g>
    
    • Floor plan engine mounts as a child node to the provided dom element
    • Computed spaces contain bounding box
    floorPlan.loadScene(sceneId)
    .then(() => {
        // computed spaces gives access to the metadata and shape in world space of the spaces ( rooms ) of a scene
        const spaces = floorPlan.state.computed.spaces
        console.log(spaces[0])
        /*
        {
          localPlacement: Object                      // location and polygon in object space
          boundingBox: {x, y, x2, y2, width, height } // bounding box of the polygon
          id: "3c45a15b-4016-44e4-bb61-ce0f828b6848"  // unique id
          usage: "Work"                               // label
          polygon: Array[8]                           // outline in world space
          polygonHoles: Array[0]                      // holes in the polygon
          area: 19.461620941722256                    // area in m2
          center: Array[2]                            // pole of inaccessibility of the polygon in world space
        }
        */
    })
    

v1.3.1

June 20th 2019

  • New
    • zoomToExtent supports animation
    // margin    Number   bounding box margin in meters
    // duration  Number   duration in milliseconds
    fpe.view.zoomToExtent(margin, duration)
    
    • Added new method zoomToElement
    // element   Element  dom element to mount to
    // margin    Number   bounding box margin in meters
    // duration  Number   duration in milliseconds
    fpe.view.zoomToElement(element, margin, duration)
    .then(() => { /* do something when animation is done */ })
    
    • Both methods return a promise, resolving when the animation is done

v1.3.0

June 6th 2019

  • New
    • mount floor plan engine to dom node with initialization options
    const options = {
        panZoom: true,
        units: {
          system: 'imperial'
        },
        theme: {},
        ui: {
          menu: false,
          scale: true,
          coordinates: false
        }
    }
    const floorPlan = new FloorPlanEngine(elementId, options);
    
    • load scene from sceneId
    floorPlan.loadScene(sceneId)
    
    • floor plan theming