basic-sliding-viewport
Advanced tools
Comparing version 0.7.0 to 0.7.1
{ | ||
"name": "basic-sliding-viewport", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "Presents list items in a viewport such that only a single item is visible at a time. Navigating between items will be represented with a horizontal visual sliding effect.", | ||
@@ -14,3 +14,3 @@ "homepage": "https://component.kitchen", | ||
"dependencies": { | ||
"basic-element-base": "^0.7.0" | ||
"basic-element-base": "^0.7.1" | ||
}, | ||
@@ -17,0 +17,0 @@ "browserify": { |
<a name="SlidingViewport"></a> | ||
## SlidingViewport | ||
Presents list items in a viewport such that only a single item is | ||
visible at a time | ||
Presents list items in a viewport such that only a single item is visible at | ||
a time. | ||
@@ -15,4 +15,4 @@ Navigating between items will be represented with a horizontal visual | ||
**Kind**: global class | ||
<a name="position"></a> | ||
## position : <code>Number</code> | ||
<a name="SlidingViewport+position"></a> | ||
### slidingViewport.position : <code>number</code> | ||
The fractional position of the element's moving surface while it is being | ||
@@ -26,8 +26,2 @@ moved (dragged/scrolled/etc.). | ||
**Kind**: global variable | ||
**Properties** | ||
| Name | | ||
| --- | | ||
| position | | ||
**Kind**: instance property of <code>[SlidingViewport](#SlidingViewport)</code> |
@@ -0,5 +1,9 @@ | ||
import ElementBase from '../../basic-element-base/src/ElementBase'; | ||
import SpreadItems from '../../basic-spread-items/src/SpreadItems'; // jshint ignore:line | ||
let base = ElementBase; | ||
/** | ||
* @class SlidingViewport | ||
* @classdesc Presents list items in a viewport such that only a single item is | ||
* visible at a time | ||
* Presents list items in a viewport such that only a single item is visible at | ||
* a time. | ||
* | ||
@@ -14,11 +18,4 @@ * Navigating between items will be represented with a horizontal visual | ||
*/ | ||
class SlidingViewport extends base { | ||
import ElementBase from '../../basic-element-base/src/ElementBase'; | ||
import SpreadItems from '../../basic-spread-items/src/SpreadItems'; // jshint ignore:line | ||
let base = ElementBase; | ||
export default class SlidingViewport extends base { | ||
attachedCallback() { | ||
@@ -57,4 +54,3 @@ if (super.attachedCallback) { super.attachedCallback(); } | ||
* | ||
* @property position | ||
* @type Number | ||
* @type {number} | ||
*/ | ||
@@ -192,1 +188,2 @@ get position() { | ||
document.registerElement('basic-sliding-viewport', SlidingViewport); | ||
export default SlidingViewport; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1476
0
128571
26
Updatedbasic-element-base@^0.7.1