Box equation symbol used in EQN_Box and as a EQN_EncompassGlyph.
width |<--------------------------------------------------->| | | | | ------- 0000000000000000000000000000000000000000000000000000000 A 0000000000000000000000000000000000000000000000000000000 | 0000 0000 | 0000 0000 | 0000 0000 height | 0000 0000 | 0000 0000 | 0000 0000 | 0000 0000 | 0000 0000 | 0000000000000000000000000000000000000000000000000000000 V______ 0000000000000000000000000000000000000000000000000000000
symbol
box
fill
boolean
false
width
number
height
lineWidth
0.01
draw
dynamic
static
'dynamic'
'static'
staticWidth
first
'first'
staticHeight
// Define in elementfigure.add({ make: 'equation', elements: { b: { symbol: 'box', lineWidth: 0.008 }, }, forms: { form1: { box: ['a', 'b', true, 0.1] }, },}); Copy
// Define in elementfigure.add({ make: 'equation', elements: { b: { symbol: 'box', lineWidth: 0.008 }, }, forms: { form1: { box: ['a', 'b', true, 0.1] }, },});
// Define inline simple one usefigure.add({ make: 'equation', forms: { form1: { box: ['a', 'box', true, 0.1] }, },}); Copy
// Define inline simple one usefigure.add({ make: 'equation', forms: { form1: { box: ['a', 'box', true, 0.1] }, },});
// Define inline with reuseconst eqn = figure.add({ make: 'equation', forms: { form1: { box: ['a', 'b_box', false, 0.1] }, form2: { box: ['a', 'b', false, 0.2] }, },});eqn.animations.new() .goToForm({ delay: 1, target: 'form2', animate: 'move' }) .start(); Copy
// Define inline with reuseconst eqn = figure.add({ make: 'equation', forms: { form1: { box: ['a', 'b_box', false, 0.1] }, form2: { box: ['a', 'b', false, 0.2] }, },});eqn.animations.new() .goToForm({ delay: 1, target: 'form2', animate: 'move' }) .start();
// Define inline with customizationfigure.add({ make: 'equation', forms: { form1: { box: ['a', { box: { lineWidth: 0.004 } }, true, 0.1] }, },});@interface Copy
// Define inline with customizationfigure.add({ make: 'equation', forms: { form1: { box: ['a', { box: { lineWidth: 0.004 } }, true, 0.1] }, },});@interface
Box equation symbol used in EQN_Box and as a EQN_EncompassGlyph.
width |<--------------------------------------------------->| | | | | ------- 0000000000000000000000000000000000000000000000000000000 A 0000000000000000000000000000000000000000000000000000000 | 0000 0000 | 0000 0000 | 0000 0000 height | 0000 0000 | 0000 0000 | 0000 0000 | 0000 0000 | 0000 0000 | 0000000000000000000000000000000000000000000000000000000 V______ 0000000000000000000000000000000000000000000000000000000symbolboxfillboolean— (false)widthnumber— force width instead of auto calculationheightnumber— force height instead of auto calculationlineWidthnumber— (0.01)drawdynamic|static—'dynamic'updates vertices on resize,'static'only changes scale transform (dynamic)staticWidthnumber|first— used whendraw=static.numbersets width of static symbol -'first'calculates and sets width based on first usestaticHeightnumber|first— used whendraw=static.numbersets height of static symbol -'first'calculates and sets height based on first useExample
Example
Example
Example