physical-quantity 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
- Display values with up to 3 decimal places if not an integer; show integers without decimal parts.
|
|
10
10
|
- Easy to integrate into any web project.
|
|
11
11
|
|
|
12
|
+
## Demo: Physical Quantity element - No Unit Converter or Dual Units Needed
|
|
13
|
+
[Box Size & Mass @https://e3d.github.io](https://e3d.github.io)
|
|
14
|
+
|
|
12
15
|
## Installation
|
|
13
16
|
|
|
14
17
|
You can install the `physical-quantity` component using npm:
|
|
@@ -31,6 +34,7 @@ Add the `physical-quantity` tag to your HTML file:
|
|
|
31
34
|
```html
|
|
32
35
|
<physical-quantity initial-value="25.4" initial-unit="mm"></physical-quantity>
|
|
33
36
|
```
|
|
37
|
+
|
|
34
38
|
### Example - Linking the Code
|
|
35
39
|
Here's an example of how to use the component in an HTML file:
|
|
36
40
|
|
|
@@ -45,14 +49,11 @@ Here's an example of how to use the component in an HTML file:
|
|
|
45
49
|
<body>
|
|
46
50
|
<physical-quantity initial-value="25.4" initial-unit="mm"></physical-quantity>
|
|
47
51
|
|
|
48
|
-
<script src="node_modules/physical-quantity/src/
|
|
52
|
+
<script src="node_modules/physical-quantity/src/pq.min.js"></script>
|
|
49
53
|
</body>
|
|
50
54
|
</html>
|
|
51
55
|
```
|
|
52
56
|
|
|
53
|
-
### Demo
|
|
54
|
-
[Box Size @https://e3d.github.io](https://e3d.github.io)
|
|
55
|
-
|
|
56
57
|
### Example - HTML File Using CDN
|
|
57
58
|
```html
|
|
58
59
|
<!DOCTYPE html>
|