bump rev 3.3.D7
This commit is contained in:
parent
1138e4eb4a
commit
7e954f5e56
5 changed files with 8 additions and 8 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "grid-apps",
|
"name": "grid-apps",
|
||||||
"version": "3.3.6D",
|
"version": "3.3.7D",
|
||||||
"description": "grid.space 3d slice & modeling tools",
|
"description": "grid.space 3d slice & modeling tools",
|
||||||
"author": "Stewart Allen <sa@grid.space>",
|
"author": "Stewart Allen <sa@grid.space>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
|
||||||
|
|
@ -32,4 +32,4 @@
|
||||||
* `-` add preferences for face selection and matching
|
* `-` add preferences for face selection and matching
|
||||||
* `-` add svg and image import conversion (share code with Kiri:Moto)
|
* `-` add svg and image import conversion (share code with Kiri:Moto)
|
||||||
* `C` add version chooser
|
* `C` add version chooser
|
||||||
* `-` add welcome menu
|
* `C` add welcome menu
|
||||||
|
|
|
||||||
|
|
@ -20,13 +20,13 @@ load.SVG = {
|
||||||
* @returns {Array} vertex face array
|
* @returns {Array} vertex face array
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function parseAsync(text) {
|
function parseAsync(text, opt) {
|
||||||
return new Promise((resolve,reject) => {
|
return new Promise((resolve,reject) => {
|
||||||
resolve(parse(text));
|
resolve(parse(text, opt));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function parse(text) {
|
function parse(text, opt = {}) {
|
||||||
|
|
||||||
let faces = [ ];
|
let faces = [ ];
|
||||||
let objs = [ faces ];
|
let objs = [ faces ];
|
||||||
|
|
@ -34,7 +34,7 @@ function parse(text) {
|
||||||
let data = new THREE.SVGLoader().parse(text);
|
let data = new THREE.SVGLoader().parse(text);
|
||||||
let paths = data.paths;
|
let paths = data.paths;
|
||||||
let xmlat = data.xml.attributes;
|
let xmlat = data.xml.attributes;
|
||||||
let depth = xmlat['data-km-extrude']
|
let depth = opt.depth || xmlat['data-km-extrude']
|
||||||
|| xmlat['extrude']
|
|| xmlat['extrude']
|
||||||
|| {value: 5};
|
|| {value: 5};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ gapp.main("main.kiri", [], (root) => {
|
||||||
const modfns = root.kirimod = [];
|
const modfns = root.kirimod = [];
|
||||||
|
|
||||||
const kiri = root.kiri = {
|
const kiri = root.kiri = {
|
||||||
beta: 3306,
|
beta: 3307,
|
||||||
driver: {}, // driver modules
|
driver: {}, // driver modules
|
||||||
load(fn) {
|
load(fn) {
|
||||||
modfns.push(fn);
|
modfns.push(fn);
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
let terms = {
|
let terms = {
|
||||||
COPYRIGHT: "Copyright (C) Stewart Allen <sa@grid.space> - All Rights Reserved",
|
COPYRIGHT: "Copyright (C) Stewart Allen <sa@grid.space> - All Rights Reserved",
|
||||||
LICENSE: "See the license.md file included with the source distribution",
|
LICENSE: "See the license.md file included with the source distribution",
|
||||||
VERSION: "3.3.D6"
|
VERSION: "3.3.D7"
|
||||||
};
|
};
|
||||||
|
|
||||||
if (typeof(module) === 'object') {
|
if (typeof(module) === 'object') {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue