fix high tabs in cam contour. bump rev 3.1.D11

This commit is contained in:
Stewart Allen 2021-12-28 18:24:04 -05:00
commit e0c2953a2a
5 changed files with 6 additions and 7 deletions

View file

@ -1,6 +1,6 @@
{
"name": "grid-apps",
"version": "3.1.10D",
"version": "3.1.11D",
"description": "grid.space 3d slice & modeling tools",
"author": "Stewart Allen <sa@grid.space>",
"license": "MIT",

View file

@ -63,7 +63,7 @@
},
data = topo.data,
newslices = [],
tabsMax = tabs ? Math.max(...tabs.map(tab => tab.dim.z)) : 0,
tabsMax = tabs ? Math.max(...tabs.map(tab => tab.dim.z/2 + tab.pos.z)) : 0,
tabsOn = tabs,
tabHeight = Math.max(proc.camTabsHeight + zBottom, tabsMax),
clipTab = tabsOn ? [] : null,
@ -85,7 +85,7 @@
if (tabs) {
clipTab.appendAll(tabs.map(tab => {
let ctab = POLY.expand([tab.poly], toolDiameter/2);
ctab.forEach(ct => ct.z = tab.dim.z);
ctab.forEach(ct => ct.z = tab.dim.z/2 + tab.pos.z);
return ctab;
}).flat());
}

View file

@ -6,7 +6,7 @@
if (!self.kiri) {
let kiri = self.gapp = self.kiri = {
beta: 3110,
beta: 3111,
driver: {}, // driver modules
loader: [], // module loading: array of functions
load: (fn) => kiri.loader.push(fn)

View file

@ -3,7 +3,7 @@
let terms = {
COPYRIGHT: "Copyright (C) Stewart Allen <sa@grid.space> - All Rights Reserved",
LICENSE: "See the license.md file included with the source distribution",
VERSION: "3.1.D10"
VERSION: "3.1.D11"
};
if (typeof(module) === 'object') {

View file

@ -5,8 +5,7 @@
(function() {
let gapp = self.gapp = self.gapp || {},
moto = self.moto = self.moto || gapp,
time = Date.now;
moto = self.moto = self.moto || gapp;
if (moto.worker) return;