physical-quantity 1.1.12 → 1.1.14
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
CHANGED
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
# Physical Quantity Web Component
|
|
2
2
|
|
|
3
|
-
`physical-quantity` is a web component that allows you to create and manipulate physical quantities with different units. It provides an input for the value and a dropdown for the unit, automatically converting between units in the same category.
|
|
3
|
+
`physical-quantity(PQE)` is a web component that allows you to create and manipulate physical quantities with different units. It provides an input for the value and a dropdown for the unit, automatically converting between units in the same category.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
It is a new HTML element for expressing physical quantities, featuring self-contained unit conversion, a compact and clean UI, no redundant dual units, and seamless integration across all websites and platforms.
|
|
6
6
|
|
|
7
7
|
## Features
|
|
8
8
|
|
|
9
9
|
- Create a physical quantity with a value and unit.
|
|
10
10
|
- Automatically convert between units within the same category.
|
|
11
|
-
- Display values with
|
|
11
|
+
- Display values with customizable decimal places if not an integer; show integers without decimal parts.
|
|
12
12
|
- Easy to integrate into any web project.
|
|
13
13
|
|
|
14
14
|
## Demo: Physical Quantity element - No Unit Converter or Dual Units Needed
|
|
15
|
-
[Box Size & Mass @https://e3d.github.io](https://e3d.github.io)
|
|
16
|
-
<iframe width="100%" height="300" src="https://jsfiddle.net/hithere/tz8ym4fh/54/embedded/result" allowfullscreen="true" frameborder="0"></iframe>
|
|
17
|
-
|
|
18
15
|
[Live Demo on JS Fiddle](https://jsfiddle.net/hithere/tz8ym4fh/100/embedded/result)
|
|
19
16
|
|
|
20
|
-
|
|
17
|
+
<iframe width="100%" height="300" src="https://jsfiddle.net/hithere/tz8ym4fh/100/embedded/result" allowfullscreen="true" frameborder="0"></iframe>
|
|
21
18
|
|
|
22
|
-
](https://jsfiddle.net/hithere/tz8ym4fh/100/embedded/result)
|
|
23
20
|
|
|
21
|
+
[](https://jsfiddle.net/hithere/tz8ym4fh/100/embedded/result)
|
|
24
22
|
|
|
25
23
|
## Installation
|
|
26
24
|
|
package/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "physical-quantity",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.14",
|
|
4
4
|
"description": "A web component to represent a physical quantity with unit conversion.",
|
|
5
5
|
"main": "./dist/pq.min.js",
|
|
6
6
|
"files": [
|
|
7
|
-
"dist/"
|
|
8
|
-
"images/"
|
|
7
|
+
"dist/"
|
|
9
8
|
],
|
|
10
9
|
"scripts": {
|
|
11
10
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
Binary file
|
|
Binary file
|
|
Binary file
|