From 62ba5cd7c03975dba055652a2ec0311254cd3c10 Mon Sep 17 00:00:00 2001 From: Laura Rocha Prado Date: Fri, 2 Apr 2021 17:21:46 -0700 Subject: [PATCH] adds line left spacing option in label gui - Adds a dropdown in the "line" editor to select a spacing to be added to the left of each line in the visual label format editor --- js/symb/collections.labeljsongui.js | 36 +++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/js/symb/collections.labeljsongui.js b/js/symb/collections.labeljsongui.js index 321f200cb4..c8959159df 100644 --- a/js/symb/collections.labeljsongui.js +++ b/js/symb/collections.labeljsongui.js @@ -420,6 +420,42 @@ const dropdownsArr = [ { value: 'mb-12', text: '12' }, ], }, + { + id: 'ml', + name: 'spacing-left', + group: 'field-block', + options: [ + { value: '', text: 'Line Spacing Left' }, + { value: 'ml-0', text: '0' }, + { value: 'ml-1', text: '1' }, + { value: 'ml-2', text: '2' }, + { value: 'ml-3', text: '3' }, + { value: 'ml-4', text: '4' }, + { value: 'ml-5', text: '5' }, + { value: 'ml-6', text: '6' }, + { value: 'ml-8', text: '8' }, + { value: 'ml-10', text: '10' }, + { value: 'ml-12', text: '12' }, + ], + }, + // { + // id: 'mr', + // name: 'spacing-right', + // group: 'field-block', + // options: [ + // { value: '', text: 'Line Spacing Right' }, + // { value: 'mr-0', text: '0' }, + // { value: 'mr-1', text: '1' }, + // { value: 'mr-2', text: '2' }, + // { value: 'mr-3', text: '3' }, + // { value: 'mr-4', text: '4' }, + // { value: 'mr-5', text: '5' }, + // { value: 'mr-6', text: '6' }, + // { value: 'mr-8', text: '8' }, + // { value: 'mr-10', text: '10' }, + // { value: 'mr-12', text: '12' }, + // ], + // }, ]; const dummy = document.getElementById('dummy'); const fieldDiv = document.getElementById('fields');