Skip to content

Commit

Permalink
Create version flags (#438)
Browse files Browse the repository at this point in the history
* Create version flags

* set version flags

* compiled version flag code
  • Loading branch information
jywarren committed Aug 2, 2022
1 parent 86b2ddb commit f40efda
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 12 deletions.
18 changes: 10 additions & 8 deletions dist/infragram.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/infragram.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/infragram.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ <h4 style="margin-bottom:40px;"><a style="color:#444;" href="http://publiclab.or
(function() {
infragram = Infragram({
uploader: false,
processor: 'webgl'
processor: 'webgl',
version: 1
});

openInPl = function openInPl() {
Expand Down
3 changes: 2 additions & 1 deletion index2.html
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,8 @@ <h6 style="text-decoration:underline;">BLUE filters <i class="fa fa-filter" aria
(function() {
infragram = Infragram({
uploader: false,
processor: 'webgl'
processor: 'webgl',
version: 2
});

openInPl = function openInPl() {
Expand Down
1 change: 1 addition & 0 deletions src/Infragram.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
window.Infragram = function Infragram(options) {
options = options || {};
options.version = options.version || 1; // for old instances where it hasn't been explicitly set
options.uploader = options.uploader || false;
options.processor = options.processor || 'javascript';
options.camera = require('./io/camera')(options);
Expand Down

0 comments on commit f40efda

Please sign in to comment.