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 4210cda
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 12 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
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 SWirts, JEiten <[email protected]>
Copyright (c) 2015, 2018 SWirts, JEiten

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# FinBars
Styleable scrollbars for real or virtual content

Try the [demo](https://openfin.github.io/finbars/demo.html).
Try the [demo](https://fin-hypergrid.github.io/finbars/demo.html).

\[See the note [Regarding submodules](https://github.com/openfin/rectangular#regarding-submodules) for important information on cloning this repo or re-purposing its build template.\]
\[See the note [Regarding submodules](https://github.com/fin-hypergrid/rectangular#regarding-submodules) for important information on cloning this repo or re-purposing its build template.\]

## API documentation

Detailed API docs can be found [here](http://openfin.github.io/finbars/FinBar.html).
Detailed API docs can be found [here](http://fin-hypergrid.github.io/finbars/FinBar.html).

## Synopsis

Expand Down
2 changes: 1 addition & 1 deletion demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
</style>

<!-- Following script include creates the window.FinBar global -->
<script src="https://openfin.github.io/finbars/finbars.min.js"></script>
<script src="https://fin-hypergrid.github.io/finbars/finbars.min.js"></script>

<script>
var barStyles = { trailing: 11 };
Expand Down
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 4210cda

Please sign in to comment.