Skip to content

Commit

Permalink
Rename tinyhouse.ifc to index.ifc, update version from SP. (#94)
Browse files Browse the repository at this point in the history
* draft on new urls

* ItemProperties: destructure HasProperties.

* ItemProperties: more unpacking PSets and tests.

* urls: upstream merge in prep for staging.

* urls: merge with bounce, test 1

* urls: merge with bounce, test 2

* urls: merge with bounce, test 3

* urls: merge with bounce, test 4

* urls: merge with bounce, test 5

* urls: merge with bounce, test 6

* urls: merge with bounce, test 6

* urls: merge with bounce, test 7

* urls: merge with bounce, test 8

* urls: merge with bounce, test 9

* urls: merge with bounce, test 10

* urls: merge with bounce, test 11

* urls: merge with bounce, test 12

* urls: merge with bounce, test 13

* urls: merge with bounce, test 14

* urls: merge with bounce, test 15

* urls: merge with bounce, test 16

* urls: final test.

* urls: cleanup debug output on test.

* urls: load local file also works.

* urls: with local load. test 2.

* urls: with local load. test 3.

* urls: with local load. test 4.

* urls: converting most arrow funcs to functions.

* urls: using helper for first useEffect and cleaned up some debug logs.

* urls: fixed newScene bug.

* urls: better commenting.

* Rename tinyhouse.ifc to index.ifc and update with better model from SP.

* index.ifc: rebuild for serve.
  • Loading branch information
pablo-mayrgundter committed Feb 8, 2022
1 parent 0d2d263 commit e45500d
Show file tree
Hide file tree
Showing 8 changed files with 137,173 additions and 336,256 deletions.
68,574 changes: 68,574 additions & 0 deletions docs/index.ifc

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions docs/index.js
Expand Up @@ -42239,7 +42239,7 @@ var require_jsonata = __commonJS({
message: message || "$error() function evaluated"
};
}
function assert2(condition, message) {
function assert(condition, message) {
if (!condition) {
throw {
code: "D3141",
Expand Down Expand Up @@ -42430,7 +42430,7 @@ var require_jsonata = __commonJS({
reverse,
each,
error,
assert: assert2,
assert,
type,
sort,
shuffle: shuffle3,
Expand Down Expand Up @@ -78754,7 +78754,7 @@ var require_web_ifc_mt = __commonJS2({
if (!ret.buffer) {
ret = new Uint8Array(ret);
}
assert2(ret.buffer);
assert(ret.buffer);
return ret;
};
if (process["argv"].length > 1) {
Expand Down Expand Up @@ -78793,7 +78793,7 @@ var require_web_ifc_mt = __commonJS2({
return new Uint8Array(readbuffer(f));
}
data = read(f, "binary");
assert2(typeof data === "object");
assert(typeof data === "object");
return data;
};
if (typeof scriptArgs != "undefined") {
Expand Down Expand Up @@ -78840,7 +78840,7 @@ var require_web_ifc_mt = __commonJS2({
if (!ret.buffer) {
ret = new Uint8Array(ret);
}
assert2(ret.buffer);
assert(ret.buffer);
return ret;
};
} else {
Expand Down Expand Up @@ -78934,7 +78934,7 @@ var require_web_ifc_mt = __commonJS2({
var selfThreadId = 0;
var ABORT = false;
var EXITSTATUS = 0;
function assert2(condition, text) {
function assert(condition, text) {
if (!condition) {
abort("Assertion failed: " + text);
}
Expand Down Expand Up @@ -79230,7 +79230,7 @@ var require_web_ifc_mt = __commonJS2({
return id;
}
function addRunDependency(id) {
assert2(!ENVIRONMENT_IS_PTHREAD, "addRunDependency cannot be used in a pthread worker");
assert(!ENVIRONMENT_IS_PTHREAD, "addRunDependency cannot be used in a pthread worker");
runDependencies++;
if (Module["monitorRunDependencies"]) {
Module["monitorRunDependencies"](runDependencies);
Expand Down Expand Up @@ -80263,7 +80263,7 @@ var require_web_ifc_mt = __commonJS2({
MEMFS.expandFileStorage(stream.node, offset + length);
stream.node.usedBytes = Math.max(stream.node.usedBytes, offset + length);
}, mmap: function(stream, address, length, position, prot, flags) {
assert2(address === 0);
assert(address === 0);
if (!FS.isFile(stream.node.mode)) {
throw new FS.ErrnoError(43);
}
Expand Down Expand Up @@ -82664,7 +82664,7 @@ var require_web_ifc_mt = __commonJS2({
}
}
function getDynCaller(sig, ptr) {
assert2(sig.indexOf("j") >= 0, "getDynCaller should only be called with i64 sigs");
assert(sig.indexOf("j") >= 0, "getDynCaller should only be called with i64 sigs");
var argCache = [];
return function() {
argCache.length = arguments.length;
Expand Down Expand Up @@ -82771,7 +82771,7 @@ var require_web_ifc_mt = __commonJS2({
return array;
}
function __embind_register_class_constructor(rawClassType, argCount, rawArgTypesAddr, invokerSignature, invoker, rawConstructor) {
assert2(argCount > 0);
assert(argCount > 0);
var rawArgTypes = heap32VectorToArray(argCount, rawArgTypesAddr);
invoker = embind__requireFunction(invokerSignature, invoker);
var args = [rawConstructor];
Expand Down Expand Up @@ -84133,7 +84133,7 @@ var require_web_ifc_mt = __commonJS2({
stackBase = _memalign(16, stackSize);
} else {
stackBase -= stackSize;
assert2(stackBase > 0);
assert(stackBase > 0);
}
var threadInfoStruct2 = _malloc(232);
for (var i = 0; i < 232 >> 2; ++i)
Expand Down Expand Up @@ -84752,7 +84752,7 @@ var require_web_ifc = __commonJS2({
if (!ret.buffer) {
ret = new Uint8Array(ret);
}
assert2(ret.buffer);
assert(ret.buffer);
return ret;
};
if (process["argv"].length > 1) {
Expand Down Expand Up @@ -84783,7 +84783,7 @@ var require_web_ifc = __commonJS2({
return new Uint8Array(readbuffer(f));
}
data = read(f, "binary");
assert2(typeof data === "object");
assert(typeof data === "object");
return data;
};
if (typeof scriptArgs != "undefined") {
Expand Down Expand Up @@ -84888,7 +84888,7 @@ var require_web_ifc = __commonJS2({
var wasmMemory;
var ABORT = false;
var EXITSTATUS = 0;
function assert2(condition, text) {
function assert(condition, text) {
if (!condition) {
abort("Assertion failed: " + text);
}
Expand Down Expand Up @@ -85886,7 +85886,7 @@ var require_web_ifc = __commonJS2({
MEMFS.expandFileStorage(stream.node, offset + length);
stream.node.usedBytes = Math.max(stream.node.usedBytes, offset + length);
}, mmap: function(stream, address, length, position, prot, flags) {
assert2(address === 0);
assert(address === 0);
if (!FS.isFile(stream.node.mode)) {
throw new FS.ErrnoError(43);
}
Expand Down Expand Up @@ -88283,7 +88283,7 @@ var require_web_ifc = __commonJS2({
}
}
function getDynCaller(sig, ptr) {
assert2(sig.indexOf("j") >= 0, "getDynCaller should only be called with i64 sigs");
assert(sig.indexOf("j") >= 0, "getDynCaller should only be called with i64 sigs");
var argCache = [];
return function() {
argCache.length = arguments.length;
Expand Down Expand Up @@ -88390,7 +88390,7 @@ var require_web_ifc = __commonJS2({
return array;
}
function __embind_register_class_constructor(rawClassType, argCount, rawArgTypesAddr, invokerSignature, invoker, rawConstructor) {
assert2(argCount > 0);
assert(argCount > 0);
var rawArgTypes = heap32VectorToArray(argCount, rawArgTypesAddr);
invoker = embind__requireFunction(invokerSignature, invoker);
var args = [rawConstructor];
Expand Down Expand Up @@ -156046,7 +156046,7 @@ var import_react15 = __toModule(require_react());

// package.json
var name = "buildrs";
var version = "0.1.0-r266";
var version = "0.1.0-r273";
var main = "src/index.jsx";
var homepage = "https://github.com/buildrs/Share";
var scripts = {
Expand Down Expand Up @@ -157233,7 +157233,7 @@ function CadView({ installPrefix, appPrefix, pathPrefix }) {
const navigate = useNavigate();
const urlParams = useParams();
(0, import_react21.useEffect)(() => {
setModelPathOrGotoIndex();
setModelPathOrGotoIndexOrStay();
}, [urlParams]);
(0, import_react21.useEffect)(() => {
if (modelPath == null) {
Expand All @@ -157254,10 +157254,10 @@ function CadView({ installPrefix, appPrefix, pathPrefix }) {
setShowItemPanel(false);
setViewer(initViewer(pathPrefix));
}
function setModelPathOrGotoIndex() {
function setModelPathOrGotoIndexOrStay() {
const mp = getModelPath(installPrefix, pathPrefix, urlParams);
if (mp === null) {
navigate(appPrefix + "/v/p/tinyhouse.ifc");
navigate(appPrefix + "/v/p/index.ifc");
return;
}
if (modelPath === null || modelPath.filepath && modelPath.filepath != mp.filepath || modelPath.gitpath && modelPath.gitpath != mp.gitpath) {
Expand Down
4 changes: 2 additions & 2 deletions docs/index.js.map

Large diffs are not rendered by default.

0 comments on commit e45500d

Please sign in to comment.