more progressive style, flow, and separation refactoring
This commit is contained in:
parent
5a82a7c746
commit
addcfdde3e
16 changed files with 1097 additions and 1120 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
self.kiri.loader.push(function() {
|
||||
kiri.load(function() {
|
||||
|
||||
let KIRI = self.kiri,
|
||||
CAM = KIRI.driver.CAM,
|
||||
|
|
@ -25,8 +25,9 @@ self.kiri.loader.push(function() {
|
|||
|
||||
if (KIRI.client)
|
||||
CAM.animate_clear = function(api) {
|
||||
API = api;
|
||||
KIRI.client.animate_cleanup();
|
||||
SPACE = (API = api).const.SPACE;
|
||||
SPACE = KIRI.space;
|
||||
WORLD = SPACE.world;
|
||||
$('layer-animate').innerHTML = '';
|
||||
$('layer-toolpos').innerHTML = '';
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@
|
|||
|
||||
let zaxis = { x: 0, y: 0, z: 1 },
|
||||
popOp = {},
|
||||
noop = () => {},
|
||||
func = {
|
||||
hover: noop,
|
||||
hoverUp: noop
|
||||
|
|
@ -35,10 +34,10 @@
|
|||
FDM = KIRI.driver.FDM;
|
||||
|
||||
// console.log({kiri,api})
|
||||
SPACE = kiri.space;
|
||||
MODES = kiri.consts.MODES;
|
||||
VIEWS = kiri.consts.VIEWS;
|
||||
STACKS = api.const.STACKS;
|
||||
SPACE = api.const.SPACE;
|
||||
MODES = api.const.MODES;
|
||||
VIEWS = api.const.VIEWS;
|
||||
LANG = api.const.LANG;
|
||||
UI = api.ui;
|
||||
UC = api.uc;
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
};
|
||||
|
||||
// defer loading until KIRI.client and KIRI.worker exist
|
||||
KIRI.loader.push(function(API) {
|
||||
KIRI.load(function(API) {
|
||||
|
||||
if (KIRI.client)
|
||||
CAM.traces = function(ondone, single) {
|
||||
|
|
|
|||
|
|
@ -14,8 +14,7 @@
|
|||
newLine = BASE.newLine,
|
||||
newSlope = BASE.newSlope,
|
||||
newPoint = BASE.newPoint,
|
||||
newPolygon = BASE.newPolygon,
|
||||
noop = function() {};
|
||||
newPolygon = BASE.newPolygon;
|
||||
|
||||
class Topo {
|
||||
constructor(opt = {}) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue