jpc_helper_text.js 632 B

1234567891011121314
  1. let JV = require('../jpc_value_define');
  2. let JpcCommonOutputHelper = require('./jpc_helper_common_output');
  3. let JpcAreaHelper = require('./jpc_helper_area');
  4. let JpcTextHelper = {
  5. outputText: function (textNode, band, unitFactor, rows, rowIdx, cols, colIdx, multiCols, multiColIdx) {
  6. let rst = JpcCommonOutputHelper.createCommonOutput(textNode, textNode[JV.PROP_LABEL], null);
  7. //position
  8. rst[JV.PROP_AREA] = JpcAreaHelper.outputArea(textNode[JV.PROP_AREA], band, unitFactor, rows, rowIdx, cols, colIdx, multiCols, multiColIdx, false, false);
  9. return rst;
  10. }
  11. };
  12. module.exports = JpcTextHelper;