Skip to content

Commit 39496cb

Browse files
committed
Tabbing updated and linted syntax
1 parent f65a1c0 commit 39496cb

File tree

7 files changed

+215
-215
lines changed

7 files changed

+215
-215
lines changed

highcharts-behavior.js

Lines changed: 161 additions & 161 deletions
Large diffs are not rendered by default.

highcharts-chart.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ import {SharedStyles} from './shared-styles.js';
1111
* @appliesMixin HighchartsPolymer.BaseBehavior
1212
*/
1313
class HighchartsChart extends HighchartsPolymer.ChartBehavior(HighchartsPolymer.BaseBehavior(PolymerElement)) {
14-
static get is() {return "highcharts-chart"}
15-
static get template() {return html`
16-
${SharedStyles}
17-
<div id="Chart" width="100%" on-click="_checkSelected"></div>
18-
<slot></slot>
19-
`}
20-
static get properties() {return {
21-
type: {type: String, value: 'line', observer: '_updateType'}
22-
}}
23-
ready() {super.ready();this.__createChart()}
14+
static get is() {return "highcharts-chart"}
15+
static get template() {return html`
16+
${SharedStyles}
17+
<div id="Chart" width="100%" on-click="_checkSelected"></div>
18+
<slot></slot>
19+
`}
20+
static get properties() {return {
21+
type: {type: String, value: 'line', observer: '_updateType'}
22+
}}
23+
ready() {super.ready();this.__createChart()}
2424
}
2525

2626
window.customElements.define(HighchartsChart.is, HighchartsChart);

highcharts-map.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ import {SharedStyles} from './shared-styles.js';
1111
* @appliesMixin HighchartsPolymer.BaseBehavior
1212
*/
1313
class HighchartsMap extends HighchartsPolymer.BaseBehavior(PolymerElement) {
14-
static get is() {return "highcharts-map"}
15-
static get template() {return html`
16-
${SharedStyles}
17-
<div id="Chart" width="100%"></div>
18-
<slot></slot>
19-
`}
20-
static get properties() {return {
21-
type: {type: String, value: 'line', observer: '_updateType'}
22-
}}
23-
ready() {super.ready();this.__createChart("Map")}
14+
static get is() {return "highcharts-map"}
15+
static get template() {return html`
16+
${SharedStyles}
17+
<div id="Chart" width="100%"></div>
18+
<slot></slot>
19+
`}
20+
static get properties() {return {
21+
type: {type: String, value: 'line', observer: '_updateType'}
22+
}}
23+
ready() {super.ready();this.__createChart("Map")}
2424
}
2525

2626
window.customElements.define(HighchartsMap.is, HighchartsMap);

highcharts-stock.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ import {SharedStyles} from './shared-styles.js';
1010
* @appliesMixin HighchartsPolymer.BaseBehavior
1111
*/
1212
class HighchartsStock extends HighchartsPolymer.ChartBehavior(HighchartsPolymer.BaseBehavior(PolymerElement)) {
13-
static get is() {return "highcharts-stock"}
14-
static get template() {return html`
15-
${SharedStyles}
16-
<div id="Chart" width="100%" on-click="_checkSelected"></div>
17-
<slot></slot>
18-
`}
19-
static get properties() {return {
20-
type: {type: String, value: 'line', observer: '_updateType'}
21-
}}
22-
ready() {super.ready();this.__createChart('StockChart')}
13+
static get is() {return "highcharts-stock"}
14+
static get template() {return html`
15+
${SharedStyles}
16+
<div id="Chart" width="100%" on-click="_checkSelected"></div>
17+
<slot></slot>
18+
`}
19+
static get properties() {return {
20+
type: {type: String, value: 'line', observer: '_updateType'}
21+
}}
22+
ready() {super.ready();this.__createChart('StockChart')}
2323
}
2424

2525
window.customElements.define(HighchartsStock.is, HighchartsStock);

index.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<!doctype html>
22
<html>
3-
<head>
4-
<meta charset="utf-8">
5-
<meta http-equiv="refresh" content="0;url=demo/" />
6-
<title>highcharts-chart</title>
7-
</head>
8-
<body>
9-
<!--
10-
Visit demo/index.html to see live examples of your element running.
11-
This page will automatically redirect you there when run in the browser
12-
with `polymer serve`.
13-
-->
14-
<script>window.location = "demo/"</script>
15-
</body>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="refresh" content="0;url=demo/" />
6+
<title>highcharts-chart</title>
7+
</head>
8+
<body>
9+
<!--
10+
Visit demo/index.html to see live examples of your element running.
11+
This page will automatically redirect you there when run in the browser
12+
with `polymer serve`.
13+
-->
14+
<script>window.location = "demo/"</script>
15+
</body>
1616
</html>

polymer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"npm": true,
3-
"lint": {
4-
"rules": [
5-
"polymer-3"
6-
]
7-
}
2+
"npm": true,
3+
"lint": {
4+
"rules": [
5+
"polymer-3"
6+
]
7+
}
88
}

shared-styles.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Shared styles of highcharts-chart for polymer 3.0
2-
import { html } from '@polymer/polymer/polymer-element.js';
2+
import {html} from '@polymer/polymer/polymer-element.js';
33

44
export const SharedStyles = html`
55
<style>
6-
:host {width: 100%;display: inline-block;min-height: var(--highcharts-min-height, 26em)}
7-
:host[height-responsive] {min-height: initial}
8-
:host[height-responsive] #Chart {height: 100%}
9-
#Chart {@apply --highcharts-container}
6+
:host {width: 100%;display: inline-block;min-height: var(--highcharts-min-height, 26em)}
7+
:host[height-responsive] {min-height: initial}
8+
:host[height-responsive] #Chart {height: 100%}
9+
#Chart {@apply --highcharts-container}
1010
</style>`;

0 commit comments

Comments
 (0)