createMobject method

void createMobject()

Implementation

void createMobject() {
  texString = getModifiedExpression(texString);

  if (!texToSVGMap.containsKey(environment) ||
      !texToSVGMap[environment]!.containsKey(texString)) {
    throw '$texString need to be preloaded';
  }
  content = texToSVGMap[environment]![texString]!;

  clearPoints();
  submobjects = [];

  generatePoints();
  moveIntoPosition();
  setColor(color: color);

  scaleUniformly(TEX_MOB_SCALE_FACTOR);
}