modify mum

This commit is contained in:
John Alanbrook 2024-10-04 12:47:50 -05:00
parent 179e883d0e
commit a8ce3106e1
3 changed files with 23 additions and 4 deletions

View file

@ -120,8 +120,6 @@ Color.normalize = function (c) {
Color.normalize(Color);
Object.deepfreeze(Color);
var ColorMap = {};
ColorMap.makemap = function (map) {
var newmap = Object.create(ColorMap);
@ -201,8 +199,6 @@ ColorMap.doc = {
sample: "Sample a given colormap at the given percentage (0 to 1).",
};
Object.freeze(ColorMap);
return {
Color,
esc,

View file

@ -60,6 +60,26 @@ function show_debug() {
return prosperon.debug && mum.debug;
}
var context = mum.base;
var context_stack = [];
var cursor = [0,0];
mum.container = function(data, cb) {
context_stack.push(context);
data.__proto__ = mum.base;
var container_context = {
pos:cursor.slice(),
size:[0,0],
children:[]
};
context = data;
cb();
computeContainerSize(context);
}
mum.debug = false;
var post = function () {};

View file

@ -3602,6 +3602,9 @@ static const JSCFunctionListEntry js_os_funcs[] = {
MIST_FUNC_DEF(os, skin_calculate, 1),
};
#include "steam.h"
#define JSSTATIC(NAME, PARENT) \