opentok-layout-js
Advanced tools
Comparing version 3.7.2 to 3.8.0
{ | ||
"name": "opentok-layout-js", | ||
"version": "3.7.2", | ||
"version": "3.8.0", | ||
"homepage": "https://github.com/aullman/opentok-layout-js", | ||
@@ -5,0 +5,0 @@ "authors": [ |
{ | ||
"name": "opentok-layout-js", | ||
"version": "3.7.2", | ||
"version": "3.8.0", | ||
"description": "Automatic layout of video elements (publisher and subscriber) minimising white-space for the OpenTok on WebRTC API. This is intended for use with the OpenTok on WebRTC JS API.", | ||
"main": "opentok-layout.js", | ||
"types": "./types/opentok-layout-js.d.ts", | ||
"dependencies": {}, | ||
@@ -29,3 +30,4 @@ "devDependencies": { | ||
"scripts": { | ||
"test": "npx eslint . && node ./tests/test-node.js && npx run-tests", | ||
"test": "npx eslint . && node ./tests/test-node.js && npx run-tests && npm run type-test", | ||
"type-test": "npx --package typescript tsc types/test.ts --noEmit --noErrorTruncation", | ||
"start": "http-server", | ||
@@ -32,0 +34,0 @@ "dev": "npx webpack -w & npm start" |
@@ -37,9 +37,9 @@ [![Build Status](https://travis-ci.org/aullman/opentok-layout-js.svg?branch=master)](https://travis-ci.org/aullman/opentok-layout-js) | ||
bigClass: "OT_big", // The class to add to elements that should be sized bigger | ||
bigPercentage: 0.8 // The maximum percentage of space the big ones should take up | ||
bigPercentage: 0.8, // The maximum percentage of space the big ones should take up | ||
bigFixedRatio: false, // fixedRatio for the big ones | ||
bigAlignItems: 'center', // How to align the big items | ||
smallAlignItems: 'center', // How to align the small row or column of items if there is a big one | ||
maxWidth: Infinity, // The maximum width of the elements | ||
maxWidth: Infinity, // The maximum width of the elements | ||
maxHeight: Infinity, // The maximum height of the elements | ||
smallMaxWidth: Infinity, // The maximum width of the small elements | ||
smallMaxWidth: Infinity, // The maximum width of the small elements | ||
smallMaxHeight: Infinity, // The maximum height of the small elements | ||
@@ -50,5 +50,5 @@ bigMaxWidth: Infinity, // The maximum width of the big elements | ||
bigMinRatio: 9/16, // The widest ratio to use for the big elements (default 16x9) | ||
bigFirst: true, // Whether to place the big one in the top left (true) or bottom right (false). | ||
bigFirst: true, // Whether to place the big one in the top left (true) or bottom right (false). | ||
// You can also pass 'column' or 'row' to change whether big is first when you are in a row (bottom) or a column (right) layout | ||
animate: true // Whether you want to animate the transitions using jQuery (not recommended, use CSS transitions instead) | ||
animate: true, // Whether you want to animate the transitions using jQuery (not recommended, use CSS transitions instead) | ||
window: window, // Lets you pass in your own window object which should be the same window that the element is in | ||
@@ -69,3 +69,3 @@ ignoreClass: 'OT_ignore', // Elements with this class will be ignored and not positioned. This lets you do things like picture-in-picture | ||
height: 480, // The native height of this element (eg. subscriber.videoHeight()) | ||
big: false // Whether to treat this element as a bigger element | ||
big: false // Whether to treat this element as a bigger element | ||
} | ||
@@ -72,0 +72,0 @@ ]); |
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
136093
20
2205