comparison geotemco/js/FuzzyTimeline/FuzzyTimelineConfig.js @ 0:57bde4830927

first commit
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Tue, 24 Mar 2015 11:37:17 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:57bde4830927
1 /*
2 * FuzzyTimelineConfig.js
3 *
4 * Copyright (c) 2013, Sebastian Kruse. All rights reserved.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 3 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19 * MA 02110-1301 USA
20 */
21
22 /**
23 * @class FuzzyTimelineConfig
24 * FuzzyTimeline Configuration File
25 * @author Sebastian Kruse (skruse@mpiwg-berlin.mpg.de)
26 */
27 function FuzzyTimelineConfig(options) {
28
29 this.options = {
30 //TODO: experiment with number of ticks, 150 seems to be ok for now
31 maxBars : 50,
32 maxDensityTicks : 150,
33 /*drawing modes:
34 * fuzzy - weight is distributed over all spans an object overlaps, so that the sum remains the weight,
35 * stacking - every span that on object overlaps gets the complete weight (limited by the amount the span is overlapped, e.g. first span and last might get less)
36 */
37 timelineMode : 'stacking',
38 showRangePiechart : false,
39 backgroundColor : "#EEEEEE",
40 showYAxis : true,
41 //whether time-spans that "enlargen" the plot are allowed
42 //if set to true, a span that creates more "bars" than fit on the screen
43 //will lead to a width-increase of the chart (and a scroll bar appears)
44 showAllPossibleSpans : true,
45 };
46 if ( typeof options != 'undefined') {
47 $.extend(this.options, options);
48 }
49
50 };