Skip to content

Commit

Permalink
import / file rearrangement
Browse files Browse the repository at this point in the history
  • Loading branch information
RbCaVi committed Aug 8, 2024
1 parent 07cf650 commit e74fbee
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 66 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions image2.js → image.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import {Funcs} from "./workerfuncs.js";
import {promiseChain,packPromise,makePromise} from "./util.js";

// too bad for eslint or whatever linter i used
function getCanvas_offscreencanvas(width,height){
return new OffscreenCanvas(width,height);
Expand Down Expand Up @@ -142,9 +145,6 @@ function geticon(name,size,options){
});
}

import {Funcs} from "./b.js";
import {promiseChain,packPromise,makePromise} from "./util.js";

function deparallel(f, maxthreads) {
let threads = 0;
let queue = [];
Expand Down
4 changes: 0 additions & 4 deletions template.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import {createaccordion,fromjson as accordionfromjson} from "./accordion.js";
import {fromjson} from "./editjson.js";
import {makeiconURL} from "./image2.js";

// https://stackoverflow.com/questions/384286/how-do-you-check-if-a-javascript-object-is-a-dom-object
function isElement(element) {
return element instanceof Element || element instanceof HTMLDocument;
Expand Down
2 changes: 1 addition & 1 deletion b.js → workerfuncs.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class WorkerFuncs {
constructor() {
this.worker = new Worker('a.js');
this.worker = new Worker('genericworker.js');
this.counter = 0;
this.threads = 0;
this.maxthreads = 16;
Expand Down
58 changes: 0 additions & 58 deletions workers.js

This file was deleted.

0 comments on commit e74fbee

Please sign in to comment.