define(["require", "exports", "@syncfusion/ej2-base", "./text-properties", "./paragraph-properties"], function (require, exports, ej2_base_1, text_properties_1, paragraph_properties_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var TextProperties = (function () {
function TextProperties(container, id, isTableProperties, isRtl) {
this.container = container;
this.text = new text_properties_1.Text(container, isRtl);
this.paragraph = new paragraph_properties_1.Paragraph(container);
this.initializeTextProperties(id, isTableProperties, isRtl);
this.wireEvents();
}
TextProperties.prototype.initializeTextProperties = function (id, isTableProperties, isRtl) {
this.element = ej2_base_1.createElement('div', { className: 'e-de-prop-pane e-de-scrollbar-hide' });
this.element.setAttribute('tabindex', '0');
this.text.initializeTextPropertiesDiv(this.element, isRtl);
this.paragraph.initializeParagraphPropertiesDiv(this.element, isRtl);
this.paragraph.updateStyleNames();
Iif (!isTableProperties) {
this.container.propertiesPaneContainer.appendChild(this.element);
}
};
TextProperties.prototype.wireEvents = function () {
this.text.wireEvent();
this.paragraph.wireEvent();
};
TextProperties.prototype.onSelectionChange = function () {
this.text.onSelectionChange();
this.paragraph.onSelectionChange();
};
TextProperties.prototype.destroy = function () {
Eif (this.text) {
this.text.destroy();
this.text = undefined;
}
Eif (this.paragraph) {
this.paragraph.destroy();
this.paragraph = undefined;
}
this.container = undefined;
};
return TextProperties;
}());
exports.TextProperties = TextProperties;
});
|