瀏覽代碼

inject styles in esm, build v0.0.8

tags/1.2.0
pratu16x7 7 年之前
父節點
當前提交
4a570faab6
共有 7 個文件被更改,包括 16 次插入6 次删除
  1. +1
    -1
      README.md
  2. +10
    -0
      dist/frappe-charts.esm.js
  3. +1
    -1
      dist/frappe-charts.min.cjs.js
  4. +1
    -1
      dist/frappe-charts.min.esm.js
  5. +1
    -1
      docs/index.html
  6. +1
    -1
      package.json
  7. +1
    -1
      rollup.config.js

+ 1
- 1
README.md 查看文件

@@ -42,7 +42,7 @@
* ...or include within your 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


+ 10
- 0
dist/frappe-charts.esm.js 查看文件

@@ -126,6 +126,8 @@ function getBarHeightAndYAttr(yTop, zeroLine, totalHeight) {
return [height, y];
}

// Constants used

function $$1(expr, con) {
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 = {
line: LineChart,
bar: BarChart,


+ 1
- 1
dist/frappe-charts.min.cjs.js
文件差異過大導致無法顯示
查看文件


+ 1
- 1
dist/frappe-charts.min.esm.js
文件差異過大導致無法顯示
查看文件


+ 1
- 1
docs/index.html 查看文件

@@ -53,7 +53,7 @@
<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>
<p class="step-explain">... or include it directly in your HTML</p>
<pre><code class="hljs html"> &lt;script src="https://unpkg.com/frappe-charts@0.0.7/dist/frappe-charts.min.iife.js"&gt;&lt;/script&gt;</code></pre>
<pre><code class="hljs html"> &lt;script src="https://unpkg.com/frappe-charts@0.0.8/dist/frappe-charts.min.iife.js"&gt;&lt;/script&gt;</code></pre>
<p class="step-explain">Make a new Chart</p>
<pre><code class="hljs html"> &lt!--HTML--&gt;
&lt;div id="chart"&gt;&lt;/div&gt;</code></pre>


+ 1
- 1
package.json 查看文件

@@ -1,6 +1,6 @@
{
"name": "frappe-charts",
"version": "0.0.7",
"version": "0.0.8",
"description": "https://frappe.github.io/charts",
"main": "dist/frappe-charts.min.cjs.js",
"module": "dist/frappe-charts.min.esm.js",


+ 1
- 1
rollup.config.js 查看文件

@@ -33,7 +33,7 @@ export default [
resolve({ code: result.css.toString() })
}),
extensions: [ '.scss' ],
extract: 'dist/frappe-charts.min.css',
// extract: 'dist/frappe-charts.min.css',
plugins: [
nested(),
cssnext({ warnForDuplicates: false }),


Loading…
取消
儲存