Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

That is a great idea, and you could include in an enhancement request in the FloorspaceJS repository.

Having said, that it is a JSON file, so someone who is comfortable with JSON and coding could write a script to do an x and y offset in the JSON file and then open that modified copy back on FloorSpaceJS. For reference below is what each vertex object looks like. You could loop through them and apply any x and y offset to each vertex. This could be Python, Ruby, or really anything, as it isn't tied into a measure or FloorSpaceJS, just a generic script to alter a JSON file.

      {
        "edge_ids": [
          "56",
          "133"
        ],
        "id": "53",
        "x": 190,
        "y": 35
      },