@@ -42,7 +42,7 @@ | |||||
* ...or include within your HTML | * ...or include within your HTML | ||||
```html | ```html | ||||
<script src="https://unpkg.com/frappe-charts@0.0.7/dist/frappe-charts.min.iife.js"></script> | |||||
<script src="https://unpkg.com/frappe-charts@0.0.8/dist/frappe-charts.min.iife.js"></script> | |||||
``` | ``` | ||||
#### Usage | #### Usage | ||||
@@ -126,6 +126,8 @@ function getBarHeightAndYAttr(yTop, zeroLine, totalHeight) { | |||||
return [height, y]; | return [height, y]; | ||||
} | } | ||||
// Constants used | |||||
function $$1(expr, con) { | function $$1(expr, con) { | ||||
return typeof expr === "string"? (con || document).querySelector(expr) : expr || null; | return typeof expr === "string"? (con || document).querySelector(expr) : expr || null; | ||||
} | } | ||||
@@ -2855,6 +2857,14 @@ class Heatmap extends BaseChart { | |||||
} | } | ||||
} | } | ||||
// if ("development" !== 'production') { | |||||
// // Enable LiveReload | |||||
// document.write( | |||||
// '<script src="http://' + (location.host || 'localhost').split(':')[0] + | |||||
// ':35729/livereload.js?snipver=1"></' + 'script>' | |||||
// ); | |||||
// } | |||||
const chartTypes = { | const chartTypes = { | ||||
line: LineChart, | line: LineChart, | ||||
bar: BarChart, | bar: BarChart, | ||||
@@ -53,7 +53,7 @@ | |||||
<p class="step-explain">And include it in your project</p> | <p class="step-explain">And include it in your project</p> | ||||
<pre><code class="hljs javascript"> import Chart from "frappe-charts/dist/frappe-charts.min.esm"</code></pre> | <pre><code class="hljs javascript"> import Chart from "frappe-charts/dist/frappe-charts.min.esm"</code></pre> | ||||
<p class="step-explain">... or include it directly in your HTML</p> | <p class="step-explain">... or include it directly in your HTML</p> | ||||
<pre><code class="hljs html"> <script src="https://unpkg.com/frappe-charts@0.0.7/dist/frappe-charts.min.iife.js"></script></code></pre> | |||||
<pre><code class="hljs html"> <script src="https://unpkg.com/frappe-charts@0.0.8/dist/frappe-charts.min.iife.js"></script></code></pre> | |||||
<p class="step-explain">Make a new Chart</p> | <p class="step-explain">Make a new Chart</p> | ||||
<pre><code class="hljs html"> <!--HTML--> | <pre><code class="hljs html"> <!--HTML--> | ||||
<div id="chart"></div></code></pre> | <div id="chart"></div></code></pre> | ||||
@@ -1,6 +1,6 @@ | |||||
{ | { | ||||
"name": "frappe-charts", | "name": "frappe-charts", | ||||
"version": "0.0.7", | |||||
"version": "0.0.8", | |||||
"description": "https://frappe.github.io/charts", | "description": "https://frappe.github.io/charts", | ||||
"main": "dist/frappe-charts.min.cjs.js", | "main": "dist/frappe-charts.min.cjs.js", | ||||
"module": "dist/frappe-charts.min.esm.js", | "module": "dist/frappe-charts.min.esm.js", | ||||
@@ -33,7 +33,7 @@ export default [ | |||||
resolve({ code: result.css.toString() }) | resolve({ code: result.css.toString() }) | ||||
}), | }), | ||||
extensions: [ '.scss' ], | extensions: [ '.scss' ], | ||||
extract: 'dist/frappe-charts.min.css', | |||||
// extract: 'dist/frappe-charts.min.css', | |||||
plugins: [ | plugins: [ | ||||
nested(), | nested(), | ||||
cssnext({ warnForDuplicates: false }), | cssnext({ warnForDuplicates: false }), | ||||