bump rev 3.3.D7

This commit is contained in:
Stewart Allen 2022-02-25 21:47:23 -05:00
commit 7e954f5e56
5 changed files with 8 additions and 8 deletions

View file

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

View file

@ -32,4 +32,4 @@
* `-` add preferences for face selection and matching
* `-` add svg and image import conversion (share code with Kiri:Moto)
* `C` add version chooser
* `-` add welcome menu
* `C` add welcome menu

View file

@ -20,13 +20,13 @@ load.SVG = {
* @returns {Array} vertex face array
*/
function parseAsync(text) {
function parseAsync(text, opt) {
return new Promise((resolve,reject) => {
resolve(parse(text));
resolve(parse(text, opt));
});
}
function parse(text) {
function parse(text, opt = {}) {
let faces = [ ];
let objs = [ faces ];
@ -34,7 +34,7 @@ function parse(text) {
let data = new THREE.SVGLoader().parse(text);
let paths = data.paths;
let xmlat = data.xml.attributes;
let depth = xmlat['data-km-extrude']
let depth = opt.depth || xmlat['data-km-extrude']
|| xmlat['extrude']
|| {value: 5};

View file

@ -15,7 +15,7 @@ gapp.main("main.kiri", [], (root) => {
const modfns = root.kirimod = [];
const kiri = root.kiri = {
beta: 3306,
beta: 3307,
driver: {}, // driver modules
load(fn) {
modfns.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.3.D6"
VERSION: "3.3.D7"
};
if (typeof(module) === 'object') {