Obojobo

Obojobo

  • Authors
  • Developers
  • GitHub

› Developers Section Topics

Getting Started

  • OboNode Structure
  • Text Content Conventions
  • Triggers and Actions

Misc Dev Topics

  • Obojobo Glossary
  • Question Selection Algorithm
  • Range Strings

Events Reference

  • Caliper Event Reference
  • Obojobo Event Reference

OboNode & Content Block Reference

  • ActionButton
  • Assessment
  • Assessment > rubric
  • Assessment > rubric > mod
  • Assessment > scoreAction
  • Break
  • Code
  • Content
  • Figure
  • Heading
  • HTML
  • IFrame
  • List
  • List > listStyle
  • List > listStyle > indent
  • Materia
  • MathEquation
  • MCAssessment
  • MCAssessment > MCChoice
  • MCAssessment > MCChoice > MCAnswer
  • MCAssessment > MCChoice > MCFeedback
  • Module
  • NumericAssessment
  • NumericAssessment > NumericChoice
  • NumericAssessment > NumericChoice > NumericAnswer
  • NumericAssessment > NumericChoice > NumericFeedback
  • Page
  • Question
  • QuestionBank
  • Table
  • Table > gridTextGroup
  • Text
  • textGroup
  • textGroup > textItem
  • textGroup > textItem > styleableText
  • textGroup > textItem > styleableText > styleList
  • trigger
  • trigger > action
  • YouTube

MathEquation

Class: Chunk OboNode  Full Name: ObojoboDraft.Chunks.MathEquation

A LaTeX math equation rendered with Katex

Properties

Property Required Type Description
latex Required String The LaTeX string to render (example: y=\sin(2x))
alt Recommended String The text to be read when the equation is encountered by a screen-reader. If not specified, the latex value is used. It is recommended to include a human-readable form of the equation, as the latex value may be difficult for screen-reader users to understand.
align no String Default left: Either left, center or right.
label no String If specified adds a label to the right side of the equation, for example (1.1)
size no Number Default: 1: The font size of the equation. Works as a multiplier, so for example 1 is the standard size, 2 is twice as big and 0.5 is half as big.

Supported Trigger Types

Action Type Description
onMount Fired when a node is added to the DOM
onUnmount Fired when a node is removed from the DOM

Required Children

None

Variables Registered

None

Example

JSON

{
	"type": "ObojoboDraft.Chunks.MathEquation",
	"id": "...",
	"content": {
		"latex": "y=\\sin(2x)",
		"alt": "y equals sine of 2 x",
		"label": "(1.1)"
	}
}

XML

<MathEquation latex="y=\sin(2x)" alt="y equals sine of 2 x" label="(1.1)" />
  • Properties
  • Supported Trigger Types
  • Required Children
  • Variables Registered
  • Example
    • JSON
    • XML
Visit Obojobo on GitHub
Obojobo
Obojobo™ ©2021 University of Central Florida