@3dweb/360javascriptviewer 1.8.45 → 1.8.46
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
|
@@ -18,7 +18,7 @@ using npm with typescript declaration file:
|
|
|
18
18
|
|
|
19
19
|
or use the CDN to get the latest version
|
|
20
20
|
|
|
21
|
-
<script src="https://
|
|
21
|
+
<script src="https://cdn.jsdelivr.net/npm/@3dweb/360javascriptviewer@1/lib/JavascriptViewer.min.js"></script>
|
|
22
22
|
|
|
23
23
|
## Basic usage
|
|
24
24
|
First create a div where the 360 presentation will be created. We use the size of this div to calculate
|
|
@@ -81,6 +81,7 @@ But if you have other filenames/locations for your 360 images, you can change t
|
|
|
81
81
|
| defaultProgressBarHeight | string | Change the height of the progress bar, can be any css value for height. | 5px |
|
|
82
82
|
| imageUrlFormat | string | Format for determining the filenames of the frames {filename}_xx.{extension} is the default ipod_x.jpg => ipod_1.jpg ipod_xx.jpg => ipod_01.jpg https://other.cdn/images/ipod_xx.jpg => https://other.cdn/images/ipod_01.jpg | {filename}_xx.{extension} |
|
|
83
83
|
| extraImageClass | string | Add a class to all the images used in the presentation, separate multiple classes with a space. | empty |
|
|
84
|
+
| imageAltText | string | Add an alt text to the images, all images will have the same alt text. | empty |
|
|
84
85
|
| startFrameNo | number | Use this setting in combination with imageUrlFormat startFrameNo: 4 => first file is ipod_04.jpg | 1 |
|
|
85
86
|
| autoRotate | number | Use this setting for rotating the view at start. Rotation stops when user drags the model or another animation method is called. | 0 |
|
|
86
87
|
| autoRotateSpeed | number | Speed of autorotation. -199 to 100 | 1 |
|