Procházet zdrojové kódy

Add docs for StylesMap._styles private property.

Maciej Gołaszewski před 6 roky
rodič
revize
a30e5efd08
1 změnil soubory, kde provedl 6 přidání a 0 odebrání
  1. 6 0
      packages/ckeditor5-engine/src/view/stylesmap.js

+ 6 - 0
packages/ckeditor5-engine/src/view/stylesmap.js

@@ -20,6 +20,12 @@ export default class StylesMap {
 	 */
 	constructor( styleProcessor ) {
 		/**
+		 * Keeps and internal representation of styles map. Normalized styles are kept as object tree to allow unified modification and
+		 * value access model using lodash's get, set, unset, etc methods.
+		 *
+		 * When no style processor rules are defined the it acts as simple key-value storage.
+		 *
+		 * @type {Object}
 		 * @private
 		 */
 		this._styles = {};