word-break.js 894 B

123456789101112131415161718192021222324252627
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var IPropertyDescriptor_1 = require("../IPropertyDescriptor");
  4. var WORD_BREAK;
  5. (function (WORD_BREAK) {
  6. WORD_BREAK["NORMAL"] = "normal";
  7. WORD_BREAK["BREAK_ALL"] = "break-all";
  8. WORD_BREAK["KEEP_ALL"] = "keep-all";
  9. })(WORD_BREAK = exports.WORD_BREAK || (exports.WORD_BREAK = {}));
  10. exports.wordBreak = {
  11. name: 'word-break',
  12. initialValue: 'normal',
  13. prefix: false,
  14. type: IPropertyDescriptor_1.PropertyDescriptorParsingType.IDENT_VALUE,
  15. parse: function (wordBreak) {
  16. switch (wordBreak) {
  17. case 'break-all':
  18. return WORD_BREAK.BREAK_ALL;
  19. case 'keep-all':
  20. return WORD_BREAK.KEEP_ALL;
  21. case 'normal':
  22. default:
  23. return WORD_BREAK.NORMAL;
  24. }
  25. }
  26. };
  27. //# sourceMappingURL=word-break.js.map