Skip to content

Commit

Permalink
Update setService exports
Browse files Browse the repository at this point in the history
Signed-off-by: Jay Clark <[email protected]>
  • Loading branch information
jayeclark committed Jan 11, 2022
1 parent 7c6f928 commit 0a71fd5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
5 changes: 1 addition & 4 deletions diagram/DiagramService.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import SetService from './SetService';


const setService = new SetService();
import setService from './SetService.js';

var importedNode;
var originalAllSetsNames = ['A', 'B', 'C', 'D', 'E', 'F'];
Expand Down
4 changes: 3 additions & 1 deletion diagram/SetService.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export default class SetService{
export default new SetService();

class SetService{

getUnionOfAllSets(setsArray) {
const totalSet = new Set();
Expand Down
4 changes: 1 addition & 3 deletions diagram/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import '../d3/canvas-toBlob.js';
import '../d3/FileSaver.js';
import '../d3/jquery-1.8.2.js';
import { jscolor } from '../d3/jscolor/jscolor.js';
import SetService from './SetService.js';
import setService from './SetService.js';

var text_options_form = document.getElementById("text-options");
var globalfontsize = 20;
Expand All @@ -43,8 +43,6 @@ var globalFontOpacity = 1;
var globalDarker = 0.3;
var firstLoad = true;

const setService = new SetService();

var importedNode;
var begintersectionsset = ["a", "b", "c", "d", "e", "f", "ab", "ac", "ad", "ae", "af", "bc", "bd", "be", "bf", "cd", "ce", "cf", "de", "df", "ef", "abc", "abd", "abe", "abf", "acd", "ace", "acf", "ade", "adf", "aef", "bcd", "bce", "bcf", "bde", "bdf", "bef", "cde", "cdf", "cef", "def", "abcd", "abce", "abcf", "abde", "abdf", "abef", "acde", "acdf", "acef", "adef", "bcde", "bcdf", "bcef", "bdef", "cdef", "abcde", "abcdf", "abcef", "abdef", "acdef", "bcdef"];
var originalAllSetsNames = ['A', 'B', 'C', 'D', 'E', 'F'];
Expand Down

0 comments on commit 0a71fd5

Please sign in to comment.