{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 2,
  "name": "yft/showfitfile",
  "version": "1.2.5",
  "title": "Show Fit File",
  "category": "common",
  "icon": "location-alt",
  "description": "Display .fit, .gpx and .tcx file data on a map.",
  "supports": {
    "html": false
  },
  "textdomain": "yft",
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css",
  "attributes": {
    "mediaUrl": {
      "type": "string",
      "default": "http://placehold.it/500"
    },
    "fileName": {
      "type": "string",
      "default": ""
    },
    "fileID": {
      "type": "number",
      "default": 0
    },
    "interactive": {
      "type": "boolean",
      "default": "{true}"
    },
    "showSummary": {
      "type": "boolean",
      "default": "{true}"
    },
    "units": {
      "type": "string",
      "default": "metric"
    },
    "lineColour": {
      "type": "string",
      "default": "orange"
    },
    "distanceMetres": {
      "type": "integer",
      "default": 0
    },
    "distanceString": {
      "type": "string",
      "default": "--"
    },
    "duration": {
      "type": "string",
      "default": "--:--:--"
    },
    "useMovingTime": {
      "type": "boolean",
      "default": false
    },
    "durationValue": {
      "type": "integer",
      "default": 0
    },
    "movingTimeValue": {
      "type": "integer",
      "default": 0
    },
    "time": {
      "type": "string",
      "default": "--:--:--"
    },
    "startPos": {
      "type": "array",
      "default": [
        51.505,
        -0.09
      ]
    },
    "endPos": {
      "type": "array",
      "default": [
        51.515,
        -0.1
      ]
    },
    "showStartMarker": {
      "type": "boolean",
      "default": "{true}"
    },
    "showEndMarker": {
      "type": "boolean",
      "default": "{true}"
    },
    "route": {
      "type": "array",
      "default": []
    },
    "altitude": {
      "type": "array",
      "default": []
    },
    "laps": {
      "type": "array",
      "default": []
    },
    "lapColour": {
      "type": "string",
      "default": "blue"
    },
    "showAltitudeGraph": {
      "type": "boolean",
      "default": "{true}"
    },
    "showLaps": {
      "type": "boolean",
      "default": "{true}"
    },
    "ascentString": {
      "type": "string",
      "default": "-"
    },
    "descentString": {
      "type": "string",
      "default": "-"
    },
    "mapID": {
      "type": "string",
      "default": ""
    },
    "ascent": {
      "type": "integer",
      "default": 0
    },
    "descent": {
      "type": "integer",
      "default": 0
    }
  }
}