-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EPO-973] Support multipe skyviewer widgets.
* Add settings to lasso, circle and rectangle init methods. * `pointsFilter` takes settings. * Remove singleton settings variable. * Incremeent version to 0.2.8. modified: README.md modified: dist/bundle.js modified: examples/circle/dist/app.bundle.js modified: examples/circle/package.json modified: examples/circle/src/app.js modified: examples/circle/webpack.config.js modified: examples/lasso/dist/app.bundle.js modified: examples/lasso/dist/index.html modified: examples/lasso/package.json modified: examples/lasso/src/app.js modified: examples/rectangle/package.json modified: examples/rectangle/src/app.js modified: package.json modified: src/circle.js modified: src/index.js modified: src/lasso.js modified: src/rectangle.js modified: yarn.lock
- Loading branch information
Showing
18 changed files
with
40,400 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,29 @@ | ||
// or var pst = require('paper-select-tool); | ||
import * as pst from 'paper-select-tool'; | ||
import * as paper from 'paper'; | ||
|
||
var core = document.getElementById('core'); | ||
var core = document.getElementById('core'), | ||
core2 = document.getElementById('core2'); | ||
|
||
window.onload = function() { | ||
core.style.height = '100%'; | ||
core.style.background = '#eeeeee'; | ||
core.style.height = '50%'; | ||
core.style.width = '100vw'; | ||
core.height = document.body.height; | ||
core.width = document.body.width; | ||
core2.style.background = '#dedede'; | ||
core2.style.height = '50%'; | ||
core2.style.width = '100vw'; | ||
core2.height = document.body.height; | ||
core2.width = document.body.width; | ||
window.paper = paper; | ||
var settings = new pst.Settings(); | ||
// configure settings through the pst.settings object. | ||
pst.settings.strokeColor = '#08BCBC'; | ||
pst.lasso(core); | ||
} | ||
settings.strokeColor = '#08BCBC'; | ||
pst.lasso(settings, core); | ||
|
||
var settings2 = new pst.Settings(); | ||
// configure settings through the pst.settings object. | ||
settings2.strokeColor = '#08BCBC'; | ||
pst.lasso(settings2, core2); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.