Skip to content

Commit

Permalink
add deltaXFactor, deltaYFactor, deltaZFactor
Browse files Browse the repository at this point in the history
  • Loading branch information
joneit committed May 24, 2018
1 parent ee21e3a commit 8de3a88
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "jsdoc-template"]
path = jsdoc-template
url = https://github.com/fin-hypergrid/jsdoc-template-hypergrid
8 changes: 3 additions & 5 deletions gh-pages.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
org="openfin"
org="fin-hypergrid"
module="finbars"

# set variable repo to current directory name (without path)
Expand All @@ -26,11 +26,9 @@ git rm -rf -q .
# copy the doc directory from the workspace
cp -R ../../$repo/doc/* . >/dev/null

# copy $module.js from $repo/build to the cdn directory as $module.js
# copy $module.js and $module.min.js from $repo/build to the cdn directory
cp ../../$repo/build/$module.js . >/dev/null

# make a minified version
uglify -s $module.js -o $module.min.js
cp ../../$repo/build/$module.min.js . >/dev/null

# copy the demo
cp ../../$repo/demo.html . >>/dev/null
Expand Down
4 changes: 2 additions & 2 deletions src/finbars.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function FinBar(options) {

// make bound versions of all the mouse event handler
var bound = this._bound = {};
Object.keys(handlersToBeBound).forEach(function(key) {
Object.keys(handlersToBeBound).forEach(function (key) {
bound[key] = handlersToBeBound[key].bind(this);
}, this);

Expand Down Expand Up @@ -74,7 +74,7 @@ function FinBar(options) {
this._max = 100;

// options
Object.keys(options).forEach(function(key) {
Object.keys(options).forEach(function (key) {
var option = options[key];
if (option !== undefined) {
switch (key) {
Expand Down
6 changes: 6 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ global.Element.prototype = {
style: {},
appendChild: nullfunc,
insertBefore: nullfunc,
get firstChild() { return this[Object.keys(this)[0]]; },
querySelector: function(selector) {
return Object.keys(this).find(function(key) {
return /^#/.test(selector) && this.id === selector.substr(1);
}) || new Element;
},
getBoundingClientRect: function () {
return {
top: 0,
Expand Down

0 comments on commit 8de3a88

Please sign in to comment.