diff --git a/src/editor/components/jgraduate/jQuery.jGraduate.js b/src/editor/components/jgraduate/jQuery.jGraduate.js index 2a2362fe..738313c9 100644 --- a/src/editor/components/jgraduate/jQuery.jGraduate.js +++ b/src/editor/components/jgraduate/jQuery.jGraduate.js @@ -1,6 +1,7 @@ /* eslint-disable no-loop-func */ /* eslint-disable prefer-destructuring */ /* eslint-disable no-unsanitized/property */ +/* globals svgEditor */ /** * @file jGraduate 0.4 * @@ -234,109 +235,110 @@ export function jGraduateMethod (elem, options, okCallback, cancelCallback) { $this.paint = new jGraduate.Paint({ solidColor: 'ffffff' }); } $this.classList.add('jGraduate_Picker'); - /* eslint-disable max-len */ - $this.innerHTML = '' + - '
' + - '
' + - '
' + - '
'; + // eslint-disable-next-line no-unsanitized/property + $this.innerHTML = ` +
+
+
+
`; /* JFH !!!! */ const colPicker = $this.querySelector('#jGraduate_colPick'); const gradPicker = $this.querySelector('#jGraduate_gradPick'); - const html = '
' + - '

' + $settings.window.pickerTitle + '

' + - '
' + - '
' + - '
' + - '
' + - '
' + - '' + - '
' + - '' + - '' + - '' + - '' + - '
' + - '
' + - '
' + - '' + - '
' + - '' + - '' + - '' + - '' + - '
' + - '
' + - '
' + - '
' + - '
' + - '' + - '
' + - '' + - '' + - '' + - '' + - '
' + - '
' + - '
' + - '' + - '
' + - '
' + - '' + - '' + - '' + - '' + - '
' + - '
' + - '
' + - '
' + - '' + - '
' + - '' + - '
' + - '
' + - '
' + - '
' + - '' + - '
' + - '' + - '
' + - '' + - '
' + - '
' + - '' + - '
' + - '' + - '
' + - '' + - '
' + - '
' + - '' + - '
' + - '' + - '
' + - '' + - '
' + - '
' + - '' + - '
' + - '' + - '
' + - '' + - '
' + - '
' + - '
' + - '' + - '' + - '
'; + // eslint-disable-next-line no-unsanitized/property + const html = `
+

${$settings.window.pickerTitle}

+
+
+
+
+
+ +
+ + + + +
+
+
+ +
+ + + + +
+
+
+
+
+ +
+ + + + +
+
+
+ +
+
+ + + + +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+
+ + +
`; const div = document.createElement('div'); div.innerHTML = html; while (div.children.length > 0) { diff --git a/src/editor/locale/lang.en.js b/src/editor/locale/lang.en.js index 7ba6bbed..f387f4a2 100644 --- a/src/editor/locale/lang.en.js +++ b/src/editor/locale/lang.en.js @@ -87,7 +87,10 @@ export default { times: 'times', prefs_and_content: 'Store preferences and SVG content locally', prefs_only: 'Only store preferences locally', - no_prefs_or_content: 'Do not store my preferences or SVG content locally' + no_prefs_or_content: 'Do not store my preferences or SVG content locally', + jgraduate_pad: 'Pad', + jgraduate_reflect: 'Reflect', + jgraduate_repeat: 'Repeat', }, tools: { main_menu: 'Main Menu', @@ -233,7 +236,33 @@ export default { jpicker_tooltip_alpha_radio: 'Set To “Alpha” Color Mode', jpicker_tooltip_alpha_textbox: 'Enter A “Alpha” Value (0-100)', jpicker_tooltip_hex_textbox: 'Enter A “Hex” Color Value (#000000-#ffffff)', - jpicker_tooltip_hex_alpha: 'Enter A “Alpha” Value (#00-#ff)' + jpicker_tooltip_hex_alpha: 'Enter A “Alpha” Value (#00-#ff)', + jgraduate_solid_color: 'Solid Color', + jgraduate_linear_gradient: 'Linear Gradient', + jgraduate_radial_gradient: 'Radial Gradient', + jgraduate_begin_point: 'Begin Point', + jgraduate_enter_starting_x: 'Enter starting x value between 0.0 and 1.0', + jgraduate_enter_starting_y: 'Enter starting y value between 0.0 and 1.0', + jgraduate_end_point: 'End Point', + jgraduate_enter_ending_x: 'Enter ending x value between 0.0 and 1.0', + jgraduate_enter_ending_y: 'Enter ending y value between 0.0 and 1.0', + jgraduate_center_point: 'Center Point', + jgraduate_enter_value_x: 'Enter x value between 0.0 and 1.0', + jgraduate_enter_value_x: 'Enter y value between 0.0 and 1.0', + jgraduate_focal_point: 'Focal Point', + jgraduate_match_center: 'Match center:', + jgraduate_enter_focal_x: 'Enter x value between 0.0 and 1.0', + jgraduate_enter_focal_y: 'Enter y value between 0.0 and 1.0', + jgraduate_spread_method: 'Spread method', + jgraduate_radius: 'Radius:', + jgraduate_set_radius: 'Click to set radius', + jgraduate_ellip: 'Ellip:', + jgraduate_set_ellip: 'Click to set Ellip', + jgraduate_angle: 'Angle:', + jgraduate_set_angle: 'Click to set Angle', + jgraduate_deg: 'deg:', + jgraduate_opac: 'Opac:', + jgraduate_set_opac: 'Click to set Opac', }, notification: { invalidAttrValGiven: 'Invalid value given',