view client/src/fairway/store.js @ 682:b17e3ce53285 octree

octree: simplified cube indexing.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 19 Sep 2018 20:55:02 +0200
parents 4450f2ab41e0
children dedf252b3e01
line wrap: on
line source

// import { HTTP } from "../lib/http";

const sampleData = [
  { x: 0, y: 1.0 },
  { x: 10, y: 1.0 },
  { x: 25, y: -2.0 },
  { x: 50, y: -4.5 },
  { x: 75, y: -4.0 },
  { x: 100, y: -3.0 },
  { x: 125, y: -4.0 },
  { x: 150, y: -5.0 },
  { x: 175, y: -4.0 },
  { x: 200, y: -3.0 },
  { x: 225, y: -3.5 },
  { x: 250, y: -3.0 },
  { x: 290, y: 1 },
  { x: 300, y: 1 }
];

const FairwayProfile = {
  namespaced: true,
  state: {
    currentProfile: sampleData
  },
  getters: {
    currentProfile: state => {
      return state.currentProfile;
    }
  },
  mutations: {}
};

export default FairwayProfile;