@wcardinal/wcardinal-ui 0.441.0 → 0.443.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist/types/wcardinal/ui/d-picker-color.d.ts +3 -0
  2. package/dist/types/wcardinal/ui/d-table-column-state.d.ts +4 -1
  3. package/dist/types/wcardinal/ui/d-table-state.d.ts +4 -0
  4. package/dist/types/wcardinal/ui/theme/common/new-svg-rounded-checkerboard.d.ts +1 -0
  5. package/dist/types/wcardinal/ui/theme/common/new-svg-rounded-rect.d.ts +1 -0
  6. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-picker-color.d.ts +3 -0
  7. package/dist/types/wcardinal/ui/theme/dark/new-dark-svg-rounded-checkerboard.d.ts +1 -0
  8. package/dist/types/wcardinal/ui/theme/white/d-theme-white-picker-color.d.ts +3 -0
  9. package/dist/types/wcardinal/ui/theme/white/new-white-svg-rounded-checkerboard.d.ts +1 -0
  10. package/dist/wcardinal/ui/d-dynamic-text.js +3 -8
  11. package/dist/wcardinal/ui/d-dynamic-text.js.map +1 -1
  12. package/dist/wcardinal/ui/d-image-piece-impl.js +8 -0
  13. package/dist/wcardinal/ui/d-image-piece-impl.js.map +1 -1
  14. package/dist/wcardinal/ui/d-image-piece-layouter-part-container.js +1 -1
  15. package/dist/wcardinal/ui/d-image-piece-layouter-part-container.js.map +1 -1
  16. package/dist/wcardinal/ui/d-picker-color.js +5 -4
  17. package/dist/wcardinal/ui/d-picker-color.js.map +1 -1
  18. package/dist/wcardinal/ui/d-table-body.js +3 -2
  19. package/dist/wcardinal/ui/d-table-body.js.map +1 -1
  20. package/dist/wcardinal/ui/d-table-column-state.js.map +1 -1
  21. package/dist/wcardinal/ui/d-table-state.js +4 -0
  22. package/dist/wcardinal/ui/d-table-state.js.map +1 -1
  23. package/dist/wcardinal/ui/theme/common/new-svg-rounded-checkerboard.js +20 -0
  24. package/dist/wcardinal/ui/theme/common/new-svg-rounded-checkerboard.js.map +1 -0
  25. package/dist/wcardinal/ui/theme/common/new-svg-rounded-rect.js +15 -0
  26. package/dist/wcardinal/ui/theme/common/new-svg-rounded-rect.js.map +1 -0
  27. package/dist/wcardinal/ui/theme/dark/d-theme-dark-button-color-gradient.js +2 -5
  28. package/dist/wcardinal/ui/theme/dark/d-theme-dark-button-color-gradient.js.map +1 -1
  29. package/dist/wcardinal/ui/theme/dark/d-theme-dark-button-color.js +3 -6
  30. package/dist/wcardinal/ui/theme/dark/d-theme-dark-button-color.js.map +1 -1
  31. package/dist/wcardinal/ui/theme/dark/d-theme-dark-picker-color.js +24 -35
  32. package/dist/wcardinal/ui/theme/dark/d-theme-dark-picker-color.js.map +1 -1
  33. package/dist/wcardinal/ui/theme/dark/d-theme-dark-table-body-cells.js +7 -2
  34. package/dist/wcardinal/ui/theme/dark/d-theme-dark-table-body-cells.js.map +1 -1
  35. package/dist/wcardinal/ui/theme/dark/new-dark-svg-rounded-checkerboard.js +5 -0
  36. package/dist/wcardinal/ui/theme/dark/new-dark-svg-rounded-checkerboard.js.map +1 -0
  37. package/dist/wcardinal/ui/theme/white/d-theme-white-button-color-gradient.js +2 -5
  38. package/dist/wcardinal/ui/theme/white/d-theme-white-button-color-gradient.js.map +1 -1
  39. package/dist/wcardinal/ui/theme/white/d-theme-white-button-color.js +3 -6
  40. package/dist/wcardinal/ui/theme/white/d-theme-white-button-color.js.map +1 -1
  41. package/dist/wcardinal/ui/theme/white/d-theme-white-picker-color.js +24 -35
  42. package/dist/wcardinal/ui/theme/white/d-theme-white-picker-color.js.map +1 -1
  43. package/dist/wcardinal/ui/theme/white/d-theme-white-table-body-cells.js +7 -2
  44. package/dist/wcardinal/ui/theme/white/d-theme-white-table-body-cells.js.map +1 -1
  45. package/dist/wcardinal/ui/theme/white/new-white-svg-rounded-checkerboard.js +5 -0
  46. package/dist/wcardinal/ui/theme/white/new-white-svg-rounded-checkerboard.js.map +1 -0
  47. package/dist/wcardinal-ui-theme-dark-en-us.js +71 -49
  48. package/dist/wcardinal-ui-theme-dark-en-us.min.js +2 -2
  49. package/dist/wcardinal-ui-theme-dark-en-us.min.js.map +1 -1
  50. package/dist/wcardinal-ui-theme-dark-ja-jp.js +71 -49
  51. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +2 -2
  52. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js.map +1 -1
  53. package/dist/wcardinal-ui-theme-dark.js +71 -49
  54. package/dist/wcardinal-ui-theme-dark.min.js +2 -2
  55. package/dist/wcardinal-ui-theme-white-en-us.js +71 -49
  56. package/dist/wcardinal-ui-theme-white-en-us.min.js +2 -2
  57. package/dist/wcardinal-ui-theme-white-en-us.min.js.map +1 -1
  58. package/dist/wcardinal-ui-theme-white-ja-jp.js +71 -49
  59. package/dist/wcardinal-ui-theme-white-ja-jp.min.js +2 -2
  60. package/dist/wcardinal-ui-theme-white-ja-jp.min.js.map +1 -1
  61. package/dist/wcardinal-ui-theme-white.js +71 -49
  62. package/dist/wcardinal-ui-theme-white.min.js +2 -2
  63. package/dist/wcardinal-ui.cjs.js +131 -112
  64. package/dist/wcardinal-ui.js +25 -16
  65. package/dist/wcardinal-ui.min.js +2 -2
  66. package/dist/wcardinal-ui.min.js.map +1 -1
  67. package/package.json +1 -1
@@ -6,12 +6,9 @@ import { __extends } from "tslib";
6
6
  import { UtilRgb } from "../../util/util-rgb";
7
7
  import { DThemeDarkAtlas } from "./d-theme-dark-atlas";
8
8
  import { DThemeDarkButton } from "./d-theme-dark-button";
9
- // Material Design icons by Google.
10
- // Apache license version 2.0.
9
+ import { newSvgRoundedRect } from "../common/new-svg-rounded-rect";
11
10
  /* eslint-disable prettier/prettier */
12
- DThemeDarkAtlas.add("button_color_sample", 21, 21, "<g transform=\"scale(0.875,0.875)\">" +
13
- "<path d=\"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z\" fill=\"#fff\"/>" +
14
- "</g>");
11
+ DThemeDarkAtlas.add("button_color_sample", 21, 21, newSvgRoundedRect(3, 3, 15, 15, "#fff", "#eee", 1));
15
12
  /* eslint-enable prettier/prettier */
16
13
  var formatter = function (colorAndAlpha) {
17
14
  return "#".concat(UtilRgb.toCode(colorAndAlpha.color), " A").concat(colorAndAlpha.alpha.toFixed(2));
@@ -22,7 +19,7 @@ var DThemeDarkButtonColor = /** @class */ (function (_super) {
22
19
  return _super !== null && _super.apply(this, arguments) || this;
23
20
  }
24
21
  DThemeDarkButtonColor.prototype.getImageTintColor = function (state) {
25
- return null;
22
+ return 0xffffff;
26
23
  };
27
24
  DThemeDarkButtonColor.prototype.getImageSource = function (state) {
28
25
  return DThemeDarkAtlas.mappings.button_color_sample;
@@ -1 +1 @@
1
- {"version":3,"file":"d-theme-dark-button-color.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/dark/d-theme-dark-button-color.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAOH,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,mCAAmC;AACnC,8BAA8B;AAC9B,sCAAsC;AACtC,eAAe,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,EAAE,EAAE,EAChD,sCAAoC;IACnC,0GAAsG;IACvG,MAAM,CACN,CAAC;AACF,qCAAqC;AAErC,IAAM,SAAS,GAAG,UAAC,aAA6B;IAC/C,OAAO,WAAI,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,eAAK,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAE,CAAC;AACrF,CAAC,CAAC;AAEF;IACS,yCAAgC;IADzC;;IAsBA,CAAC;IAlBA,iDAAiB,GAAjB,UAAkB,KAAoB;QACrC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,8CAAc,GAAd,UAAe,KAAoB;QAClC,OAAO,eAAe,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IACrD,CAAC;IAED,gDAAgB,GAAhB;QACC,OAAO,SAAS,CAAC;IAClB,CAAC;IAED,4CAAY,GAAZ;QACC,OAAO;YACN,KAAK,EAAE,QAAQ;YACf,KAAK,EAAE,CAAC;SACR,CAAC;IACH,CAAC;IACF,4BAAC;AAAD,CAAC,AAtBD,CACS,gBAAgB,GAqBxB","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Texture } from \"pixi.js\";\nimport { DBaseStateSet } from \"../../d-base-state-set\";\nimport { DButtonColor, DThemeButtonColor } from \"../../d-button-color\";\nimport { DColorAndAlpha } from \"../../d-color-and-alpha\";\nimport { DStateAwareOrValueMightBe } from \"../../d-state-aware\";\nimport { UtilRgb } from \"../../util/util-rgb\";\nimport { DThemeDarkAtlas } from \"./d-theme-dark-atlas\";\nimport { DThemeDarkButton } from \"./d-theme-dark-button\";\n\n// Material Design icons by Google.\n// Apache license version 2.0.\n/* eslint-disable prettier/prettier */\nDThemeDarkAtlas.add(\"button_color_sample\", 21, 21,\n\t`<g transform=\"scale(0.875,0.875)\">` +\n\t\t`<path d=\"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z\" fill=\"#fff\"/>` +\n\t`</g>`\n);\n/* eslint-enable prettier/prettier */\n\nconst formatter = (colorAndAlpha: DColorAndAlpha): string => {\n\treturn `#${UtilRgb.toCode(colorAndAlpha.color)} A${colorAndAlpha.alpha.toFixed(2)}`;\n};\n\nexport class DThemeDarkButtonColor\n\textends DThemeDarkButton<DColorAndAlpha>\n\timplements DThemeButtonColor\n{\n\tgetImageTintColor(state: DBaseStateSet): number | null {\n\t\treturn null;\n\t}\n\n\tgetImageSource(state: DBaseStateSet): Texture {\n\t\treturn DThemeDarkAtlas.mappings.button_color_sample;\n\t}\n\n\tgetTextFormatter(): (value: DColorAndAlpha, caller: DButtonColor) => string {\n\t\treturn formatter;\n\t}\n\n\tnewTextValue(): DStateAwareOrValueMightBe<DColorAndAlpha> {\n\t\treturn {\n\t\t\tcolor: 0xdedede,\n\t\t\talpha: 1\n\t\t};\n\t}\n}\n"]}
1
+ {"version":3,"file":"d-theme-dark-button-color.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/dark/d-theme-dark-button-color.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAOH,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,sCAAsC;AACtC,eAAe,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,EAAE,EAAE,EAChD,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,CAClD,CAAC;AACF,qCAAqC;AAErC,IAAM,SAAS,GAAG,UAAC,aAA6B;IAC/C,OAAO,WAAI,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,eAAK,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAE,CAAC;AACrF,CAAC,CAAC;AAEF;IACS,yCAAgC;IADzC;;IAsBA,CAAC;IAlBA,iDAAiB,GAAjB,UAAkB,KAAoB;QACrC,OAAO,QAAQ,CAAC;IACjB,CAAC;IAED,8CAAc,GAAd,UAAe,KAAoB;QAClC,OAAO,eAAe,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IACrD,CAAC;IAED,gDAAgB,GAAhB;QACC,OAAO,SAAS,CAAC;IAClB,CAAC;IAED,4CAAY,GAAZ;QACC,OAAO;YACN,KAAK,EAAE,QAAQ;YACf,KAAK,EAAE,CAAC;SACR,CAAC;IACH,CAAC;IACF,4BAAC;AAAD,CAAC,AAtBD,CACS,gBAAgB,GAqBxB","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Texture } from \"pixi.js\";\nimport { DBaseStateSet } from \"../../d-base-state-set\";\nimport { DButtonColor, DThemeButtonColor } from \"../../d-button-color\";\nimport { DColorAndAlpha } from \"../../d-color-and-alpha\";\nimport { DStateAwareOrValueMightBe } from \"../../d-state-aware\";\nimport { UtilRgb } from \"../../util/util-rgb\";\nimport { DThemeDarkAtlas } from \"./d-theme-dark-atlas\";\nimport { DThemeDarkButton } from \"./d-theme-dark-button\";\nimport { newSvgRoundedRect } from \"../common/new-svg-rounded-rect\";\n\n/* eslint-disable prettier/prettier */\nDThemeDarkAtlas.add(\"button_color_sample\", 21, 21,\n\tnewSvgRoundedRect(3, 3, 15, 15, \"#fff\", \"#eee\", 1)\n);\n/* eslint-enable prettier/prettier */\n\nconst formatter = (colorAndAlpha: DColorAndAlpha): string => {\n\treturn `#${UtilRgb.toCode(colorAndAlpha.color)} A${colorAndAlpha.alpha.toFixed(2)}`;\n};\n\nexport class DThemeDarkButtonColor\n\textends DThemeDarkButton<DColorAndAlpha>\n\timplements DThemeButtonColor\n{\n\tgetImageTintColor(state: DBaseStateSet): number | null {\n\t\treturn 0xffffff;\n\t}\n\n\tgetImageSource(state: DBaseStateSet): Texture {\n\t\treturn DThemeDarkAtlas.mappings.button_color_sample;\n\t}\n\n\tgetTextFormatter(): (value: DColorAndAlpha, caller: DButtonColor) => string {\n\t\treturn formatter;\n\t}\n\n\tnewTextValue(): DStateAwareOrValueMightBe<DColorAndAlpha> {\n\t\treturn {\n\t\t\tcolor: 0xdedede,\n\t\t\talpha: 1\n\t\t};\n\t}\n}\n"]}
@@ -6,21 +6,10 @@ import { __extends } from "tslib";
6
6
  import { DBaseInteractive } from "../../d-base-interactive";
7
7
  import { DThemeDarkAtlas } from "./d-theme-dark-atlas";
8
8
  import { DThemeDarkBase } from "./d-theme-dark-base";
9
- var makeCheckerboard = function (width, height) {
10
- var LIGHT = "#5f5f5f";
11
- var DARK = "#454545";
12
- var result = "<g>";
13
- for (var ih = 0; ih < height; ++ih) {
14
- for (var iw = 0; iw < width; ++iw) {
15
- var color = (iw + ih) % 2 === 0 ? LIGHT : DARK;
16
- result += "<rect x=\"".concat(9 * iw, "\" y=\"").concat(9 * ih, "\" width=\"9\" height=\"9\" fill=\"").concat(color, "\" />");
17
- }
18
- }
19
- result += "</g>";
20
- return result;
21
- };
9
+ import { newSvgRoundedRect } from "../common/new-svg-rounded-rect";
10
+ import { newDarkSvgRoundedCheckerboard } from "./new-dark-svg-rounded-checkerboard";
22
11
  /* eslint-disable prettier/prettier */
23
- DThemeDarkAtlas.add("picker_color_main", 236, 164, "<g>" +
12
+ DThemeDarkAtlas.add("picker_color_main", 234, 162, "<g>" +
24
13
  "<linearGradient id=\"fs7w3iusfdnb\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">" +
25
14
  "<stop stop-color=\"#FFFFFF\" stop-opacity=\"0\" offset=\"0\"/>" +
26
15
  "<stop stop-color=\"#FFFFFF\" stop-opacity=\"1\" offset=\"1\"/>" +
@@ -29,13 +18,11 @@ DThemeDarkAtlas.add("picker_color_main", 236, 164, "<g>" +
29
18
  "<stop stop-color=\"#000000\" stop-opacity=\"0\" offset=\"0\"/>" +
30
19
  "<stop stop-color=\"#000000\" stop-opacity=\"1\" offset=\"1\"/>" +
31
20
  "</linearGradient>" +
32
- "<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"url(#fs7w3iusfdnb)\" />" +
33
- "<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"url(#2rfcfe9874bw)\" />" +
34
- "</g>", 1, 1, 234, 162);
35
- DThemeDarkAtlas.add("picker_color_main_base", 236, 164, "<g>" +
36
- "<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"#fff\" />" +
37
- "</g>", 1, 1, 234, 162);
38
- DThemeDarkAtlas.add("picker_color_alpha_checkerboard", 234, 18, makeCheckerboard(26, 2));
21
+ newSvgRoundedRect(0, 0, 234, 162, "url(#fs7w3iusfdnb)") +
22
+ newSvgRoundedRect(0, 0, 234, 162, "url(#2rfcfe9874bw)") +
23
+ "</g>");
24
+ DThemeDarkAtlas.add("picker_color_main_base", 234, 162, "<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"#fff\" />");
25
+ DThemeDarkAtlas.add("picker_color_alpha_checkerboard", 234, 18, newDarkSvgRoundedCheckerboard(234, 18));
39
26
  DThemeDarkAtlas.add("picker_color_alpha", 234, 18, "<g>" +
40
27
  "<linearGradient id=\"s48afbuh44\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">" +
41
28
  "<stop stop-color=\"#FFFFFF\" stop-opacity=\"0\" offset=\"0\"/>" +
@@ -53,20 +40,15 @@ DThemeDarkAtlas.add("picker_color_base", 234, 18, "<g>" +
53
40
  "<stop stop-color=\"#FF00FF\" offset=\"0.833\"/>" +
54
41
  "<stop stop-color=\"#FF0000\" offset=\"1\"/>" +
55
42
  "</linearGradient>" +
56
- "<rect x=\"0\" y=\"0\" width=\"234\" height=\"18\" fill=\"url(#ni2rbisdf3)\" />" +
43
+ newSvgRoundedRect(0, 0, 234, 18, "url(#ni2rbisdf3)") +
57
44
  "</g>");
58
45
  DThemeDarkAtlas.add("picker_color_base_pointer", 16.2, 31.8, "<rect x=\"4.5\" y=\"4.5\" width=\"7.2\" height=\"22.8\" stroke=\"#ffffff\" stroke-width=\"2.4\" fill=\"none\" />");
59
46
  DThemeDarkAtlas.add("picker_color_pointer", 25.8, 25.8, "<circle cx=\"12.9\" cy=\"12.9\" r=\"4.8\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />" +
60
47
  "<circle cx=\"12.9\" cy=\"12.9\" r=\"7.2\" stroke=\"#ffffff\" stroke-width=\"2.4\" fill=\"none\" />");
61
- DThemeDarkAtlas.add("picker_color_recent_checkerboard", 36, 36, makeCheckerboard(4, 4), 9, 9, 18, 18);
62
- DThemeDarkAtlas.add("picker_color_recent", 36, 36, "<g>" +
63
- "<rect x=\"0\" y=\"0\" width=\"36\" height=\"36\" fill=\"#fff\" />" +
64
- "<path x=\"0\" y=\"0\" d=\"M9 9 h18 v18 h-18 v-18 m1 1 v16 h16 v-16 h-16 z\" fill=\"#eee\" />" +
65
- "</g>", 9, 9, 18, 18);
66
- DThemeDarkAtlas.add("picker_color_sample_checkerboard", 45, 63, makeCheckerboard(5, 7));
67
- DThemeDarkAtlas.add("picker_color_sample", 47, 65, "<g>" +
68
- "<rect x=\"0\" y=\"0\" width=\"47\" height=\"65\" fill=\"#fff\" />" +
69
- "</g>", 1, 1, 45, 63);
48
+ DThemeDarkAtlas.add("picker_color_recent_checkerboard", 18, 18, newDarkSvgRoundedCheckerboard(18, 18));
49
+ DThemeDarkAtlas.add("picker_color_recent", 18, 18, newSvgRoundedRect(0, 0, 18, 18, "#fff", "#eee", 1));
50
+ DThemeDarkAtlas.add("picker_color_sample_checkerboard", 42, 66, newDarkSvgRoundedCheckerboard(42, 66, "#fff", 1, 0));
51
+ DThemeDarkAtlas.add("picker_color_sample", 42, 66, newSvgRoundedRect(0, 0, 42, 66, "#fff", "#eee", 1));
70
52
  DThemeDarkAtlas.add("picker_color_anchor_outlined", 25.8, 25.8, "<circle cx=\"12.9\" cy=\"12.9\" r=\"8.4\" stroke=\"none\" fill=\"#ffffff\" />" +
71
53
  "<circle cx=\"12.9\" cy=\"12.9\" r=\"9.6\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />");
72
54
  DThemeDarkAtlas.add("picker_color_anchor", 28.2, 28.2, "<circle cx=\"14.1\" cy=\"14.1\" r=\"6\" stroke=\"none\" fill=\"#ffffff\" />" +
@@ -74,9 +56,7 @@ DThemeDarkAtlas.add("picker_color_anchor", 28.2, 28.2, "<circle cx=\"14.1\" cy=\
74
56
  DThemeDarkAtlas.add("picker_color_direction", 12, 30, "<path d=\"M0.6 25.8 L 12.0375 5.9895\" stroke=\"#5f5f5f\" stroke-width=\"1.2\" fill=\"none\" />" +
75
57
  "<path d=\"M8.5125 25.8 A 8.475 8.475 0 0 0 4.275 18.4605\" stroke=\"#5f5f5f\" stroke-width=\"1.2\" fill=\"none\" />" +
76
58
  "<rect x=\"0.6\" y=\"24.6\" width=\"11.4375\" height=\"1.2\" rx=\"0.6\" ry=\"0.6\" stroke=\"none\" fill=\"#5f5f5f\" />");
77
- DThemeDarkAtlas.add("picker_color_standard", 18, 18, "<g>" +
78
- "<rect x=\"0\" y=\"0\" width=\"18\" height=\"18\" fill=\"#fff\" stroke-width=\"1\" stroke=\"#eee\" />" +
79
- "</g>");
59
+ DThemeDarkAtlas.add("picker_color_standard", 18, 18, newSvgRoundedRect(0, 0, 18, 18, "#fff", "#eee", 1));
80
60
  /* eslint-enable prettier/prettier */
81
61
  var DThemeDarkPickerColor = /** @class */ (function (_super) {
82
62
  __extends(DThemeDarkPickerColor, _super);
@@ -168,7 +148,16 @@ var DThemeDarkPickerColor = /** @class */ (function (_super) {
168
148
  return this.getBaseMargin();
169
149
  };
170
150
  DThemeDarkPickerColor.prototype.getInputLabelWidth = function () {
171
- return 15;
151
+ return 18;
152
+ };
153
+ DThemeDarkPickerColor.prototype.getSampleWidth = function () {
154
+ return 42;
155
+ };
156
+ DThemeDarkPickerColor.prototype.getSampleHeight = function () {
157
+ return 66;
158
+ };
159
+ DThemeDarkPickerColor.prototype.getSampleMargin = function () {
160
+ return this.getBaseMargin();
172
161
  };
173
162
  DThemeDarkPickerColor.prototype.getSampleCheckerboardOldTexture = function () {
174
163
  return DThemeDarkAtlas.mappings.picker_color_sample_checkerboard;
@@ -1 +1 @@
1
- {"version":3,"file":"d-theme-dark-picker-color.js","sourceRoot":"","sources":["../../../../../src/main/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;QAC5B,iBAAM,QAAQ,YAAC,KAAK,CAAC,CAAC;QACtB,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC;IAC3B,CAAC;IAGF,4BAAC;AAAD,CAAC,AA3KD,CAAoD,cAAc,GA2KjE","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Texture } from \"pixi.js\";\nimport { DBaseInteractive } from \"../../d-base-interactive\";\nimport { DBaseStateSet } from \"../../d-base-state-set\";\nimport { DThemePickerColor } from \"../../d-picker-color\";\nimport { DThemeDarkAtlas } from \"./d-theme-dark-atlas\";\nimport { DThemeDarkBase } from \"./d-theme-dark-base\";\nimport { DColorType } from \"../../d-color-type\";\n\nconst makeCheckerboard = (width: number, height: number): string => {\n\tconst LIGHT = \"#5f5f5f\";\n\tconst DARK = \"#454545\";\n\tlet result = \"<g>\";\n\tfor (let ih = 0; ih < height; ++ih) {\n\t\tfor (let iw = 0; iw < width; ++iw) {\n\t\t\tconst color = (iw + ih) % 2 === 0 ? LIGHT : DARK;\n\t\t\tresult += `<rect x=\"${9 * iw}\" y=\"${9 * ih}\" width=\"9\" height=\"9\" fill=\"${color}\" />`;\n\t\t}\n\t}\n\tresult += \"</g>\";\n\treturn result;\n};\n\n/* eslint-disable prettier/prettier */\nDThemeDarkAtlas.add(\"picker_color_main\", 236, 164,\n\t`<g>` +\n\t\t`<linearGradient id=\"fs7w3iusfdnb\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">` +\n\t\t\t`<stop stop-color=\"#FFFFFF\" stop-opacity=\"0\" offset=\"0\"/>` +\n\t\t\t`<stop stop-color=\"#FFFFFF\" stop-opacity=\"1\" offset=\"1\"/>` +\n\t\t`</linearGradient>` +\n\t\t`<linearGradient id=\"2rfcfe9874bw\" x1=\"0%\" y1=\"0%\" x2=\"0%\" y2=\"100%\">` +\n\t\t\t`<stop stop-color=\"#000000\" stop-opacity=\"0\" offset=\"0\"/>` +\n\t\t\t`<stop stop-color=\"#000000\" stop-opacity=\"1\" offset=\"1\"/>` +\n\t\t`</linearGradient>` +\n\t\t`<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"url(#fs7w3iusfdnb)\" />` +\n\t\t`<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"url(#2rfcfe9874bw)\" />` +\n\t`</g>`\n, 1, 1, 234, 162);\n\nDThemeDarkAtlas.add(\"picker_color_main_base\", 236, 164,\n\t`<g>` +\n\t\t`<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"#fff\" />` +\n\t`</g>`\n, 1, 1, 234, 162);\n\nDThemeDarkAtlas.add(\"picker_color_alpha_checkerboard\", 234, 18, makeCheckerboard(26, 2));\n\nDThemeDarkAtlas.add(\"picker_color_alpha\", 234, 18,\n\t`<g>` +\n\t\t`<linearGradient id=\"s48afbuh44\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">` +\n\t\t\t`<stop stop-color=\"#FFFFFF\" stop-opacity=\"0\" offset=\"0\"/>` +\n\t\t\t`<stop stop-color=\"#FFFFFF\" stop-opacity=\"1\" offset=\"1\"/>` +\n\t\t`</linearGradient>` +\n\t\t`<rect x=\"0\" y=\"0\" width=\"234\" height=\"18\" fill=\"url(#s48afbuh44)\" />` +\n\t`</g>`\n);\n\nDThemeDarkAtlas.add(\"picker_color_base\", 234, 18,\n\t`<g>` +\n\t\t`<linearGradient id=\"ni2rbisdf3\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">` +\n\t\t\t`<stop stop-color=\"#FF0000\" offset=\"0\"/>` +\n\t\t\t`<stop stop-color=\"#FFFF00\" offset=\"0.167\"/>` +\n\t\t\t`<stop stop-color=\"#00FF00\" offset=\"0.333\"/>` +\n\t\t\t`<stop stop-color=\"#00FFFF\" offset=\"0.5\"/>` +\n\t\t\t`<stop stop-color=\"#0000FF\" offset=\"0.667\"/>` +\n\t\t\t`<stop stop-color=\"#FF00FF\" offset=\"0.833\"/>` +\n\t\t\t`<stop stop-color=\"#FF0000\" offset=\"1\"/>` +\n\t\t`</linearGradient>` +\n\t\t`<rect x=\"0\" y=\"0\" width=\"234\" height=\"18\" fill=\"url(#ni2rbisdf3)\" />` +\n\t`</g>`\n);\n\nDThemeDarkAtlas.add(\"picker_color_base_pointer\", 16.2, 31.8,\n\t`<rect x=\"4.5\" y=\"4.5\" width=\"7.2\" height=\"22.8\" stroke=\"#ffffff\" stroke-width=\"2.4\" fill=\"none\" />`\n);\n\nDThemeDarkAtlas.add(\"picker_color_pointer\", 25.8, 25.8,\n\t`<circle cx=\"12.9\" cy=\"12.9\" r=\"4.8\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />` +\n\t`<circle cx=\"12.9\" cy=\"12.9\" r=\"7.2\" stroke=\"#ffffff\" stroke-width=\"2.4\" fill=\"none\" />`\n);\n\nDThemeDarkAtlas.add(\"picker_color_recent_checkerboard\", 36, 36, makeCheckerboard(4, 4), 9, 9, 18, 18);\n\nDThemeDarkAtlas.add(\"picker_color_recent\", 36, 36,\n\t`<g>` +\n\t\t`<rect x=\"0\" y=\"0\" width=\"36\" height=\"36\" fill=\"#fff\" />` +\n\t\t`<path x=\"0\" y=\"0\" d=\"M9 9 h18 v18 h-18 v-18 m1 1 v16 h16 v-16 h-16 z\" fill=\"#eee\" />` +\n\t`</g>`\n, 9, 9, 18, 18);\n\nDThemeDarkAtlas.add(\"picker_color_sample_checkerboard\", 45, 63, makeCheckerboard(5, 7));\n\nDThemeDarkAtlas.add(\"picker_color_sample\", 47, 65,\n\t`<g>` +\n\t\t`<rect x=\"0\" y=\"0\" width=\"47\" height=\"65\" fill=\"#fff\" />` +\n\t`</g>`\n, 1, 1, 45, 63);\n\nDThemeDarkAtlas.add(\"picker_color_anchor_outlined\", 25.8, 25.8,\n\t`<circle cx=\"12.9\" cy=\"12.9\" r=\"8.4\" stroke=\"none\" fill=\"#ffffff\" />` +\n\t\t`<circle cx=\"12.9\" cy=\"12.9\" r=\"9.6\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />`\n);\n\nDThemeDarkAtlas.add(\"picker_color_anchor\", 28.2, 28.2,\n\t`<circle cx=\"14.1\" cy=\"14.1\" r=\"6\" stroke=\"none\" fill=\"#ffffff\" />` +\n\t`<circle cx=\"14.1\" cy=\"14.1\" r=\"7.2\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />`\n);\n\nDThemeDarkAtlas.add(\"picker_color_direction\", 12,30,\n\t`<path d=\"M0.6 25.8 L 12.0375 5.9895\" stroke=\"#5f5f5f\" stroke-width=\"1.2\" fill=\"none\" />` +\n\t`<path d=\"M8.5125 25.8 A 8.475 8.475 0 0 0 4.275 18.4605\" stroke=\"#5f5f5f\" stroke-width=\"1.2\" fill=\"none\" />` +\n\t`<rect x=\"0.6\" y=\"24.6\" width=\"11.4375\" height=\"1.2\" rx=\"0.6\" ry=\"0.6\" stroke=\"none\" fill=\"#5f5f5f\" />`\n);\n\nDThemeDarkAtlas.add(\"picker_color_standard\", 18, 18,\n\t`<g>` +\n\t\t`<rect x=\"0\" y=\"0\" width=\"18\" height=\"18\" fill=\"#fff\" stroke-width=\"1\" stroke=\"#eee\" />` +\n\t`</g>`\n);\n/* eslint-enable prettier/prettier */\n\nexport abstract class DThemeDarkPickerColor extends DThemeDarkBase implements DThemePickerColor {\n\tgetMainWidth(): number {\n\t\treturn 234;\n\t}\n\n\tgetMainHeight(): number {\n\t\treturn 162;\n\t}\n\n\tgetMainTexture(): Texture {\n\t\treturn DThemeDarkAtlas.mappings.picker_color_main;\n\t}\n\n\tgetMainBaseTexture(): Texture {\n\t\treturn DThemeDarkAtlas.mappings.picker_color_main_base;\n\t}\n\n\tgetMainPointerTexture(): Texture {\n\t\treturn DThemeDarkAtlas.mappings.picker_color_pointer;\n\t}\n\n\tgetMainPointerColor(): number {\n\t\treturn 0xffffff;\n\t}\n\n\tgetMainPointerAlpha(): number {\n\t\treturn 1;\n\t}\n\n\tgetBaseHeight(): number {\n\t\treturn 18;\n\t}\n\n\tgetBaseMargin(): number {\n\t\treturn 6;\n\t}\n\n\tgetBaseTexture(): Texture {\n\t\treturn DThemeDarkAtlas.mappings.picker_color_base;\n\t}\n\n\tgetBasePointerTexture(): Texture {\n\t\treturn DThemeDarkAtlas.mappings.picker_color_base_pointer;\n\t}\n\n\tgetBasePointerColor(): number {\n\t\treturn 0xffffff;\n\t}\n\n\tgetBasePointerAlpha(): number {\n\t\treturn this.getMainPointerAlpha();\n\t}\n\n\tgetAlphaHeight(): number {\n\t\treturn this.getBaseHeight();\n\t}\n\n\tgetAlphaMargin(): number {\n\t\treturn this.getBaseMargin();\n\t}\n\n\tgetAlphaTexture(): Texture {\n\t\treturn DThemeDarkAtlas.mappings.picker_color_alpha;\n\t}\n\n\tgetAlphaCheckerboardTexture(): Texture {\n\t\treturn DThemeDarkAtlas.mappings.picker_color_alpha_checkerboard;\n\t}\n\n\tgetAlphaPointerTexture(): Texture {\n\t\treturn this.getBasePointerTexture();\n\t}\n\n\tgetAlphaPointerColor(): number {\n\t\treturn this.getBasePointerColor();\n\t}\n\n\tgetAlphaPointerAlpha(): number {\n\t\treturn this.getMainPointerAlpha();\n\t}\n\n\tgetRecentMargin(): number {\n\t\treturn this.getBaseMargin();\n\t}\n\n\tgetRecentColorWidth(): number {\n\t\treturn this.getBaseHeight();\n\t}\n\n\tgetRecentColorHeight(): number {\n\t\treturn this.getRecentColorWidth();\n\t}\n\n\tgetRecentColorMargin(): number {\n\t\treturn this.getRecentMargin();\n\t}\n\n\tgetRecentColorCount(): number {\n\t\treturn 10;\n\t}\n\n\tgetRecentCheckerboardTexture(): Texture {\n\t\treturn DThemeDarkAtlas.mappings.picker_color_recent_checkerboard;\n\t}\n\n\tgetRecentTexture(): Texture {\n\t\treturn DThemeDarkAtlas.mappings.picker_color_recent;\n\t}\n\n\tgetInputMargin(): number {\n\t\treturn this.getBaseMargin();\n\t}\n\n\tgetInputLabelWidth(): number {\n\t\treturn 15;\n\t}\n\n\tgetSampleCheckerboardOldTexture(): Texture {\n\t\treturn DThemeDarkAtlas.mappings.picker_color_sample_checkerboard;\n\t}\n\n\tgetSampleCheckerboardNewTexture(): Texture {\n\t\treturn DThemeDarkAtlas.mappings.picker_color_sample_checkerboard;\n\t}\n\n\tgetSampleOldTexture(): Texture {\n\t\treturn DThemeDarkAtlas.mappings.picker_color_sample;\n\t}\n\n\tgetSampleNewTexture(): Texture {\n\t\treturn DThemeDarkAtlas.mappings.picker_color_sample;\n\t}\n\n\tgetStandardColorCount(): number {\n\t\treturn 80;\n\t}\n\n\tgetStandardColorWidth(): number {\n\t\treturn this.getBaseHeight();\n\t}\n\n\tgetStandardColorHeight(): number {\n\t\treturn this.getStandardColorWidth();\n\t}\n\n\tgetStandardColorMargin(): number {\n\t\treturn this.getBaseMargin();\n\t}\n\n\tgetStandardTexture(): Texture {\n\t\treturn DThemeDarkAtlas.mappings.picker_color_standard;\n\t}\n\n\tgetBackgroundColor(state: DBaseStateSet): number | null {\n\t\treturn null;\n\t}\n\n\tgetBorderColor(state: DBaseStateSet): number | null {\n\t\treturn null;\n\t}\n\n\tgetInteractive(): DBaseInteractive {\n\t\treturn DBaseInteractive.CHILDREN;\n\t}\n\n\tnewState(state: DBaseStateSet): void {\n\t\tsuper.newState(state);\n\t\tstate.isFocusable = false;\n\t}\n\n\tabstract toColorTypeLabel(type: DColorType): string;\n}\n"]}
1
+ {"version":3,"file":"d-theme-dark-picker-color.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/dark/d-theme-dark-picker-color.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,C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AC;IAED,mDAAmB,GAAnB;QACC,OAAO,eAAe,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IACrD,CAAC;IAED,mDAAmB,GAAnB;QACC,OAAO,eAAe,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IACrD,CAAC;IAED,qDAAqB,GAArB;QACC,OAAO,EAAE,CAAC;IACX,CAAC;IAED,qDAAqB,GAArB;QACC,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC;IAC7B,CAAC;IAED,sDAAsB,GAAtB;QACC,OAAO,IAAI,CAAC,qBAAqB,EAAE,CAAC;IACrC,CAAC;IAED,sDAAsB,GAAtB;QACC,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC;IAC7B,CAAC;IAED,kDAAkB,GAAlB;QACC,OAAO,eAAe,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACvD,CAAC;IAED,kDAAkB,GAAlB,UAAmB,KAAoB;QACtC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,8CAAc,GAAd,UAAe,KAAoB;QAClC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,8CAAc,GAAd;QACC,OAAO,gBAAgB,CAAC,QAAQ,CAAC;IAClC,CAAC;IAED,wCAAQ,GAAR,UAAS,KAAoB;QAC5B,iBAAM,QAAQ,YAAC,KAAK,CAAC,CAAC;QACtB,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC;IAC3B,CAAC;IAGF,4BAAC;AAAD,CAAC,AAvLD,CAAoD,cAAc,GAuLjE","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Texture } from \"pixi.js\";\nimport { DBaseInteractive } from \"../../d-base-interactive\";\nimport { DBaseStateSet } from \"../../d-base-state-set\";\nimport { DThemePickerColor } from \"../../d-picker-color\";\nimport { DThemeDarkAtlas } from \"./d-theme-dark-atlas\";\nimport { DThemeDarkBase } from \"./d-theme-dark-base\";\nimport { DColorType } from \"../../d-color-type\";\nimport { newSvgRoundedRect } from \"../common/new-svg-rounded-rect\";\nimport { newDarkSvgRoundedCheckerboard } from \"./new-dark-svg-rounded-checkerboard\";\n\n/* eslint-disable prettier/prettier */\nDThemeDarkAtlas.add(\"picker_color_main\", 234, 162,\n\t`<g>` +\n\t\t`<linearGradient id=\"fs7w3iusfdnb\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">` +\n\t\t\t`<stop stop-color=\"#FFFFFF\" stop-opacity=\"0\" offset=\"0\"/>` +\n\t\t\t`<stop stop-color=\"#FFFFFF\" stop-opacity=\"1\" offset=\"1\"/>` +\n\t\t`</linearGradient>` +\n\t\t`<linearGradient id=\"2rfcfe9874bw\" x1=\"0%\" y1=\"0%\" x2=\"0%\" y2=\"100%\">` +\n\t\t\t`<stop stop-color=\"#000000\" stop-opacity=\"0\" offset=\"0\"/>` +\n\t\t\t`<stop stop-color=\"#000000\" stop-opacity=\"1\" offset=\"1\"/>` +\n\t\t`</linearGradient>` +\n\t\tnewSvgRoundedRect(0, 0, 234, 162, \"url(#fs7w3iusfdnb)\") +\n\t\tnewSvgRoundedRect(0, 0, 234, 162, \"url(#2rfcfe9874bw)\") +\n\t`</g>`\n);\n\nDThemeDarkAtlas.add(\"picker_color_main_base\", 234, 162,\n\t`<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"#fff\" />`\n);\n\nDThemeDarkAtlas.add(\"picker_color_alpha_checkerboard\", 234, 18, newDarkSvgRoundedCheckerboard(234, 18));\n\nDThemeDarkAtlas.add(\"picker_color_alpha\", 234, 18,\n\t`<g>` +\n\t\t`<linearGradient id=\"s48afbuh44\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">` +\n\t\t\t`<stop stop-color=\"#FFFFFF\" stop-opacity=\"0\" offset=\"0\"/>` +\n\t\t\t`<stop stop-color=\"#FFFFFF\" stop-opacity=\"1\" offset=\"1\"/>` +\n\t\t`</linearGradient>` +\n\t\t`<rect x=\"0\" y=\"0\" width=\"234\" height=\"18\" fill=\"url(#s48afbuh44)\" />` +\n\t`</g>`\n);\n\nDThemeDarkAtlas.add(\"picker_color_base\", 234, 18,\n\t`<g>` +\n\t\t`<linearGradient id=\"ni2rbisdf3\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">` +\n\t\t\t`<stop stop-color=\"#FF0000\" offset=\"0\"/>` +\n\t\t\t`<stop stop-color=\"#FFFF00\" offset=\"0.167\"/>` +\n\t\t\t`<stop stop-color=\"#00FF00\" offset=\"0.333\"/>` +\n\t\t\t`<stop stop-color=\"#00FFFF\" offset=\"0.5\"/>` +\n\t\t\t`<stop stop-color=\"#0000FF\" offset=\"0.667\"/>` +\n\t\t\t`<stop stop-color=\"#FF00FF\" offset=\"0.833\"/>` +\n\t\t\t`<stop stop-color=\"#FF0000\" offset=\"1\"/>` +\n\t\t`</linearGradient>` +\n\t\tnewSvgRoundedRect(0, 0, 234, 18, \"url(#ni2rbisdf3)\") +\n\t`</g>`\n);\n\nDThemeDarkAtlas.add(\"picker_color_base_pointer\", 16.2, 31.8,\n\t`<rect x=\"4.5\" y=\"4.5\" width=\"7.2\" height=\"22.8\" stroke=\"#ffffff\" stroke-width=\"2.4\" fill=\"none\" />`\n);\n\nDThemeDarkAtlas.add(\"picker_color_pointer\", 25.8, 25.8,\n\t`<circle cx=\"12.9\" cy=\"12.9\" r=\"4.8\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />` +\n\t`<circle cx=\"12.9\" cy=\"12.9\" r=\"7.2\" stroke=\"#ffffff\" stroke-width=\"2.4\" fill=\"none\" />`\n);\n\nDThemeDarkAtlas.add(\"picker_color_recent_checkerboard\", 18, 18, newDarkSvgRoundedCheckerboard(18, 18));\n\nDThemeDarkAtlas.add(\"picker_color_recent\", 18, 18, newSvgRoundedRect(0, 0, 18, 18, \"#fff\", \"#eee\", 1));\n\nDThemeDarkAtlas.add(\"picker_color_sample_checkerboard\", 42, 66, newDarkSvgRoundedCheckerboard(42, 66, \"#fff\", 1, 0));\n\nDThemeDarkAtlas.add(\"picker_color_sample\", 42, 66, newSvgRoundedRect(0, 0, 42, 66, \"#fff\", \"#eee\", 1));\n\nDThemeDarkAtlas.add(\"picker_color_anchor_outlined\", 25.8, 25.8,\n\t`<circle cx=\"12.9\" cy=\"12.9\" r=\"8.4\" stroke=\"none\" fill=\"#ffffff\" />` +\n\t`<circle cx=\"12.9\" cy=\"12.9\" r=\"9.6\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />`\n);\n\nDThemeDarkAtlas.add(\"picker_color_anchor\", 28.2, 28.2,\n\t`<circle cx=\"14.1\" cy=\"14.1\" r=\"6\" stroke=\"none\" fill=\"#ffffff\" />` +\n\t`<circle cx=\"14.1\" cy=\"14.1\" r=\"7.2\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />`\n);\n\nDThemeDarkAtlas.add(\"picker_color_direction\", 12, 30,\n\t`<path d=\"M0.6 25.8 L 12.0375 5.9895\" stroke=\"#5f5f5f\" stroke-width=\"1.2\" fill=\"none\" />` +\n\t`<path d=\"M8.5125 25.8 A 8.475 8.475 0 0 0 4.275 18.4605\" stroke=\"#5f5f5f\" stroke-width=\"1.2\" fill=\"none\" />` +\n\t`<rect x=\"0.6\" y=\"24.6\" width=\"11.4375\" height=\"1.2\" rx=\"0.6\" ry=\"0.6\" stroke=\"none\" fill=\"#5f5f5f\" />`\n);\n\nDThemeDarkAtlas.add(\"picker_color_standard\", 18, 18, newSvgRoundedRect(0, 0, 18, 18, \"#fff\", \"#eee\", 1));\n/* eslint-enable prettier/prettier */\n\nexport abstract class DThemeDarkPickerColor extends DThemeDarkBase implements DThemePickerColor {\n\tgetMainWidth(): number {\n\t\treturn 234;\n\t}\n\n\tgetMainHeight(): number {\n\t\treturn 162;\n\t}\n\n\tgetMainTexture(): Texture {\n\t\treturn DThemeDarkAtlas.mappings.picker_color_main;\n\t}\n\n\tgetMainBaseTexture(): Texture {\n\t\treturn DThemeDarkAtlas.mappings.picker_color_main_base;\n\t}\n\n\tgetMainPointerTexture(): Texture {\n\t\treturn DThemeDarkAtlas.mappings.picker_color_pointer;\n\t}\n\n\tgetMainPointerColor(): number {\n\t\treturn 0xffffff;\n\t}\n\n\tgetMainPointerAlpha(): number {\n\t\treturn 1;\n\t}\n\n\tgetBaseHeight(): number {\n\t\treturn 18;\n\t}\n\n\tgetBaseMargin(): number {\n\t\treturn 6;\n\t}\n\n\tgetBaseTexture(): Texture {\n\t\treturn DThemeDarkAtlas.mappings.picker_color_base;\n\t}\n\n\tgetBasePointerTexture(): Texture {\n\t\treturn DThemeDarkAtlas.mappings.picker_color_base_pointer;\n\t}\n\n\tgetBasePointerColor(): number {\n\t\treturn 0xffffff;\n\t}\n\n\tgetBasePointerAlpha(): number {\n\t\treturn this.getMainPointerAlpha();\n\t}\n\n\tgetAlphaHeight(): number {\n\t\treturn this.getBaseHeight();\n\t}\n\n\tgetAlphaMargin(): number {\n\t\treturn this.getBaseMargin();\n\t}\n\n\tgetAlphaTexture(): Texture {\n\t\treturn DThemeDarkAtlas.mappings.picker_color_alpha;\n\t}\n\n\tgetAlphaCheckerboardTexture(): Texture {\n\t\treturn DThemeDarkAtlas.mappings.picker_color_alpha_checkerboard;\n\t}\n\n\tgetAlphaPointerTexture(): Texture {\n\t\treturn this.getBasePointerTexture();\n\t}\n\n\tgetAlphaPointerColor(): number {\n\t\treturn this.getBasePointerColor();\n\t}\n\n\tgetAlphaPointerAlpha(): number {\n\t\treturn this.getMainPointerAlpha();\n\t}\n\n\tgetRecentMargin(): number {\n\t\treturn this.getBaseMargin();\n\t}\n\n\tgetRecentColorWidth(): number {\n\t\treturn this.getBaseHeight();\n\t}\n\n\tgetRecentColorHeight(): number {\n\t\treturn this.getRecentColorWidth();\n\t}\n\n\tgetRecentColorMargin(): number {\n\t\treturn this.getRecentMargin();\n\t}\n\n\tgetRecentColorCount(): number {\n\t\treturn 10;\n\t}\n\n\tgetRecentCheckerboardTexture(): Texture {\n\t\treturn DThemeDarkAtlas.mappings.picker_color_recent_checkerboard;\n\t}\n\n\tgetRecentTexture(): Texture {\n\t\treturn DThemeDarkAtlas.mappings.picker_color_recent;\n\t}\n\n\tgetInputMargin(): number {\n\t\treturn this.getBaseMargin();\n\t}\n\n\tgetInputLabelWidth(): number {\n\t\treturn 18;\n\t}\n\n\tgetSampleWidth(): number {\n\t\treturn 42;\n\t}\n\n\tgetSampleHeight(): number {\n\t\treturn 66;\n\t}\n\n\tgetSampleMargin(): number {\n\t\treturn this.getBaseMargin();\n\t}\n\n\tgetSampleCheckerboardOldTexture(): Texture {\n\t\treturn DThemeDarkAtlas.mappings.picker_color_sample_checkerboard;\n\t}\n\n\tgetSampleCheckerboardNewTexture(): Texture {\n\t\treturn DThemeDarkAtlas.mappings.picker_color_sample_checkerboard;\n\t}\n\n\tgetSampleOldTexture(): Texture {\n\t\treturn DThemeDarkAtlas.mappings.picker_color_sample;\n\t}\n\n\tgetSampleNewTexture(): Texture {\n\t\treturn DThemeDarkAtlas.mappings.picker_color_sample;\n\t}\n\n\tgetStandardColorCount(): number {\n\t\treturn 80;\n\t}\n\n\tgetStandardColorWidth(): number {\n\t\treturn this.getBaseHeight();\n\t}\n\n\tgetStandardColorHeight(): number {\n\t\treturn this.getStandardColorWidth();\n\t}\n\n\tgetStandardColorMargin(): number {\n\t\treturn this.getBaseMargin();\n\t}\n\n\tgetStandardTexture(): Texture {\n\t\treturn DThemeDarkAtlas.mappings.picker_color_standard;\n\t}\n\n\tgetBackgroundColor(state: DBaseStateSet): number | null {\n\t\treturn null;\n\t}\n\n\tgetBorderColor(state: DBaseStateSet): number | null {\n\t\treturn null;\n\t}\n\n\tgetInteractive(): DBaseInteractive {\n\t\treturn DBaseInteractive.CHILDREN;\n\t}\n\n\tnewState(state: DBaseStateSet): void {\n\t\tsuper.newState(state);\n\t\tstate.isFocusable = false;\n\t}\n\n\tabstract toColorTypeLabel(type: DColorType): string;\n}\n"]}
@@ -59,8 +59,13 @@ var DThemeDarkTableBodyCells = /** @class */ (function () {
59
59
  return DThemeDarkConstants.COLOR;
60
60
  };
61
61
  DThemeDarkTableBodyCells.getAlpha = function (state) {
62
- if (state.inEnabled) {
63
- return 1.0;
62
+ if (state.in(DTableState.HAS_DATA)) {
63
+ if (state.inEnabled) {
64
+ return 1.0;
65
+ }
66
+ else {
67
+ return 0.5;
68
+ }
64
69
  }
65
70
  return 0;
66
71
  };
@@ -1 +1 @@
1
- {"version":3,"file":"d-theme-dark-table-body-cells.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/dark/d-theme-dark-table-body-cells.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D;IAAA;IAiFA,CAAC;IApEO,2CAAkB,GAAzB,UAA0B,KAAoB;QAC7C,IAAI,KAAK,CAAC,UAAU,EAAE;YACrB,IAAI,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE;gBACjC,OAAO,KAAK,CAAC,YAAY;oBACxB,CAAC,CAAC,IAAI,CAAC,2BAA2B;oBAClC,CAAC,CAAC,IAAI,CAAC,4BAA4B,CAAC;aACrC;iBAAM;gBACN,OAAO,IAAI,CAAC;aACZ;SACD;aAAM,IAAI,KAAK,CAAC,SAAS,EAAE;YAC3B,OAAO,mBAAmB,CAAC,wBAAwB,CAAC;SACpD;aAAM,IAAI,KAAK,CAAC,WAAW,EAAE;YAC7B,OAAO,mBAAmB,CAAC,0BAA0B,CAAC;SACtD;aAAM,IAAI,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,SAAS,EAAE;YAC9C,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C;IACxB,CAAC;;;IA/EyB,yCAAgB,GAAG,mBAAmB,CAAC,yBAAyB,AAAhD,CAAiD;IACjE,qDAA4B,GAAG,OAAO,CAAC,QAAQ,CACxE,EAAI,CAAC,gBAAgB,EACrB,IAAI,CACJ,AAHqD,CAGpD;IACwB,oDAA2B,GAAG,OAAO,CAAC,QAAQ,CACvE,EAAI,CAAC,4BAA4B,EACjC,IAAI,CACJ,AAHoD,CAGnD;IACwB,qCAAY,GAAG,OAAO,CAAC,MAAM,CAAC,EAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,AAA/C,CAAgD;IAC5D,4CAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,EAAI,CAAC,YAAY,EAAE,KAAK,CAAC,AAA3C,CAA4C;IAsE1F,+BAAC;CAAA,AAjFD,IAiFC;SAjFY,wBAAwB","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DBaseStateSet } from \"../../d-base-state-set\";\nimport { DBorderMask } from \"../../d-border-mask\";\nimport { DCoordinateSize } from \"../../d-coordinate\";\nimport { DCornerMask } from \"../../d-corner-mask\";\nimport { DTableState } from \"../../d-table-state\";\nimport { UtilRgb } from \"../../util/util-rgb\";\nimport { DThemeDarkConstants } from \"./d-theme-dark-constants\";\n\nexport class DThemeDarkTableBodyCells {\n\tprotected static readonly BACKGROUND_COLOR = DThemeDarkConstants.BACKGROUND_COLOR_ON_BOARD;\n\tprotected static readonly BACKGROUND_COLOR_FROZEN_EVEN = UtilRgb.brighten(\n\t\tthis.BACKGROUND_COLOR,\n\t\t0.03\n\t);\n\tprotected static readonly BACKGROUND_COLOR_FROZEN_ODD = UtilRgb.brighten(\n\t\tthis.BACKGROUND_COLOR_FROZEN_EVEN,\n\t\t0.03\n\t);\n\tprotected static readonly BORDER_COLOR = UtilRgb.darken(this.BACKGROUND_COLOR, 0.035);\n\tprotected static readonly BORDER_COLOR_FROZEN = UtilRgb.darken(this.BORDER_COLOR, 0.035);\n\n\tstatic getBackgroundColor(state: DBaseStateSet): number | null {\n\t\tif (state.inDisabled) {\n\t\t\tif (state.is(DTableState.FROZEN)) {\n\t\t\t\treturn state.onAlternated\n\t\t\t\t\t? this.BACKGROUND_COLOR_FROZEN_ODD\n\t\t\t\t\t: this.BACKGROUND_COLOR_FROZEN_EVEN;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} else if (state.isInvalid) {\n\t\t\treturn DThemeDarkConstants.INVALID_BLENDED_ON_BOARD;\n\t\t} else if (state.underActive) {\n\t\t\treturn DThemeDarkConstants.HIGHLIGHT_BLENDED_ON_BOARD;\n\t\t} else if (state.onHovered || state.isHovered) {\n\t\t\treturn DThemeDarkConstants.WEAK_HIGHLIGHT_BLENDED_ON_BOARD;\n\t\t} else {\n\t\t\tif (state.is(DTableState.FROZEN)) {\n\t\t\t\treturn state.onAlternated\n\t\t\t\t\t? this.BACKGROUND_COLOR_FROZEN_ODD\n\t\t\t\t\t: this.BACKGROUND_COLOR_FROZEN_EVEN;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic getBackgroundAlpha(state: DBaseStateSet): number {\n\t\treturn 1;\n\t}\n\n\tstatic getBorderColor(state: DBaseStateSet): number | null {\n\t\treturn this.BORDER_COLOR;\n\t}\n\n\tstatic getBorderMask(state: DBaseStateSet): DBorderMask {\n\t\tif (state.is(DTableState.END)) {\n\t\t\treturn DBorderMask.ALL;\n\t\t} else {\n\t\t\treturn DBorderMask.NOT_RIGHT;\n\t\t}\n\t}\n\n\tstatic getColor(state: DBaseStateSet): number {\n\t\treturn DThemeDarkConstants.COLOR;\n\t}\n\n\tstatic getAlpha(state: DBaseStateSet): number {\n\t\tif (state.inEnabled) {\n\t\t\treturn 1.0;\n\t\t}\n\t\treturn 0;\n\t}\n\n\tstatic getImageTintColor(state: DBaseStateSet, isActive?: boolean): number | null {\n\t\tif (state.inDisabled || state.inReadOnly || !(state.isActive || isActive)) {\n\t\t\treturn 0x646464;\n\t\t} else {\n\t\t\treturn DThemeDarkConstants.HIGHLIGHT_COLOR;\n\t\t}\n\t}\n\n\tstatic getHeight(): DCoordinateSize {\n\t\treturn \"padding\";\n\t}\n\n\tstatic getCornerMask(): DCornerMask {\n\t\treturn DCornerMask.ALL;\n\t}\n}\n"]}
1
+ {"version":3,"file":"d-theme-dark-table-body-cells.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/dark/d-theme-dark-table-body-cells.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D;IAAA;IAqFA,CAAC;IAxEO,2CAAkB,GAAzB,UAA0B,KAAoB;QAC7C,IAAI,KAAK,CAAC,UAAU,EAAE;YACrB,IAAI,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE;gBACjC,OAAO,KAAK,CAAC,YAAY;oBACxB,CAAC,CAAC,IAAI,CAAC,2BAA2B;oBAClC,CAAC,CAAC,IAAI,CAAC,4BAA4B,CAAC;aACrC;iBAAM;gBACN,OAAO,IAAI,CAAC;aACZ;SACD;aAAM,IAAI,KAAK,CAAC,SAAS,EAAE;YAC3B,OAAO,mBAAmB,CAAC,wBAAwB,CAAC;SACpD;aAAM,IAAI,KAAK,CAAC,WAAW,EAAE;YAC7B,OAAO,mBAAmB,CAAC,0BAA0B,CAAC;SACtD;aAAM,IAAI,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,SAAS,EAAE;YAC9C,OAAO,mBAAmB,CAAC,+BAA+B,CAAC;SAC3D;aAAM;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ClB,CAAC;IAEM,sCAAa,GAApB;QACC,OAAO,WAAW,CAAC,GAAG,CAAC;IACxB,CAAC;;;IAnFyB,yCAAgB,GAAG,mBAAmB,CAAC,yBAAyB,AAAhD,CAAiD;IACjE,qDAA4B,GAAG,OAAO,CAAC,QAAQ,CACxE,EAAI,CAAC,gBAAgB,EACrB,IAAI,CACJ,AAHqD,CAGpD;IACwB,oDAA2B,GAAG,OAAO,CAAC,QAAQ,CACvE,EAAI,CAAC,4BAA4B,EACjC,IAAI,CACJ,AAHoD,CAGnD;IACwB,qCAAY,GAAG,OAAO,CAAC,MAAM,CAAC,EAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,AAA/C,CAAgD;IAC5D,4CAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,EAAI,CAAC,YAAY,EAAE,KAAK,CAAC,AAA3C,CAA4C;IA0E1F,+BAAC;CAAA,AArFD,IAqFC;SArFY,wBAAwB","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DBaseStateSet } from \"../../d-base-state-set\";\nimport { DBorderMask } from \"../../d-border-mask\";\nimport { DCoordinateSize } from \"../../d-coordinate\";\nimport { DCornerMask } from \"../../d-corner-mask\";\nimport { DTableState } from \"../../d-table-state\";\nimport { UtilRgb } from \"../../util/util-rgb\";\nimport { DThemeDarkConstants } from \"./d-theme-dark-constants\";\n\nexport class DThemeDarkTableBodyCells {\n\tprotected static readonly BACKGROUND_COLOR = DThemeDarkConstants.BACKGROUND_COLOR_ON_BOARD;\n\tprotected static readonly BACKGROUND_COLOR_FROZEN_EVEN = UtilRgb.brighten(\n\t\tthis.BACKGROUND_COLOR,\n\t\t0.03\n\t);\n\tprotected static readonly BACKGROUND_COLOR_FROZEN_ODD = UtilRgb.brighten(\n\t\tthis.BACKGROUND_COLOR_FROZEN_EVEN,\n\t\t0.03\n\t);\n\tprotected static readonly BORDER_COLOR = UtilRgb.darken(this.BACKGROUND_COLOR, 0.035);\n\tprotected static readonly BORDER_COLOR_FROZEN = UtilRgb.darken(this.BORDER_COLOR, 0.035);\n\n\tstatic getBackgroundColor(state: DBaseStateSet): number | null {\n\t\tif (state.inDisabled) {\n\t\t\tif (state.is(DTableState.FROZEN)) {\n\t\t\t\treturn state.onAlternated\n\t\t\t\t\t? this.BACKGROUND_COLOR_FROZEN_ODD\n\t\t\t\t\t: this.BACKGROUND_COLOR_FROZEN_EVEN;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} else if (state.isInvalid) {\n\t\t\treturn DThemeDarkConstants.INVALID_BLENDED_ON_BOARD;\n\t\t} else if (state.underActive) {\n\t\t\treturn DThemeDarkConstants.HIGHLIGHT_BLENDED_ON_BOARD;\n\t\t} else if (state.onHovered || state.isHovered) {\n\t\t\treturn DThemeDarkConstants.WEAK_HIGHLIGHT_BLENDED_ON_BOARD;\n\t\t} else {\n\t\t\tif (state.is(DTableState.FROZEN)) {\n\t\t\t\treturn state.onAlternated\n\t\t\t\t\t? this.BACKGROUND_COLOR_FROZEN_ODD\n\t\t\t\t\t: this.BACKGROUND_COLOR_FROZEN_EVEN;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic getBackgroundAlpha(state: DBaseStateSet): number {\n\t\treturn 1;\n\t}\n\n\tstatic getBorderColor(state: DBaseStateSet): number | null {\n\t\treturn this.BORDER_COLOR;\n\t}\n\n\tstatic getBorderMask(state: DBaseStateSet): DBorderMask {\n\t\tif (state.is(DTableState.END)) {\n\t\t\treturn DBorderMask.ALL;\n\t\t} else {\n\t\t\treturn DBorderMask.NOT_RIGHT;\n\t\t}\n\t}\n\n\tstatic getColor(state: DBaseStateSet): number {\n\t\treturn DThemeDarkConstants.COLOR;\n\t}\n\n\tstatic getAlpha(state: DBaseStateSet): number {\n\t\tif (state.in(DTableState.HAS_DATA)) {\n\t\t\tif (state.inEnabled) {\n\t\t\t\treturn 1.0;\n\t\t\t} else {\n\t\t\t\treturn 0.5;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}\n\n\tstatic getImageTintColor(state: DBaseStateSet, isActive?: boolean): number | null {\n\t\tif (state.inDisabled || state.inReadOnly || !(state.isActive || isActive)) {\n\t\t\treturn 0x646464;\n\t\t} else {\n\t\t\treturn DThemeDarkConstants.HIGHLIGHT_COLOR;\n\t\t}\n\t}\n\n\tstatic getHeight(): DCoordinateSize {\n\t\treturn \"padding\";\n\t}\n\n\tstatic getCornerMask(): DCornerMask {\n\t\treturn DCornerMask.ALL;\n\t}\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import { newSvgRoundedCheckerboard } from "../common/new-svg-rounded-checkerboard";
2
+ export var newDarkSvgRoundedCheckerboard = function (width, height, stroke, strokeWidth, strokeOpacity) {
3
+ return newSvgRoundedCheckerboard(width, height, "#5f5f5f", "#454545", stroke, strokeWidth, strokeOpacity);
4
+ };
5
+ //# sourceMappingURL=new-dark-svg-rounded-checkerboard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"new-dark-svg-rounded-checkerboard.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/dark/new-dark-svg-rounded-checkerboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAEnF,MAAM,CAAC,IAAM,6BAA6B,GAAG,UAC5C,KAAa,EACb,MAAc,EACd,MAAe,EACf,WAAoB,EACpB,aAAsB;IAEtB,OAAO,yBAAyB,CAC/B,KAAK,EACL,MAAM,EACN,SAAS,EACT,SAAS,EACT,MAAM,EACN,WAAW,EACX,aAAa,CACb,CAAC;AACH,CAAC,CAAC","sourcesContent":["import { newSvgRoundedCheckerboard } from \"../common/new-svg-rounded-checkerboard\";\n\nexport const newDarkSvgRoundedCheckerboard = (\n\twidth: number,\n\theight: number,\n\tstroke?: string,\n\tstrokeWidth?: number,\n\tstrokeOpacity?: number\n): string => {\n\treturn newSvgRoundedCheckerboard(\n\t\twidth,\n\t\theight,\n\t\t\"#5f5f5f\",\n\t\t\"#454545\",\n\t\tstroke,\n\t\tstrokeWidth,\n\t\tstrokeOpacity\n\t);\n};\n"]}
@@ -6,12 +6,9 @@ import { __extends } from "tslib";
6
6
  import { DColorGradientObservable } from "../../d-color-gradient-observable";
7
7
  import { DThemeWhiteAtlas } from "./d-theme-white-atlas";
8
8
  import { DThemeWhiteButton } from "./d-theme-white-button";
9
- // Material Design icons by Google.
10
- // Apache license version 2.0.
9
+ import { newSvgRoundedRect } from "../common/new-svg-rounded-rect";
11
10
  /* eslint-disable prettier/prettier */
12
- DThemeWhiteAtlas.add("button_color_gradient_sample", 21, 21, "<g transform=\"scale(0.875,0.875)\">" +
13
- "<path d=\"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z\" fill=\"#fff\"/>" +
14
- "</g>");
11
+ DThemeWhiteAtlas.add("button_color_gradient_sample", 21, 21, newSvgRoundedRect(3, 3, 15, 15, "#fff", "#eee", 1));
15
12
  /* eslint-enable prettier/prettier */
16
13
  var formatter = function () {
17
14
  return "";
@@ -1 +1 @@
1
- {"version":3,"file":"d-theme-white-button-color-gradient.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/white/d-theme-white-button-color-gradient.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAIH,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAE7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,mCAAmC;AACnC,8BAA8B;AAC9B,sCAAsC;AACtC,gBAAgB,CAAC,GAAG,CAAC,8BAA8B,EAAE,EAAE,EAAE,EAAE,EAC1D,sCAAoC;IACnC,0GAAsG;IACvG,MAAM,CACN,CAAC;AACF,qCAAqC;AAErC,IAAM,SAAS,GAAG;IACjB,OAAO,EAAE,CAAC;AACX,CAAC,CAAC;AAEF;IACS,kDAA2C;IADpD;;IAmBA,CAAC;IAfA,2DAAkB,GAAlB;QACC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IAC/D,CAAC;IAED,yDAAgB,GAAhB;QACC,OAAO,SAAS,CAAC;IAClB,CAAC;IAED,qDAAY,GAAZ;QACC,OAAO,IAAI,wBAAwB,EAAE,CAAC;IACvC,CAAC;IAED,yDAAgB,GAAhB;QACC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACrB,CAAC;IACF,qCAAC;AAAD,CAAC,AAnBD,CACS,iBAAiB,GAkBzB","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Texture } from \"pixi.js\";\nimport { DButtonColorGradient, DThemeButtonColorGradient } from \"../../d-button-color-gradient\";\nimport { DColorGradientObservable } from \"../../d-color-gradient-observable\";\nimport { DStateAwareOrValueMightBe } from \"../../d-state-aware\";\nimport { DThemeWhiteAtlas } from \"./d-theme-white-atlas\";\nimport { DThemeWhiteButton } from \"./d-theme-white-button\";\n\n// Material Design icons by Google.\n// Apache license version 2.0.\n/* eslint-disable prettier/prettier */\nDThemeWhiteAtlas.add(\"button_color_gradient_sample\", 21, 21,\n\t`<g transform=\"scale(0.875,0.875)\">` +\n\t\t`<path d=\"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z\" fill=\"#fff\"/>` +\n\t`</g>`\n);\n/* eslint-enable prettier/prettier */\n\nconst formatter = (): string => {\n\treturn \"\";\n};\n\nexport class DThemeWhiteButtonColorGradient\n\textends DThemeWhiteButton<DColorGradientObservable>\n\timplements DThemeButtonColorGradient\n{\n\tgetViewBaseTexture(): Texture | null {\n\t\treturn DThemeWhiteAtlas.mappings.button_color_gradient_sample;\n\t}\n\n\tgetTextFormatter(): (value: DColorGradientObservable, caller: DButtonColorGradient) => string {\n\t\treturn formatter;\n\t}\n\n\tnewTextValue(): DStateAwareOrValueMightBe<DColorGradientObservable> {\n\t\treturn new DColorGradientObservable();\n\t}\n\n\tgetCheckerColors(): [number, number] {\n\t\treturn [0.75, 0.65];\n\t}\n}\n"]}
1
+ {"version":3,"file":"d-theme-white-button-color-gradient.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/white/d-theme-white-button-color-gradient.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAIH,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAE7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,sCAAsC;AACtC,gBAAgB,CAAC,GAAG,CAAC,8BAA8B,EAAE,EAAE,EAAE,EAAE,EAC1D,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,CAClD,CAAC;AACF,qCAAqC;AAErC,IAAM,SAAS,GAAG;IACjB,OAAO,EAAE,CAAC;AACX,CAAC,CAAC;AAEF;IACS,kDAA2C;IADpD;;IAmBA,CAAC;IAfA,2DAAkB,GAAlB;QACC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IAC/D,CAAC;IAED,yDAAgB,GAAhB;QACC,OAAO,SAAS,CAAC;IAClB,CAAC;IAED,qDAAY,GAAZ;QACC,OAAO,IAAI,wBAAwB,EAAE,CAAC;IACvC,CAAC;IAED,yDAAgB,GAAhB;QACC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACrB,CAAC;IACF,qCAAC;AAAD,CAAC,AAnBD,CACS,iBAAiB,GAkBzB","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Texture } from \"pixi.js\";\nimport { DButtonColorGradient, DThemeButtonColorGradient } from \"../../d-button-color-gradient\";\nimport { DColorGradientObservable } from \"../../d-color-gradient-observable\";\nimport { DStateAwareOrValueMightBe } from \"../../d-state-aware\";\nimport { DThemeWhiteAtlas } from \"./d-theme-white-atlas\";\nimport { DThemeWhiteButton } from \"./d-theme-white-button\";\nimport { newSvgRoundedRect } from \"../common/new-svg-rounded-rect\";\n\n/* eslint-disable prettier/prettier */\nDThemeWhiteAtlas.add(\"button_color_gradient_sample\", 21, 21,\n\tnewSvgRoundedRect(3, 3, 15, 15, \"#fff\", \"#eee\", 1)\n);\n/* eslint-enable prettier/prettier */\n\nconst formatter = (): string => {\n\treturn \"\";\n};\n\nexport class DThemeWhiteButtonColorGradient\n\textends DThemeWhiteButton<DColorGradientObservable>\n\timplements DThemeButtonColorGradient\n{\n\tgetViewBaseTexture(): Texture | null {\n\t\treturn DThemeWhiteAtlas.mappings.button_color_gradient_sample;\n\t}\n\n\tgetTextFormatter(): (value: DColorGradientObservable, caller: DButtonColorGradient) => string {\n\t\treturn formatter;\n\t}\n\n\tnewTextValue(): DStateAwareOrValueMightBe<DColorGradientObservable> {\n\t\treturn new DColorGradientObservable();\n\t}\n\n\tgetCheckerColors(): [number, number] {\n\t\treturn [0.75, 0.65];\n\t}\n}\n"]}
@@ -6,12 +6,9 @@ import { __extends } from "tslib";
6
6
  import { UtilRgb } from "../../util/util-rgb";
7
7
  import { DThemeWhiteAtlas } from "./d-theme-white-atlas";
8
8
  import { DThemeWhiteButton } from "./d-theme-white-button";
9
- // Material Design icons by Google.
10
- // Apache license version 2.0.
9
+ import { newSvgRoundedRect } from "../common/new-svg-rounded-rect";
11
10
  /* eslint-disable prettier/prettier */
12
- DThemeWhiteAtlas.add("button_color_sample", 21, 21, "<g transform=\"scale(0.875,0.875)\">" +
13
- "<path d=\"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z\" fill=\"#fff\"/>" +
14
- "</g>");
11
+ DThemeWhiteAtlas.add("button_color_sample", 21, 21, newSvgRoundedRect(3, 3, 15, 15, "#fff", "#eee", 1));
15
12
  /* eslint-enable prettier/prettier */
16
13
  var formatter = function (colorAndAlpha) {
17
14
  return "#".concat(UtilRgb.toCode(colorAndAlpha.color), " A").concat(colorAndAlpha.alpha.toFixed(2));
@@ -22,7 +19,7 @@ var DThemeWhiteButtonColor = /** @class */ (function (_super) {
22
19
  return _super !== null && _super.apply(this, arguments) || this;
23
20
  }
24
21
  DThemeWhiteButtonColor.prototype.getImageTintColor = function (state) {
25
- return null;
22
+ return 0xffffff;
26
23
  };
27
24
  DThemeWhiteButtonColor.prototype.getImageSource = function (state) {
28
25
  return DThemeWhiteAtlas.mappings.button_color_sample;
@@ -1 +1 @@
1
- {"version":3,"file":"d-theme-white-button-color.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/white/d-theme-white-button-color.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAOH,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,mCAAmC;AACnC,8BAA8B;AAC9B,sCAAsC;AACtC,gBAAgB,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,EAAE,EAAE,EACjD,sCAAoC;IACnC,0GAAsG;IACvG,MAAM,CACN,CAAC;AACF,qCAAqC;AAErC,IAAM,SAAS,GAAG,UAAC,aAA6B;IAC/C,OAAO,WAAI,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,eAAK,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAE,CAAC;AACrF,CAAC,CAAC;AAEF;IACS,0CAAiC;IAD1C;;IAsBA,CAAC;IAlBA,kDAAiB,GAAjB,UAAkB,KAAoB;QACrC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,+CAAc,GAAd,UAAe,KAAoB;QAClC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IACtD,CAAC;IAED,iDAAgB,GAAhB;QACC,OAAO,SAAS,CAAC;IAClB,CAAC;IAED,6CAAY,GAAZ;QACC,OAAO;YACN,KAAK,EAAE,QAAQ;YACf,KAAK,EAAE,CAAC;SACR,CAAC;IACH,CAAC;IACF,6BAAC;AAAD,CAAC,AAtBD,CACS,iBAAiB,GAqBzB","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Texture } from \"pixi.js\";\nimport { DBaseStateSet } from \"../../d-base-state-set\";\nimport { DButtonColor, DThemeButtonColor } from \"../../d-button-color\";\nimport { DColorAndAlpha } from \"../../d-color-and-alpha\";\nimport { DStateAwareOrValueMightBe } from \"../../d-state-aware\";\nimport { UtilRgb } from \"../../util/util-rgb\";\nimport { DThemeWhiteAtlas } from \"./d-theme-white-atlas\";\nimport { DThemeWhiteButton } from \"./d-theme-white-button\";\n\n// Material Design icons by Google.\n// Apache license version 2.0.\n/* eslint-disable prettier/prettier */\nDThemeWhiteAtlas.add(\"button_color_sample\", 21, 21,\n\t`<g transform=\"scale(0.875,0.875)\">` +\n\t\t`<path d=\"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z\" fill=\"#fff\"/>` +\n\t`</g>`\n);\n/* eslint-enable prettier/prettier */\n\nconst formatter = (colorAndAlpha: DColorAndAlpha): string => {\n\treturn `#${UtilRgb.toCode(colorAndAlpha.color)} A${colorAndAlpha.alpha.toFixed(2)}`;\n};\n\nexport class DThemeWhiteButtonColor\n\textends DThemeWhiteButton<DColorAndAlpha>\n\timplements DThemeButtonColor\n{\n\tgetImageTintColor(state: DBaseStateSet): number | null {\n\t\treturn null;\n\t}\n\n\tgetImageSource(state: DBaseStateSet): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.button_color_sample;\n\t}\n\n\tgetTextFormatter(): (value: DColorAndAlpha, caller: DButtonColor) => string {\n\t\treturn formatter;\n\t}\n\n\tnewTextValue(): DStateAwareOrValueMightBe<DColorAndAlpha> {\n\t\treturn {\n\t\t\tcolor: 0xffffff,\n\t\t\talpha: 1\n\t\t};\n\t}\n}\n"]}
1
+ {"version":3,"file":"d-theme-white-button-color.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/white/d-theme-white-button-color.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAOH,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,sCAAsC;AACtC,gBAAgB,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,EAAE,EAAE,EACjD,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,CAClD,CAAC;AACF,qCAAqC;AAErC,IAAM,SAAS,GAAG,UAAC,aAA6B;IAC/C,OAAO,WAAI,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,eAAK,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAE,CAAC;AACrF,CAAC,CAAC;AAEF;IACS,0CAAiC;IAD1C;;IAsBA,CAAC;IAlBA,kDAAiB,GAAjB,UAAkB,KAAoB;QACrC,OAAO,QAAQ,CAAC;IACjB,CAAC;IAED,+CAAc,GAAd,UAAe,KAAoB;QAClC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IACtD,CAAC;IAED,iDAAgB,GAAhB;QACC,OAAO,SAAS,CAAC;IAClB,CAAC;IAED,6CAAY,GAAZ;QACC,OAAO;YACN,KAAK,EAAE,QAAQ;YACf,KAAK,EAAE,CAAC;SACR,CAAC;IACH,CAAC;IACF,6BAAC;AAAD,CAAC,AAtBD,CACS,iBAAiB,GAqBzB","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Texture } from \"pixi.js\";\nimport { DBaseStateSet } from \"../../d-base-state-set\";\nimport { DButtonColor, DThemeButtonColor } from \"../../d-button-color\";\nimport { DColorAndAlpha } from \"../../d-color-and-alpha\";\nimport { DStateAwareOrValueMightBe } from \"../../d-state-aware\";\nimport { UtilRgb } from \"../../util/util-rgb\";\nimport { DThemeWhiteAtlas } from \"./d-theme-white-atlas\";\nimport { DThemeWhiteButton } from \"./d-theme-white-button\";\nimport { newSvgRoundedRect } from \"../common/new-svg-rounded-rect\";\n\n/* eslint-disable prettier/prettier */\nDThemeWhiteAtlas.add(\"button_color_sample\", 21, 21,\n\tnewSvgRoundedRect(3, 3, 15, 15, \"#fff\", \"#eee\", 1)\n);\n/* eslint-enable prettier/prettier */\n\nconst formatter = (colorAndAlpha: DColorAndAlpha): string => {\n\treturn `#${UtilRgb.toCode(colorAndAlpha.color)} A${colorAndAlpha.alpha.toFixed(2)}`;\n};\n\nexport class DThemeWhiteButtonColor\n\textends DThemeWhiteButton<DColorAndAlpha>\n\timplements DThemeButtonColor\n{\n\tgetImageTintColor(state: DBaseStateSet): number | null {\n\t\treturn 0xffffff;\n\t}\n\n\tgetImageSource(state: DBaseStateSet): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.button_color_sample;\n\t}\n\n\tgetTextFormatter(): (value: DColorAndAlpha, caller: DButtonColor) => string {\n\t\treturn formatter;\n\t}\n\n\tnewTextValue(): DStateAwareOrValueMightBe<DColorAndAlpha> {\n\t\treturn {\n\t\t\tcolor: 0xffffff,\n\t\t\talpha: 1\n\t\t};\n\t}\n}\n"]}
@@ -6,21 +6,10 @@ import { __extends } from "tslib";
6
6
  import { DBaseInteractive } from "../../d-base-interactive";
7
7
  import { DThemeWhiteAtlas } from "./d-theme-white-atlas";
8
8
  import { DThemeWhiteBase } from "./d-theme-white-base";
9
- var makeCheckerboard = function (width, height) {
10
- var LIGHT = "#bfbfbf";
11
- var DARK = "#a5a5a5";
12
- var result = "<g>";
13
- for (var ih = 0; ih < height; ++ih) {
14
- for (var iw = 0; iw < width; ++iw) {
15
- var color = (iw + ih) % 2 === 0 ? LIGHT : DARK;
16
- result += "<rect x=\"".concat(9 * iw, "\" y=\"").concat(9 * ih, "\" width=\"9\" height=\"9\" fill=\"").concat(color, "\" />");
17
- }
18
- }
19
- result += "</g>";
20
- return result;
21
- };
9
+ import { newSvgRoundedRect } from "../common/new-svg-rounded-rect";
10
+ import { newWhiteSvgRoundedCheckerboard } from "./new-white-svg-rounded-checkerboard";
22
11
  /* eslint-disable prettier/prettier */
23
- DThemeWhiteAtlas.add("picker_color_main", 236, 164, "<g>" +
12
+ DThemeWhiteAtlas.add("picker_color_main", 234, 162, "<g>" +
24
13
  "<linearGradient id=\"fs7w3iusfdnb\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">" +
25
14
  "<stop stop-color=\"#FFFFFF\" stop-opacity=\"0\" offset=\"0\"/>" +
26
15
  "<stop stop-color=\"#FFFFFF\" stop-opacity=\"1\" offset=\"1\"/>" +
@@ -29,13 +18,11 @@ DThemeWhiteAtlas.add("picker_color_main", 236, 164, "<g>" +
29
18
  "<stop stop-color=\"#000000\" stop-opacity=\"0\" offset=\"0\"/>" +
30
19
  "<stop stop-color=\"#000000\" stop-opacity=\"1\" offset=\"1\"/>" +
31
20
  "</linearGradient>" +
32
- "<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"url(#fs7w3iusfdnb)\" />" +
33
- "<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"url(#2rfcfe9874bw)\" />" +
34
- "</g>", 1, 1, 234, 162);
35
- DThemeWhiteAtlas.add("picker_color_main_base", 236, 164, "<g>" +
36
- "<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"#fff\" />" +
37
- "</g>", 1, 1, 234, 162);
38
- DThemeWhiteAtlas.add("picker_color_alpha_checkerboard", 234, 18, makeCheckerboard(26, 2));
21
+ newSvgRoundedRect(0, 0, 234, 162, "url(#fs7w3iusfdnb)") +
22
+ newSvgRoundedRect(0, 0, 234, 162, "url(#2rfcfe9874bw)") +
23
+ "</g>");
24
+ DThemeWhiteAtlas.add("picker_color_main_base", 234, 162, "<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"#fff\" />");
25
+ DThemeWhiteAtlas.add("picker_color_alpha_checkerboard", 234, 18, newWhiteSvgRoundedCheckerboard(234, 18));
39
26
  DThemeWhiteAtlas.add("picker_color_alpha", 234, 18, "<g>" +
40
27
  "<linearGradient id=\"s48afbuh44\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">" +
41
28
  "<stop stop-color=\"#FFFFFF\" stop-opacity=\"0\" offset=\"0\"/>" +
@@ -53,20 +40,15 @@ DThemeWhiteAtlas.add("picker_color_base", 234, 18, "<g>" +
53
40
  "<stop stop-color=\"#FF00FF\" offset=\"0.833\"/>" +
54
41
  "<stop stop-color=\"#FF0000\" offset=\"1\"/>" +
55
42
  "</linearGradient>" +
56
- "<rect x=\"0\" y=\"0\" width=\"234\" height=\"18\" fill=\"url(#ni2rbisdf3)\" />" +
43
+ newSvgRoundedRect(0, 0, 234, 18, "url(#ni2rbisdf3)") +
57
44
  "</g>");
58
45
  DThemeWhiteAtlas.add("picker_color_base_pointer", 16.2, 31.8, "<rect x=\"4.5\" y=\"4.5\" width=\"7.2\" height=\"22.8\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />");
59
46
  DThemeWhiteAtlas.add("picker_color_pointer", 25.8, 25.8, "<circle cx=\"12.9\" cy=\"12.9\" r=\"4.8\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />" +
60
47
  "<circle cx=\"12.9\" cy=\"12.9\" r=\"7.2\" stroke=\"#ffffff\" stroke-width=\"2.4\" fill=\"none\" />");
61
- DThemeWhiteAtlas.add("picker_color_recent_checkerboard", 36, 36, makeCheckerboard(4, 4), 9, 9, 18, 18);
62
- DThemeWhiteAtlas.add("picker_color_recent", 36, 36, "<g>" +
63
- "<rect x=\"0\" y=\"0\" width=\"36\" height=\"36\" fill=\"#fff\" />" +
64
- "<path x=\"0\" y=\"0\" d=\"M9 9 h18 v18 h-18 v-18 m1 1 v16 h16 v-16 h-16 z\" fill=\"#eee\" />" +
65
- "</g>", 9, 9, 18, 18);
66
- DThemeWhiteAtlas.add("picker_color_sample_checkerboard", 45, 63, makeCheckerboard(5, 7));
67
- DThemeWhiteAtlas.add("picker_color_sample", 47, 65, "<g>" +
68
- "<rect x=\"0\" y=\"0\" width=\"47\" height=\"65\" fill=\"#fff\" />" +
69
- "</g>", 1, 1, 45, 63);
48
+ DThemeWhiteAtlas.add("picker_color_recent_checkerboard", 18, 18, newWhiteSvgRoundedCheckerboard(18, 18));
49
+ DThemeWhiteAtlas.add("picker_color_recent", 18, 18, newSvgRoundedRect(0, 0, 18, 18, "#fff", "#eee", 1));
50
+ DThemeWhiteAtlas.add("picker_color_sample_checkerboard", 42, 66, newWhiteSvgRoundedCheckerboard(42, 66, "#fff", 1, 0));
51
+ DThemeWhiteAtlas.add("picker_color_sample", 42, 66, newSvgRoundedRect(0, 0, 42, 66, "#fff", "#eee", 1));
70
52
  DThemeWhiteAtlas.add("picker_color_anchor_outlined", 25.8, 25.8, "<circle cx=\"12.9\" cy=\"12.9\" r=\"8.4\" stroke=\"none\" fill=\"#ffffff\" />" +
71
53
  "<circle cx=\"12.9\" cy=\"12.9\" r=\"9.6\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />");
72
54
  DThemeWhiteAtlas.add("picker_color_anchor", 28.2, 28.2, "<circle cx=\"14.1\" cy=\"14.1\" r=\"6\" stroke=\"none\" fill=\"#ffffff\" />" +
@@ -74,9 +56,7 @@ DThemeWhiteAtlas.add("picker_color_anchor", 28.2, 28.2, "<circle cx=\"14.1\" cy=
74
56
  DThemeWhiteAtlas.add("picker_color_direction", 12, 30, "<path d=\"M0.6 25.8 L 12.0375 5.9895\" stroke=\"#5f5f5f\" stroke-width=\"1.2\" fill=\"none\" />" +
75
57
  "<path d=\"M8.5125 25.8 A 8.475 8.475 0 0 0 4.275 18.4605\" stroke=\"#5f5f5f\" stroke-width=\"1.2\" fill=\"none\" />" +
76
58
  "<rect x=\"0.6\" y=\"24.6\" width=\"11.4375\" height=\"1.2\" rx=\"0.6\" ry=\"0.6\" stroke=\"none\" fill=\"#5f5f5f\" />");
77
- DThemeWhiteAtlas.add("picker_color_standard", 18, 18, "<g>" +
78
- "<rect x=\"0\" y=\"0\" width=\"18\" height=\"18\" fill=\"#fff\" stroke-width=\"1\" stroke=\"#eee\" />" +
79
- "</g>");
59
+ DThemeWhiteAtlas.add("picker_color_standard", 18, 18, newSvgRoundedRect(0, 0, 18, 18, "#fff", "#eee", 1));
80
60
  /* eslint-enable prettier/prettier */
81
61
  var DThemeWhitePickerColor = /** @class */ (function (_super) {
82
62
  __extends(DThemeWhitePickerColor, _super);
@@ -168,7 +148,16 @@ var DThemeWhitePickerColor = /** @class */ (function (_super) {
168
148
  return this.getBaseMargin();
169
149
  };
170
150
  DThemeWhitePickerColor.prototype.getInputLabelWidth = function () {
171
- return 15;
151
+ return 18;
152
+ };
153
+ DThemeWhitePickerColor.prototype.getSampleWidth = function () {
154
+ return 42;
155
+ };
156
+ DThemeWhitePickerColor.prototype.getSampleHeight = function () {
157
+ return 66;
158
+ };
159
+ DThemeWhitePickerColor.prototype.getSampleMargin = function () {
160
+ return this.getBaseMargin();
172
161
  };
173
162
  DThemeWhitePickerColor.prototype.getSampleCheckerboardOldTexture = function () {
174
163
  return DThemeWhiteAtlas.mappings.picker_color_sample_checkerboard;
@@ -1 +1 @@
1
- {"version":3,"file":"d-theme-white-picker-color.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/white/d-theme-white-picker-color.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAGvD,IAAM,gBAAgB,GAAG,UAAC,KAAa,EAAE,MAAc;IACtD,IAAM,KAAK,GAAG,SAAS,CAAC;IACxB,IAAM,IAAI,GAAG,SAAS,CAAC;IACvB,IAAI,MAAM,GAAG,KAAK,CAAC;IACnB,KAAK,IAAI,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,MAAM,EAAE,EAAE,EAAE,EAAE;QACnC,KAAK,IAAI,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE,EAAE;YAClC,IAAM,KAAK,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;YACjD,MAAM,IAAI,oBAAY,CAAC,GAAG,EAAE,oBAAQ,CAAC,GAAG,EAAE,gDAAgC,KAAK,UAAM,CAAC;SACtF;KACD;IACD,MAAM,IAAI,MAAM,CAAC;IACjB,OAAO,MAAM,CAAC;AACf,CAAC,CAAC;AAEF,sCAAsC;AACtC,gBAAgB,CAAC,GAAG,CAAC,mBAAmB,EAAE,GAAG,EAAE,GAAG,EACjD,KAAK;IACJ,gFAAsE;IACrE,gEAA0D;IAC1D,gEAA0D;IAC3D,mBAAmB;IACnB,gFAAsE;IACrE,gEAA0D;IAC1D,gEAA0D;IAC3D,m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ED,mDAAkB,GAAlB,UAAmB,KAAoB;QACtC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,+CAAc,GAAd,UAAe,KAAoB;QAClC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,+CAAc,GAAd;QACC,OAAO,gBAAgB,CAAC,QAAQ,CAAC;IAClC,CAAC;IAED,yCAAQ,GAAR,UAAS,KAAoB;QAC5B,iBAAM,QAAQ,YAAC,KAAK,CAAC,CAAC;QACtB,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC;IAC3B,CAAC;IAGF,6BAAC;AAAD,CAAC,AA3KD,CAAqD,eAAe,GA2KnE","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Texture } from \"pixi.js\";\nimport { DBaseInteractive } from \"../../d-base-interactive\";\nimport { DBaseStateSet } from \"../../d-base-state-set\";\nimport { DThemePickerColor } from \"../../d-picker-color\";\nimport { DThemeWhiteAtlas } from \"./d-theme-white-atlas\";\nimport { DThemeWhiteBase } from \"./d-theme-white-base\";\nimport { DColorType } from \"../../d-color-type\";\n\nconst makeCheckerboard = (width: number, height: number): string => {\n\tconst LIGHT = \"#bfbfbf\";\n\tconst DARK = \"#a5a5a5\";\n\tlet result = `<g>`;\n\tfor (let ih = 0; ih < height; ++ih) {\n\t\tfor (let iw = 0; iw < width; ++iw) {\n\t\t\tconst color = (iw + ih) % 2 === 0 ? LIGHT : DARK;\n\t\t\tresult += `<rect x=\"${9 * iw}\" y=\"${9 * ih}\" width=\"9\" height=\"9\" fill=\"${color}\" />`;\n\t\t}\n\t}\n\tresult += \"</g>\";\n\treturn result;\n};\n\n/* eslint-disable prettier/prettier */\nDThemeWhiteAtlas.add(\"picker_color_main\", 236, 164,\n\t`<g>` +\n\t\t`<linearGradient id=\"fs7w3iusfdnb\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">` +\n\t\t\t`<stop stop-color=\"#FFFFFF\" stop-opacity=\"0\" offset=\"0\"/>` +\n\t\t\t`<stop stop-color=\"#FFFFFF\" stop-opacity=\"1\" offset=\"1\"/>` +\n\t\t`</linearGradient>` +\n\t\t`<linearGradient id=\"2rfcfe9874bw\" x1=\"0%\" y1=\"0%\" x2=\"0%\" y2=\"100%\">` +\n\t\t\t`<stop stop-color=\"#000000\" stop-opacity=\"0\" offset=\"0\"/>` +\n\t\t\t`<stop stop-color=\"#000000\" stop-opacity=\"1\" offset=\"1\"/>` +\n\t\t`</linearGradient>` +\n\t\t`<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"url(#fs7w3iusfdnb)\" />` +\n\t\t`<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"url(#2rfcfe9874bw)\" />` +\n\t`</g>`\n\t, 1, 1, 234, 162);\n\nDThemeWhiteAtlas.add(\"picker_color_main_base\", 236, 164,\n\t`<g>` +\n\t\t`<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"#fff\" />` +\n\t`</g>`\n, 1, 1, 234, 162);\n\nDThemeWhiteAtlas.add(\"picker_color_alpha_checkerboard\", 234, 18, makeCheckerboard(26, 2));\n\nDThemeWhiteAtlas.add(\"picker_color_alpha\", 234, 18,\n\t`<g>` +\n\t\t`<linearGradient id=\"s48afbuh44\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">` +\n\t\t\t`<stop stop-color=\"#FFFFFF\" stop-opacity=\"0\" offset=\"0\"/>` +\n\t\t\t`<stop stop-color=\"#FFFFFF\" stop-opacity=\"1\" offset=\"1\"/>` +\n\t\t`</linearGradient>` +\n\t\t`<rect x=\"0\" y=\"0\" width=\"234\" height=\"18\" fill=\"url(#s48afbuh44)\" />` +\n\t`</g>`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_base\", 234, 18,\n\t`<g>` +\n\t\t`<linearGradient id=\"ni2rbisdf3\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">` +\n\t\t\t`<stop stop-color=\"#FF0000\" offset=\"0\"/>` +\n\t\t\t`<stop stop-color=\"#FFFF00\" offset=\"0.167\"/>` +\n\t\t\t`<stop stop-color=\"#00FF00\" offset=\"0.333\"/>` +\n\t\t\t`<stop stop-color=\"#00FFFF\" offset=\"0.5\"/>` +\n\t\t\t`<stop stop-color=\"#0000FF\" offset=\"0.667\"/>` +\n\t\t\t`<stop stop-color=\"#FF00FF\" offset=\"0.833\"/>` +\n\t\t\t`<stop stop-color=\"#FF0000\" offset=\"1\"/>` +\n\t\t`</linearGradient>` +\n\t\t`<rect x=\"0\" y=\"0\" width=\"234\" height=\"18\" fill=\"url(#ni2rbisdf3)\" />` +\n\t`</g>`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_base_pointer\", 16.2, 31.8,\n\t`<rect x=\"4.5\" y=\"4.5\" width=\"7.2\" height=\"22.8\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_pointer\", 25.8, 25.8,\n\t`<circle cx=\"12.9\" cy=\"12.9\" r=\"4.8\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />` +\n\t`<circle cx=\"12.9\" cy=\"12.9\" r=\"7.2\" stroke=\"#ffffff\" stroke-width=\"2.4\" fill=\"none\" />`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_recent_checkerboard\", 36, 36, makeCheckerboard(4, 4), 9, 9, 18, 18);\n\nDThemeWhiteAtlas.add(\"picker_color_recent\", 36, 36,\n\t`<g>` +\n\t\t`<rect x=\"0\" y=\"0\" width=\"36\" height=\"36\" fill=\"#fff\" />` +\n\t\t`<path x=\"0\" y=\"0\" d=\"M9 9 h18 v18 h-18 v-18 m1 1 v16 h16 v-16 h-16 z\" fill=\"#eee\" />` +\n\t`</g>`\n, 9, 9, 18, 18);\n\nDThemeWhiteAtlas.add(\"picker_color_sample_checkerboard\", 45, 63, makeCheckerboard(5, 7));\n\nDThemeWhiteAtlas.add(\"picker_color_sample\", 47, 65,\n\t`<g>` +\n\t\t`<rect x=\"0\" y=\"0\" width=\"47\" height=\"65\" fill=\"#fff\" />` +\n\t`</g>`\n, 1, 1, 45, 63);\n\nDThemeWhiteAtlas.add(\"picker_color_anchor_outlined\", 25.8, 25.8,\n\t`<circle cx=\"12.9\" cy=\"12.9\" r=\"8.4\" stroke=\"none\" fill=\"#ffffff\" />` +\n\t`<circle cx=\"12.9\" cy=\"12.9\" r=\"9.6\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_anchor\", 28.2, 28.2,\n\t`<circle cx=\"14.1\" cy=\"14.1\" r=\"6\" stroke=\"none\" fill=\"#ffffff\" />` +\n\t`<circle cx=\"14.1\" cy=\"14.1\" r=\"7.2\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_direction\", 12, 30,\n\t`<path d=\"M0.6 25.8 L 12.0375 5.9895\" stroke=\"#5f5f5f\" stroke-width=\"1.2\" fill=\"none\" />` +\n\t`<path d=\"M8.5125 25.8 A 8.475 8.475 0 0 0 4.275 18.4605\" stroke=\"#5f5f5f\" stroke-width=\"1.2\" fill=\"none\" />` +\n\t`<rect x=\"0.6\" y=\"24.6\" width=\"11.4375\" height=\"1.2\" rx=\"0.6\" ry=\"0.6\" stroke=\"none\" fill=\"#5f5f5f\" />`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_standard\", 18, 18,\n\t`<g>` +\n\t\t`<rect x=\"0\" y=\"0\" width=\"18\" height=\"18\" fill=\"#fff\" stroke-width=\"1\" stroke=\"#eee\" />` +\n\t`</g>`\n);\n/* eslint-enable prettier/prettier */\n\nexport abstract class DThemeWhitePickerColor extends DThemeWhiteBase implements DThemePickerColor {\n\tgetMainWidth(): number {\n\t\treturn 234;\n\t}\n\n\tgetMainHeight(): number {\n\t\treturn 162;\n\t}\n\n\tgetMainTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_main;\n\t}\n\n\tgetMainBaseTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_main_base;\n\t}\n\n\tgetMainPointerTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_pointer;\n\t}\n\n\tgetMainPointerColor(): number {\n\t\treturn 0xffffff;\n\t}\n\n\tgetMainPointerAlpha(): number {\n\t\treturn 1;\n\t}\n\n\tgetBaseHeight(): number {\n\t\treturn 18;\n\t}\n\n\tgetBaseMargin(): number {\n\t\treturn 6;\n\t}\n\n\tgetBaseTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_base;\n\t}\n\n\tgetBasePointerTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_base_pointer;\n\t}\n\n\tgetBasePointerColor(): number {\n\t\treturn 0xffffff;\n\t}\n\n\tgetBasePointerAlpha(): number {\n\t\treturn this.getMainPointerAlpha();\n\t}\n\n\tgetAlphaHeight(): number {\n\t\treturn this.getBaseHeight();\n\t}\n\n\tgetAlphaMargin(): number {\n\t\treturn this.getBaseMargin();\n\t}\n\n\tgetAlphaTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_alpha;\n\t}\n\n\tgetAlphaCheckerboardTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_alpha_checkerboard;\n\t}\n\n\tgetAlphaPointerTexture(): Texture {\n\t\treturn this.getBasePointerTexture();\n\t}\n\n\tgetAlphaPointerColor(): number {\n\t\treturn this.getBasePointerColor();\n\t}\n\n\tgetAlphaPointerAlpha(): number {\n\t\treturn this.getMainPointerAlpha();\n\t}\n\n\tgetRecentMargin(): number {\n\t\treturn this.getBaseMargin();\n\t}\n\n\tgetRecentColorWidth(): number {\n\t\treturn this.getBaseHeight();\n\t}\n\n\tgetRecentColorHeight(): number {\n\t\treturn this.getRecentColorWidth();\n\t}\n\n\tgetRecentColorMargin(): number {\n\t\treturn this.getRecentMargin();\n\t}\n\n\tgetRecentColorCount(): number {\n\t\treturn 10;\n\t}\n\n\tgetRecentCheckerboardTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_recent_checkerboard;\n\t}\n\n\tgetRecentTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_recent;\n\t}\n\n\tgetInputMargin(): number {\n\t\treturn this.getBaseMargin();\n\t}\n\n\tgetInputLabelWidth(): number {\n\t\treturn 15;\n\t}\n\n\tgetSampleCheckerboardOldTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_sample_checkerboard;\n\t}\n\n\tgetSampleCheckerboardNewTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_sample_checkerboard;\n\t}\n\n\tgetSampleOldTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_sample;\n\t}\n\n\tgetSampleNewTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_sample;\n\t}\n\n\tgetStandardColorCount(): number {\n\t\treturn 80;\n\t}\n\n\tgetStandardColorWidth(): number {\n\t\treturn this.getBaseHeight();\n\t}\n\n\tgetStandardColorHeight(): number {\n\t\treturn this.getStandardColorWidth();\n\t}\n\n\tgetStandardColorMargin(): number {\n\t\treturn this.getBaseMargin();\n\t}\n\n\tgetStandardTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_standard;\n\t}\n\n\tgetBackgroundColor(state: DBaseStateSet): number | null {\n\t\treturn null;\n\t}\n\n\tgetBorderColor(state: DBaseStateSet): number | null {\n\t\treturn null;\n\t}\n\n\tgetInteractive(): DBaseInteractive {\n\t\treturn DBaseInteractive.CHILDREN;\n\t}\n\n\tnewState(state: DBaseStateSet): void {\n\t\tsuper.newState(state);\n\t\tstate.isFocusable = false;\n\t}\n\n\tabstract toColorTypeLabel(type: DColorType): string;\n}\n"]}
1
+ {"version":3,"file":"d-theme-white-picker-color.js","sourceRoot":"","sources":["../../../../../src/main/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CAAC,AAvLD,CAAqD,eAAe,GAuLnE","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Texture } from \"pixi.js\";\nimport { DBaseInteractive } from \"../../d-base-interactive\";\nimport { DBaseStateSet } from \"../../d-base-state-set\";\nimport { DThemePickerColor } from \"../../d-picker-color\";\nimport { DThemeWhiteAtlas } from \"./d-theme-white-atlas\";\nimport { DThemeWhiteBase } from \"./d-theme-white-base\";\nimport { DColorType } from \"../../d-color-type\";\nimport { newSvgRoundedRect } from \"../common/new-svg-rounded-rect\";\nimport { newWhiteSvgRoundedCheckerboard } from \"./new-white-svg-rounded-checkerboard\";\n\n/* eslint-disable prettier/prettier */\nDThemeWhiteAtlas.add(\"picker_color_main\", 234, 162,\n\t`<g>` +\n\t\t`<linearGradient id=\"fs7w3iusfdnb\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">` +\n\t\t\t`<stop stop-color=\"#FFFFFF\" stop-opacity=\"0\" offset=\"0\"/>` +\n\t\t\t`<stop stop-color=\"#FFFFFF\" stop-opacity=\"1\" offset=\"1\"/>` +\n\t\t`</linearGradient>` +\n\t\t`<linearGradient id=\"2rfcfe9874bw\" x1=\"0%\" y1=\"0%\" x2=\"0%\" y2=\"100%\">` +\n\t\t\t`<stop stop-color=\"#000000\" stop-opacity=\"0\" offset=\"0\"/>` +\n\t\t\t`<stop stop-color=\"#000000\" stop-opacity=\"1\" offset=\"1\"/>` +\n\t\t`</linearGradient>` +\n\t\tnewSvgRoundedRect(0, 0, 234, 162, \"url(#fs7w3iusfdnb)\") +\n\t\tnewSvgRoundedRect(0, 0, 234, 162, \"url(#2rfcfe9874bw)\") +\n\t`</g>`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_main_base\", 234, 162,\n\t`<rect x=\"0\" y=\"0\" width=\"236\" height=\"164\" fill=\"#fff\" />`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_alpha_checkerboard\", 234, 18, newWhiteSvgRoundedCheckerboard(234, 18));\n\nDThemeWhiteAtlas.add(\"picker_color_alpha\", 234, 18,\n\t`<g>` +\n\t\t`<linearGradient id=\"s48afbuh44\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">` +\n\t\t\t`<stop stop-color=\"#FFFFFF\" stop-opacity=\"0\" offset=\"0\"/>` +\n\t\t\t`<stop stop-color=\"#FFFFFF\" stop-opacity=\"1\" offset=\"1\"/>` +\n\t\t`</linearGradient>` +\n\t\t`<rect x=\"0\" y=\"0\" width=\"234\" height=\"18\" fill=\"url(#s48afbuh44)\" />` +\n\t`</g>`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_base\", 234, 18,\n\t`<g>` +\n\t\t`<linearGradient id=\"ni2rbisdf3\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">` +\n\t\t\t`<stop stop-color=\"#FF0000\" offset=\"0\"/>` +\n\t\t\t`<stop stop-color=\"#FFFF00\" offset=\"0.167\"/>` +\n\t\t\t`<stop stop-color=\"#00FF00\" offset=\"0.333\"/>` +\n\t\t\t`<stop stop-color=\"#00FFFF\" offset=\"0.5\"/>` +\n\t\t\t`<stop stop-color=\"#0000FF\" offset=\"0.667\"/>` +\n\t\t\t`<stop stop-color=\"#FF00FF\" offset=\"0.833\"/>` +\n\t\t\t`<stop stop-color=\"#FF0000\" offset=\"1\"/>` +\n\t\t`</linearGradient>` +\n\t\tnewSvgRoundedRect(0, 0, 234, 18, \"url(#ni2rbisdf3)\") +\n\t`</g>`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_base_pointer\", 16.2, 31.8,\n\t`<rect x=\"4.5\" y=\"4.5\" width=\"7.2\" height=\"22.8\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_pointer\", 25.8, 25.8,\n\t`<circle cx=\"12.9\" cy=\"12.9\" r=\"4.8\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />` +\n\t`<circle cx=\"12.9\" cy=\"12.9\" r=\"7.2\" stroke=\"#ffffff\" stroke-width=\"2.4\" fill=\"none\" />`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_recent_checkerboard\", 18, 18, newWhiteSvgRoundedCheckerboard(18, 18));\n\nDThemeWhiteAtlas.add(\"picker_color_recent\", 18, 18, newSvgRoundedRect(0, 0, 18, 18, \"#fff\", \"#eee\", 1));\n\nDThemeWhiteAtlas.add(\"picker_color_sample_checkerboard\", 42, 66, newWhiteSvgRoundedCheckerboard(42, 66, \"#fff\", 1, 0));\n\nDThemeWhiteAtlas.add(\"picker_color_sample\", 42, 66, newSvgRoundedRect(0, 0, 42, 66, \"#fff\", \"#eee\", 1));\n\nDThemeWhiteAtlas.add(\"picker_color_anchor_outlined\", 25.8, 25.8,\n\t`<circle cx=\"12.9\" cy=\"12.9\" r=\"8.4\" stroke=\"none\" fill=\"#ffffff\" />` +\n\t`<circle cx=\"12.9\" cy=\"12.9\" r=\"9.6\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_anchor\", 28.2, 28.2,\n\t`<circle cx=\"14.1\" cy=\"14.1\" r=\"6\" stroke=\"none\" fill=\"#ffffff\" />` +\n\t`<circle cx=\"14.1\" cy=\"14.1\" r=\"7.2\" stroke=\"#5f5f5f\" stroke-width=\"2.4\" fill=\"none\" />`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_direction\", 12, 30,\n\t`<path d=\"M0.6 25.8 L 12.0375 5.9895\" stroke=\"#5f5f5f\" stroke-width=\"1.2\" fill=\"none\" />` +\n\t`<path d=\"M8.5125 25.8 A 8.475 8.475 0 0 0 4.275 18.4605\" stroke=\"#5f5f5f\" stroke-width=\"1.2\" fill=\"none\" />` +\n\t`<rect x=\"0.6\" y=\"24.6\" width=\"11.4375\" height=\"1.2\" rx=\"0.6\" ry=\"0.6\" stroke=\"none\" fill=\"#5f5f5f\" />`\n);\n\nDThemeWhiteAtlas.add(\"picker_color_standard\", 18, 18, newSvgRoundedRect(0, 0, 18, 18, \"#fff\", \"#eee\", 1));\n/* eslint-enable prettier/prettier */\n\nexport abstract class DThemeWhitePickerColor extends DThemeWhiteBase implements DThemePickerColor {\n\tgetMainWidth(): number {\n\t\treturn 234;\n\t}\n\n\tgetMainHeight(): number {\n\t\treturn 162;\n\t}\n\n\tgetMainTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_main;\n\t}\n\n\tgetMainBaseTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_main_base;\n\t}\n\n\tgetMainPointerTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_pointer;\n\t}\n\n\tgetMainPointerColor(): number {\n\t\treturn 0xffffff;\n\t}\n\n\tgetMainPointerAlpha(): number {\n\t\treturn 1;\n\t}\n\n\tgetBaseHeight(): number {\n\t\treturn 18;\n\t}\n\n\tgetBaseMargin(): number {\n\t\treturn 6;\n\t}\n\n\tgetBaseTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_base;\n\t}\n\n\tgetBasePointerTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_base_pointer;\n\t}\n\n\tgetBasePointerColor(): number {\n\t\treturn 0xffffff;\n\t}\n\n\tgetBasePointerAlpha(): number {\n\t\treturn this.getMainPointerAlpha();\n\t}\n\n\tgetAlphaHeight(): number {\n\t\treturn this.getBaseHeight();\n\t}\n\n\tgetAlphaMargin(): number {\n\t\treturn this.getBaseMargin();\n\t}\n\n\tgetAlphaTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_alpha;\n\t}\n\n\tgetAlphaCheckerboardTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_alpha_checkerboard;\n\t}\n\n\tgetAlphaPointerTexture(): Texture {\n\t\treturn this.getBasePointerTexture();\n\t}\n\n\tgetAlphaPointerColor(): number {\n\t\treturn this.getBasePointerColor();\n\t}\n\n\tgetAlphaPointerAlpha(): number {\n\t\treturn this.getMainPointerAlpha();\n\t}\n\n\tgetRecentMargin(): number {\n\t\treturn this.getBaseMargin();\n\t}\n\n\tgetRecentColorWidth(): number {\n\t\treturn this.getBaseHeight();\n\t}\n\n\tgetRecentColorHeight(): number {\n\t\treturn this.getRecentColorWidth();\n\t}\n\n\tgetRecentColorMargin(): number {\n\t\treturn this.getRecentMargin();\n\t}\n\n\tgetRecentColorCount(): number {\n\t\treturn 10;\n\t}\n\n\tgetRecentCheckerboardTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_recent_checkerboard;\n\t}\n\n\tgetRecentTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_recent;\n\t}\n\n\tgetInputMargin(): number {\n\t\treturn this.getBaseMargin();\n\t}\n\n\tgetInputLabelWidth(): number {\n\t\treturn 18;\n\t}\n\n\tgetSampleWidth(): number {\n\t\treturn 42;\n\t}\n\n\tgetSampleHeight(): number {\n\t\treturn 66;\n\t}\n\n\tgetSampleMargin(): number {\n\t\treturn this.getBaseMargin();\n\t}\n\n\tgetSampleCheckerboardOldTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_sample_checkerboard;\n\t}\n\n\tgetSampleCheckerboardNewTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_sample_checkerboard;\n\t}\n\n\tgetSampleOldTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_sample;\n\t}\n\n\tgetSampleNewTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_sample;\n\t}\n\n\tgetStandardColorCount(): number {\n\t\treturn 80;\n\t}\n\n\tgetStandardColorWidth(): number {\n\t\treturn this.getBaseHeight();\n\t}\n\n\tgetStandardColorHeight(): number {\n\t\treturn this.getStandardColorWidth();\n\t}\n\n\tgetStandardColorMargin(): number {\n\t\treturn this.getBaseMargin();\n\t}\n\n\tgetStandardTexture(): Texture {\n\t\treturn DThemeWhiteAtlas.mappings.picker_color_standard;\n\t}\n\n\tgetBackgroundColor(state: DBaseStateSet): number | null {\n\t\treturn null;\n\t}\n\n\tgetBorderColor(state: DBaseStateSet): number | null {\n\t\treturn null;\n\t}\n\n\tgetInteractive(): DBaseInteractive {\n\t\treturn DBaseInteractive.CHILDREN;\n\t}\n\n\tnewState(state: DBaseStateSet): void {\n\t\tsuper.newState(state);\n\t\tstate.isFocusable = false;\n\t}\n\n\tabstract toColorTypeLabel(type: DColorType): string;\n}\n"]}
@@ -62,8 +62,13 @@ var DThemeWhiteTableBodyCells = /** @class */ (function () {
62
62
  return DThemeWhiteConstants.COLOR;
63
63
  };
64
64
  DThemeWhiteTableBodyCells.getAlpha = function (state) {
65
- if (state.inEnabled) {
66
- return 1.0;
65
+ if (state.in(DTableState.HAS_DATA)) {
66
+ if (state.inEnabled) {
67
+ return 1.0;
68
+ }
69
+ else {
70
+ return 0.5;
71
+ }
67
72
  }
68
73
  return 0;
69
74
  };