Basic Primitives

Basic Primitives is a 100% JavaScript component library for building general purpose diagrams without manual nodes layout.

  • Increase font size
  • Default font size
  • Decrease font size

Rotated Text

In order to create rotated text we have to initialize widget's options class primitives.text.Config and provide some <div> on HTML page as a placeholder for it. Widget creates rotated text inside of provided div in VML graphics format in IE6-IE8  or as CSS3 style text in all other browsers. Widget's instance stays in browser's memory till its placeholder is removed from the web page. So in order to be sure that widget's instance is destroyed and avoid unexpected memory leaks you have to remove HTML elements having widgets inside only with jQuery remove method.

jQuery(".rotatedtext").remove();

Be aware that for obvious logical reasons jQuery(".rotatedtext").empty() method cleans up widget contents without actual widget  removal, so its state would be invalid after that.

Next example demonstrates creation of simple rotated text widget.

  

 

Do you need?

Diagrams
 

Do you use?

JavaScript Frameworks
 

Do you use?

PDF & Image Export Support