Skip to content

Commit

Permalink
propogate npm build
Browse files Browse the repository at this point in the history
  • Loading branch information
iamlemec committed Sep 2, 2024
1 parent 7e3a33d commit 687e345
Show file tree
Hide file tree
Showing 21 changed files with 34 additions and 66 deletions.
Binary file modified dist/css/fonts/KaTeX_SansSerif-Regular.woff
Binary file not shown.
Binary file modified dist/css/fonts/KaTeX_SansSerif-Regular.woff2
Binary file not shown.
Binary file modified dist/css/fonts/KaTeX_Script-Regular.ttf
Binary file not shown.
Binary file modified dist/css/fonts/KaTeX_Script-Regular.woff
Binary file not shown.
Binary file modified dist/css/fonts/KaTeX_Script-Regular.woff2
Binary file not shown.
Binary file modified dist/css/fonts/KaTeX_Size1-Regular.ttf
Binary file not shown.
Binary file modified dist/css/fonts/KaTeX_Size1-Regular.woff
Binary file not shown.
Binary file modified dist/css/fonts/KaTeX_Size1-Regular.woff2
Binary file not shown.
Binary file modified dist/css/fonts/KaTeX_Size2-Regular.ttf
Binary file not shown.
Binary file modified dist/css/fonts/KaTeX_Size2-Regular.woff
Binary file not shown.
Binary file modified dist/css/fonts/KaTeX_Size2-Regular.woff2
Binary file not shown.
Binary file modified dist/css/fonts/KaTeX_Size3-Regular.ttf
Binary file not shown.
Binary file modified dist/css/fonts/KaTeX_Size3-Regular.woff
Binary file not shown.
Binary file modified dist/css/fonts/KaTeX_Size3-Regular.woff2
Binary file not shown.
Binary file modified dist/css/fonts/KaTeX_Size4-Regular.ttf
Binary file not shown.
Binary file modified dist/css/fonts/KaTeX_Size4-Regular.woff
Binary file not shown.
Binary file modified dist/css/fonts/KaTeX_Size4-Regular.woff2
Binary file not shown.
Binary file modified dist/css/fonts/KaTeX_Typewriter-Regular.ttf
Binary file not shown.
Binary file modified dist/css/fonts/KaTeX_Typewriter-Regular.woff
Binary file not shown.
Binary file modified dist/css/fonts/KaTeX_Typewriter-Regular.woff2
Binary file not shown.
100 changes: 34 additions & 66 deletions dist/js/gum.js
Original file line number Diff line number Diff line change
Expand Up @@ -1594,81 +1594,57 @@ function random_hex() {
return Math.floor(Math.random()*0x1000000).toString(16);
}

class MetaElement extends Element {
constructor(tag, unary, args) {
super(tag, unary, args);
}
}

class MetaContainer extends Container {
constructor(tag, children, args) {
let attr = {tag, ...args};
super(children, attr);
}
}

class Defs extends MetaContainer {
constructor(children, args) {
super('defs', children, args);
class MetaElement {
constructor(tag, args) {
this.tag = tag;
this.args = args;
}
}

class Filter extends MetaContainer {
constructor(name, effects, args) {
super('filter', effects, {id: name, ...args});
inside(ctx) {
return null;
}
}

class Effect extends MetaElement {
constructor(name, args) {
let result = args.result ?? random_hex();
let attr = {'result': result, ...args};
super(`fe${name}`, true, attr);
this.result = result;
svg(ctx) {
let inside = this.inside();
let props = Object.entries(this.args).map(([k, v]) =>
`${k.replace('_', '-')}="${v}"`
).join(' ');
if (inside == null) {
return `<${this.tag} ${props} />`;
} else {
return `<${this.tag} ${props}>\n${inside}\n</${this.tag}>`;
}
}
}

class Composite extends Effect {
constructor(args) {
let {in1, in2, operator, ...attr} = args ?? {};
operator = operator ?? 'over';
let attr1 = {in: in1.result, in2: in2.result, operator, ...attr};
super('Composite', attr1);
class MetaContainer extends MetaElement {
constructor(tag, children, args) {
super(tag, args);
this.children = children;
}
}

class MergeNode extends MetaElement {
constructor(args) {
let {input, ...attr} = args ?? {};
input = input ?? 'SourceGraphic';
super('feMergeNode', true, {in: input, ...attr});
inside(ctx) {
return this.children.map(c => c.svg(ctx)).join('\n');
}
}

class Merge extends MetaContainer {
class Defs extends MetaContainer {
constructor(children, args) {
let nodes = children.map(
c => new MergeNode({input: c.result})
);
super('feMerge', nodes, args);
super('defs', children, args);
}
}

class Flood extends Effect {
constructor(args) {
let {color, ...attr} = args ?? {};
color = color ?? 'black';
super('Flood', {flood_color: color, ...attr});
class Effect extends MetaElement {
constructor(name, args) {
super(`fe${name}`, args);
let klass = this.constructor.name.toLowerCase();
this.result = args.result ?? `${klass}_${random_hex()}`;
}
}

class GaussianBlur extends Effect {
constructor(args) {
let {input, size, ...attr} = args ?? {};
input = input ?? 'SourceGraphic';
size = size ?? 0;
let attr1 = {in: input, stdDeviation: size, ...attr};
super('GaussianBlur', attr1);
class Filter extends MetaContainer {
constructor(name, effects, args) {
super('filter', effects, {id: name, ...args});
}
}

Expand Down Expand Up @@ -3184,11 +3160,7 @@ class Animation {
**/

let Gum = [
<<<<<<< HEAD
Context, Element, Container, Group, SVG, Frame, VStack, HStack, Place, Rotate, Anchor, Scatter, Spacer, Ray, Line, HLine, VLine, Rect, Square, Ellipse, Circle, Dot, Polyline, Polygon, Path, Arrowhead, Text, Tex, Node, MoveTo, LineTo, VerticalTo, VerticalDel, HorizontalTo, HorizontalDel, Bezier2, Bezier3, ArcTo, ArcDel, Bezier2Path, Bezier2Line, Bezier3Line, Arrow, Field, SymField, Edge, Network, ClosePath, SymPath, SymFill, SymPoly, SymPoints, Bar, VBar, HBar, VMultiBar, HMultiBar, Bars, VBars, HBars, Scale, VScale, HScale, Labels, VLabels, HLabels, Axis, HAxis, VAxis, Grid, Graph, Plot, BarPlot, Legend, Note, Interactive, Variable, Slider, Toggle, List, Animation, Continuous, Discrete, range, linspace, enumerate, repeat, meshgrid, lingrid, hex2rgb, rgb2hex, rgb2hsl, interpolateVectors, interpolateHex, interpolateVectorsPallet, gzip, zip, reshape, split, pos_rect, pad_rect, rad_rect, exp, log, sin, cos, min, max, abs, pow, sqrt, floor, ceil, round, norm, add, mul, pi, phi, r2d, rounder, make_ticklabel, aspect_invariant, random, random_uniform, random_gaussian, cumsum, blue, red, green, Filter, Effect, Composite, MergeNode, Merge, Flood, GaussianBlur, DropShadow,
=======
Context, Element, Container, Group, SVG, Frame, VStack, HStack, Place, Rotate, Anchor, Scatter, Spacer, Ray, Line, HLine, VLine, Rect, Square, Ellipse, Circle, Dot, Polyline, Polygon, Path, Arrowhead, Text, Tex, Node, MoveTo, LineTo, VerticalTo, VerticalDel, HorizontalTo, HorizontalDel, Bezier2, Bezier3, ArcTo, ArcDel, Bezier2Path, Bezier2Line, Bezier3Line, Arrow, Field, SymField, Edge, Network, ClosePath, SymPath, SymFill, SymPoly, SymPoints, Bar, VMultiBar, HMultiBar, Bars, VBars, HBars, Scale, VScale, HScale, Labels, VLabels, HLabels, Axis, HAxis, VAxis, Grid, Graph, Plot, BarPlot, Legend, Note, Interactive, Variable, Slider, Toggle, List, Animation, Continuous, Discrete, range, linspace, enumerate, repeat, meshgrid, lingrid, hex2rgb, rgb2hex, rgb2hsl, interpolateVectors, interpolateHex, interpolateVectorsPallet, gzip, zip, reshape, split, pos_rect, pad_rect, rad_rect, exp, log, sin, cos, min, max, abs, pow, sqrt, floor, ceil, round, norm, add, mul, pi, phi, r2d, rounder, make_ticklabel, aspect_invariant, random, random_uniform, random_gaussian, cumsum, blue, red, green
>>>>>>> ee4d73b (fix up bar situation)
Context, Element, Container, Group, SVG, Frame, VStack, HStack, Place, Rotate, Anchor, Scatter, Spacer, Ray, Line, HLine, VLine, Rect, Square, Ellipse, Circle, Dot, Polyline, Polygon, Path, Arrowhead, Text, Tex, Node, MoveTo, LineTo, VerticalTo, VerticalDel, HorizontalTo, HorizontalDel, Bezier2, Bezier3, ArcTo, ArcDel, Bezier2Path, Bezier2Line, Bezier3Line, Arrow, Field, SymField, Edge, Network, ClosePath, SymPath, SymFill, SymPoly, SymPoints, Bar, VMultiBar, HMultiBar, Bars, VBars, HBars, Scale, VScale, HScale, Labels, VLabels, HLabels, Axis, HAxis, VAxis, Grid, Graph, Plot, BarPlot, Legend, Note, Interactive, Variable, Slider, Toggle, List, Animation, Continuous, Discrete, range, linspace, enumerate, repeat, meshgrid, lingrid, hex2rgb, rgb2hex, rgb2hsl, interpolateVectors, interpolateHex, interpolateVectorsPallet, gzip, zip, reshape, split, pos_rect, pad_rect, rad_rect, exp, log, sin, cos, min, max, abs, pow, sqrt, floor, ceil, round, norm, add, mul, pi, phi, r2d, rounder, make_ticklabel, aspect_invariant, random, random_uniform, random_gaussian, cumsum, blue, red, green, Filter, Effect, DropShadow
];

// detect object types
Expand Down Expand Up @@ -3296,8 +3268,4 @@ function injectImages(elem) {
});
}

<<<<<<< HEAD
export { Anchor, Animation, ArcDel, ArcTo, Arrow, Arrowhead, Axis, Bar, BarPlot, Bars, Bezier2, Bezier2Line, Bezier2Path, Bezier3, Bezier3Line, Circle, ClosePath, Container, Context, Continuous, Discrete, Dot, DropShadow, Edge, Effect, Element, Ellipse, Field, Filter, Frame, Graph, Grid, Group, Gum, HAxis, HBar, HBars, HLabels, HLine, HMultiBar, HScale, HStack, HorizontalDel, HorizontalTo, Interactive, Labels, Legend, Line, LineTo, List, MoveTo, Network, Node, Note, Path, Place, Plot, Polygon, Polyline, Ray, Rect, Rotate, SVG, Scale, Scatter, Slider, Spacer, Square, SymField, SymFill, SymPath, SymPoints, SymPoly, Tex, Text, Toggle, VAxis, VBar, VBars, VLabels, VLine, VMultiBar, VScale, VStack, Variable, VerticalDel, VerticalTo, abs, add, aspect_invariant, ceil, cos, cumsum, demangle, enumerate, exp, floor, gums, gzip, hex2rgb, injectImage, injectImages, injectScripts, interpolateHex, interpolateVectors, interpolateVectorsPallet, lingrid, linspace, log, make_ticklabel, mako, max, meshgrid, min, mul, norm, pad_rect, parseGum, phi, pi, pos_rect, pow, props_repr, r2d, rad_rect, random, random_gaussian, random_uniform, range, renderElem, renderGum, repeat, reshape, rgb2hex, rgb2hsl, round, rounder, setTextSizer, sin, split, sqrt, zip };
=======
export { Anchor, Animation, ArcDel, ArcTo, Arrow, Arrowhead, Axis, Bar, BarPlot, Bars, Bezier2, Bezier2Line, Bezier2Path, Bezier3, Bezier3Line, Circle, ClosePath, Container, Context, Continuous, Discrete, Dot, Edge, Element, Ellipse, Field, Frame, Graph, Grid, Group, Gum, HAxis, HBars, HLabels, HLine, HMultiBar, HScale, HStack, HorizontalDel, HorizontalTo, Interactive, Labels, Legend, Line, LineTo, List, MoveTo, Network, Node, Note, Path, Place, Plot, Polygon, Polyline, Ray, Rect, Rotate, SVG, Scale, Scatter, Slider, Spacer, Square, SymField, SymFill, SymPath, SymPoints, SymPoly, Tex, Text, Toggle, VAxis, VBars, VLabels, VLine, VMultiBar, VScale, VStack, Variable, VerticalDel, VerticalTo, abs, add, aspect_invariant, ceil, cos, cumsum, demangle, enumerate, exp, floor, gums, gzip, hex2rgb, injectImage, injectImages, injectScripts, interpolateHex, interpolateVectors, interpolateVectorsPallet, lingrid, linspace, log, make_ticklabel, mako, max, meshgrid, min, mul, norm, pad_rect, parseGum, phi, pi, pos_rect, pow, props_repr, r2d, rad_rect, random, random_gaussian, random_uniform, range, renderElem, renderGum, repeat, reshape, rgb2hex, rgb2hsl, round, rounder, setTextSizer, sin, split, sqrt, zip };
>>>>>>> ee4d73b (fix up bar situation)
export { Anchor, Animation, ArcDel, ArcTo, Arrow, Arrowhead, Axis, Bar, BarPlot, Bars, Bezier2, Bezier2Line, Bezier2Path, Bezier3, Bezier3Line, Circle, ClosePath, Container, Context, Continuous, Discrete, Dot, DropShadow, Edge, Effect, Element, Ellipse, Field, Filter, Frame, Graph, Grid, Group, Gum, HAxis, HBars, HLabels, HLine, HMultiBar, HScale, HStack, HorizontalDel, HorizontalTo, Interactive, Labels, Legend, Line, LineTo, List, MoveTo, Network, Node, Note, Path, Place, Plot, Polygon, Polyline, Ray, Rect, Rotate, SVG, Scale, Scatter, Slider, Spacer, Square, SymField, SymFill, SymPath, SymPoints, SymPoly, Tex, Text, Toggle, VAxis, VBars, VLabels, VLine, VMultiBar, VScale, VStack, Variable, VerticalDel, VerticalTo, abs, add, aspect_invariant, ceil, cos, cumsum, demangle, enumerate, exp, floor, gums, gzip, hex2rgb, injectImage, injectImages, injectScripts, interpolateHex, interpolateVectors, interpolateVectorsPallet, lingrid, linspace, log, make_ticklabel, mako, max, meshgrid, min, mul, norm, pad_rect, parseGum, phi, pi, pos_rect, pow, props_repr, r2d, rad_rect, random, random_gaussian, random_uniform, range, renderElem, renderGum, repeat, reshape, rgb2hex, rgb2hsl, round, rounder, setTextSizer, sin, split, sqrt, zip };

0 comments on commit 687e345

Please sign in to comment.