@wcardinal/wcardinal-ui 0.396.0 → 0.398.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 (159) hide show
  1. package/dist/types/wcardinal/ui/d-base.d.ts +1 -3
  2. package/dist/types/wcardinal/ui/d-button-base.d.ts +8 -8
  3. package/dist/types/wcardinal/ui/d-button-color-gradient.d.ts +2 -2
  4. package/dist/types/wcardinal/ui/d-button-color.d.ts +2 -2
  5. package/dist/types/wcardinal/ui/d-button-date.d.ts +2 -2
  6. package/dist/types/wcardinal/ui/d-button-datetime.d.ts +2 -2
  7. package/dist/types/wcardinal/ui/d-button-file.d.ts +2 -2
  8. package/dist/types/wcardinal/ui/d-button-link.d.ts +3 -3
  9. package/dist/types/wcardinal/ui/d-button-redo.d.ts +2 -2
  10. package/dist/types/wcardinal/ui/d-button-select.d.ts +2 -2
  11. package/dist/types/wcardinal/ui/d-button-time.d.ts +2 -2
  12. package/dist/types/wcardinal/ui/d-button-undo.d.ts +2 -2
  13. package/dist/types/wcardinal/ui/d-canvas-container.d.ts +3 -3
  14. package/dist/types/wcardinal/ui/d-chart-plot-area-impl.d.ts +3 -3
  15. package/dist/types/wcardinal/ui/d-chart-selection-simple.d.ts +5 -5
  16. package/dist/types/wcardinal/ui/d-diagram-canvas-base.d.ts +0 -1
  17. package/dist/types/wcardinal/ui/d-diagram-canvas.d.ts +13 -13
  18. package/dist/types/wcardinal/ui/d-diagram.d.ts +1 -3
  19. package/dist/types/wcardinal/ui/d-dropdown-base.d.ts +2 -2
  20. package/dist/types/wcardinal/ui/d-expandable-header.d.ts +2 -2
  21. package/dist/types/wcardinal/ui/d-html-element.d.ts +3 -3
  22. package/dist/types/wcardinal/ui/d-link.d.ts +1 -2
  23. package/dist/types/wcardinal/ui/d-list-item.d.ts +4 -4
  24. package/dist/types/wcardinal/ui/d-menu-bar-item.d.ts +2 -2
  25. package/dist/types/wcardinal/ui/d-menu-item-base.d.ts +4 -4
  26. package/dist/types/wcardinal/ui/d-menu-item-check.d.ts +2 -2
  27. package/dist/types/wcardinal/ui/d-menu-item-link.d.ts +3 -3
  28. package/dist/types/wcardinal/ui/d-menu-item-menu.d.ts +2 -2
  29. package/dist/types/wcardinal/ui/d-menu-item-text.d.ts +2 -2
  30. package/dist/types/wcardinal/ui/d-pane.d.ts +2 -2
  31. package/dist/types/wcardinal/ui/d-picker-color-gradient-view.d.ts +2 -2
  32. package/dist/types/wcardinal/ui/d-picker-color-gradient.d.ts +1 -2
  33. package/dist/types/wcardinal/ui/d-picker-color.d.ts +1 -2
  34. package/dist/types/wcardinal/ui/d-scroll-bar-horizontal.d.ts +1 -2
  35. package/dist/types/wcardinal/ui/d-scroll-bar-vertical.d.ts +1 -2
  36. package/dist/types/wcardinal/ui/d-shadow.d.ts +2 -1
  37. package/dist/types/wcardinal/ui/d-slider.d.ts +1 -3
  38. package/dist/types/wcardinal/ui/d-table-body-cell-button.d.ts +5 -5
  39. package/dist/types/wcardinal/ui/d-table-body-cell-check.d.ts +3 -3
  40. package/dist/types/wcardinal/ui/d-table-body-cell-input-tree.d.ts +2 -2
  41. package/dist/types/wcardinal/ui/d-table-body-cell-link.d.ts +3 -3
  42. package/dist/types/wcardinal/ui/d-table-body-cell-select-dialog.d.ts +2 -2
  43. package/dist/types/wcardinal/ui/d-table-body-cell-select-promise.d.ts +2 -2
  44. package/dist/types/wcardinal/ui/d-table-body-cell-tree.d.ts +4 -4
  45. package/dist/types/wcardinal/ui/d-table-body-cell.d.ts +2 -2
  46. package/dist/types/wcardinal/ui/d-table-body.d.ts +2 -3
  47. package/dist/types/wcardinal/ui/d-table-header-cell.d.ts +1 -2
  48. package/dist/types/wcardinal/ui/d-table.d.ts +1 -2
  49. package/dist/types/wcardinal/ui/d-tree-item-button.d.ts +5 -5
  50. package/dist/types/wcardinal/ui/d-tree-item-non-editable.d.ts +2 -2
  51. package/dist/types/wcardinal/ui/d-tree-item-text.d.ts +2 -2
  52. package/dist/types/wcardinal/ui/d-view-gesture-impl.d.ts +2 -2
  53. package/dist/types/wcardinal/ui/d-view-impl.d.ts +5 -5
  54. package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtime-base.d.ts +1 -3
  55. package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtime-gesture-layer.d.ts +1 -2
  56. package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtime-gesture-shape.d.ts +1 -2
  57. package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtime-misc-html-element-base.d.ts +1 -3
  58. package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtime.d.ts +1 -3
  59. package/dist/types/wcardinal/ui/shape/e-shape-runtime-impl.d.ts +1 -3
  60. package/dist/types/wcardinal/ui/shape/e-shape-runtime.d.ts +1 -3
  61. package/dist/types/wcardinal/ui/shape/variant/e-shape-button-runtime.d.ts +2 -2
  62. package/dist/types/wcardinal/ui/util/util-click-outside.d.ts +1 -2
  63. package/dist/types/wcardinal/ui/util/util-gesture-data.d.ts +1 -3
  64. package/dist/types/wcardinal/ui/util/util-gesture-modifiers.d.ts +2 -2
  65. package/dist/types/wcardinal/ui/util/util-gesture.d.ts +1 -2
  66. package/dist/types/wcardinal/ui/util/util-html-element.d.ts +4 -4
  67. package/dist/types/wcardinal/ui/util/util-pointer-event.d.ts +2 -3
  68. package/dist/wcardinal/ui/d-application-layer.js.map +1 -1
  69. package/dist/wcardinal/ui/d-base.js.map +1 -1
  70. package/dist/wcardinal/ui/d-button-base.js +5 -3
  71. package/dist/wcardinal/ui/d-button-base.js.map +1 -1
  72. package/dist/wcardinal/ui/d-button-color-gradient.js.map +1 -1
  73. package/dist/wcardinal/ui/d-button-color.js.map +1 -1
  74. package/dist/wcardinal/ui/d-button-date.js.map +1 -1
  75. package/dist/wcardinal/ui/d-button-datetime.js.map +1 -1
  76. package/dist/wcardinal/ui/d-button-file.js.map +1 -1
  77. package/dist/wcardinal/ui/d-button-link.js.map +1 -1
  78. package/dist/wcardinal/ui/d-button-redo.js.map +1 -1
  79. package/dist/wcardinal/ui/d-button-select.js.map +1 -1
  80. package/dist/wcardinal/ui/d-button-time.js.map +1 -1
  81. package/dist/wcardinal/ui/d-button-undo.js.map +1 -1
  82. package/dist/wcardinal/ui/d-canvas-container.js.map +1 -1
  83. package/dist/wcardinal/ui/d-chart-plot-area-impl.js.map +1 -1
  84. package/dist/wcardinal/ui/d-chart-selection-simple.js.map +1 -1
  85. package/dist/wcardinal/ui/d-diagram-canvas-base.js +2 -1
  86. package/dist/wcardinal/ui/d-diagram-canvas-base.js.map +1 -1
  87. package/dist/wcardinal/ui/d-diagram-canvas.js.map +1 -1
  88. package/dist/wcardinal/ui/d-diagram.js.map +1 -1
  89. package/dist/wcardinal/ui/d-dropdown-base.js.map +1 -1
  90. package/dist/wcardinal/ui/d-expandable-header.js.map +1 -1
  91. package/dist/wcardinal/ui/d-html-element.js.map +1 -1
  92. package/dist/wcardinal/ui/d-link.js +1 -2
  93. package/dist/wcardinal/ui/d-link.js.map +1 -1
  94. package/dist/wcardinal/ui/d-list-item.js.map +1 -1
  95. package/dist/wcardinal/ui/d-menu-bar-item.js.map +1 -1
  96. package/dist/wcardinal/ui/d-menu-item-base.js.map +1 -1
  97. package/dist/wcardinal/ui/d-menu-item-check.js.map +1 -1
  98. package/dist/wcardinal/ui/d-menu-item-link.js.map +1 -1
  99. package/dist/wcardinal/ui/d-menu-item-menu.js.map +1 -1
  100. package/dist/wcardinal/ui/d-menu-item-text.js.map +1 -1
  101. package/dist/wcardinal/ui/d-pane.js.map +1 -1
  102. package/dist/wcardinal/ui/d-picker-color-gradient-view.js +7 -4
  103. package/dist/wcardinal/ui/d-picker-color-gradient-view.js.map +1 -1
  104. package/dist/wcardinal/ui/d-picker-color-gradient.js.map +1 -1
  105. package/dist/wcardinal/ui/d-picker-color.js.map +1 -1
  106. package/dist/wcardinal/ui/d-scroll-bar-horizontal.js.map +1 -1
  107. package/dist/wcardinal/ui/d-scroll-bar-vertical.js.map +1 -1
  108. package/dist/wcardinal/ui/d-shadow.js.map +1 -1
  109. package/dist/wcardinal/ui/d-slider.js.map +1 -1
  110. package/dist/wcardinal/ui/d-table-body-cell-button.js.map +1 -1
  111. package/dist/wcardinal/ui/d-table-body-cell-check.js.map +1 -1
  112. package/dist/wcardinal/ui/d-table-body-cell-input-tree.js.map +1 -1
  113. package/dist/wcardinal/ui/d-table-body-cell-link.js.map +1 -1
  114. package/dist/wcardinal/ui/d-table-body-cell-select-dialog.js.map +1 -1
  115. package/dist/wcardinal/ui/d-table-body-cell-select-promise.js.map +1 -1
  116. package/dist/wcardinal/ui/d-table-body-cell-tree.js.map +1 -1
  117. package/dist/wcardinal/ui/d-table-body-cell.js.map +1 -1
  118. package/dist/wcardinal/ui/d-table-body.js.map +1 -1
  119. package/dist/wcardinal/ui/d-table-header-cell.js +1 -2
  120. package/dist/wcardinal/ui/d-table-header-cell.js.map +1 -1
  121. package/dist/wcardinal/ui/d-table.js.map +1 -1
  122. package/dist/wcardinal/ui/d-tree-item-button.js.map +1 -1
  123. package/dist/wcardinal/ui/d-tree-item-non-editable.js.map +1 -1
  124. package/dist/wcardinal/ui/d-tree-item-text.js.map +1 -1
  125. package/dist/wcardinal/ui/d-view-gesture-impl.js.map +1 -1
  126. package/dist/wcardinal/ui/d-view-impl.js.map +1 -1
  127. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-base.js.map +1 -1
  128. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-gesture-layer.js +1 -2
  129. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-gesture-layer.js.map +1 -1
  130. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-gesture-shape.js +1 -2
  131. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-gesture-shape.js.map +1 -1
  132. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-misc-html-element-base.js.map +1 -1
  133. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime.js.map +1 -1
  134. package/dist/wcardinal/ui/shape/e-shape-runtime-impl.js.map +1 -1
  135. package/dist/wcardinal/ui/shape/e-shape-runtime.js.map +1 -1
  136. package/dist/wcardinal/ui/shape/variant/e-shape-button-runtime.js.map +1 -1
  137. package/dist/wcardinal/ui/util/util-click-outside.js.map +1 -1
  138. package/dist/wcardinal/ui/util/util-gesture-data.js.map +1 -1
  139. package/dist/wcardinal/ui/util/util-gesture-modifiers.js.map +1 -1
  140. package/dist/wcardinal/ui/util/util-gesture.js.map +1 -1
  141. package/dist/wcardinal/ui/util/util-html-element.js.map +1 -1
  142. package/dist/wcardinal/ui/util/util-pointer-event.js.map +1 -1
  143. package/dist/wcardinal-ui-theme-dark-en-us.js +1 -1
  144. package/dist/wcardinal-ui-theme-dark-en-us.min.js +1 -1
  145. package/dist/wcardinal-ui-theme-dark-ja-jp.js +1 -1
  146. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +1 -1
  147. package/dist/wcardinal-ui-theme-dark.js +1 -1
  148. package/dist/wcardinal-ui-theme-dark.min.js +1 -1
  149. package/dist/wcardinal-ui-theme-white-en-us.js +1 -1
  150. package/dist/wcardinal-ui-theme-white-en-us.min.js +1 -1
  151. package/dist/wcardinal-ui-theme-white-ja-jp.js +1 -1
  152. package/dist/wcardinal-ui-theme-white-ja-jp.min.js +1 -1
  153. package/dist/wcardinal-ui-theme-white.js +1 -1
  154. package/dist/wcardinal-ui-theme-white.min.js +1 -1
  155. package/dist/wcardinal-ui.cjs.js +18 -16
  156. package/dist/wcardinal-ui.js +18 -16
  157. package/dist/wcardinal-ui.min.js +2 -2
  158. package/dist/wcardinal-ui.min.js.map +1 -1
  159. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"d-picker-color.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-picker-color.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAe,KAAK,EAAE,MAAM,EAAW,MAAM,SAAS,CAAC;AAE9D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAk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;gBACvC,MAAM;YACP;gBACC,OAAO;SACR;IACF,CAAC;IAES,8BAAO,GAAjB;QACC,OAAO,cAAc,CAAC;IACvB,CAAC;IACF,mBAAC;AAAD,CAAC,AA3wBD,CAGU,KAAK,GAwwBd","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { interaction, Point, Sprite, Texture } from \"pixi.js\";\nimport InteractionEvent = interaction.InteractionEvent;\nimport { DApplications } from \"./d-applications\";\nimport { DBase, DBaseOptions, DThemeBase } from \"./d-base\";\nimport { DColorAndAlpha } from \"./d-color-and-alpha\";\nimport { DInputRealAndLabel } from \"./d-input-real-and-label\";\nimport { DInputTextAndLabel } from \"./d-input-text-and-label\";\nimport { DPickerColorAndAlpha } from \"./d-picker-color-and-alpha\";\nimport { DColorRecent } from \"./d-color-recent\";\nimport { UtilHsv } from \"./util/util-hsv\";\nimport { UtilPointerEvent } from \"./util/util-pointer-event\";\nimport { UtilRgb } from \"./util/util-rgb\";\nimport { DBaseInteractive } from \"./d-base-interactive\";\nimport { DColorStandard } from \"./d-color-standard\";\nimport { DSelect } from \"./d-select\";\nimport { DLayoutHorizontal } from \"./d-layout-horizontal\";\nimport { DColorType } from \"./d-color-type\";\nimport { DColorStandards } from \"./d-color-standards\";\nimport { DColorRecents } from \"./d-color-recents\";\n\nexport interface DPickerColorOptions<THEME extends DThemePickerColor = DThemePickerColor>\n\textends DBaseOptions<THEME> {}\n\nexport interface DThemePickerColor extends DThemeBase {\n\tgetMainWidth(): number;\n\tgetMainHeight(): number;\n\tgetMainTexture(): Texture;\n\tgetMainBaseTexture(): Texture;\n\tgetMainPointerTexture(): Texture;\n\tgetMainPointerColor(): number;\n\tgetMainPointerAlpha(): number;\n\n\tgetBaseHeight(): number;\n\tgetBaseMargin(): number;\n\tgetBaseTexture(): Texture;\n\tgetBasePointerTexture(): Texture;\n\tgetBasePointerColor(): number;\n\tgetBasePointerAlpha(): number;\n\n\tgetAlphaHeight(): number;\n\tgetAlphaMargin(): number;\n\tgetAlphaTexture(): Texture;\n\tgetAlphaCheckerboardTexture(): Texture;\n\tgetAlphaPointerTexture(): Texture;\n\tgetAlphaPointerColor(): number;\n\tgetAlphaPointerAlpha(): number;\n\n\tgetRecentMargin(): number;\n\tgetRecentColorMargin(): number;\n\tgetRecentColorWidth(): number;\n\tgetRecentColorHeight(): number;\n\tgetRecentColorCount(): number;\n\tgetRecentCheckerboardTexture(): Texture;\n\tgetRecentTexture(): Texture;\n\n\tgetInputMargin(): number;\n\tgetInputLabelWidth(): number;\n\n\tgetSampleCheckerboardOldTexture(): Texture;\n\tgetSampleCheckerboardNewTexture(): Texture;\n\tgetSampleOldTexture(): Texture;\n\tgetSampleNewTexture(): Texture;\n\n\tgetStandardColorCount(): number;\n\tgetStandardColorWidth(): number;\n\tgetStandardColorHeight(): number;\n\tgetStandardColorMargin(): number;\n\tgetStandardTexture(): Texture;\n\n\ttoColorTypeLabel(type: DColorType): string;\n}\n\nexport class DPickerColor<\n\tTHEME extends DThemePickerColor = DThemePickerColor,\n\tOPTIONS extends DPickerColorOptions<THEME> = DPickerColorOptions<THEME>\n> extends DBase<THEME, OPTIONS> {\n\tprotected _mainBaseSprite!: Sprite;\n\tprotected _mainSprite!: Sprite;\n\tprotected _mainPointerSprite!: Sprite;\n\tprotected _pointerPoint!: Point;\n\tprotected _mainStandardColor!: DLayoutHorizontal;\n\tprotected _onMainMoveBound!: (e: InteractionEvent) => void;\n\tprotected _onMainUpBound!: (e: InteractionEvent) => void;\n\n\tprotected _standardColorSprites!: Sprite[];\n\tprotected _standard!: DColorStandard;\n\n\tprotected _baseSprite!: Sprite;\n\tprotected _basePointerSprite!: Sprite;\n\tprotected _onBaseMoveBound!: (e: InteractionEvent) => void;\n\tprotected _onBaseUpBound!: (e: InteractionEvent) => void;\n\n\tprotected _alphaCheckerboardSprite!: Sprite;\n\tprotected _alphaSprite!: Sprite;\n\tprotected _alphaPointerSprite!: Sprite;\n\tprotected _onAlphaMoveBound!: (e: InteractionEvent) => void;\n\tprotected _onAlphaUpBound!: (e: InteractionEvent) => void;\n\n\tprotected _recentColorSprites!: Sprite[];\n\tprotected _recent!: DColorRecent;\n\n\tprotected _inputAndLabelColor!: DInputTextAndLabel;\n\tprotected _inputAndLabelAlpha!: DInputRealAndLabel;\n\n\tprotected _sampleCurrentCheckerboardSprite!: Sprite;\n\tprotected _sampleCurrentSprite!: Sprite;\n\tprotected _sampleNewCheckerboardSprite!: Sprite;\n\tprotected _sampleNewSprite!: Sprite;\n\n\tprotected _current!: DColorAndAlpha;\n\tprotected _currentPicker!: DPickerColorAndAlpha;\n\tprotected _base!: number;\n\tprotected _new!: DColorAndAlpha;\n\tprotected _newPicker!: DPickerColorAndAlpha;\n\n\tprotected _typeSelector!: DSelect<DColorType>;\n\n\tget current(): DColorAndAlpha {\n\t\treturn this._currentPicker;\n\t}\n\n\tget new(): DColorAndAlpha {\n\t\treturn this._newPicker;\n\t}\n\n\tget recent(): DColorRecent {\n\t\treturn this._recent;\n\t}\n\n\tget standard(): DColorStandard {\n\t\treturn this._standard;\n\t}\n\n\tprotected init(options?: OPTIONS): void {\n\t\tsuper.init(options);\n\n\t\tthis._base = 0xff0000;\n\t\tthis._new = { color: 0xffffff, alpha: 1 };\n\t\tthis._newPicker = new DPickerColorAndAlpha(\n\t\t\tthis._new,\n\t\t\t(color) => {\n\t\t\t\tthis.setColorNew(color);\n\t\t\t},\n\t\t\t(alpha: number) => {\n\t\t\t\tthis.setAlphaNew(alpha);\n\t\t\t}\n\t\t);\n\t\tthis._current = { color: 0xffffff, alpha: 1 };\n\t\tthis._currentPicker = new DPickerColorAndAlpha(\n\t\t\tthis._current,\n\t\t\t(color) => {\n\t\t\t\tthis.setColorCurrent(color);\n\t\t\t},\n\t\t\t(alpha: number) => {\n\t\t\t\tthis.setAlphaCurrent(alpha);\n\t\t\t}\n\t\t);\n\n\t\tconst theme = this.theme;\n\t\tconst padding = this._padding;\n\t\tconst paddingTop = padding.getTop();\n\t\tconst paddingRight = padding.getRight();\n\t\tconst paddingBottom = padding.getBottom();\n\t\tconst paddingLeft = padding.getLeft();\n\t\tthis._pointerPoint = new Point();\n\t\tconst mainWidth = theme.getMainWidth();\n\t\tconst mainHeight = theme.getMainHeight();\n\n\t\tconst typeSelector = new DSelect<DColorType>({\n\t\t\tparent: this,\n\t\t\tvalue: DColorType.STANDARD,\n\t\t\tmenu: {\n\t\t\t\titems: [\n\t\t\t\t\t{\n\t\t\t\t\t\tvalue: DColorType.STANDARD,\n\t\t\t\t\t\ttext: {\n\t\t\t\t\t\t\tvalue: theme.toColorTypeLabel(DColorType.STANDARD)\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tvalue: DColorType.CUSTOM,\n\t\t\t\t\t\ttext: {\n\t\t\t\t\t\t\tvalue: theme.toColorTypeLabel(DColorType.CUSTOM)\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\ton: {\n\t\t\t\tchange: (value: DColorType): void => {\n\t\t\t\t\tthis.onTypeChange(value);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tthis._typeSelector = typeSelector;\n\t\ttypeSelector.x = paddingLeft;\n\t\ttypeSelector.y = paddingTop;\n\t\ttypeSelector.width = mainWidth;\n\t\ttypeSelector.interactive = true;\n\t\tthis.addChild(typeSelector);\n\n\t\t// Main\n\t\tconst mainBaseSprite = new Sprite(theme.getMainBaseTexture());\n\t\tthis._mainBaseSprite = mainBaseSprite;\n\t\tmainBaseSprite.x = paddingLeft;\n\t\tmainBaseSprite.y = typeSelector.y + typeSelector.height + theme.getBaseMargin();\n\t\tmainBaseSprite.width = mainWidth;\n\t\tmainBaseSprite.height = mainHeight;\n\t\tmainBaseSprite.interactive = true;\n\t\tmainBaseSprite.visible = false;\n\t\tthis.addChild(mainBaseSprite);\n\n\t\tconst mainSprite = new Sprite(theme.getMainTexture());\n\t\tthis._mainSprite = mainSprite;\n\t\tmainSprite.x = paddingLeft;\n\t\tmainSprite.y = typeSelector.y + typeSelector.height + theme.getBaseMargin();\n\t\tmainSprite.tint = this._base;\n\t\tmainSprite.interactive = false;\n\t\tmainSprite.visible = false;\n\t\tthis.addChild(mainSprite);\n\n\t\t// Main event handling\n\t\tthis._onMainMoveBound = (e: InteractionEvent): void => {\n\t\t\tthis.onMainMove(e);\n\t\t};\n\t\tthis._onMainUpBound = (e: InteractionEvent): void => {\n\t\t\tthis.onMainUp(e);\n\t\t};\n\t\tmainBaseSprite.on(UtilPointerEvent.down, (e: InteractionEvent) => {\n\t\t\tthis.onMainDown(e);\n\t\t});\n\n\t\t// Base color picker\n\t\tconst baseSprite = new Sprite(theme.getBaseTexture());\n\t\tthis._baseSprite = baseSprite;\n\t\tbaseSprite.x = paddingLeft;\n\t\tbaseSprite.y = mainBaseSprite.y + mainBaseSprite.height + theme.getBaseMargin();\n\t\tbaseSprite.interactive = true;\n\t\tbaseSprite.visible = false;\n\t\tthis.addChild(baseSprite);\n\n\t\t// Base event\n\t\tthis._onBaseMoveBound = (e: InteractionEvent): void => {\n\t\t\tthis.onBaseMove(e);\n\t\t};\n\t\tthis._onBaseUpBound = (e: InteractionEvent): void => {\n\t\t\tthis.onBaseUp(e);\n\t\t};\n\t\tbaseSprite.on(UtilPointerEvent.down, (e: InteractionEvent) => {\n\t\t\tthis.onBaseDown(e);\n\t\t});\n\n\t\t// Standard main color\n\t\tthis._standardColorSprites = [];\n\t\tconst standardColorSprites = this._standardColorSprites;\n\t\tconst standardColorCount = theme.getStandardColorCount();\n\t\tconst standardColorWidth = theme.getStandardColorWidth();\n\t\tconst standardColorHeight = theme.getStandardColorHeight();\n\t\tconst standardColorMargin = theme.getStandardColorMargin();\n\t\tconst standardColorY = typeSelector.y + typeSelector.height + theme.getBaseMargin();\n\t\tconst standardTexture = theme.getStandardTexture();\n\t\tconst standard = (this._standard = DColorStandards.getInstance());\n\t\tstandard.on(\"change\", () => {\n\t\t\tthis.onStandardChange();\n\t\t});\n\t\tconst onStandardClick = (e: InteractionEvent) => {\n\t\t\tconst sprite = e.currentTarget;\n\t\t\tif (sprite instanceof Sprite) {\n\t\t\t\tthis.setColorNew(sprite.tint);\n\t\t\t}\n\t\t};\n\t\tfor (let i = 0; i < standardColorCount; ++i) {\n\t\t\tconst x = paddingLeft + (i % 10) * (standardColorWidth + standardColorMargin);\n\t\t\tconst y =\n\t\t\t\tstandardColorY + Math.floor(i / 10) * (standardColorHeight + standardColorMargin);\n\n\t\t\tconst sprite = new Sprite(standardTexture);\n\t\t\tconst standardColor = standard.get(i);\n\t\t\tif (standardColor != null) {\n\t\t\t\tsprite.tint = standardColor;\n\t\t\t\tsprite.alpha = 1;\n\t\t\t} else {\n\t\t\t\tsprite.tint = 0xffffff;\n\t\t\t\tsprite.alpha = 1;\n\t\t\t}\n\t\t\tsprite.x = x;\n\t\t\tsprite.y = y;\n\t\t\tsprite.buttonMode = true;\n\t\t\tsprite.interactive = true;\n\t\t\tsprite.on(UtilPointerEvent.tap, onStandardClick);\n\t\t\tstandardColorSprites.push(sprite);\n\t\t}\n\t\tconst mainStandardColor = new DLayoutHorizontal({\n\t\t\twidth: \"auto\",\n\t\t\theight: \"auto\",\n\t\t\trow: 8,\n\t\t\tchildren: standardColorSprites\n\t\t});\n\t\tthis._mainStandardColor = mainStandardColor;\n\t\tmainStandardColor.visible = true;\n\t\tthis.addChild(mainStandardColor);\n\n\t\t// Alpha picker\n\t\tconst alphaCheckerboardSprite = new Sprite(theme.getAlphaCheckerboardTexture());\n\t\tthis._alphaCheckerboardSprite = alphaCheckerboardSprite;\n\t\talphaCheckerboardSprite.x = padding.getLeft();\n\t\talphaCheckerboardSprite.y = baseSprite.y + theme.getBaseHeight() + theme.getBaseMargin();\n\t\talphaCheckerboardSprite.interactive = false;\n\t\tthis.addChild(alphaCheckerboardSprite);\n\n\t\tconst alphaSprite = new Sprite(theme.getAlphaTexture());\n\t\talphaSprite.tint = this._new.color;\n\t\talphaSprite.interactive = true;\n\t\talphaCheckerboardSprite.addChild(alphaSprite);\n\n\t\t// Alpha event\n\t\tthis._onAlphaMoveBound = (e: InteractionEvent): void => {\n\t\t\tthis.onAlphaMove(e);\n\t\t};\n\t\tthis._onAlphaUpBound = (e: InteractionEvent): void => {\n\t\t\tthis.onAlphaUp(e);\n\t\t};\n\t\talphaSprite.on(UtilPointerEvent.down, (e: InteractionEvent) => {\n\t\t\tthis.onAlphaDown(e);\n\t\t});\n\n\t\t// Pointers\n\t\tconst mainPointerSprite = new Sprite(theme.getMainPointerTexture());\n\t\tthis._mainPointerSprite = mainPointerSprite;\n\t\tmainPointerSprite.x = paddingLeft;\n\t\tmainPointerSprite.y = typeSelector.y + typeSelector.height + theme.getBaseMargin();\n\t\tmainPointerSprite.anchor.x = 0.5;\n\t\tmainPointerSprite.anchor.y = 0.5;\n\t\tmainPointerSprite.tint = theme.getMainPointerColor();\n\t\tmainPointerSprite.alpha = theme.getMainPointerAlpha();\n\t\tmainPointerSprite.interactive = false;\n\t\tmainPointerSprite.visible = false;\n\t\tthis.addChild(mainPointerSprite);\n\n\t\tconst alphaPointerSprite = new Sprite(theme.getAlphaPointerTexture());\n\t\tthis._alphaPointerSprite = alphaPointerSprite;\n\t\talphaPointerSprite.x = mainWidth;\n\t\talphaPointerSprite.y = alphaCheckerboardSprite.height * 0.5;\n\t\talphaPointerSprite.tint = theme.getAlphaPointerColor();\n\t\talphaPointerSprite.alpha = theme.getAlphaPointerAlpha();\n\t\talphaPointerSprite.anchor.set(0.5, 0.5);\n\t\talphaPointerSprite.interactive = false;\n\t\talphaCheckerboardSprite.addChild(alphaPointerSprite);\n\n\t\tconst basePointerSprite = new Sprite(theme.getBasePointerTexture());\n\t\tthis._basePointerSprite = basePointerSprite;\n\t\tbasePointerSprite.x = 0;\n\t\tbasePointerSprite.y = baseSprite.height * 0.5;\n\t\tbasePointerSprite.tint = theme.getBasePointerColor();\n\t\tbasePointerSprite.alpha = theme.getBasePointerAlpha();\n\t\tbasePointerSprite.anchor.set(0.5, 0.5);\n\t\tbasePointerSprite.interactive = false;\n\t\tbaseSprite.addChild(basePointerSprite);\n\n\t\t// Recently used\n\t\tthis._recentColorSprites = [];\n\t\tconst recentColorSprites = this._recentColorSprites;\n\t\tconst recentColorCount = theme.getRecentColorCount();\n\t\tconst recentColorWidth = theme.getRecentColorWidth();\n\t\tconst recentColorHeight = theme.getRecentColorHeight();\n\t\tconst recentColorMargin = theme.getRecentColorMargin();\n\t\tconst recentColorY =\n\t\t\talphaCheckerboardSprite.y + theme.getAlphaHeight() + theme.getRecentMargin();\n\t\tconst recentCheckerboardTexture = theme.getRecentCheckerboardTexture();\n\t\tconst recentTexture = theme.getRecentTexture();\n\t\tconst recent = (this._recent = DColorRecents.getInstance());\n\t\trecent.on(\"change\", () => {\n\t\t\tthis.onRecentChange();\n\t\t});\n\t\tconst onRecentClick = (e: InteractionEvent) => {\n\t\t\tconst sprite = e.currentTarget;\n\t\t\tif (sprite instanceof Sprite) {\n\t\t\t\tthis.setColorNew(sprite.tint);\n\t\t\t\tthis.setAlphaNew(sprite.alpha);\n\t\t\t}\n\t\t};\n\t\tfor (let i = 0; i < recentColorCount; ++i) {\n\t\t\tconst x = paddingLeft + i * (recentColorWidth + recentColorMargin);\n\t\t\tconst y = recentColorY;\n\n\t\t\tconst checkerboardSprite = new Sprite(recentCheckerboardTexture);\n\t\t\tcheckerboardSprite.x = x;\n\t\t\tcheckerboardSprite.y = y;\n\t\t\tcheckerboardSprite.interactive = false;\n\t\t\tthis.addChild(checkerboardSprite);\n\n\t\t\tconst sprite = new Sprite(recentTexture);\n\t\t\tconst recentColorAndAlpha = recent.get(i);\n\t\t\tif (recentColorAndAlpha != null) {\n\t\t\t\tsprite.tint = recentColorAndAlpha.color;\n\t\t\t\tsprite.alpha = recentColorAndAlpha.alpha;\n\t\t\t} else {\n\t\t\t\tsprite.tint = 0xffffff;\n\t\t\t\tsprite.alpha = 0;\n\t\t\t}\n\t\t\tsprite.x = x;\n\t\t\tsprite.y = y;\n\t\t\tsprite.buttonMode = true;\n\t\t\tsprite.interactive = true;\n\t\t\tsprite.on(UtilPointerEvent.tap, onRecentClick);\n\t\t\tthis.addChild(sprite);\n\t\t\trecentColorSprites.push(sprite);\n\t\t}\n\n\t\t// Input color\n\t\tconst inputMargin = theme.getInputMargin();\n\t\tconst inputLabelWidth = theme.getInputLabelWidth();\n\t\tconst inputY = recentColorY + recentColorHeight + inputMargin;\n\t\tconst inputWidth = (mainWidth - inputMargin) * 0.5;\n\t\tconst inputAndLabelColor = new DInputTextAndLabel({\n\t\t\tparent: this,\n\t\t\tx: paddingLeft,\n\t\t\ty: inputY,\n\t\t\twidth: inputWidth,\n\t\t\tlabel: {\n\t\t\t\twidth: inputLabelWidth,\n\t\t\t\ttext: {\n\t\t\t\t\tvalue: \"#\"\n\t\t\t\t},\n\t\t\t\tinteractive: DBaseInteractive.NONE\n\t\t\t},\n\t\t\tinput: {\n\t\t\t\tweight: 1,\n\t\t\t\ttext: {\n\t\t\t\t\tvalue: \"FFFFFF\"\n\t\t\t\t},\n\t\t\t\ton: {\n\t\t\t\t\tinput: (code: string): void => {\n\t\t\t\t\t\tconst color = UtilRgb.fromCode(code);\n\t\t\t\t\t\tif (color != null) {\n\t\t\t\t\t\t\tthis.setColorNew(color);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tthis._inputAndLabelColor = inputAndLabelColor;\n\t\tconst inputHeight = inputAndLabelColor.height;\n\n\t\tconst inputAndLabelAlpha = new DInputRealAndLabel({\n\t\t\tparent: this,\n\t\t\tx: paddingLeft,\n\t\t\ty: inputY + inputHeight + inputMargin,\n\t\t\twidth: inputWidth,\n\t\t\tlabel: {\n\t\t\t\twidth: inputLabelWidth,\n\t\t\t\ttext: {\n\t\t\t\t\tvalue: \"A\"\n\t\t\t\t},\n\t\t\t\tinteractive: DBaseInteractive.NONE\n\t\t\t},\n\t\t\tinput: {\n\t\t\t\tweight: 1,\n\t\t\t\ttext: {\n\t\t\t\t\tvalue: 1\n\t\t\t\t},\n\t\t\t\tmin: 0,\n\t\t\t\tmax: 1,\n\t\t\t\ton: {\n\t\t\t\t\tinput: (value: number) => {\n\t\t\t\t\t\tthis.setAlphaNew(value);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tthis._inputAndLabelAlpha = inputAndLabelAlpha;\n\n\t\t// Samples\n\t\tconst sampleWidth = (inputWidth - inputLabelWidth - inputMargin) * 0.5;\n\t\tconst sampleHeight = inputHeight + inputMargin + inputHeight;\n\t\tconst sampleX = paddingLeft + (mainWidth - inputMargin) * 0.5 + inputMargin;\n\t\tconst sampleY =\n\t\t\tinputY + (inputHeight + inputMargin + inputAndLabelAlpha.height - sampleHeight) * 0.5;\n\n\t\tconst sampleCurrentCheckerboardSprite = new Sprite(theme.getSampleCheckerboardOldTexture());\n\t\tthis._sampleCurrentCheckerboardSprite = sampleCurrentCheckerboardSprite;\n\t\tsampleCurrentCheckerboardSprite.x = sampleX;\n\t\tsampleCurrentCheckerboardSprite.y = sampleY;\n\t\tsampleCurrentCheckerboardSprite.width = sampleWidth;\n\t\tsampleCurrentCheckerboardSprite.height = sampleHeight;\n\t\tsampleCurrentCheckerboardSprite.interactive = false;\n\t\tthis.addChild(sampleCurrentCheckerboardSprite);\n\n\t\tconst current = this._current;\n\t\tconst sampleCurrentSprite = new Sprite(theme.getSampleOldTexture());\n\t\tthis._sampleCurrentSprite = sampleCurrentSprite;\n\t\tsampleCurrentSprite.x = sampleX;\n\t\tsampleCurrentSprite.y = sampleY;\n\t\tsampleCurrentSprite.tint = current.color;\n\t\tsampleCurrentSprite.alpha = current.alpha;\n\t\tsampleCurrentSprite.width = sampleWidth;\n\t\tsampleCurrentSprite.height = sampleHeight;\n\t\tsampleCurrentSprite.interactive = true;\n\t\tsampleCurrentSprite.buttonMode = true;\n\t\tsampleCurrentSprite.on(UtilPointerEvent.tap, (): void => {\n\t\t\tthis.setColorNew(current.color);\n\t\t\tthis.setAlphaNew(current.alpha);\n\t\t});\n\t\tthis.addChild(sampleCurrentSprite);\n\n\t\tconst sampleNewCheckerboardSprite = new Sprite(theme.getSampleCheckerboardNewTexture());\n\t\tthis._sampleNewCheckerboardSprite = sampleNewCheckerboardSprite;\n\t\tsampleNewCheckerboardSprite.x = sampleX + sampleWidth;\n\t\tsampleNewCheckerboardSprite.y = sampleY;\n\t\tsampleNewCheckerboardSprite.width = sampleWidth;\n\t\tsampleNewCheckerboardSprite.height = sampleHeight;\n\t\tsampleNewCheckerboardSprite.interactive = false;\n\t\tthis.addChild(sampleNewCheckerboardSprite);\n\n\t\tconst sampleNewSprite = new Sprite(theme.getSampleNewTexture());\n\t\tthis._sampleNewSprite = sampleNewSprite;\n\t\tsampleNewSprite.x = sampleX + sampleWidth;\n\t\tsampleNewSprite.y = sampleY;\n\t\tsampleNewSprite.tint = this._new.color;\n\t\tsampleNewSprite.alpha = this._new.alpha;\n\t\tsampleNewSprite.width = sampleWidth;\n\t\tsampleNewSprite.height = sampleHeight;\n\t\tsampleNewSprite.interactive = false;\n\t\tthis.addChild(sampleNewSprite);\n\n\t\t// Width\n\t\tif (options == null || options.width == null) {\n\t\t\tthis.width = paddingLeft + mainWidth + paddingRight;\n\t\t}\n\n\t\t// Height\n\t\tif (options == null || options.height == null) {\n\t\t\tthis.height =\n\t\t\t\tinputY +\n\t\t\t\tinputAndLabelColor.height +\n\t\t\t\tinputMargin +\n\t\t\t\tinputAndLabelAlpha.height +\n\t\t\t\tpaddingBottom;\n\t\t}\n\t}\n\n\tprotected onMainDown(e: InteractionEvent): void {\n\t\tthis.onMainPick(e.data.global);\n\n\t\tconst layer = DApplications.getLayer(this);\n\t\tif (layer) {\n\t\t\tconst stage = layer.stage;\n\t\t\tstage.on(UtilPointerEvent.move, this._onMainMoveBound);\n\t\t\tstage.on(UtilPointerEvent.up, this._onMainUpBound);\n\t\t\tstage.on(UtilPointerEvent.upoutside, this._onMainUpBound);\n\t\t}\n\t}\n\n\tprotected onMainMove(e: InteractionEvent): void {\n\t\tthis.onMainPick(e.data.global);\n\t}\n\n\tprotected onMainUp(e: InteractionEvent): void {\n\t\tconst layer = DApplications.getLayer(this);\n\t\tif (layer) {\n\t\t\tconst stage = layer.stage;\n\t\t\tstage.off(UtilPointerEvent.move, this._onMainMoveBound);\n\t\t\tstage.off(UtilPointerEvent.up, this._onMainUpBound);\n\t\t}\n\t}\n\n\tprotected toMainHex(b: number, w0: number, w1: number, shift: number): number {\n\t\treturn Math.max(0, Math.min(255, w0 * 255 + w1 * ((b >> shift) & 0xff))) << shift;\n\t}\n\n\tprotected toMainColor(\n\t\tbase: number,\n\t\ttx: number,\n\t\tty: number,\n\t\twidth: number,\n\t\theight: number\n\t): number {\n\t\tconst hw = width * 0.5;\n\t\tconst ux = Math.max(0, Math.min(1, ((tx - hw) * (1 - ty / height) + hw) / width));\n\t\tconst uy = Math.max(0, Math.min(1, ty / height));\n\t\tconst w1 = Math.abs(0.5 * uy - ux);\n\t\tconst w0 = 1 - w1 - uy;\n\t\tconst r = this.toMainHex(base, w0, w1, 16);\n\t\tconst g = this.toMainHex(base, w0, w1, 8);\n\t\tconst b = this.toMainHex(base, w0, w1, 0);\n\t\treturn r | g | b;\n\t}\n\n\tprotected onMainPick(global: Point): void {\n\t\tconst mainBaseSprite = this._mainBaseSprite;\n\t\tconst point = this._pointerPoint;\n\t\tconst theme = this.theme;\n\t\tconst mainWidth = theme.getMainWidth();\n\t\tconst mainHeight = theme.getMainHeight();\n\t\tthis.toLocal(global, undefined, point);\n\t\tconst x = Math.max(0, Math.min(mainWidth, point.x - mainBaseSprite.x));\n\t\tconst y = Math.max(0, Math.min(mainHeight, point.y - mainBaseSprite.y));\n\t\tconst mainPointerSprite = this._mainPointerSprite;\n\t\tmainPointerSprite.position.set(mainBaseSprite.x + x, mainBaseSprite.y + y);\n\t\tthis.onColorNew(this.toMainColor(this._base, x, y, mainWidth, mainHeight));\n\t}\n\n\tprotected setColorCurrent(color: number): void {\n\t\tthis._sampleCurrentSprite.tint = this._current.color = color;\n\t}\n\n\tprotected setAlphaCurrent(alpha: number): void {\n\t\tthis._sampleCurrentSprite.alpha = this._current.alpha = alpha;\n\t}\n\n\tprotected setColorNew(color: number): void {\n\t\tconst theme = this.theme;\n\t\tconst mainWidth = theme.getMainWidth();\n\t\tconst mainHeight = theme.getMainHeight();\n\t\tconst mainBaseSprite = this._mainBaseSprite;\n\n\t\t// Base color\n\t\tconst hsv = UtilHsv.fromRgb(color);\n\t\tthis._mainSprite.tint = this._base = UtilHsv.toRgb(hsv[0], 255, 255);\n\n\t\t// Move the base pointer\n\t\tconst basePointerSprite = this._basePointerSprite;\n\t\tbasePointerSprite.x = Math.max(0, Math.min(1, hsv[0] / 360)) * mainWidth;\n\n\t\t// Move the main pointer\n\t\tconst ns = Math.max(0, Math.min(1, hsv[1] / 255));\n\t\tconst nv = Math.max(0, Math.min(1, 1 - hsv[2] / 255));\n\t\tconst mainPointerSprite = this._mainPointerSprite;\n\t\tmainPointerSprite.tint = nv < 0.45 ? theme.getMainPointerColor() : 0xffffff;\n\t\tmainPointerSprite.position.set(\n\t\t\tmainBaseSprite.x + ns * mainWidth,\n\t\t\tmainBaseSprite.y + nv * mainHeight\n\t\t);\n\n\t\t// New color\n\t\tthis.onColorNew(color);\n\t}\n\n\tprotected onColorNew(color: number): void {\n\t\tconst layer = DApplications.getLayer(this);\n\t\tif (layer) {\n\t\t\tlayer.lock();\n\t\t}\n\t\tthis._sampleNewSprite.tint = this._new.color = color;\n\t\tthis._inputAndLabelColor.input.value = UtilRgb.toCode(color);\n\t\tthis.emit(\"newcolorchange\", color, this);\n\t\tif (layer) {\n\t\t\tlayer.unlock();\n\t\t\tlayer.update();\n\t\t}\n\t}\n\n\tprotected onBaseDown(e: InteractionEvent): void {\n\t\tthis.onBasePick(e.data.global);\n\n\t\tconst layer = DApplications.getLayer(this);\n\t\tif (layer) {\n\t\t\tconst stage = layer.stage;\n\t\t\tstage.on(UtilPointerEvent.move, this._onBaseMoveBound);\n\t\t\tstage.on(UtilPointerEvent.up, this._onBaseUpBound);\n\t\t}\n\t}\n\n\tprotected onBaseMove(e: InteractionEvent): void {\n\t\tthis.onBasePick(e.data.global);\n\t}\n\n\tprotected onBaseUp(e: InteractionEvent): void {\n\t\tconst layer = DApplications.getLayer(this);\n\t\tif (layer) {\n\t\t\tconst stage = layer.stage;\n\t\t\tstage.off(UtilPointerEvent.move, this._onBaseMoveBound);\n\t\t\tstage.off(UtilPointerEvent.up, this._onBaseUpBound);\n\t\t}\n\t}\n\n\tprotected toBaseHex(t: number, shift: number): number {\n\t\treturn Math.max(0, Math.min(255, t * 6 * 255)) << shift;\n\t}\n\n\tprotected toBaseColor(t: number): number {\n\t\tif (t <= 0.167) {\n\t\t\treturn 0xff0000 + this.toBaseHex(t, 8);\n\t\t} else if (t <= 0.333) {\n\t\t\tt = 0.333 - t;\n\t\t\treturn 0x00ff00 + this.toBaseHex(t, 16);\n\t\t} else if (t <= 0.5) {\n\t\t\tt -= 0.333;\n\t\t\treturn 0x00ff00 + this.toBaseHex(t, 0);\n\t\t} else if (t < 0.667) {\n\t\t\tt = 0.667 - t;\n\t\t\treturn 0x0000ff + this.toBaseHex(t, 8);\n\t\t} else if (t < 0.883) {\n\t\t\tt -= 0.667;\n\t\t\treturn 0x0000ff + this.toBaseHex(t, 16);\n\t\t} else {\n\t\t\tt = 0.883 - t;\n\t\t\treturn 0xff0000 + this.toBaseHex(t, 0);\n\t\t}\n\t}\n\n\tprotected onBasePick(global: Point): void {\n\t\tconst point = this._pointerPoint;\n\t\tconst padding = this._padding;\n\t\tconst theme = this.theme;\n\t\tconst mainWidth = theme.getMainWidth();\n\t\tthis.toLocal(global, undefined, point);\n\t\tconst x = Math.max(0, Math.min(mainWidth, point.x - padding.getLeft()));\n\t\tconst basePointerSprite = this._basePointerSprite;\n\t\tbasePointerSprite.x = x;\n\t\tthis.onColorBase(this.toBaseColor(x / mainWidth));\n\t}\n\n\tprotected setColorBase(h: number): void {\n\t\tconst theme = this.theme;\n\t\tconst mainWidth = theme.getMainWidth();\n\t\tconst basePointerSprite = this._basePointerSprite;\n\t\tbasePointerSprite.x = Math.max(0, Math.min(1, h / 360)) * mainWidth;\n\t\tthis.onColorBase(UtilHsv.toRgb(h, 255, 255));\n\t}\n\n\tprotected onColorBase(color: number): void {\n\t\tthis._mainSprite.tint = this._base = color;\n\n\t\tconst mainPointerSprite = this._mainPointerSprite;\n\t\tconst theme = this.theme;\n\t\tconst mainWidth = theme.getMainWidth();\n\t\tconst mainHeight = theme.getMainHeight();\n\t\tconst padding = this._padding;\n\t\tthis.onColorNew(\n\t\t\tthis.toMainColor(\n\t\t\t\tthis._base,\n\t\t\t\tmainPointerSprite.x - padding.getLeft(),\n\t\t\t\tmainPointerSprite.y - padding.getTop(),\n\t\t\t\tmainWidth,\n\t\t\t\tmainHeight\n\t\t\t)\n\t\t);\n\t}\n\n\tprotected onAlphaDown(e: InteractionEvent): void {\n\t\tthis.onAlphaPick(e.data.global);\n\n\t\tconst layer = DApplications.getLayer(this);\n\t\tif (layer) {\n\t\t\tconst stage = layer.stage;\n\t\t\tstage.on(UtilPointerEvent.move, this._onAlphaMoveBound);\n\t\t\tstage.on(UtilPointerEvent.up, this._onAlphaUpBound);\n\t\t}\n\t}\n\n\tprotected onAlphaMove(e: InteractionEvent): void {\n\t\tthis.onAlphaPick(e.data.global);\n\t}\n\n\tprotected onAlphaUp(e: InteractionEvent): void {\n\t\tconst layer = DApplications.getLayer(this);\n\t\tif (layer) {\n\t\t\tconst stage = layer.stage;\n\t\t\tstage.off(UtilPointerEvent.move, this._onAlphaMoveBound);\n\t\t\tstage.off(UtilPointerEvent.up, this._onAlphaUpBound);\n\t\t}\n\t}\n\n\tprotected onAlphaPick(global: Point): void {\n\t\tconst point = this._pointerPoint;\n\t\tconst padding = this._padding;\n\t\tconst theme = this.theme;\n\t\tconst mainWidth = theme.getMainWidth();\n\t\tthis.toLocal(global, undefined, point);\n\t\tconst x = Math.max(0, Math.min(mainWidth, point.x - padding.getLeft()));\n\t\tthis._alphaPointerSprite.x = x;\n\t\tthis.onAlphaNew(x / mainWidth);\n\t}\n\n\tprotected setAlphaNew(alpha: number): void {\n\t\tconst theme = this.theme;\n\t\tconst mainWidth = theme.getMainWidth();\n\t\tthis._alphaPointerSprite.x = Math.max(0, Math.min(1, alpha)) * mainWidth;\n\t\tthis.onAlphaNew(alpha);\n\t}\n\n\tprotected onAlphaNew(alpha: number): void {\n\t\tconst layer = DApplications.getLayer(this);\n\t\tif (layer) {\n\t\t\tlayer.lock();\n\t\t}\n\t\tthis._sampleNewSprite.alpha = this._new.alpha = alpha;\n\t\tthis._inputAndLabelAlpha.input.value = Number(alpha.toFixed(2));\n\t\tthis.emit(\"newalphachange\", alpha, this);\n\t\tif (layer) {\n\t\t\tlayer.unlock();\n\t\t\tlayer.update();\n\t\t}\n\t}\n\n\tprotected onRecentChange(): void {\n\t\tconst sprites = this._recentColorSprites;\n\t\tconst recent = this._recent;\n\t\tfor (let i = 0, imax = sprites.length; i < imax; ++i) {\n\t\t\tconst sprite = sprites[i];\n\t\t\tconst colorAndAlpha = recent.get(i);\n\t\t\tif (colorAndAlpha != null) {\n\t\t\t\tsprite.tint = colorAndAlpha.color;\n\t\t\t\tsprite.alpha = colorAndAlpha.alpha;\n\t\t\t} else {\n\t\t\t\tsprite.tint = 0xffffff;\n\t\t\t\tsprite.alpha = 0;\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected onStandardChange(): void {\n\t\tconst sprites = this._standardColorSprites;\n\t\tconst standard = this._standard;\n\t\tfor (let i = 0, imax = sprites.length; i < imax; ++i) {\n\t\t\tconst sprite = sprites[i];\n\t\t\tconst color = standard.get(i);\n\t\t\tif (color != null) {\n\t\t\t\tsprite.tint = color;\n\t\t\t\tsprite.alpha = 1;\n\t\t\t} else {\n\t\t\t\tsprite.tint = 0xffffff;\n\t\t\t\tsprite.alpha = 1;\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected onTypeChange(type: DColorType): void {\n\t\tswitch (type) {\n\t\t\tcase DColorType.CUSTOM:\n\t\t\t\tthis._mainBaseSprite.visible = true;\n\t\t\t\tthis._mainSprite.visible = true;\n\t\t\t\tthis._mainPointerSprite.visible = true;\n\t\t\t\tthis._baseSprite.visible = true;\n\t\t\t\tthis._mainStandardColor.visible = false;\n\t\t\t\tbreak;\n\t\t\tcase DColorType.STANDARD:\n\t\t\t\tthis._mainBaseSprite.visible = false;\n\t\t\t\tthis._mainSprite.visible = false;\n\t\t\t\tthis._mainPointerSprite.visible = false;\n\t\t\t\tthis._baseSprite.visible = false;\n\t\t\t\tthis._mainStandardColor.visible = true;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn;\n\t\t}\n\t}\n\n\tprotected getType(): string {\n\t\treturn \"DPickerColor\";\n\t}\n}\n"]}
1
+ {"version":3,"file":"d-picker-color.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-picker-color.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAoB,KAAK,EAAE,MAAM,EAAW,MAAM,SAAS,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,KAAK,EAA4B,MAAM,UAAU,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,C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gBACvB,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC;aACjB;SACD;IACF,CAAC;IAES,mCAAY,GAAtB,UAAuB,IAAgB;QACtC,QAAQ,IAAI,EAAE;YACb,KAAK,UAAU,CAAC,MAAM;gBACrB,IAAI,CAAC,eAAe,CAAC,OAAO,GAAG,IAAI,CAAC;gBACpC,IAAI,CAAC,WAAW,CAAC,OAAO,GAAG,IAAI,CAAC;gBAChC,IAAI,CAAC,kBAAkB,CAAC,OAAO,GAAG,IAAI,CAAC;gBACvC,IAAI,CAAC,WAAW,CAAC,OAAO,GAAG,IAAI,CAAC;gBAChC,IAAI,CAAC,kBAAkB,CAAC,OAAO,GAAG,KAAK,CAAC;gBACxC,MAAM;YACP,KAAK,UAAU,CAAC,QAAQ;gBACvB,IAAI,CAAC,eAAe,CAAC,OAAO,GAAG,KAAK,CAAC;gBACrC,IAAI,CAAC,WAAW,CAAC,OAAO,GAAG,KAAK,CAAC;gBACjC,IAAI,CAAC,kBAAkB,CAAC,OAAO,GAAG,KAAK,CAAC;gBACxC,IAAI,CAAC,WAAW,CAAC,OAAO,GAAG,KAAK,CAAC;gBACjC,IAAI,CAAC,kBAAkB,CAAC,OAAO,GAAG,IAAI,CAAC;gBACvC,MAAM;YACP;gBACC,OAAO;SACR;IACF,CAAC;IAES,8BAAO,GAAjB;QACC,OAAO,cAAc,CAAC;IACvB,CAAC;IACF,mBAAC;AAAD,CAAC,AA3wBD,CAGU,KAAK,GAwwBd","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { InteractionEvent, Point, Sprite, Texture } from \"pixi.js\";\nimport { DApplications } from \"./d-applications\";\nimport { DBase, DBaseOptions, DThemeBase } from \"./d-base\";\nimport { DColorAndAlpha } from \"./d-color-and-alpha\";\nimport { DInputRealAndLabel } from \"./d-input-real-and-label\";\nimport { DInputTextAndLabel } from \"./d-input-text-and-label\";\nimport { DPickerColorAndAlpha } from \"./d-picker-color-and-alpha\";\nimport { DColorRecent } from \"./d-color-recent\";\nimport { UtilHsv } from \"./util/util-hsv\";\nimport { UtilPointerEvent } from \"./util/util-pointer-event\";\nimport { UtilRgb } from \"./util/util-rgb\";\nimport { DBaseInteractive } from \"./d-base-interactive\";\nimport { DColorStandard } from \"./d-color-standard\";\nimport { DSelect } from \"./d-select\";\nimport { DLayoutHorizontal } from \"./d-layout-horizontal\";\nimport { DColorType } from \"./d-color-type\";\nimport { DColorStandards } from \"./d-color-standards\";\nimport { DColorRecents } from \"./d-color-recents\";\n\nexport interface DPickerColorOptions<THEME extends DThemePickerColor = DThemePickerColor>\n\textends DBaseOptions<THEME> {}\n\nexport interface DThemePickerColor extends DThemeBase {\n\tgetMainWidth(): number;\n\tgetMainHeight(): number;\n\tgetMainTexture(): Texture;\n\tgetMainBaseTexture(): Texture;\n\tgetMainPointerTexture(): Texture;\n\tgetMainPointerColor(): number;\n\tgetMainPointerAlpha(): number;\n\n\tgetBaseHeight(): number;\n\tgetBaseMargin(): number;\n\tgetBaseTexture(): Texture;\n\tgetBasePointerTexture(): Texture;\n\tgetBasePointerColor(): number;\n\tgetBasePointerAlpha(): number;\n\n\tgetAlphaHeight(): number;\n\tgetAlphaMargin(): number;\n\tgetAlphaTexture(): Texture;\n\tgetAlphaCheckerboardTexture(): Texture;\n\tgetAlphaPointerTexture(): Texture;\n\tgetAlphaPointerColor(): number;\n\tgetAlphaPointerAlpha(): number;\n\n\tgetRecentMargin(): number;\n\tgetRecentColorMargin(): number;\n\tgetRecentColorWidth(): number;\n\tgetRecentColorHeight(): number;\n\tgetRecentColorCount(): number;\n\tgetRecentCheckerboardTexture(): Texture;\n\tgetRecentTexture(): Texture;\n\n\tgetInputMargin(): number;\n\tgetInputLabelWidth(): number;\n\n\tgetSampleCheckerboardOldTexture(): Texture;\n\tgetSampleCheckerboardNewTexture(): Texture;\n\tgetSampleOldTexture(): Texture;\n\tgetSampleNewTexture(): Texture;\n\n\tgetStandardColorCount(): number;\n\tgetStandardColorWidth(): number;\n\tgetStandardColorHeight(): number;\n\tgetStandardColorMargin(): number;\n\tgetStandardTexture(): Texture;\n\n\ttoColorTypeLabel(type: DColorType): string;\n}\n\nexport class DPickerColor<\n\tTHEME extends DThemePickerColor = DThemePickerColor,\n\tOPTIONS extends DPickerColorOptions<THEME> = DPickerColorOptions<THEME>\n> extends DBase<THEME, OPTIONS> {\n\tprotected _mainBaseSprite!: Sprite;\n\tprotected _mainSprite!: Sprite;\n\tprotected _mainPointerSprite!: Sprite;\n\tprotected _pointerPoint!: Point;\n\tprotected _mainStandardColor!: DLayoutHorizontal;\n\tprotected _onMainMoveBound!: (e: InteractionEvent) => void;\n\tprotected _onMainUpBound!: (e: InteractionEvent) => void;\n\n\tprotected _standardColorSprites!: Sprite[];\n\tprotected _standard!: DColorStandard;\n\n\tprotected _baseSprite!: Sprite;\n\tprotected _basePointerSprite!: Sprite;\n\tprotected _onBaseMoveBound!: (e: InteractionEvent) => void;\n\tprotected _onBaseUpBound!: (e: InteractionEvent) => void;\n\n\tprotected _alphaCheckerboardSprite!: Sprite;\n\tprotected _alphaSprite!: Sprite;\n\tprotected _alphaPointerSprite!: Sprite;\n\tprotected _onAlphaMoveBound!: (e: InteractionEvent) => void;\n\tprotected _onAlphaUpBound!: (e: InteractionEvent) => void;\n\n\tprotected _recentColorSprites!: Sprite[];\n\tprotected _recent!: DColorRecent;\n\n\tprotected _inputAndLabelColor!: DInputTextAndLabel;\n\tprotected _inputAndLabelAlpha!: DInputRealAndLabel;\n\n\tprotected _sampleCurrentCheckerboardSprite!: Sprite;\n\tprotected _sampleCurrentSprite!: Sprite;\n\tprotected _sampleNewCheckerboardSprite!: Sprite;\n\tprotected _sampleNewSprite!: Sprite;\n\n\tprotected _current!: DColorAndAlpha;\n\tprotected _currentPicker!: DPickerColorAndAlpha;\n\tprotected _base!: number;\n\tprotected _new!: DColorAndAlpha;\n\tprotected _newPicker!: DPickerColorAndAlpha;\n\n\tprotected _typeSelector!: DSelect<DColorType>;\n\n\tget current(): DColorAndAlpha {\n\t\treturn this._currentPicker;\n\t}\n\n\tget new(): DColorAndAlpha {\n\t\treturn this._newPicker;\n\t}\n\n\tget recent(): DColorRecent {\n\t\treturn this._recent;\n\t}\n\n\tget standard(): DColorStandard {\n\t\treturn this._standard;\n\t}\n\n\tprotected init(options?: OPTIONS): void {\n\t\tsuper.init(options);\n\n\t\tthis._base = 0xff0000;\n\t\tthis._new = { color: 0xffffff, alpha: 1 };\n\t\tthis._newPicker = new DPickerColorAndAlpha(\n\t\t\tthis._new,\n\t\t\t(color) => {\n\t\t\t\tthis.setColorNew(color);\n\t\t\t},\n\t\t\t(alpha: number) => {\n\t\t\t\tthis.setAlphaNew(alpha);\n\t\t\t}\n\t\t);\n\t\tthis._current = { color: 0xffffff, alpha: 1 };\n\t\tthis._currentPicker = new DPickerColorAndAlpha(\n\t\t\tthis._current,\n\t\t\t(color) => {\n\t\t\t\tthis.setColorCurrent(color);\n\t\t\t},\n\t\t\t(alpha: number) => {\n\t\t\t\tthis.setAlphaCurrent(alpha);\n\t\t\t}\n\t\t);\n\n\t\tconst theme = this.theme;\n\t\tconst padding = this._padding;\n\t\tconst paddingTop = padding.getTop();\n\t\tconst paddingRight = padding.getRight();\n\t\tconst paddingBottom = padding.getBottom();\n\t\tconst paddingLeft = padding.getLeft();\n\t\tthis._pointerPoint = new Point();\n\t\tconst mainWidth = theme.getMainWidth();\n\t\tconst mainHeight = theme.getMainHeight();\n\n\t\tconst typeSelector = new DSelect<DColorType>({\n\t\t\tparent: this,\n\t\t\tvalue: DColorType.STANDARD,\n\t\t\tmenu: {\n\t\t\t\titems: [\n\t\t\t\t\t{\n\t\t\t\t\t\tvalue: DColorType.STANDARD,\n\t\t\t\t\t\ttext: {\n\t\t\t\t\t\t\tvalue: theme.toColorTypeLabel(DColorType.STANDARD)\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tvalue: DColorType.CUSTOM,\n\t\t\t\t\t\ttext: {\n\t\t\t\t\t\t\tvalue: theme.toColorTypeLabel(DColorType.CUSTOM)\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\ton: {\n\t\t\t\tchange: (value: DColorType): void => {\n\t\t\t\t\tthis.onTypeChange(value);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tthis._typeSelector = typeSelector;\n\t\ttypeSelector.x = paddingLeft;\n\t\ttypeSelector.y = paddingTop;\n\t\ttypeSelector.width = mainWidth;\n\t\ttypeSelector.interactive = true;\n\t\tthis.addChild(typeSelector);\n\n\t\t// Main\n\t\tconst mainBaseSprite = new Sprite(theme.getMainBaseTexture());\n\t\tthis._mainBaseSprite = mainBaseSprite;\n\t\tmainBaseSprite.x = paddingLeft;\n\t\tmainBaseSprite.y = typeSelector.y + typeSelector.height + theme.getBaseMargin();\n\t\tmainBaseSprite.width = mainWidth;\n\t\tmainBaseSprite.height = mainHeight;\n\t\tmainBaseSprite.interactive = true;\n\t\tmainBaseSprite.visible = false;\n\t\tthis.addChild(mainBaseSprite);\n\n\t\tconst mainSprite = new Sprite(theme.getMainTexture());\n\t\tthis._mainSprite = mainSprite;\n\t\tmainSprite.x = paddingLeft;\n\t\tmainSprite.y = typeSelector.y + typeSelector.height + theme.getBaseMargin();\n\t\tmainSprite.tint = this._base;\n\t\tmainSprite.interactive = false;\n\t\tmainSprite.visible = false;\n\t\tthis.addChild(mainSprite);\n\n\t\t// Main event handling\n\t\tthis._onMainMoveBound = (e: InteractionEvent): void => {\n\t\t\tthis.onMainMove(e);\n\t\t};\n\t\tthis._onMainUpBound = (e: InteractionEvent): void => {\n\t\t\tthis.onMainUp(e);\n\t\t};\n\t\tmainBaseSprite.on(UtilPointerEvent.down, (e: InteractionEvent) => {\n\t\t\tthis.onMainDown(e);\n\t\t});\n\n\t\t// Base color picker\n\t\tconst baseSprite = new Sprite(theme.getBaseTexture());\n\t\tthis._baseSprite = baseSprite;\n\t\tbaseSprite.x = paddingLeft;\n\t\tbaseSprite.y = mainBaseSprite.y + mainBaseSprite.height + theme.getBaseMargin();\n\t\tbaseSprite.interactive = true;\n\t\tbaseSprite.visible = false;\n\t\tthis.addChild(baseSprite);\n\n\t\t// Base event\n\t\tthis._onBaseMoveBound = (e: InteractionEvent): void => {\n\t\t\tthis.onBaseMove(e);\n\t\t};\n\t\tthis._onBaseUpBound = (e: InteractionEvent): void => {\n\t\t\tthis.onBaseUp(e);\n\t\t};\n\t\tbaseSprite.on(UtilPointerEvent.down, (e: InteractionEvent) => {\n\t\t\tthis.onBaseDown(e);\n\t\t});\n\n\t\t// Standard main color\n\t\tthis._standardColorSprites = [];\n\t\tconst standardColorSprites = this._standardColorSprites;\n\t\tconst standardColorCount = theme.getStandardColorCount();\n\t\tconst standardColorWidth = theme.getStandardColorWidth();\n\t\tconst standardColorHeight = theme.getStandardColorHeight();\n\t\tconst standardColorMargin = theme.getStandardColorMargin();\n\t\tconst standardColorY = typeSelector.y + typeSelector.height + theme.getBaseMargin();\n\t\tconst standardTexture = theme.getStandardTexture();\n\t\tconst standard = (this._standard = DColorStandards.getInstance());\n\t\tstandard.on(\"change\", () => {\n\t\t\tthis.onStandardChange();\n\t\t});\n\t\tconst onStandardClick = (e: InteractionEvent) => {\n\t\t\tconst sprite = e.currentTarget;\n\t\t\tif (sprite instanceof Sprite) {\n\t\t\t\tthis.setColorNew(sprite.tint);\n\t\t\t}\n\t\t};\n\t\tfor (let i = 0; i < standardColorCount; ++i) {\n\t\t\tconst x = paddingLeft + (i % 10) * (standardColorWidth + standardColorMargin);\n\t\t\tconst y =\n\t\t\t\tstandardColorY + Math.floor(i / 10) * (standardColorHeight + standardColorMargin);\n\n\t\t\tconst sprite = new Sprite(standardTexture);\n\t\t\tconst standardColor = standard.get(i);\n\t\t\tif (standardColor != null) {\n\t\t\t\tsprite.tint = standardColor;\n\t\t\t\tsprite.alpha = 1;\n\t\t\t} else {\n\t\t\t\tsprite.tint = 0xffffff;\n\t\t\t\tsprite.alpha = 1;\n\t\t\t}\n\t\t\tsprite.x = x;\n\t\t\tsprite.y = y;\n\t\t\tsprite.buttonMode = true;\n\t\t\tsprite.interactive = true;\n\t\t\tsprite.on(UtilPointerEvent.tap, onStandardClick);\n\t\t\tstandardColorSprites.push(sprite);\n\t\t}\n\t\tconst mainStandardColor = new DLayoutHorizontal({\n\t\t\twidth: \"auto\",\n\t\t\theight: \"auto\",\n\t\t\trow: 8,\n\t\t\tchildren: standardColorSprites\n\t\t});\n\t\tthis._mainStandardColor = mainStandardColor;\n\t\tmainStandardColor.visible = true;\n\t\tthis.addChild(mainStandardColor);\n\n\t\t// Alpha picker\n\t\tconst alphaCheckerboardSprite = new Sprite(theme.getAlphaCheckerboardTexture());\n\t\tthis._alphaCheckerboardSprite = alphaCheckerboardSprite;\n\t\talphaCheckerboardSprite.x = padding.getLeft();\n\t\talphaCheckerboardSprite.y = baseSprite.y + theme.getBaseHeight() + theme.getBaseMargin();\n\t\talphaCheckerboardSprite.interactive = false;\n\t\tthis.addChild(alphaCheckerboardSprite);\n\n\t\tconst alphaSprite = new Sprite(theme.getAlphaTexture());\n\t\talphaSprite.tint = this._new.color;\n\t\talphaSprite.interactive = true;\n\t\talphaCheckerboardSprite.addChild(alphaSprite);\n\n\t\t// Alpha event\n\t\tthis._onAlphaMoveBound = (e: InteractionEvent): void => {\n\t\t\tthis.onAlphaMove(e);\n\t\t};\n\t\tthis._onAlphaUpBound = (e: InteractionEvent): void => {\n\t\t\tthis.onAlphaUp(e);\n\t\t};\n\t\talphaSprite.on(UtilPointerEvent.down, (e: InteractionEvent) => {\n\t\t\tthis.onAlphaDown(e);\n\t\t});\n\n\t\t// Pointers\n\t\tconst mainPointerSprite = new Sprite(theme.getMainPointerTexture());\n\t\tthis._mainPointerSprite = mainPointerSprite;\n\t\tmainPointerSprite.x = paddingLeft;\n\t\tmainPointerSprite.y = typeSelector.y + typeSelector.height + theme.getBaseMargin();\n\t\tmainPointerSprite.anchor.x = 0.5;\n\t\tmainPointerSprite.anchor.y = 0.5;\n\t\tmainPointerSprite.tint = theme.getMainPointerColor();\n\t\tmainPointerSprite.alpha = theme.getMainPointerAlpha();\n\t\tmainPointerSprite.interactive = false;\n\t\tmainPointerSprite.visible = false;\n\t\tthis.addChild(mainPointerSprite);\n\n\t\tconst alphaPointerSprite = new Sprite(theme.getAlphaPointerTexture());\n\t\tthis._alphaPointerSprite = alphaPointerSprite;\n\t\talphaPointerSprite.x = mainWidth;\n\t\talphaPointerSprite.y = alphaCheckerboardSprite.height * 0.5;\n\t\talphaPointerSprite.tint = theme.getAlphaPointerColor();\n\t\talphaPointerSprite.alpha = theme.getAlphaPointerAlpha();\n\t\talphaPointerSprite.anchor.set(0.5, 0.5);\n\t\talphaPointerSprite.interactive = false;\n\t\talphaCheckerboardSprite.addChild(alphaPointerSprite);\n\n\t\tconst basePointerSprite = new Sprite(theme.getBasePointerTexture());\n\t\tthis._basePointerSprite = basePointerSprite;\n\t\tbasePointerSprite.x = 0;\n\t\tbasePointerSprite.y = baseSprite.height * 0.5;\n\t\tbasePointerSprite.tint = theme.getBasePointerColor();\n\t\tbasePointerSprite.alpha = theme.getBasePointerAlpha();\n\t\tbasePointerSprite.anchor.set(0.5, 0.5);\n\t\tbasePointerSprite.interactive = false;\n\t\tbaseSprite.addChild(basePointerSprite);\n\n\t\t// Recently used\n\t\tthis._recentColorSprites = [];\n\t\tconst recentColorSprites = this._recentColorSprites;\n\t\tconst recentColorCount = theme.getRecentColorCount();\n\t\tconst recentColorWidth = theme.getRecentColorWidth();\n\t\tconst recentColorHeight = theme.getRecentColorHeight();\n\t\tconst recentColorMargin = theme.getRecentColorMargin();\n\t\tconst recentColorY =\n\t\t\talphaCheckerboardSprite.y + theme.getAlphaHeight() + theme.getRecentMargin();\n\t\tconst recentCheckerboardTexture = theme.getRecentCheckerboardTexture();\n\t\tconst recentTexture = theme.getRecentTexture();\n\t\tconst recent = (this._recent = DColorRecents.getInstance());\n\t\trecent.on(\"change\", () => {\n\t\t\tthis.onRecentChange();\n\t\t});\n\t\tconst onRecentClick = (e: InteractionEvent) => {\n\t\t\tconst sprite = e.currentTarget;\n\t\t\tif (sprite instanceof Sprite) {\n\t\t\t\tthis.setColorNew(sprite.tint);\n\t\t\t\tthis.setAlphaNew(sprite.alpha);\n\t\t\t}\n\t\t};\n\t\tfor (let i = 0; i < recentColorCount; ++i) {\n\t\t\tconst x = paddingLeft + i * (recentColorWidth + recentColorMargin);\n\t\t\tconst y = recentColorY;\n\n\t\t\tconst checkerboardSprite = new Sprite(recentCheckerboardTexture);\n\t\t\tcheckerboardSprite.x = x;\n\t\t\tcheckerboardSprite.y = y;\n\t\t\tcheckerboardSprite.interactive = false;\n\t\t\tthis.addChild(checkerboardSprite);\n\n\t\t\tconst sprite = new Sprite(recentTexture);\n\t\t\tconst recentColorAndAlpha = recent.get(i);\n\t\t\tif (recentColorAndAlpha != null) {\n\t\t\t\tsprite.tint = recentColorAndAlpha.color;\n\t\t\t\tsprite.alpha = recentColorAndAlpha.alpha;\n\t\t\t} else {\n\t\t\t\tsprite.tint = 0xffffff;\n\t\t\t\tsprite.alpha = 0;\n\t\t\t}\n\t\t\tsprite.x = x;\n\t\t\tsprite.y = y;\n\t\t\tsprite.buttonMode = true;\n\t\t\tsprite.interactive = true;\n\t\t\tsprite.on(UtilPointerEvent.tap, onRecentClick);\n\t\t\tthis.addChild(sprite);\n\t\t\trecentColorSprites.push(sprite);\n\t\t}\n\n\t\t// Input color\n\t\tconst inputMargin = theme.getInputMargin();\n\t\tconst inputLabelWidth = theme.getInputLabelWidth();\n\t\tconst inputY = recentColorY + recentColorHeight + inputMargin;\n\t\tconst inputWidth = (mainWidth - inputMargin) * 0.5;\n\t\tconst inputAndLabelColor = new DInputTextAndLabel({\n\t\t\tparent: this,\n\t\t\tx: paddingLeft,\n\t\t\ty: inputY,\n\t\t\twidth: inputWidth,\n\t\t\tlabel: {\n\t\t\t\twidth: inputLabelWidth,\n\t\t\t\ttext: {\n\t\t\t\t\tvalue: \"#\"\n\t\t\t\t},\n\t\t\t\tinteractive: DBaseInteractive.NONE\n\t\t\t},\n\t\t\tinput: {\n\t\t\t\tweight: 1,\n\t\t\t\ttext: {\n\t\t\t\t\tvalue: \"FFFFFF\"\n\t\t\t\t},\n\t\t\t\ton: {\n\t\t\t\t\tinput: (code: string): void => {\n\t\t\t\t\t\tconst color = UtilRgb.fromCode(code);\n\t\t\t\t\t\tif (color != null) {\n\t\t\t\t\t\t\tthis.setColorNew(color);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tthis._inputAndLabelColor = inputAndLabelColor;\n\t\tconst inputHeight = inputAndLabelColor.height;\n\n\t\tconst inputAndLabelAlpha = new DInputRealAndLabel({\n\t\t\tparent: this,\n\t\t\tx: paddingLeft,\n\t\t\ty: inputY + inputHeight + inputMargin,\n\t\t\twidth: inputWidth,\n\t\t\tlabel: {\n\t\t\t\twidth: inputLabelWidth,\n\t\t\t\ttext: {\n\t\t\t\t\tvalue: \"A\"\n\t\t\t\t},\n\t\t\t\tinteractive: DBaseInteractive.NONE\n\t\t\t},\n\t\t\tinput: {\n\t\t\t\tweight: 1,\n\t\t\t\ttext: {\n\t\t\t\t\tvalue: 1\n\t\t\t\t},\n\t\t\t\tmin: 0,\n\t\t\t\tmax: 1,\n\t\t\t\ton: {\n\t\t\t\t\tinput: (value: number) => {\n\t\t\t\t\t\tthis.setAlphaNew(value);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tthis._inputAndLabelAlpha = inputAndLabelAlpha;\n\n\t\t// Samples\n\t\tconst sampleWidth = (inputWidth - inputLabelWidth - inputMargin) * 0.5;\n\t\tconst sampleHeight = inputHeight + inputMargin + inputHeight;\n\t\tconst sampleX = paddingLeft + (mainWidth - inputMargin) * 0.5 + inputMargin;\n\t\tconst sampleY =\n\t\t\tinputY + (inputHeight + inputMargin + inputAndLabelAlpha.height - sampleHeight) * 0.5;\n\n\t\tconst sampleCurrentCheckerboardSprite = new Sprite(theme.getSampleCheckerboardOldTexture());\n\t\tthis._sampleCurrentCheckerboardSprite = sampleCurrentCheckerboardSprite;\n\t\tsampleCurrentCheckerboardSprite.x = sampleX;\n\t\tsampleCurrentCheckerboardSprite.y = sampleY;\n\t\tsampleCurrentCheckerboardSprite.width = sampleWidth;\n\t\tsampleCurrentCheckerboardSprite.height = sampleHeight;\n\t\tsampleCurrentCheckerboardSprite.interactive = false;\n\t\tthis.addChild(sampleCurrentCheckerboardSprite);\n\n\t\tconst current = this._current;\n\t\tconst sampleCurrentSprite = new Sprite(theme.getSampleOldTexture());\n\t\tthis._sampleCurrentSprite = sampleCurrentSprite;\n\t\tsampleCurrentSprite.x = sampleX;\n\t\tsampleCurrentSprite.y = sampleY;\n\t\tsampleCurrentSprite.tint = current.color;\n\t\tsampleCurrentSprite.alpha = current.alpha;\n\t\tsampleCurrentSprite.width = sampleWidth;\n\t\tsampleCurrentSprite.height = sampleHeight;\n\t\tsampleCurrentSprite.interactive = true;\n\t\tsampleCurrentSprite.buttonMode = true;\n\t\tsampleCurrentSprite.on(UtilPointerEvent.tap, (): void => {\n\t\t\tthis.setColorNew(current.color);\n\t\t\tthis.setAlphaNew(current.alpha);\n\t\t});\n\t\tthis.addChild(sampleCurrentSprite);\n\n\t\tconst sampleNewCheckerboardSprite = new Sprite(theme.getSampleCheckerboardNewTexture());\n\t\tthis._sampleNewCheckerboardSprite = sampleNewCheckerboardSprite;\n\t\tsampleNewCheckerboardSprite.x = sampleX + sampleWidth;\n\t\tsampleNewCheckerboardSprite.y = sampleY;\n\t\tsampleNewCheckerboardSprite.width = sampleWidth;\n\t\tsampleNewCheckerboardSprite.height = sampleHeight;\n\t\tsampleNewCheckerboardSprite.interactive = false;\n\t\tthis.addChild(sampleNewCheckerboardSprite);\n\n\t\tconst sampleNewSprite = new Sprite(theme.getSampleNewTexture());\n\t\tthis._sampleNewSprite = sampleNewSprite;\n\t\tsampleNewSprite.x = sampleX + sampleWidth;\n\t\tsampleNewSprite.y = sampleY;\n\t\tsampleNewSprite.tint = this._new.color;\n\t\tsampleNewSprite.alpha = this._new.alpha;\n\t\tsampleNewSprite.width = sampleWidth;\n\t\tsampleNewSprite.height = sampleHeight;\n\t\tsampleNewSprite.interactive = false;\n\t\tthis.addChild(sampleNewSprite);\n\n\t\t// Width\n\t\tif (options == null || options.width == null) {\n\t\t\tthis.width = paddingLeft + mainWidth + paddingRight;\n\t\t}\n\n\t\t// Height\n\t\tif (options == null || options.height == null) {\n\t\t\tthis.height =\n\t\t\t\tinputY +\n\t\t\t\tinputAndLabelColor.height +\n\t\t\t\tinputMargin +\n\t\t\t\tinputAndLabelAlpha.height +\n\t\t\t\tpaddingBottom;\n\t\t}\n\t}\n\n\tprotected onMainDown(e: InteractionEvent): void {\n\t\tthis.onMainPick(e.data.global);\n\n\t\tconst layer = DApplications.getLayer(this);\n\t\tif (layer) {\n\t\t\tconst stage = layer.stage;\n\t\t\tstage.on(UtilPointerEvent.move, this._onMainMoveBound);\n\t\t\tstage.on(UtilPointerEvent.up, this._onMainUpBound);\n\t\t\tstage.on(UtilPointerEvent.upoutside, this._onMainUpBound);\n\t\t}\n\t}\n\n\tprotected onMainMove(e: InteractionEvent): void {\n\t\tthis.onMainPick(e.data.global);\n\t}\n\n\tprotected onMainUp(e: InteractionEvent): void {\n\t\tconst layer = DApplications.getLayer(this);\n\t\tif (layer) {\n\t\t\tconst stage = layer.stage;\n\t\t\tstage.off(UtilPointerEvent.move, this._onMainMoveBound);\n\t\t\tstage.off(UtilPointerEvent.up, this._onMainUpBound);\n\t\t}\n\t}\n\n\tprotected toMainHex(b: number, w0: number, w1: number, shift: number): number {\n\t\treturn Math.max(0, Math.min(255, w0 * 255 + w1 * ((b >> shift) & 0xff))) << shift;\n\t}\n\n\tprotected toMainColor(\n\t\tbase: number,\n\t\ttx: number,\n\t\tty: number,\n\t\twidth: number,\n\t\theight: number\n\t): number {\n\t\tconst hw = width * 0.5;\n\t\tconst ux = Math.max(0, Math.min(1, ((tx - hw) * (1 - ty / height) + hw) / width));\n\t\tconst uy = Math.max(0, Math.min(1, ty / height));\n\t\tconst w1 = Math.abs(0.5 * uy - ux);\n\t\tconst w0 = 1 - w1 - uy;\n\t\tconst r = this.toMainHex(base, w0, w1, 16);\n\t\tconst g = this.toMainHex(base, w0, w1, 8);\n\t\tconst b = this.toMainHex(base, w0, w1, 0);\n\t\treturn r | g | b;\n\t}\n\n\tprotected onMainPick(global: Point): void {\n\t\tconst mainBaseSprite = this._mainBaseSprite;\n\t\tconst point = this._pointerPoint;\n\t\tconst theme = this.theme;\n\t\tconst mainWidth = theme.getMainWidth();\n\t\tconst mainHeight = theme.getMainHeight();\n\t\tthis.toLocal(global, undefined, point);\n\t\tconst x = Math.max(0, Math.min(mainWidth, point.x - mainBaseSprite.x));\n\t\tconst y = Math.max(0, Math.min(mainHeight, point.y - mainBaseSprite.y));\n\t\tconst mainPointerSprite = this._mainPointerSprite;\n\t\tmainPointerSprite.position.set(mainBaseSprite.x + x, mainBaseSprite.y + y);\n\t\tthis.onColorNew(this.toMainColor(this._base, x, y, mainWidth, mainHeight));\n\t}\n\n\tprotected setColorCurrent(color: number): void {\n\t\tthis._sampleCurrentSprite.tint = this._current.color = color;\n\t}\n\n\tprotected setAlphaCurrent(alpha: number): void {\n\t\tthis._sampleCurrentSprite.alpha = this._current.alpha = alpha;\n\t}\n\n\tprotected setColorNew(color: number): void {\n\t\tconst theme = this.theme;\n\t\tconst mainWidth = theme.getMainWidth();\n\t\tconst mainHeight = theme.getMainHeight();\n\t\tconst mainBaseSprite = this._mainBaseSprite;\n\n\t\t// Base color\n\t\tconst hsv = UtilHsv.fromRgb(color);\n\t\tthis._mainSprite.tint = this._base = UtilHsv.toRgb(hsv[0], 255, 255);\n\n\t\t// Move the base pointer\n\t\tconst basePointerSprite = this._basePointerSprite;\n\t\tbasePointerSprite.x = Math.max(0, Math.min(1, hsv[0] / 360)) * mainWidth;\n\n\t\t// Move the main pointer\n\t\tconst ns = Math.max(0, Math.min(1, hsv[1] / 255));\n\t\tconst nv = Math.max(0, Math.min(1, 1 - hsv[2] / 255));\n\t\tconst mainPointerSprite = this._mainPointerSprite;\n\t\tmainPointerSprite.tint = nv < 0.45 ? theme.getMainPointerColor() : 0xffffff;\n\t\tmainPointerSprite.position.set(\n\t\t\tmainBaseSprite.x + ns * mainWidth,\n\t\t\tmainBaseSprite.y + nv * mainHeight\n\t\t);\n\n\t\t// New color\n\t\tthis.onColorNew(color);\n\t}\n\n\tprotected onColorNew(color: number): void {\n\t\tconst layer = DApplications.getLayer(this);\n\t\tif (layer) {\n\t\t\tlayer.lock();\n\t\t}\n\t\tthis._sampleNewSprite.tint = this._new.color = color;\n\t\tthis._inputAndLabelColor.input.value = UtilRgb.toCode(color);\n\t\tthis.emit(\"newcolorchange\", color, this);\n\t\tif (layer) {\n\t\t\tlayer.unlock();\n\t\t\tlayer.update();\n\t\t}\n\t}\n\n\tprotected onBaseDown(e: InteractionEvent): void {\n\t\tthis.onBasePick(e.data.global);\n\n\t\tconst layer = DApplications.getLayer(this);\n\t\tif (layer) {\n\t\t\tconst stage = layer.stage;\n\t\t\tstage.on(UtilPointerEvent.move, this._onBaseMoveBound);\n\t\t\tstage.on(UtilPointerEvent.up, this._onBaseUpBound);\n\t\t}\n\t}\n\n\tprotected onBaseMove(e: InteractionEvent): void {\n\t\tthis.onBasePick(e.data.global);\n\t}\n\n\tprotected onBaseUp(e: InteractionEvent): void {\n\t\tconst layer = DApplications.getLayer(this);\n\t\tif (layer) {\n\t\t\tconst stage = layer.stage;\n\t\t\tstage.off(UtilPointerEvent.move, this._onBaseMoveBound);\n\t\t\tstage.off(UtilPointerEvent.up, this._onBaseUpBound);\n\t\t}\n\t}\n\n\tprotected toBaseHex(t: number, shift: number): number {\n\t\treturn Math.max(0, Math.min(255, t * 6 * 255)) << shift;\n\t}\n\n\tprotected toBaseColor(t: number): number {\n\t\tif (t <= 0.167) {\n\t\t\treturn 0xff0000 + this.toBaseHex(t, 8);\n\t\t} else if (t <= 0.333) {\n\t\t\tt = 0.333 - t;\n\t\t\treturn 0x00ff00 + this.toBaseHex(t, 16);\n\t\t} else if (t <= 0.5) {\n\t\t\tt -= 0.333;\n\t\t\treturn 0x00ff00 + this.toBaseHex(t, 0);\n\t\t} else if (t < 0.667) {\n\t\t\tt = 0.667 - t;\n\t\t\treturn 0x0000ff + this.toBaseHex(t, 8);\n\t\t} else if (t < 0.883) {\n\t\t\tt -= 0.667;\n\t\t\treturn 0x0000ff + this.toBaseHex(t, 16);\n\t\t} else {\n\t\t\tt = 0.883 - t;\n\t\t\treturn 0xff0000 + this.toBaseHex(t, 0);\n\t\t}\n\t}\n\n\tprotected onBasePick(global: Point): void {\n\t\tconst point = this._pointerPoint;\n\t\tconst padding = this._padding;\n\t\tconst theme = this.theme;\n\t\tconst mainWidth = theme.getMainWidth();\n\t\tthis.toLocal(global, undefined, point);\n\t\tconst x = Math.max(0, Math.min(mainWidth, point.x - padding.getLeft()));\n\t\tconst basePointerSprite = this._basePointerSprite;\n\t\tbasePointerSprite.x = x;\n\t\tthis.onColorBase(this.toBaseColor(x / mainWidth));\n\t}\n\n\tprotected setColorBase(h: number): void {\n\t\tconst theme = this.theme;\n\t\tconst mainWidth = theme.getMainWidth();\n\t\tconst basePointerSprite = this._basePointerSprite;\n\t\tbasePointerSprite.x = Math.max(0, Math.min(1, h / 360)) * mainWidth;\n\t\tthis.onColorBase(UtilHsv.toRgb(h, 255, 255));\n\t}\n\n\tprotected onColorBase(color: number): void {\n\t\tthis._mainSprite.tint = this._base = color;\n\n\t\tconst mainPointerSprite = this._mainPointerSprite;\n\t\tconst theme = this.theme;\n\t\tconst mainWidth = theme.getMainWidth();\n\t\tconst mainHeight = theme.getMainHeight();\n\t\tconst padding = this._padding;\n\t\tthis.onColorNew(\n\t\t\tthis.toMainColor(\n\t\t\t\tthis._base,\n\t\t\t\tmainPointerSprite.x - padding.getLeft(),\n\t\t\t\tmainPointerSprite.y - padding.getTop(),\n\t\t\t\tmainWidth,\n\t\t\t\tmainHeight\n\t\t\t)\n\t\t);\n\t}\n\n\tprotected onAlphaDown(e: InteractionEvent): void {\n\t\tthis.onAlphaPick(e.data.global);\n\n\t\tconst layer = DApplications.getLayer(this);\n\t\tif (layer) {\n\t\t\tconst stage = layer.stage;\n\t\t\tstage.on(UtilPointerEvent.move, this._onAlphaMoveBound);\n\t\t\tstage.on(UtilPointerEvent.up, this._onAlphaUpBound);\n\t\t}\n\t}\n\n\tprotected onAlphaMove(e: InteractionEvent): void {\n\t\tthis.onAlphaPick(e.data.global);\n\t}\n\n\tprotected onAlphaUp(e: InteractionEvent): void {\n\t\tconst layer = DApplications.getLayer(this);\n\t\tif (layer) {\n\t\t\tconst stage = layer.stage;\n\t\t\tstage.off(UtilPointerEvent.move, this._onAlphaMoveBound);\n\t\t\tstage.off(UtilPointerEvent.up, this._onAlphaUpBound);\n\t\t}\n\t}\n\n\tprotected onAlphaPick(global: Point): void {\n\t\tconst point = this._pointerPoint;\n\t\tconst padding = this._padding;\n\t\tconst theme = this.theme;\n\t\tconst mainWidth = theme.getMainWidth();\n\t\tthis.toLocal(global, undefined, point);\n\t\tconst x = Math.max(0, Math.min(mainWidth, point.x - padding.getLeft()));\n\t\tthis._alphaPointerSprite.x = x;\n\t\tthis.onAlphaNew(x / mainWidth);\n\t}\n\n\tprotected setAlphaNew(alpha: number): void {\n\t\tconst theme = this.theme;\n\t\tconst mainWidth = theme.getMainWidth();\n\t\tthis._alphaPointerSprite.x = Math.max(0, Math.min(1, alpha)) * mainWidth;\n\t\tthis.onAlphaNew(alpha);\n\t}\n\n\tprotected onAlphaNew(alpha: number): void {\n\t\tconst layer = DApplications.getLayer(this);\n\t\tif (layer) {\n\t\t\tlayer.lock();\n\t\t}\n\t\tthis._sampleNewSprite.alpha = this._new.alpha = alpha;\n\t\tthis._inputAndLabelAlpha.input.value = Number(alpha.toFixed(2));\n\t\tthis.emit(\"newalphachange\", alpha, this);\n\t\tif (layer) {\n\t\t\tlayer.unlock();\n\t\t\tlayer.update();\n\t\t}\n\t}\n\n\tprotected onRecentChange(): void {\n\t\tconst sprites = this._recentColorSprites;\n\t\tconst recent = this._recent;\n\t\tfor (let i = 0, imax = sprites.length; i < imax; ++i) {\n\t\t\tconst sprite = sprites[i];\n\t\t\tconst colorAndAlpha = recent.get(i);\n\t\t\tif (colorAndAlpha != null) {\n\t\t\t\tsprite.tint = colorAndAlpha.color;\n\t\t\t\tsprite.alpha = colorAndAlpha.alpha;\n\t\t\t} else {\n\t\t\t\tsprite.tint = 0xffffff;\n\t\t\t\tsprite.alpha = 0;\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected onStandardChange(): void {\n\t\tconst sprites = this._standardColorSprites;\n\t\tconst standard = this._standard;\n\t\tfor (let i = 0, imax = sprites.length; i < imax; ++i) {\n\t\t\tconst sprite = sprites[i];\n\t\t\tconst color = standard.get(i);\n\t\t\tif (color != null) {\n\t\t\t\tsprite.tint = color;\n\t\t\t\tsprite.alpha = 1;\n\t\t\t} else {\n\t\t\t\tsprite.tint = 0xffffff;\n\t\t\t\tsprite.alpha = 1;\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected onTypeChange(type: DColorType): void {\n\t\tswitch (type) {\n\t\t\tcase DColorType.CUSTOM:\n\t\t\t\tthis._mainBaseSprite.visible = true;\n\t\t\t\tthis._mainSprite.visible = true;\n\t\t\t\tthis._mainPointerSprite.visible = true;\n\t\t\t\tthis._baseSprite.visible = true;\n\t\t\t\tthis._mainStandardColor.visible = false;\n\t\t\t\tbreak;\n\t\t\tcase DColorType.STANDARD:\n\t\t\t\tthis._mainBaseSprite.visible = false;\n\t\t\t\tthis._mainSprite.visible = false;\n\t\t\t\tthis._mainPointerSprite.visible = false;\n\t\t\t\tthis._baseSprite.visible = false;\n\t\t\t\tthis._mainStandardColor.visible = true;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn;\n\t\t}\n\t}\n\n\tprotected getType(): string {\n\t\treturn \"DPickerColor\";\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"d-scroll-bar-horizontal.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-scroll-bar-horizontal.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAIH,OAAO,EAAE,UAAU,EAAsC,MAAM,gBAAgB,CAAC;AAEhF,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAE5E;IAGU,wCAA0B;IACnC,8BAAY,OAAiB;QAA7B,YACC,kBAAM,OAAO,CAAC,SAId;QAHA,KAAI,CAAC,MAAM,CAAC,EAAE,CAAC,YAAY,EAAE,UAAC,CAAS;YACtC,KAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;QAC3B,CAAC,CAAC,CAAC;;IACJ,CAAC;IAES,gDAAiB,GAA3B,UAA4B,CAAS;QACpC,IAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACzB,IAAI,CAAC,GAAG,KAAK,EAAE;YACd,IAAM,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;YACrC,IAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC;YAC5D,IAAI,IAAI,CAAC,MAAM,KAAK,QAAQ,EAAE;gBAC7B,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;aACxC;SACD;IACF,CAAC;IAES,yCAAU,GAApB,UAAqB,CAAmB;QACvC,iBAAM,UAAU,YAAC,CAAC,CAAC,CAAC;QAEpB,IAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACzB,IAAI,CAAC,GAAG,KAAK,EAAE;YACd,IAAM,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAA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vent = interaction.InteractionEvent;\nimport { DScrollBar, DScrollBarOptions, DThemeScrollBar } from \"./d-scroll-bar\";\nimport { DScrollBarThumb, DScrollBarThumbOptions } from \"./d-scroll-bar-thumb\";\nimport { DScrollBarThumbHorizontal } from \"./d-scroll-bar-thumb-horizontal\";\n\nexport class DScrollBarHorizontal<\n\tTHEME extends DThemeScrollBar = DThemeScrollBar,\n\tOPTIONS extends DScrollBarOptions<THEME> = DScrollBarOptions<THEME>\n> extends DScrollBar<THEME, OPTIONS> {\n\tconstructor(options?: OPTIONS) {\n\t\tsuper(options);\n\t\tthis._thumb.on(\"regionmove\", (x: number): void => {\n\t\t\tthis.onThumbRegionMove(x);\n\t\t});\n\t}\n\n\tprotected onThumbRegionMove(x: number): void {\n\t\tconst width = this.width;\n\t\tif (0 < width) {\n\t\t\tconst size = this._end - this._start;\n\t\t\tconst newStart = Math.min(1 - size, Math.max(0, x / width));\n\t\t\tif (this._start !== newStart) {\n\t\t\t\tthis.emit(\"regionmove\", newStart, this);\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected onDownThis(e: InteractionEvent): void {\n\t\tsuper.onDownThis(e);\n\n\t\tconst width = this.width;\n\t\tif (0 < width) {\n\t\t\tconst size = this._end - this._start;\n\t\t\tconst position = e.data.getLocalPosition(this);\n\t\t\tconst newStart = Math.min(1 - size, Math.max(0, position.x / width - size * 0.5));\n\t\t\tif (this._start !== newStart) {\n\t\t\t\tthis.emit(\"regionmove\", newStart, this);\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected newThumb(options?: DScrollBarThumbOptions): DScrollBarThumb {\n\t\treturn new DScrollBarThumbHorizontal(options);\n\t}\n\n\tprotected updateThumb(width: number, height: number): void {\n\t\tconst thumb = this._thumb;\n\t\tconst thumbMinimumLength = Math.min(width * 0.5, thumb.getMinimumLength());\n\t\tconst space = width - thumbMinimumLength;\n\t\tconst barStart = space * this._start;\n\t\tconst barLength = space * this._end + thumbMinimumLength - barStart;\n\n\t\tthumb.position.set(barStart, 0);\n\t\tthumb.resize(barLength, height);\n\t}\n}\n"]}
1
+ {"version":3,"file":"d-scroll-bar-horizontal.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-scroll-bar-horizontal.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,UAAU,EAAsC,MAAM,gBAAgB,CAAC;AAEhF,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAE5E;IAGU,wCAA0B;IACnC,8BAAY,OAAiB;QAA7B,YACC,kBAAM,OAAO,CAAC,SAId;QAHA,KAAI,CAAC,MAAM,CAAC,EAAE,CAAC,YAAY,EAAE,UAAC,CAAS;YACtC,KAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;QAC3B,CAAC,CAAC,CAAC;;IACJ,CAAC;IAES,gDAAiB,GAA3B,UAA4B,CAAS;QACpC,IAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACzB,IAAI,CAAC,GAAG,KAAK,EAAE;YACd,IAAM,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;YACrC,IAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC;YAC5D,IAAI,IAAI,CAAC,MAAM,KAAK,QAAQ,EAAE;gBAC7B,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;aACxC;SACD;IACF,CAAC;IAES,yCAAU,GAApB,UAAqB,CAAmB;QACvC,iBAAM,UAAU,YAAC,CAAC,CAAC,CAAC;QAEpB,IAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACzB,IAAI,CAAC,GAAG,KAAK,EAAE;YACd,IAAM,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;YACrC,I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Options, DThemeScrollBar } from \"./d-scroll-bar\";\nimport { DScrollBarThumb, DScrollBarThumbOptions } from \"./d-scroll-bar-thumb\";\nimport { DScrollBarThumbHorizontal } from \"./d-scroll-bar-thumb-horizontal\";\n\nexport class DScrollBarHorizontal<\n\tTHEME extends DThemeScrollBar = DThemeScrollBar,\n\tOPTIONS extends DScrollBarOptions<THEME> = DScrollBarOptions<THEME>\n> extends DScrollBar<THEME, OPTIONS> {\n\tconstructor(options?: OPTIONS) {\n\t\tsuper(options);\n\t\tthis._thumb.on(\"regionmove\", (x: number): void => {\n\t\t\tthis.onThumbRegionMove(x);\n\t\t});\n\t}\n\n\tprotected onThumbRegionMove(x: number): void {\n\t\tconst width = this.width;\n\t\tif (0 < width) {\n\t\t\tconst size = this._end - this._start;\n\t\t\tconst newStart = Math.min(1 - size, Math.max(0, x / width));\n\t\t\tif (this._start !== newStart) {\n\t\t\t\tthis.emit(\"regionmove\", newStart, this);\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected onDownThis(e: InteractionEvent): void {\n\t\tsuper.onDownThis(e);\n\n\t\tconst width = this.width;\n\t\tif (0 < width) {\n\t\t\tconst size = this._end - this._start;\n\t\t\tconst position = e.data.getLocalPosition(this);\n\t\t\tconst newStart = Math.min(1 - size, Math.max(0, position.x / width - size * 0.5));\n\t\t\tif (this._start !== newStart) {\n\t\t\t\tthis.emit(\"regionmove\", newStart, this);\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected newThumb(options?: DScrollBarThumbOptions): DScrollBarThumb {\n\t\treturn new DScrollBarThumbHorizontal(options);\n\t}\n\n\tprotected updateThumb(width: number, height: number): void {\n\t\tconst thumb = this._thumb;\n\t\tconst thumbMinimumLength = Math.min(width * 0.5, thumb.getMinimumLength());\n\t\tconst space = width - thumbMinimumLength;\n\t\tconst barStart = space * this._start;\n\t\tconst barLength = space * this._end + thumbMinimumLength - barStart;\n\n\t\tthumb.position.set(barStart, 0);\n\t\tthumb.resize(barLength, height);\n\t}\n}\n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action.InteractionEvent;\nimport { DScrollBar, DScrollBarOptions, DThemeScrollBar } from \"./d-scroll-bar\";\nimport { DScrollBarThumb, DScrollBarThumbOptions } from \"./d-scroll-bar-thumb\";\nimport { DScrollBarThumbVertical } from \"./d-scroll-bar-thumb-vertical\";\n\nexport class DScrollBarVertical<\n\tTHEME extends DThemeScrollBar = DThemeScrollBar,\n\tOPTIONS extends DScrollBarOptions<THEME> = DScrollBarOptions<THEME>\n> extends DScrollBar<THEME, OPTIONS> {\n\tconstructor(options?: OPTIONS) {\n\t\tsuper(options);\n\t\tthis._thumb.on(\"regionmove\", (y: number): void => {\n\t\t\tthis.onThumbRegionMove(y);\n\t\t});\n\t}\n\n\tprotected onThumbRegionMove(y: number): void {\n\t\tconst height = this.height;\n\t\tif (0 < height) {\n\t\t\tconst size = this._end - this._start;\n\t\t\tconst newStart = Math.min(1 - size, Math.max(0, y / height));\n\t\t\tif (this._start !== newStart) {\n\t\t\t\tthis.emit(\"regionmove\", newStart, this);\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected onDownThis(e: InteractionEvent): void {\n\t\tsuper.onDownThis(e);\n\n\t\tconst height = this.height;\n\t\tif (0 < height) {\n\t\t\tconst size = this._end - this._start;\n\t\t\tconst position = e.data.getLocalPosition(this);\n\t\t\tconst newStart = Math.min(1 - size, Math.max(0, position.y / height - size * 0.5));\n\t\t\tif (this._start !== newStart) {\n\t\t\t\tthis.emit(\"regionmove\", newStart, this);\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected newThumb(options?: DScrollBarThumbOptions): DScrollBarThumb {\n\t\treturn new DScrollBarThumbVertical(options);\n\t}\n\n\tprotected updateThumb(width: number, height: number): void {\n\t\tconst thumb = this._thumb;\n\t\tconst thumbMinimumLength = Math.min(height * 0.5, thumb.getMinimumLength());\n\t\tconst space = height - thumbMinimumLength;\n\t\tconst barStart = space * this._start;\n\t\tconst barLength = space * this._end + thumbMinimumLength - barStart;\n\n\t\tthumb.position.set(0, barStart);\n\t\tthumb.resize(width, barLength);\n\t\tthumb.updateTransform();\n\t}\n}\n"]}
1
+ {"version":3,"file":"d-scroll-bar-vertical.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-scroll-bar-vertical.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,UAAU,EAAsC,MAAM,gBAAgB,CAAC;AAEhF,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAExE;IAGU,sCAA0B;IACnC,4BAAY,OAAiB;QAA7B,YACC,kBAAM,OAAO,CAAC,SAId;QAHA,KAAI,CAAC,MAAM,CAAC,EAAE,CAAC,YAAY,EAAE,UAAC,CAAS;YACtC,KAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;QAC3B,CAAC,CAAC,CAAC;;IACJ,CAAC;IAES,8CAAiB,GAA3B,UAA4B,CAAS;QACpC,IAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,GAAG,MAAM,EAAE;YACf,IAAM,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;YACrC,IAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC;YAC7D,IAAI,IAAI,CAAC,MAAM,KAAK,QAAQ,EAAE;gBAC7B,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;aACxC;SACD;IACF,CAAC;IAES,uCAAU,GAApB,UAAqB,CAAmB;QACvC,iBAAM,UAAU,YAAC,CAAC,CAAC,CAAC;QAEpB,IAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,GAAG,MAAM,EAAE;YACf,IAAM,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;YACr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teractionEvent } from \"pixi.js\";\nimport { DScrollBar, DScrollBarOptions, DThemeScrollBar } from \"./d-scroll-bar\";\nimport { DScrollBarThumb, DScrollBarThumbOptions } from \"./d-scroll-bar-thumb\";\nimport { DScrollBarThumbVertical } from \"./d-scroll-bar-thumb-vertical\";\n\nexport class DScrollBarVertical<\n\tTHEME extends DThemeScrollBar = DThemeScrollBar,\n\tOPTIONS extends DScrollBarOptions<THEME> = DScrollBarOptions<THEME>\n> extends DScrollBar<THEME, OPTIONS> {\n\tconstructor(options?: OPTIONS) {\n\t\tsuper(options);\n\t\tthis._thumb.on(\"regionmove\", (y: number): void => {\n\t\t\tthis.onThumbRegionMove(y);\n\t\t});\n\t}\n\n\tprotected onThumbRegionMove(y: number): void {\n\t\tconst height = this.height;\n\t\tif (0 < height) {\n\t\t\tconst size = this._end - this._start;\n\t\t\tconst newStart = Math.min(1 - size, Math.max(0, y / height));\n\t\t\tif (this._start !== newStart) {\n\t\t\t\tthis.emit(\"regionmove\", newStart, this);\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected onDownThis(e: InteractionEvent): void {\n\t\tsuper.onDownThis(e);\n\n\t\tconst height = this.height;\n\t\tif (0 < height) {\n\t\t\tconst size = this._end - this._start;\n\t\t\tconst position = e.data.getLocalPosition(this);\n\t\t\tconst newStart = Math.min(1 - size, Math.max(0, position.y / height - size * 0.5));\n\t\t\tif (this._start !== newStart) {\n\t\t\t\tthis.emit(\"regionmove\", newStart, this);\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected newThumb(options?: DScrollBarThumbOptions): DScrollBarThumb {\n\t\treturn new DScrollBarThumbVertical(options);\n\t}\n\n\tprotected updateThumb(width: number, height: number): void {\n\t\tconst thumb = this._thumb;\n\t\tconst thumbMinimumLength = Math.min(height * 0.5, thumb.getMinimumLength());\n\t\tconst space = height - thumbMinimumLength;\n\t\tconst barStart = space * this._start;\n\t\tconst barLength = space * this._end + thumbMinimumLength - barStart;\n\n\t\tthumb.position.set(0, barStart);\n\t\tthumb.resize(width, barLength);\n\t\tthumb.updateTransform();\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"d-shadow.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-shadow.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DisplayObject } from \"pixi.js\";\nimport { DBaseReflowable } from \"./d-base-reflowable\";\n\nexport interface DShadow extends DisplayObject, DBaseReflowable {}\n"]}
1
+ {"version":3,"file":"d-shadow.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-shadow.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DisplayObject, Renderer } from \"pixi.js\";\nimport { DBaseReflowable } from \"./d-base-reflowable\";\n\nexport interface DShadow extends DisplayObject, DBaseReflowable {\n\trender(renderer: Renderer): void;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"d-slider.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-slider.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAKH,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAyC,MAAM,UAAU,CAAC;AACxE,OAAO,EAAE,YAAY,EAAuB,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,YAAY,EAAuB,MAAM,kBAAkB,CAAC;AAErE,OAAO,EAAE,YAAY,EAAuB,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAwC7D;;GAEG;AACH;IAGU,2BAAqB;IAH/B;;IA6TA,CAAC;IAzSU,sBAAI,GAAd,UAAe,OAAiB;QAAhC,iBAwDC;QAvDA,iBAAM,IAAI,YAAC,OAAO,CAA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C9B,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;gBAC5C,IAAI,CAAC,cAAc,EAAE,CAAC;aACtB;QACF,CAAC;;;OAdA;IAmBD,sBAAI,wBAAG;QAHP;;WAEG;aACH;YACC,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;QACxB,CAAC;QAED;;WAEG;aACH,UAAQ,MAAc;YACrB,IAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC;YACtB,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;YAC3C,IAAI,GAAG,CAAC,KAAK,KAAK,MAAM,EAAE;gBACzB,IAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC;gBAC1B,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,KAAK,GAAG,MAAM,CAAC;gBAC9B,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;gBAC5C,IAAI,CAAC,cAAc,EAAE,CAAC;aACtB;QACF,CAAC;;;OAdA;IAgBS,yBAAO,GAAjB;QACC,OAAO,SAAS,CAAC;IAClB,CAAC;IACF,cAAC;AAAD,CAAC,AA7TD,CAGU,KAAK,GA0Td","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { interaction, Point } from \"pixi.js\";\nimport InteractionEvent = interaction.InteractionEvent;\nimport InteractionManager = interaction.InteractionManager;\nimport { DApplications } from \"./d-applications\";\nimport { DBase, DBaseEvents, DBaseOptions, DThemeBase } from \"./d-base\";\nimport { DSliderLabel, DSliderLabelOptions } from \"./d-slider-label\";\nimport { DSliderThumb, DSliderThumbOptions } from \"./d-slider-thumb\";\nimport { DSliderTrack, DSliderTrackOptions } from \"./d-slider-track\";\nimport { DSliderValue, DSliderValueOptions } from \"./d-slider-value\";\nimport { UtilPointerEvent } from \"./util/util-pointer-event\";\nimport { DOnOptions } from \"./d-on-options\";\n\n/**\n * {@link DSlider} events.\n */\nexport interface DSliderEvents<EMITTER> extends DBaseEvents<EMITTER> {\n\t/**\n\t * Triggered when a value is changed.\n\t *\n\t * @param newValue a new value\n\t * @param oldValue an old value\n\t * @param emitter an emitter\n\t */\n\tchange(newValue: number, oldValue: number, emitter: EMITTER): void;\n}\n\n/**\n * {@link DSlider} \"on\" options.\n */\nexport interface DSliderOnOptions<EMITTER> extends Partial<DSliderEvents<EMITTER>>, DOnOptions {}\n\n/**\n * {@link DSlider} options.\n */\nexport interface DSliderOptions<THEME extends DThemeSlider = DThemeSlider, EMITTER = any>\n\textends DBaseOptions<THEME, EMITTER> {\n\tmin?: DSliderLabelOptions;\n\tmax?: DSliderLabelOptions;\n\tvalue?: DSliderValueOptions;\n\ttrack?: DSliderTrackOptions;\n\tthumb?: DSliderThumbOptions;\n\ton?: DSliderOnOptions<EMITTER>;\n}\n\n/**\n * {@link DSlider} theme.\n */\nexport interface DThemeSlider extends DThemeBase {}\n\n/**\n * A slider class.\n */\nexport abstract class DSlider<\n\tTHEME extends DThemeSlider = DThemeSlider,\n\tOPTIONS extends DSliderOptions<THEME> = DSliderOptions<THEME>\n> extends DBase<THEME, OPTIONS> {\n\tprotected _track!: DSliderTrack;\n\tprotected _thumb!: DSliderThumb;\n\tprotected _trackSelected!: DSliderTrack;\n\tprotected _value!: DSliderValue;\n\tprotected _roundNumber!: number;\n\tprotected _offset!: number;\n\tprotected _yOffset!: number;\n\tprotected _ratioValue!: number;\n\tprotected _min!: DSliderLabel;\n\tprotected _max!: DSliderLabel;\n\tprotected _onThumbMoveBound!: (e: InteractionEvent) => void;\n\tprotected _onThumbUpBound!: (e: InteractionEvent) => void;\n\tprotected _onTrackUpBound!: (e: InteractionEvent) => void;\n\tprotected _onTrackSelectedUpBound!: (e: InteractionEvent) => void;\n\tprotected _interactionManager?: InteractionManager;\n\n\tprotected init(options?: OPTIONS): void {\n\t\tsuper.init(options);\n\n\t\tthis._ratioValue = 0;\n\n\t\tthis._track = this.newTrack(options);\n\t\tthis.addChild(this._track);\n\t\tthis._trackSelected = this.newTrackSelected(options);\n\t\tthis._trackSelected.state.isActive = true;\n\t\tthis.addChild(this._trackSelected);\n\t\tthis._thumb = this.newThumb(options);\n\t\tthis.addChild(this._thumb);\n\t\tthis._min = this.newLabelMin(options);\n\t\tthis.addChild(this._min);\n\t\tthis._max = this.newLabelMax(options);\n\t\tthis.addChild(this._max);\n\t\tthis._value = this.newValue(options);\n\t\tthis.addChild(this._value);\n\n\t\t// Event listeners\n\t\tthis._track.on(UtilPointerEvent.down, (e: InteractionEvent) => {\n\t\t\tthis._value.visible = this.state.inEnabled;\n\t\t\tthis.onTrackDown(e.data.global);\n\t\t});\n\n\t\tthis._trackSelected.on(UtilPointerEvent.down, (e: InteractionEvent) => {\n\t\t\tthis._value.visible = this.state.inEnabled;\n\t\t\tthis.onTrackSelectedDown(e.data.global);\n\t\t});\n\n\t\tthis._onTrackUpBound = (e: InteractionEvent): void => {\n\t\t\tthis.onTrackUpBound(e);\n\t\t\tthis._value.visible = false;\n\t\t};\n\n\t\tthis._onTrackSelectedUpBound = (e: InteractionEvent): void => {\n\t\t\tthis.onTrackSelectedUpBound(e);\n\t\t\tthis._value.visible = false;\n\t\t};\n\n\t\tthis._thumb.on(UtilPointerEvent.down, (e: InteractionEvent) => {\n\t\t\tthis._value.visible = true;\n\t\t\tthis.onThumbDown(e);\n\t\t});\n\n\t\tthis._onThumbMoveBound = (e: InteractionEvent): void => {\n\t\t\tthis.onThumbMove(e);\n\t\t};\n\n\t\tthis._onThumbUpBound = (e: InteractionEvent): void => {\n\t\t\tthis.onThumbUp(e);\n\t\t\tthis._value.visible = false;\n\t\t};\n\n\t\t//\n\t\tthis.onValuesChange();\n\t}\n\n\tprotected newThumb(options?: OPTIONS): DSliderThumb {\n\t\treturn new DSliderThumb(options?.thumb);\n\t}\n\n\tprotected newValue(options?: OPTIONS): DSliderValue {\n\t\treturn new DSliderValue(this.toValueOptions(options?.value));\n\t}\n\n\tprotected toValueOptions(options?: DSliderValueOptions): DSliderValueOptions {\n\t\toptions = options || {};\n\t\tif (options.value == null) {\n\t\t\toptions.value = 0;\n\t\t}\n\t\tconst text = options.text || {};\n\t\toptions.text = text;\n\t\tif (text.value == null) {\n\t\t\ttext.value = options.value;\n\t\t}\n\t\tif (options.visible == null) {\n\t\t\toptions.visible = false;\n\t\t}\n\t\treturn options;\n\t}\n\n\tprotected newLabelMin(options?: OPTIONS): DSliderLabel {\n\t\treturn new DSliderLabel(this.toLabelMinOptions(options?.min));\n\t}\n\n\tprotected toLabelMinOptions(options?: DSliderLabelOptions): DSliderLabelOptions {\n\t\toptions = options || {};\n\t\tif (options.value == null) {\n\t\t\toptions.value = 0;\n\t\t}\n\t\tconst text = options.text || {};\n\t\toptions.text = text;\n\t\tif (text.value == null) {\n\t\t\ttext.value = `${options.value}`;\n\t\t}\n\t\treturn options;\n\t}\n\n\tprotected newLabelMax(options?: OPTIONS): DSliderLabel {\n\t\treturn new DSliderLabel(this.toLabelMaxOptions(options?.max));\n\t}\n\n\tprotected toLabelMaxOptions(options?: DSliderLabelOptions): DSliderLabelOptions {\n\t\toptions = options || {};\n\t\tif (options.value == null) {\n\t\t\toptions.value = 1;\n\t\t}\n\t\tconst text = options.text || {};\n\t\toptions.text = text;\n\t\tif (text.value == null) {\n\t\t\ttext.value = `${options.value}`;\n\t\t}\n\t\treturn options;\n\t}\n\n\tprotected abstract newTrack(options?: OPTIONS): DSliderTrack;\n\tprotected abstract newTrackSelected(options?: OPTIONS): DSliderTrack;\n\n\tprotected abstract onPick(global: Point): void;\n\tprotected abstract onValuesChange(): void;\n\tprotected abstract moveThumbPosition(thumbCoordinate: number): void;\n\n\tprotected getValueMargin(): number {\n\t\treturn 14;\n\t}\n\n\tprotected onTrackDown(global: Point): void {\n\t\tif (this.state.inDisabled) {\n\t\t\treturn;\n\t\t}\n\t\tconst layer = DApplications.getLayer(this);\n\t\tif (layer) {\n\t\t\tconst interactionManager = layer.renderer.plugins.interaction;\n\t\t\tthis._interactionManager = interactionManager;\n\t\t\tconst onTrackUpBound = this._onTrackUpBound;\n\t\t\tinteractionManager.on(UtilPointerEvent.up, onTrackUpBound);\n\t\t\tinteractionManager.on(UtilPointerEvent.upoutside, onTrackUpBound);\n\t\t\tinteractionManager.on(UtilPointerEvent.cancel, onTrackUpBound);\n\t\t}\n\t\tthis.onPick(global);\n\t}\n\n\tprotected onTrackSelectedDown(global: Point): void {\n\t\tif (this.state.inDisabled) {\n\t\t\treturn;\n\t\t}\n\t\tconst layer = DApplications.getLayer(this);\n\t\tif (layer) {\n\t\t\tconst interactionManager = layer.renderer.plugins.interaction;\n\t\t\tthis._interactionManager = interactionManager;\n\t\t\tconst onTrackSelectedUpBound = this._onTrackSelectedUpBound;\n\t\t\tinteractionManager.on(UtilPointerEvent.up, onTrackSelectedUpBound);\n\t\t\tinteractionManager.on(UtilPointerEvent.upoutside, onTrackSelectedUpBound);\n\t\t\tinteractionManager.on(UtilPointerEvent.cancel, onTrackSelectedUpBound);\n\t\t}\n\t\tthis.onPick(global);\n\t}\n\n\tprotected onTrackUpBound(e: InteractionEvent): void {\n\t\tconst interactionManager = this._interactionManager;\n\t\tif (interactionManager) {\n\t\t\tthis._interactionManager = undefined;\n\t\t\tconst onTrackUpBound = this._onTrackUpBound;\n\t\t\tinteractionManager.off(UtilPointerEvent.up, onTrackUpBound);\n\t\t\tinteractionManager.off(UtilPointerEvent.upoutside, onTrackUpBound);\n\t\t\tinteractionManager.off(UtilPointerEvent.cancel, onTrackUpBound);\n\t\t}\n\t}\n\n\tprotected onTrackSelectedUpBound(e: InteractionEvent): void {\n\t\tconst interactionManager = this._interactionManager;\n\t\tif (interactionManager) {\n\t\t\tthis._interactionManager = undefined;\n\t\t\tconst onTrackSelectedUpBound = this._onTrackSelectedUpBound;\n\t\t\tinteractionManager.off(UtilPointerEvent.up, onTrackSelectedUpBound);\n\t\t\tinteractionManager.off(UtilPointerEvent.upoutside, onTrackSelectedUpBound);\n\t\t\tinteractionManager.off(UtilPointerEvent.cancel, onTrackSelectedUpBound);\n\t\t}\n\t}\n\n\tprotected onThumbMove(e: InteractionEvent): void {\n\t\tif (this.state.inDisabled) {\n\t\t\treturn;\n\t\t}\n\t\tthis.onPick(e.data.global);\n\t}\n\n\tprotected onThumbDown(e: InteractionEvent): void {\n\t\tconst layer = DApplications.getLayer(this);\n\t\tif (layer) {\n\t\t\tconst interactionManager = layer.renderer.plugins.interaction;\n\t\t\tthis._interactionManager = interactionManager;\n\t\t\tconst onThumbMoveBound = this._onThumbMoveBound;\n\t\t\tinteractionManager.on(UtilPointerEvent.move, onThumbMoveBound);\n\t\t\tconst onThumbUpBound = this._onThumbUpBound;\n\t\t\tinteractionManager.on(UtilPointerEvent.up, onThumbUpBound);\n\t\t\tinteractionManager.on(UtilPointerEvent.upoutside, onThumbUpBound);\n\t\t\tinteractionManager.on(UtilPointerEvent.cancel, onThumbUpBound);\n\t\t}\n\t}\n\n\tprotected onThumbUp(e: InteractionEvent): void {\n\t\tconst interactionManager = this._interactionManager;\n\t\tif (interactionManager) {\n\t\t\tthis._interactionManager = undefined;\n\t\t\tconst onThumbMoveBound = this._onThumbMoveBound;\n\t\t\tinteractionManager.off(UtilPointerEvent.move, onThumbMoveBound);\n\t\t\tconst onThumbUpBound = this._onThumbUpBound;\n\t\t\tinteractionManager.off(UtilPointerEvent.up, onThumbUpBound);\n\t\t\tinteractionManager.off(UtilPointerEvent.upoutside, onThumbUpBound);\n\t\t\tinteractionManager.off(UtilPointerEvent.cancel, onThumbUpBound);\n\t\t}\n\t}\n\n\tprotected updateValue(): void {\n\t\tconst min = this._min.value;\n\t\tconst max = this._max.value;\n\t\tconst value = this._value;\n\t\tconst newValue = value.rounder(min + this._ratioValue * (max - min));\n\t\tconst oldValue = value.value;\n\t\tif (newValue !== oldValue) {\n\t\t\tvalue.value = newValue;\n\t\t\tvalue.text = value.value;\n\t\t\tthis.emit(\"change\", newValue, oldValue, this);\n\t\t}\n\t}\n\n\tonResize(newWidth: number, newHeight: number, oldWidth: number, oldHeight: number): void {\n\t\tsuper.onResize(newWidth, newHeight, oldWidth, oldHeight);\n\t\tthis.onValuesChange();\n\t}\n\n\t/**\n\t * Returns a current value.\n\t */\n\tget value(): number {\n\t\treturn this._value.value;\n\t}\n\n\t/**\n\t * Sets a current value.\n\t */\n\tset value(value: number) {\n\t\tvalue = Math.max(this._min.value, Math.min(this._max.value, value));\n\t\t// Adjust if value is new\n\t\tif (this._value.value !== value) {\n\t\t\tthis._value.value = value;\n\t\t\tthis.onValuesChange();\n\t\t}\n\t}\n\n\t/**\n\t * Returns a minimum value.\n\t */\n\tget min(): number {\n\t\treturn this._min.value;\n\t}\n\n\t/**\n\t * Sets a minimum value.\n\t */\n\tset min(newMin: number) {\n\t\tconst min = this._min;\n\t\tnewMin = Math.min(this._max.value, newMin);\n\t\tif (min.value !== newMin) {\n\t\t\tconst value = this._value;\n\t\t\tmin.text = min.value = newMin;\n\t\t\tvalue.value = Math.max(newMin, value.value);\n\t\t\tthis.onValuesChange();\n\t\t}\n\t}\n\n\t/**\n\t * Returns a maximum value.\n\t */\n\tget max(): number {\n\t\treturn this._max.value;\n\t}\n\n\t/**\n\t * Sets a maximum value.\n\t */\n\tset max(newMax: number) {\n\t\tconst max = this._max;\n\t\tnewMax = Math.max(this._min.value, newMax);\n\t\tif (max.value !== newMax) {\n\t\t\tconst value = this._value;\n\t\t\tmax.text = max.value = newMax;\n\t\t\tvalue.value = Math.min(newMax, value.value);\n\t\t\tthis.onValuesChange();\n\t\t}\n\t}\n\n\tprotected getType(): string {\n\t\treturn \"DSlider\";\n\t}\n}\n"]}
1
+ {"version":3,"file":"d-slider.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-slider.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAA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S,CAAC;IAClB,CAAC;IACF,cAAC;AAAD,CAAC,AA7TD,CAGU,KAAK,GA0Td","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { InteractionEvent, InteractionManager, Point } from \"pixi.js\";\nimport { DApplications } from \"./d-applications\";\nimport { DBase, DBaseEvents, DBaseOptions, DThemeBase } from \"./d-base\";\nimport { DSliderLabel, DSliderLabelOptions } from \"./d-slider-label\";\nimport { DSliderThumb, DSliderThumbOptions } from \"./d-slider-thumb\";\nimport { DSliderTrack, DSliderTrackOptions } from \"./d-slider-track\";\nimport { DSliderValue, DSliderValueOptions } from \"./d-slider-value\";\nimport { UtilPointerEvent } from \"./util/util-pointer-event\";\nimport { DOnOptions } from \"./d-on-options\";\n\n/**\n * {@link DSlider} events.\n */\nexport interface DSliderEvents<EMITTER> extends DBaseEvents<EMITTER> {\n\t/**\n\t * Triggered when a value is changed.\n\t *\n\t * @param newValue a new value\n\t * @param oldValue an old value\n\t * @param emitter an emitter\n\t */\n\tchange(newValue: number, oldValue: number, emitter: EMITTER): void;\n}\n\n/**\n * {@link DSlider} \"on\" options.\n */\nexport interface DSliderOnOptions<EMITTER> extends Partial<DSliderEvents<EMITTER>>, DOnOptions {}\n\n/**\n * {@link DSlider} options.\n */\nexport interface DSliderOptions<THEME extends DThemeSlider = DThemeSlider, EMITTER = any>\n\textends DBaseOptions<THEME, EMITTER> {\n\tmin?: DSliderLabelOptions;\n\tmax?: DSliderLabelOptions;\n\tvalue?: DSliderValueOptions;\n\ttrack?: DSliderTrackOptions;\n\tthumb?: DSliderThumbOptions;\n\ton?: DSliderOnOptions<EMITTER>;\n}\n\n/**\n * {@link DSlider} theme.\n */\nexport interface DThemeSlider extends DThemeBase {}\n\n/**\n * A slider class.\n */\nexport abstract class DSlider<\n\tTHEME extends DThemeSlider = DThemeSlider,\n\tOPTIONS extends DSliderOptions<THEME> = DSliderOptions<THEME>\n> extends DBase<THEME, OPTIONS> {\n\tprotected _track!: DSliderTrack;\n\tprotected _thumb!: DSliderThumb;\n\tprotected _trackSelected!: DSliderTrack;\n\tprotected _value!: DSliderValue;\n\tprotected _roundNumber!: number;\n\tprotected _offset!: number;\n\tprotected _yOffset!: number;\n\tprotected _ratioValue!: number;\n\tprotected _min!: DSliderLabel;\n\tprotected _max!: DSliderLabel;\n\tprotected _onThumbMoveBound!: (e: InteractionEvent) => void;\n\tprotected _onThumbUpBound!: (e: InteractionEvent) => void;\n\tprotected _onTrackUpBound!: (e: InteractionEvent) => void;\n\tprotected _onTrackSelectedUpBound!: (e: InteractionEvent) => void;\n\tprotected _interactionManager?: InteractionManager;\n\n\tprotected init(options?: OPTIONS): void {\n\t\tsuper.init(options);\n\n\t\tthis._ratioValue = 0;\n\n\t\tthis._track = this.newTrack(options);\n\t\tthis.addChild(this._track);\n\t\tthis._trackSelected = this.newTrackSelected(options);\n\t\tthis._trackSelected.state.isActive = true;\n\t\tthis.addChild(this._trackSelected);\n\t\tthis._thumb = this.newThumb(options);\n\t\tthis.addChild(this._thumb);\n\t\tthis._min = this.newLabelMin(options);\n\t\tthis.addChild(this._min);\n\t\tthis._max = this.newLabelMax(options);\n\t\tthis.addChild(this._max);\n\t\tthis._value = this.newValue(options);\n\t\tthis.addChild(this._value);\n\n\t\t// Event listeners\n\t\tthis._track.on(UtilPointerEvent.down, (e: InteractionEvent) => {\n\t\t\tthis._value.visible = this.state.inEnabled;\n\t\t\tthis.onTrackDown(e.data.global);\n\t\t});\n\n\t\tthis._trackSelected.on(UtilPointerEvent.down, (e: InteractionEvent) => {\n\t\t\tthis._value.visible = this.state.inEnabled;\n\t\t\tthis.onTrackSelectedDown(e.data.global);\n\t\t});\n\n\t\tthis._onTrackUpBound = (e: InteractionEvent): void => {\n\t\t\tthis.onTrackUpBound(e);\n\t\t\tthis._value.visible = false;\n\t\t};\n\n\t\tthis._onTrackSelectedUpBound = (e: InteractionEvent): void => {\n\t\t\tthis.onTrackSelectedUpBound(e);\n\t\t\tthis._value.visible = false;\n\t\t};\n\n\t\tthis._thumb.on(UtilPointerEvent.down, (e: InteractionEvent) => {\n\t\t\tthis._value.visible = true;\n\t\t\tthis.onThumbDown(e);\n\t\t});\n\n\t\tthis._onThumbMoveBound = (e: InteractionEvent): void => {\n\t\t\tthis.onThumbMove(e);\n\t\t};\n\n\t\tthis._onThumbUpBound = (e: InteractionEvent): void => {\n\t\t\tthis.onThumbUp(e);\n\t\t\tthis._value.visible = false;\n\t\t};\n\n\t\t//\n\t\tthis.onValuesChange();\n\t}\n\n\tprotected newThumb(options?: OPTIONS): DSliderThumb {\n\t\treturn new DSliderThumb(options?.thumb);\n\t}\n\n\tprotected newValue(options?: OPTIONS): DSliderValue {\n\t\treturn new DSliderValue(this.toValueOptions(options?.value));\n\t}\n\n\tprotected toValueOptions(options?: DSliderValueOptions): DSliderValueOptions {\n\t\toptions = options || {};\n\t\tif (options.value == null) {\n\t\t\toptions.value = 0;\n\t\t}\n\t\tconst text = options.text || {};\n\t\toptions.text = text;\n\t\tif (text.value == null) {\n\t\t\ttext.value = options.value;\n\t\t}\n\t\tif (options.visible == null) {\n\t\t\toptions.visible = false;\n\t\t}\n\t\treturn options;\n\t}\n\n\tprotected newLabelMin(options?: OPTIONS): DSliderLabel {\n\t\treturn new DSliderLabel(this.toLabelMinOptions(options?.min));\n\t}\n\n\tprotected toLabelMinOptions(options?: DSliderLabelOptions): DSliderLabelOptions {\n\t\toptions = options || {};\n\t\tif (options.value == null) {\n\t\t\toptions.value = 0;\n\t\t}\n\t\tconst text = options.text || {};\n\t\toptions.text = text;\n\t\tif (text.value == null) {\n\t\t\ttext.value = `${options.value}`;\n\t\t}\n\t\treturn options;\n\t}\n\n\tprotected newLabelMax(options?: OPTIONS): DSliderLabel {\n\t\treturn new DSliderLabel(this.toLabelMaxOptions(options?.max));\n\t}\n\n\tprotected toLabelMaxOptions(options?: DSliderLabelOptions): DSliderLabelOptions {\n\t\toptions = options || {};\n\t\tif (options.value == null) {\n\t\t\toptions.value = 1;\n\t\t}\n\t\tconst text = options.text || {};\n\t\toptions.text = text;\n\t\tif (text.value == null) {\n\t\t\ttext.value = `${options.value}`;\n\t\t}\n\t\treturn options;\n\t}\n\n\tprotected abstract newTrack(options?: OPTIONS): DSliderTrack;\n\tprotected abstract newTrackSelected(options?: OPTIONS): DSliderTrack;\n\n\tprotected abstract onPick(global: Point): void;\n\tprotected abstract onValuesChange(): void;\n\tprotected abstract moveThumbPosition(thumbCoordinate: number): void;\n\n\tprotected getValueMargin(): number {\n\t\treturn 14;\n\t}\n\n\tprotected onTrackDown(global: Point): void {\n\t\tif (this.state.inDisabled) {\n\t\t\treturn;\n\t\t}\n\t\tconst layer = DApplications.getLayer(this);\n\t\tif (layer) {\n\t\t\tconst interactionManager = layer.renderer.plugins.interaction;\n\t\t\tthis._interactionManager = interactionManager;\n\t\t\tconst onTrackUpBound = this._onTrackUpBound;\n\t\t\tinteractionManager.on(UtilPointerEvent.up, onTrackUpBound);\n\t\t\tinteractionManager.on(UtilPointerEvent.upoutside, onTrackUpBound);\n\t\t\tinteractionManager.on(UtilPointerEvent.cancel, onTrackUpBound);\n\t\t}\n\t\tthis.onPick(global);\n\t}\n\n\tprotected onTrackSelectedDown(global: Point): void {\n\t\tif (this.state.inDisabled) {\n\t\t\treturn;\n\t\t}\n\t\tconst layer = DApplications.getLayer(this);\n\t\tif (layer) {\n\t\t\tconst interactionManager = layer.renderer.plugins.interaction;\n\t\t\tthis._interactionManager = interactionManager;\n\t\t\tconst onTrackSelectedUpBound = this._onTrackSelectedUpBound;\n\t\t\tinteractionManager.on(UtilPointerEvent.up, onTrackSelectedUpBound);\n\t\t\tinteractionManager.on(UtilPointerEvent.upoutside, onTrackSelectedUpBound);\n\t\t\tinteractionManager.on(UtilPointerEvent.cancel, onTrackSelectedUpBound);\n\t\t}\n\t\tthis.onPick(global);\n\t}\n\n\tprotected onTrackUpBound(e: InteractionEvent): void {\n\t\tconst interactionManager = this._interactionManager;\n\t\tif (interactionManager) {\n\t\t\tthis._interactionManager = undefined;\n\t\t\tconst onTrackUpBound = this._onTrackUpBound;\n\t\t\tinteractionManager.off(UtilPointerEvent.up, onTrackUpBound);\n\t\t\tinteractionManager.off(UtilPointerEvent.upoutside, onTrackUpBound);\n\t\t\tinteractionManager.off(UtilPointerEvent.cancel, onTrackUpBound);\n\t\t}\n\t}\n\n\tprotected onTrackSelectedUpBound(e: InteractionEvent): void {\n\t\tconst interactionManager = this._interactionManager;\n\t\tif (interactionManager) {\n\t\t\tthis._interactionManager = undefined;\n\t\t\tconst onTrackSelectedUpBound = this._onTrackSelectedUpBound;\n\t\t\tinteractionManager.off(UtilPointerEvent.up, onTrackSelectedUpBound);\n\t\t\tinteractionManager.off(UtilPointerEvent.upoutside, onTrackSelectedUpBound);\n\t\t\tinteractionManager.off(UtilPointerEvent.cancel, onTrackSelectedUpBound);\n\t\t}\n\t}\n\n\tprotected onThumbMove(e: InteractionEvent): void {\n\t\tif (this.state.inDisabled) {\n\t\t\treturn;\n\t\t}\n\t\tthis.onPick(e.data.global);\n\t}\n\n\tprotected onThumbDown(e: InteractionEvent): void {\n\t\tconst layer = DApplications.getLayer(this);\n\t\tif (layer) {\n\t\t\tconst interactionManager = layer.renderer.plugins.interaction;\n\t\t\tthis._interactionManager = interactionManager;\n\t\t\tconst onThumbMoveBound = this._onThumbMoveBound;\n\t\t\tinteractionManager.on(UtilPointerEvent.move, onThumbMoveBound);\n\t\t\tconst onThumbUpBound = this._onThumbUpBound;\n\t\t\tinteractionManager.on(UtilPointerEvent.up, onThumbUpBound);\n\t\t\tinteractionManager.on(UtilPointerEvent.upoutside, onThumbUpBound);\n\t\t\tinteractionManager.on(UtilPointerEvent.cancel, onThumbUpBound);\n\t\t}\n\t}\n\n\tprotected onThumbUp(e: InteractionEvent): void {\n\t\tconst interactionManager = this._interactionManager;\n\t\tif (interactionManager) {\n\t\t\tthis._interactionManager = undefined;\n\t\t\tconst onThumbMoveBound = this._onThumbMoveBound;\n\t\t\tinteractionManager.off(UtilPointerEvent.move, onThumbMoveBound);\n\t\t\tconst onThumbUpBound = this._onThumbUpBound;\n\t\t\tinteractionManager.off(UtilPointerEvent.up, onThumbUpBound);\n\t\t\tinteractionManager.off(UtilPointerEvent.upoutside, onThumbUpBound);\n\t\t\tinteractionManager.off(UtilPointerEvent.cancel, onThumbUpBound);\n\t\t}\n\t}\n\n\tprotected updateValue(): void {\n\t\tconst min = this._min.value;\n\t\tconst max = this._max.value;\n\t\tconst value = this._value;\n\t\tconst newValue = value.rounder(min + this._ratioValue * (max - min));\n\t\tconst oldValue = value.value;\n\t\tif (newValue !== oldValue) {\n\t\t\tvalue.value = newValue;\n\t\t\tvalue.text = value.value;\n\t\t\tthis.emit(\"change\", newValue, oldValue, this);\n\t\t}\n\t}\n\n\tonResize(newWidth: number, newHeight: number, oldWidth: number, oldHeight: number): void {\n\t\tsuper.onResize(newWidth, newHeight, oldWidth, oldHeight);\n\t\tthis.onValuesChange();\n\t}\n\n\t/**\n\t * Returns a current value.\n\t */\n\tget value(): number {\n\t\treturn this._value.value;\n\t}\n\n\t/**\n\t * Sets a current value.\n\t */\n\tset value(value: number) {\n\t\tvalue = Math.max(this._min.value, Math.min(this._max.value, value));\n\t\t// Adjust if value is new\n\t\tif (this._value.value !== value) {\n\t\t\tthis._value.value = value;\n\t\t\tthis.onValuesChange();\n\t\t}\n\t}\n\n\t/**\n\t * Returns a minimum value.\n\t */\n\tget min(): number {\n\t\treturn this._min.value;\n\t}\n\n\t/**\n\t * Sets a minimum value.\n\t */\n\tset min(newMin: number) {\n\t\tconst min = this._min;\n\t\tnewMin = Math.min(this._max.value, newMin);\n\t\tif (min.value !== newMin) {\n\t\t\tconst value = this._value;\n\t\t\tmin.text = min.value = newMin;\n\t\t\tvalue.value = Math.max(newMin, value.value);\n\t\t\tthis.onValuesChange();\n\t\t}\n\t}\n\n\t/**\n\t * Returns a maximum value.\n\t */\n\tget max(): number {\n\t\treturn this._max.value;\n\t}\n\n\t/**\n\t * Sets a maximum value.\n\t */\n\tset max(newMax: number) {\n\t\tconst max = this._max;\n\t\tnewMax = Math.max(this._min.value, newMax);\n\t\tif (max.value !== newMax) {\n\t\t\tconst value = this._value;\n\t\t\tmax.text = max.value = newMax;\n\t\t\tvalue.value = Math.min(newMax, value.value);\n\t\t\tthis.onValuesChange();\n\t\t}\n\t}\n\n\tprotected getType(): string {\n\t\treturn \"DSlider\";\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"d-table-body-cell-button.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-table-body-cell-button.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EACN,kBAAkB,EAGlB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAa7D;IASU,wCAAqD;IAG9D,8BACC,WAAmB,EACnB,MAAuC,EACvC,QAAmD,EACnD,OAAiB;;QAJlB,YAMC,kBAAM,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,SAM7C;QAJA,KAAI,CAAC,KAAK,GAAG,MAAM,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,mCAAI,eAAe,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;QAC/E,KAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,GAAG,EAAE,UAAC,CAA+B;YAC7D,KAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QACjB,CAAC,CAAC,CAAC;;IACJ,CAAC;IAES,sCAAO,GAAjB,UAAkB,CAA+B;QAChD,IAAI,IAAI,CAAC,KAAK,KAAK,eAAe,CAAC,OAAO,IAAI,IAAI,CAAC,KA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AY,EAAE;YAC5B,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE;gBACzB,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;aACnB;YACD,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC;SAC7B;IACF,CAAC;IAES,wCAAS,GAAnB,UAAoB,CAAgB;QACnC,IAAI,iBAAiB,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE;YACvC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;SAC1B;QAED,OAAO,iBAAM,SAAS,YAAC,CAAC,CAAC,CAAC;IAC3B,CAAC;IAES,sCAAO,GAAjB,UAAkB,CAAgB;QACjC,IAAI,iBAAiB,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE;YACvC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;SACxB;QAED,OAAO,iBAAM,OAAO,YAAC,CAAC,CAAC,CAAC;IACzB,CAAC;IAES,sCAAO,GAAjB;QACC,OAAO,sBAAsB,CAAC;IAC/B,CAAC;IACF,2BAAC;AAAD,CAAC,AA9FD,CASU,kBAAkB,GAqF3B","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { interaction } from \"pixi.js\";\nimport { DButtonBaseWhen } from \"./d-button-base-when\";\nimport { DTableBodyCellOnChange } from \"./d-table-body-cell\";\nimport {\n\tDTableBodyCellText,\n\tDTableBodyCellTextOptions,\n\tDThemeTableBodyCellText\n} from \"./d-table-body-cell-text\";\nimport { DTableColumn } from \"./d-table-column\";\nimport { toEnum } from \"./util/to-enum\";\nimport { UtilKeyboardEvent } from \"./util/util-keyboard-event\";\nimport { UtilPointerEvent } from \"./util/util-pointer-event\";\n\nexport interface DTableBodyCellButtonOptions<\n\tROW,\n\tVALUE = unknown,\n\tTHEME extends DThemeTableBodyCellButton<VALUE> = DThemeTableBodyCellButton<VALUE>\n> extends DTableBodyCellTextOptions<ROW, VALUE | null, THEME> {\n\twhen?: DButtonBaseWhen | keyof typeof DButtonBaseWhen;\n}\n\nexport interface DThemeTableBodyCellButton<VALUE = unknown>\n\textends DThemeTableBodyCellText<VALUE | null> {}\n\nexport class DTableBodyCellButton<\n\tROW,\n\tVALUE = unknown,\n\tTHEME extends DThemeTableBodyCellButton<VALUE> = DThemeTableBodyCellButton<VALUE>,\n\tOPTIONS extends DTableBodyCellButtonOptions<ROW, VALUE, THEME> = DTableBodyCellButtonOptions<\n\t\tROW,\n\t\tVALUE,\n\t\tTHEME\n\t>\n> extends DTableBodyCellText<ROW, VALUE | null, THEME, OPTIONS> {\n\tprotected _when: DButtonBaseWhen;\n\n\tconstructor(\n\t\tcolumnIndex: number,\n\t\tcolumn: DTableColumn<ROW, VALUE | null>,\n\t\tonChange: DTableBodyCellOnChange<ROW, VALUE | null>,\n\t\toptions?: OPTIONS\n\t) {\n\t\tsuper(columnIndex, column, onChange, options);\n\n\t\tthis._when = toEnum(options?.when ?? DButtonBaseWhen.CLICKED, DButtonBaseWhen);\n\t\tthis.on(UtilPointerEvent.tap, (e: interaction.InteractionEvent): void => {\n\t\t\tthis.onClick(e);\n\t\t});\n\t}\n\n\tprotected onClick(e: interaction.InteractionEvent): void {\n\t\tif (this._when === DButtonBaseWhen.CLICKED && this.state.isActionable) {\n\t\t\tthis.activate(e);\n\t\t}\n\t}\n\n\tonDblClick(\n\t\te: MouseEvent | TouchEvent,\n\t\tinteractionManager: interaction.InteractionManager\n\t): boolean {\n\t\tif (this._when === DButtonBaseWhen.DOUBLE_CLICKED && this.state.isActionable) {\n\t\t\tthis.activate(e);\n\t\t}\n\t\treturn super.onDblClick(e, interactionManager);\n\t}\n\n\tactivate(e?: interaction.InteractionEvent | KeyboardEvent | MouseEvent | TouchEvent): void {\n\t\tthis.onActivate(e);\n\t}\n\n\tprotected onActivate(\n\t\te?: interaction.InteractionEvent | KeyboardEvent | MouseEvent | TouchEvent\n\t): void {\n\t\tthis.emit(\"active\", this);\n\t\tconst row = this._row;\n\t\tif (row !== undefined) {\n\t\t\tconst rowIndex = this._rowIndex;\n\t\t\tconst columnIndex = this._columnIndex;\n\t\t\tconst column = this._column;\n\t\t\tthis.emit(\"change\", null, null, this);\n\t\t\tthis._onChange(null, null, row, rowIndex, columnIndex, column, this);\n\t\t}\n\t}\n\n\tprotected onActivateKeyDown(e: KeyboardEvent): void {\n\t\tif (this.state.isActionable) {\n\t\t\tthis.state.isPressed = true;\n\t\t}\n\t}\n\n\tprotected onActivateKeyUp(e: KeyboardEvent): void {\n\t\tif (this.state.isActionable) {\n\t\t\tif (this.state.isPressed) {\n\t\t\t\tthis.onActivate(e);\n\t\t\t}\n\t\t\tthis.state.isPressed = false;\n\t\t}\n\t}\n\n\tprotected onKeyDown(e: KeyboardEvent): boolean {\n\t\tif (UtilKeyboardEvent.isActivateKey(e)) {\n\t\t\tthis.onActivateKeyDown(e);\n\t\t}\n\n\t\treturn super.onKeyDown(e);\n\t}\n\n\tprotected onKeyUp(e: KeyboardEvent): boolean {\n\t\tif (UtilKeyboardEvent.isActivateKey(e)) {\n\t\t\tthis.onActivateKeyUp(e);\n\t\t}\n\n\t\treturn super.onKeyUp(e);\n\t}\n\n\tprotected getType(): string {\n\t\treturn \"DTableBodyCellButton\";\n\t}\n}\n"]}
1
+ {"version":3,"file":"d-table-body-cell-button.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-table-body-cell-button.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EACN,kBAAkB,EAGlB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAa7D;IASU,wCAAqD;IAG9D,8BACC,WAAmB,EACnB,MA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Content":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { InteractionEvent, InteractionManager } from \"pixi.js\";\nimport { DButtonBaseWhen } from \"./d-button-base-when\";\nimport { DTableBodyCellOnChange } from \"./d-table-body-cell\";\nimport {\n\tDTableBodyCellText,\n\tDTableBodyCellTextOptions,\n\tDThemeTableBodyCellText\n} from \"./d-table-body-cell-text\";\nimport { DTableColumn } from \"./d-table-column\";\nimport { toEnum } from \"./util/to-enum\";\nimport { UtilKeyboardEvent } from \"./util/util-keyboard-event\";\nimport { UtilPointerEvent } from \"./util/util-pointer-event\";\n\nexport interface DTableBodyCellButtonOptions<\n\tROW,\n\tVALUE = unknown,\n\tTHEME extends DThemeTableBodyCellButton<VALUE> = DThemeTableBodyCellButton<VALUE>\n> extends DTableBodyCellTextOptions<ROW, VALUE | null, THEME> {\n\twhen?: DButtonBaseWhen | keyof typeof DButtonBaseWhen;\n}\n\nexport interface DThemeTableBodyCellButton<VALUE = unknown>\n\textends DThemeTableBodyCellText<VALUE | null> {}\n\nexport class DTableBodyCellButton<\n\tROW,\n\tVALUE = unknown,\n\tTHEME extends DThemeTableBodyCellButton<VALUE> = DThemeTableBodyCellButton<VALUE>,\n\tOPTIONS extends DTableBodyCellButtonOptions<ROW, VALUE, THEME> = DTableBodyCellButtonOptions<\n\t\tROW,\n\t\tVALUE,\n\t\tTHEME\n\t>\n> extends DTableBodyCellText<ROW, VALUE | null, THEME, OPTIONS> {\n\tprotected _when: DButtonBaseWhen;\n\n\tconstructor(\n\t\tcolumnIndex: number,\n\t\tcolumn: DTableColumn<ROW, VALUE | null>,\n\t\tonChange: DTableBodyCellOnChange<ROW, VALUE | null>,\n\t\toptions?: OPTIONS\n\t) {\n\t\tsuper(columnIndex, column, onChange, options);\n\n\t\tthis._when = toEnum(options?.when ?? DButtonBaseWhen.CLICKED, DButtonBaseWhen);\n\t\tthis.on(UtilPointerEvent.tap, (e: InteractionEvent): void => {\n\t\t\tthis.onClick(e);\n\t\t});\n\t}\n\n\tprotected onClick(e: InteractionEvent): void {\n\t\tif (this._when === DButtonBaseWhen.CLICKED && this.state.isActionable) {\n\t\t\tthis.activate(e);\n\t\t}\n\t}\n\n\tonDblClick(e: MouseEvent | TouchEvent, interactionManager: InteractionManager): boolean {\n\t\tif (this._when === DButtonBaseWhen.DOUBLE_CLICKED && this.state.isActionable) {\n\t\t\tthis.activate(e);\n\t\t}\n\t\treturn super.onDblClick(e, interactionManager);\n\t}\n\n\tactivate(e?: InteractionEvent | KeyboardEvent | MouseEvent | TouchEvent): void {\n\t\tthis.onActivate(e);\n\t}\n\n\tprotected onActivate(e?: InteractionEvent | KeyboardEvent | MouseEvent | TouchEvent): void {\n\t\tthis.emit(\"active\", this);\n\t\tconst row = this._row;\n\t\tif (row !== undefined) {\n\t\t\tconst rowIndex = this._rowIndex;\n\t\t\tconst columnIndex = this._columnIndex;\n\t\t\tconst column = this._column;\n\t\t\tthis.emit(\"change\", null, null, this);\n\t\t\tthis._onChange(null, null, row, rowIndex, columnIndex, column, this);\n\t\t}\n\t}\n\n\tprotected onActivateKeyDown(e: KeyboardEvent): void {\n\t\tif (this.state.isActionable) {\n\t\t\tthis.state.isPressed = true;\n\t\t}\n\t}\n\n\tprotected onActivateKeyUp(e: KeyboardEvent): void {\n\t\tif (this.state.isActionable) {\n\t\t\tif (this.state.isPressed) {\n\t\t\t\tthis.onActivate(e);\n\t\t\t}\n\t\t\tthis.state.isPressed = false;\n\t\t}\n\t}\n\n\tprotected onKeyDown(e: KeyboardEvent): boolean {\n\t\tif (UtilKeyboardEvent.isActivateKey(e)) {\n\t\t\tthis.onActivateKeyDown(e);\n\t\t}\n\n\t\treturn super.onKeyDown(e);\n\t}\n\n\tprotected onKeyUp(e: KeyboardEvent): boolean {\n\t\tif (UtilKeyboardEvent.isActivateKey(e)) {\n\t\t\tthis.onActivateKeyUp(e);\n\t\t}\n\n\t\treturn super.onKeyUp(e);\n\t}\n\n\tprotected getType(): string {\n\t\treturn \"DTableBodyCellButton\";\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"d-table-body-cell-check.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-table-body-cell-check.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,YAAY,EAA0C,MAAM,kBAAkB,CAAC;AAExF,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAY7D;IAQS,uCAAqC;IAS7C,6BACC,WAAmB,EACnB,MAAkC,EAClC,QAA8C,EAC9C,OAAiB;QAJlB,YAMC,kBAAM,OAAO,CAAC,SAMd;QAJA,KAAI,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;QACpB,KAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,KAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,KAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;;IAC3B,CAAC;IAES,wCAAU,GAApB,UACC,CAA0E;QAE1E,iBAAM,UAAU,YAAC,CAAC,CAAC,CAAC;QACpB,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACjC,CAAC;IAES,0CAAY,GAAtB,UACC,CAA0E;QAE1E,iBAAM,YAAY,YAAC,CAAC,CAAC,CAAC;QACtB,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACjC,CAAC;IAES,2CAAa,GAAvB,UAAwB,QAAiB,EAAE,QAAiB;QAC3D,IAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,GAAG,KAAK,SAAS,EAAE;YACtB,IAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC;YAChC,IAAM,WAAW,GAAG,IAAI,CAAC,YAAY,CAAC;YACtC,IA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AAlID,CAQS,YAAY,GA0HpB","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { interaction } from \"pixi.js\";\nimport { DButtonCheck, DButtonCheckOptions, DThemeButtonCheck } from \"./d-button-check\";\nimport { DTableBodyCell, DTableBodyCellOnChange } from \"./d-table-body-cell\";\nimport { DTableBodyCells } from \"./d-table-body-cells\";\nimport { DTableColumn } from \"./d-table-column\";\nimport { DTableColumnType } from \"./d-table-column-type\";\nimport { DTableColumnUpdate } from \"./d-table-column-update\";\nimport type { DTableBody } from \"./d-table-body\";\nimport type { DTableBodyRow } from \"./d-table-body-row\";\nimport { DTableDataSupplimental } from \"./d-table-data\";\n\nexport interface DTableBodyCellCheckOptions<\n\tROW = unknown,\n\tTHEME extends DThemeTableBodyCellCheck = DThemeTableBodyCellCheck\n> extends DButtonCheckOptions<boolean, THEME> {}\n\nexport interface DThemeTableBodyCellCheck extends DThemeButtonCheck<boolean> {}\n\nexport class DTableBodyCellCheck<\n\t\tROW = unknown,\n\t\tTHEME extends DThemeTableBodyCellCheck = DThemeTableBodyCellCheck,\n\t\tOPTIONS extends DTableBodyCellCheckOptions<ROW, THEME> = DTableBodyCellCheckOptions<\n\t\t\tROW,\n\t\t\tTHEME\n\t\t>\n\t>\n\textends DButtonCheck<boolean, THEME, OPTIONS>\n\timplements DTableBodyCell<ROW, boolean>\n{\n\tprotected _row?: ROW;\n\tprotected _rowIndex: number;\n\tprotected _columnIndex: number;\n\tprotected _column: DTableColumn<ROW, boolean>;\n\tprotected _onChange: DTableBodyCellOnChange<ROW, boolean>;\n\n\tconstructor(\n\t\tcolumnIndex: number,\n\t\tcolumn: DTableColumn<ROW, boolean>,\n\t\tonChange: DTableBodyCellOnChange<ROW, boolean>,\n\t\toptions?: OPTIONS\n\t) {\n\t\tsuper(options);\n\n\t\tthis._rowIndex = -1;\n\t\tthis._columnIndex = columnIndex;\n\t\tthis._column = column;\n\t\tthis._onChange = onChange;\n\t}\n\n\tprotected onActivate(\n\t\te?: interaction.InteractionEvent | KeyboardEvent | MouseEvent | TouchEvent\n\t): void {\n\t\tsuper.onActivate(e);\n\t\tthis.onValueChange(true, false);\n\t}\n\n\tprotected onInactivate(\n\t\te?: interaction.InteractionEvent | KeyboardEvent | MouseEvent | TouchEvent\n\t): void {\n\t\tsuper.onInactivate(e);\n\t\tthis.onValueChange(false, true);\n\t}\n\n\tprotected onValueChange(newValue: boolean, oldValue: boolean): void {\n\t\tconst row = this._row;\n\t\tif (row !== undefined) {\n\t\t\tconst rowIndex = this._rowIndex;\n\t\t\tconst columnIndex = this._columnIndex;\n\t\t\tconst column = this._column;\n\t\t\tcolumn.setter(row, columnIndex, newValue);\n\t\t\tthis.emit(\"change\", newValue, oldValue, this);\n\t\t\tconst onChange = this._onChange;\n\t\t\tonChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);\n\t\t\tif (newValue && column.type === DTableColumnType.CHECK_SINGLE) {\n\t\t\t\tthis.onChangeSingle(rowIndex, columnIndex, column, onChange);\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected onChangeSingle(\n\t\trowIndex: number,\n\t\tcolumnIndex: number,\n\t\tcolumn: DTableColumn<ROW, boolean>,\n\t\tonChange: DTableBodyCellOnChange<ROW, boolean>\n\t): void {\n\t\tconst tableBodyRow = this.parent as DTableBodyRow<ROW> | null;\n\t\tif (tableBodyRow != null) {\n\t\t\tconst tableBody = tableBodyRow.parent as DTableBody<ROW> | null;\n\t\t\tif (tableBody != null) {\n\t\t\t\tlet isChanged = false;\n\t\t\t\tconst getter = column.getter;\n\t\t\t\tconst setter = column.setter;\n\t\t\t\tconst data = tableBody.data;\n\t\t\t\tdata.each((row: ROW, index: number): boolean => {\n\t\t\t\t\tif (rowIndex !== index && getter(row, columnIndex)) {\n\t\t\t\t\t\tsetter(row, columnIndex, false);\n\t\t\t\t\t\tisChanged = true;\n\t\t\t\t\t\tonChange(false, true, row, index, columnIndex, column, this);\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\treturn true;\n\t\t\t\t});\n\t\t\t\tif (isChanged && column.update !== DTableColumnUpdate.ALL) {\n\t\t\t\t\ttableBody.update(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tget row(): ROW | undefined {\n\t\treturn this._row;\n\t}\n\n\tget rowIndex(): number {\n\t\treturn this._rowIndex;\n\t}\n\n\tget columnIndex(): number {\n\t\treturn this._columnIndex;\n\t}\n\n\tget column(): DTableColumn<ROW, boolean> {\n\t\treturn this._column;\n\t}\n\n\tset(\n\t\tvalue: unknown,\n\t\trow: ROW,\n\t\tsupplimental: DTableDataSupplimental | null,\n\t\trowIndex: number,\n\t\tcolumnIndex: number,\n\t\tforcibly?: boolean\n\t): void {\n\t\tthis._row = row;\n\t\tthis._rowIndex = rowIndex;\n\t\tthis.state.isActive = !!value;\n\n\t\tDTableBodyCells.set(this, row, columnIndex, this._column);\n\t}\n\n\tunset(): void {\n\t\tthis._row = undefined;\n\t\tthis._rowIndex = -1;\n\t}\n\n\tprotected getType(): string {\n\t\treturn \"DTableBodyCellCheck\";\n\t}\n}\n"]}
1
+ {"version":3,"file":"d-table-body-cell-check.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-table-body-cell-check.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,YAAY,EAA0C,MAAM,kBAAkB,CAAC;AAExF,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAY7D;IAQS,uCAAqC;IAS7C,6BACC,WAAmB,EACnB,MAAkC,EAClC,QAA8C,EAC9C,OAAiB;QAJlB,YAMC,kBAAM,OAAO,CAAC,SAMd;QAJA,KAAI,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;QACpB,KAAI,CAAC,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C1B,CAAC;;;OAAA;IAED,sBAAI,uCAAM;aAAV;YACC,OAAO,IAAI,CAAC,OAAO,CAAC;QACrB,CAAC;;;OAAA;IAED,iCAAG,GAAH,UACC,KAAc,EACd,GAAQ,EACR,YAA2C,EAC3C,QAAgB,EAChB,WAAmB,EACnB,QAAkB;QAElB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;QAChB,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC1B,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC;QAE9B,eAAe,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED,mCAAK,GAAL;QACC,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC;QACtB,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;IACrB,CAAC;IAES,qCAAO,GAAjB;QACC,OAAO,qBAAqB,CAAC;IAC9B,CAAC;IACF,0BAAC;AAAD,CAAC,AA9HD,CAQS,YAAY,GAsHpB","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { InteractionEvent } from \"pixi.js\";\nimport { DButtonCheck, DButtonCheckOptions, DThemeButtonCheck } from \"./d-button-check\";\nimport { DTableBodyCell, DTableBodyCellOnChange } from \"./d-table-body-cell\";\nimport { DTableBodyCells } from \"./d-table-body-cells\";\nimport { DTableColumn } from \"./d-table-column\";\nimport { DTableColumnType } from \"./d-table-column-type\";\nimport { DTableColumnUpdate } from \"./d-table-column-update\";\nimport type { DTableBody } from \"./d-table-body\";\nimport type { DTableBodyRow } from \"./d-table-body-row\";\nimport { DTableDataSupplimental } from \"./d-table-data\";\n\nexport interface DTableBodyCellCheckOptions<\n\tROW = unknown,\n\tTHEME extends DThemeTableBodyCellCheck = DThemeTableBodyCellCheck\n> extends DButtonCheckOptions<boolean, THEME> {}\n\nexport interface DThemeTableBodyCellCheck extends DThemeButtonCheck<boolean> {}\n\nexport class DTableBodyCellCheck<\n\t\tROW = unknown,\n\t\tTHEME extends DThemeTableBodyCellCheck = DThemeTableBodyCellCheck,\n\t\tOPTIONS extends DTableBodyCellCheckOptions<ROW, THEME> = DTableBodyCellCheckOptions<\n\t\t\tROW,\n\t\t\tTHEME\n\t\t>\n\t>\n\textends DButtonCheck<boolean, THEME, OPTIONS>\n\timplements DTableBodyCell<ROW, boolean>\n{\n\tprotected _row?: ROW;\n\tprotected _rowIndex: number;\n\tprotected _columnIndex: number;\n\tprotected _column: DTableColumn<ROW, boolean>;\n\tprotected _onChange: DTableBodyCellOnChange<ROW, boolean>;\n\n\tconstructor(\n\t\tcolumnIndex: number,\n\t\tcolumn: DTableColumn<ROW, boolean>,\n\t\tonChange: DTableBodyCellOnChange<ROW, boolean>,\n\t\toptions?: OPTIONS\n\t) {\n\t\tsuper(options);\n\n\t\tthis._rowIndex = -1;\n\t\tthis._columnIndex = columnIndex;\n\t\tthis._column = column;\n\t\tthis._onChange = onChange;\n\t}\n\n\tprotected onActivate(e?: InteractionEvent | KeyboardEvent | MouseEvent | TouchEvent): void {\n\t\tsuper.onActivate(e);\n\t\tthis.onValueChange(true, false);\n\t}\n\n\tprotected onInactivate(e?: InteractionEvent | KeyboardEvent | MouseEvent | TouchEvent): void {\n\t\tsuper.onInactivate(e);\n\t\tthis.onValueChange(false, true);\n\t}\n\n\tprotected onValueChange(newValue: boolean, oldValue: boolean): void {\n\t\tconst row = this._row;\n\t\tif (row !== undefined) {\n\t\t\tconst rowIndex = this._rowIndex;\n\t\t\tconst columnIndex = this._columnIndex;\n\t\t\tconst column = this._column;\n\t\t\tcolumn.setter(row, columnIndex, newValue);\n\t\t\tthis.emit(\"change\", newValue, oldValue, this);\n\t\t\tconst onChange = this._onChange;\n\t\t\tonChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);\n\t\t\tif (newValue && column.type === DTableColumnType.CHECK_SINGLE) {\n\t\t\t\tthis.onChangeSingle(rowIndex, columnIndex, column, onChange);\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected onChangeSingle(\n\t\trowIndex: number,\n\t\tcolumnIndex: number,\n\t\tcolumn: DTableColumn<ROW, boolean>,\n\t\tonChange: DTableBodyCellOnChange<ROW, boolean>\n\t): void {\n\t\tconst tableBodyRow = this.parent as DTableBodyRow<ROW> | null;\n\t\tif (tableBodyRow != null) {\n\t\t\tconst tableBody = tableBodyRow.parent as DTableBody<ROW> | null;\n\t\t\tif (tableBody != null) {\n\t\t\t\tlet isChanged = false;\n\t\t\t\tconst getter = column.getter;\n\t\t\t\tconst setter = column.setter;\n\t\t\t\tconst data = tableBody.data;\n\t\t\t\tdata.each((row: ROW, index: number): boolean => {\n\t\t\t\t\tif (rowIndex !== index && getter(row, columnIndex)) {\n\t\t\t\t\t\tsetter(row, columnIndex, false);\n\t\t\t\t\t\tisChanged = true;\n\t\t\t\t\t\tonChange(false, true, row, index, columnIndex, column, this);\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\treturn true;\n\t\t\t\t});\n\t\t\t\tif (isChanged && column.update !== DTableColumnUpdate.ALL) {\n\t\t\t\t\ttableBody.update(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tget row(): ROW | undefined {\n\t\treturn this._row;\n\t}\n\n\tget rowIndex(): number {\n\t\treturn this._rowIndex;\n\t}\n\n\tget columnIndex(): number {\n\t\treturn this._columnIndex;\n\t}\n\n\tget column(): DTableColumn<ROW, boolean> {\n\t\treturn this._column;\n\t}\n\n\tset(\n\t\tvalue: unknown,\n\t\trow: ROW,\n\t\tsupplimental: DTableDataSupplimental | null,\n\t\trowIndex: number,\n\t\tcolumnIndex: number,\n\t\tforcibly?: boolean\n\t): void {\n\t\tthis._row = row;\n\t\tthis._rowIndex = rowIndex;\n\t\tthis.state.isActive = !!value;\n\n\t\tDTableBodyCells.set(this, row, columnIndex, this._column);\n\t}\n\n\tunset(): void {\n\t\tthis._row = undefined;\n\t\tthis._rowIndex = -1;\n\t}\n\n\tprotected getType(): string {\n\t\treturn \"DTableBodyCellCheck\";\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"d-table-body-cell-input-tree.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-table-body-cell-input-tree.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,KAAK,EAAc,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EACN,4BAA4B,EAE5B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAS9C,IAAM,aAAa,GAAG,UAAC,OAA6C;IACnE,IAAI,OAAO,IAAI,IAAI,EAAE;QACpB,OAAO;YACN,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,KAAK,EAAE,OAAO,CAAC,KAAK;SACpB,CAAC;KACF;IACD,OAAO,SAAS,CAAC;AAClB,CAAC,CAAC;AAEF;IAKS,2CAAY;IAYpB,iCACC,WAAmB,EACnB,MAAiC,EACjC,QAA6C,EAC7C,OAAiB;QAJlB,YAMC,kBAAM,aAAa,CAAC,OAAO,CAAC,CAAC,SAgB7B;QAdA,KAAI,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;QACpB,KAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,KAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,KAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAE1B,QAAQ;QACR,IAAM,KAAK,GAAG,KAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACrC,KAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,KAAI,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SAAS,GAAG,CAAC,CAAC,CAAC;QACpB,IAAI,CAAC,MAAM,CAAC,OAAO,GAAG,KAAK,CAAC;QAC5B,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;IACrB,CAAC;IAES,yCAAO,GAAjB;QACC,OAAO,yBAAyB,CAAC;IAClC,CAAC;IACF,8BAAC;AAAD,CAAC,AAjMD,CAKS,KAAK,GA4Lb","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { interaction, Point } from \"pixi.js\";\nimport { DBase, DThemeBase } from \"./d-base\";\nimport { DBaseState } from \"./d-base-state\";\nimport {\n\tDTableBodyCellInputTreeInput,\n\tDTableBodyCellInputTreeInputOptions\n} from \"./d-table-body-cell-input-tree-input\";\nimport { DTableBodyCellInputTreeMarker } from \"./d-table-body-cell-input-tree-marker\";\nimport { DTableBodyCells } from \"./d-table-body-cells\";\nimport { DTableState } from \"./d-table-state\";\nimport { DTableColumn } from \"./d-table-column\";\nimport { DTableBodyCell, DTableBodyCellOnChange } from \"./d-table-body-cell\";\nimport { DTableDataSupplimental } from \"./d-table-data\";\n\nexport interface DThemeTableBodyCellInputTree extends DThemeBase {\n\tgetLevelPadding(level: number): number;\n}\n\nconst toBaseOptions = (options?: DTableBodyCellInputTreeInputOptions) => {\n\tif (options != null) {\n\t\treturn {\n\t\t\tweight: options.weight,\n\t\t\twidth: options.width\n\t\t};\n\t}\n\treturn undefined;\n};\n\nexport class DTableBodyCellInputTree<\n\t\tROW = unknown,\n\t\tTHEME extends DThemeTableBodyCellInputTree = DThemeTableBodyCellInputTree,\n\t\tOPTIONS extends DTableBodyCellInputTreeInputOptions = DTableBodyCellInputTreeInputOptions\n\t>\n\textends DBase<THEME>\n\timplements DTableBodyCell<ROW, string>\n{\n\tprotected _row?: ROW;\n\tprotected _rowIndex: number;\n\tprotected _columnIndex: number;\n\tprotected _column: DTableColumn<ROW, string>;\n\tprotected _onChange: DTableBodyCellOnChange<ROW, string>;\n\n\tprotected _marker: DTableBodyCellInputTreeMarker;\n\tprotected _input: DTableBodyCellInputTreeInput;\n\n\tconstructor(\n\t\tcolumnIndex: number,\n\t\tcolumn: DTableColumn<ROW, string>,\n\t\tonChange: DTableBodyCellOnChange<ROW, string>,\n\t\toptions?: OPTIONS\n\t) {\n\t\tsuper(toBaseOptions(options));\n\n\t\tthis._rowIndex = -1;\n\t\tthis._columnIndex = columnIndex;\n\t\tthis._column = column;\n\t\tthis._onChange = onChange;\n\n\t\t// Input\n\t\tconst input = this.newInput(options);\n\t\tthis._input = input;\n\t\tthis.addChild(input);\n\n\t\t// Marker\n\t\tconst marker = this.newMarker(options);\n\t\tthis._marker = marker;\n\t\tthis.addChild(marker);\n\t}\n\n\tprotected newInput(options?: OPTIONS): DTableBodyCellInputTreeInput {\n\t\treturn new DTableBodyCellInputTreeInput(this.toInputOptions(options));\n\t}\n\n\tprotected toInputOptions(options?: OPTIONS): DTableBodyCellInputTreeInputOptions {\n\t\treturn {\n\t\t\tweight: 1,\n\t\t\ttext: options?.text,\n\t\t\tediting: options?.editing,\n\t\t\twhen: options?.when,\n\t\t\tcursor: options?.cursor,\n\t\t\ton: {\n\t\t\t\tchange: (newValue: string, oldValue: string): void => {\n\t\t\t\t\tthis.onInputChange(newValue, oldValue);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}\n\n\tprotected onInputChange(newValue: string, oldValue: string): void {\n\t\tconst row = this._row;\n\t\tif (row !== undefined) {\n\t\t\tconst rowIndex = this._rowIndex;\n\t\t\tconst columnIndex = this._columnIndex;\n\t\t\tconst column = this._column;\n\t\t\tcolumn.setter(row, columnIndex, newValue);\n\t\t\tthis.emit(\"change\", newValue, oldValue, this);\n\t\t\tthis._onChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);\n\t\t}\n\t}\n\n\tprotected newMarker(options?: OPTIONS): DTableBodyCellInputTreeMarker {\n\t\treturn new DTableBodyCellInputTreeMarker({\n\t\t\tvisible: false,\n\t\t\ton: {\n\t\t\t\tactive: (): void => {\n\t\t\t\t\tthis.onMarkerActive();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n\tprotected onMarkerActive(): void {\n\t\tif (this._marker.state.is(DTableState.HAS_CHILDREN)) {\n\t\t\tthis.toggle();\n\t\t}\n\t}\n\n\tget row(): ROW | undefined {\n\t\treturn this._row;\n\t}\n\n\tget rowIndex(): number {\n\t\treturn this._rowIndex;\n\t}\n\n\tget columnIndex(): number {\n\t\treturn this._columnIndex;\n\t}\n\n\tget column(): DTableColumn<ROW, string> {\n\t\treturn this._column;\n\t}\n\n\tprotected toggle(): void {\n\t\tconst row = this._row;\n\t\tif (row === undefined) {\n\t\t\treturn;\n\t\t}\n\t\tconst parent = this.parent;\n\t\tif (parent == null) {\n\t\t\treturn;\n\t\t}\n\t\tconst body = parent.parent;\n\t\tif (body == null) {\n\t\t\treturn;\n\t\t}\n\t\tconst data = (body as any).data;\n\t\tif (data && data.toggle) {\n\t\t\tif (data.isExpanded(row)) {\n\t\t\t\tif (data.collapse(row)) {\n\t\t\t\t\tthis.emit(\"collapse\", this);\n\t\t\t\t\tdata.emit(\"collapse\", row, this);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (data.expand(row)) {\n\t\t\t\t\tthis.emit(\"expand\", this);\n\t\t\t\t\tdata.emit(\"expand\", row, this);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tonRowSelect(e: interaction.InteractionEvent, local: Point): boolean {\n\t\tif (local.x <= this.position.x + this._input.padding.getLeft()) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\n\tset(\n\t\tvalue: unknown,\n\t\trow: ROW,\n\t\tsupplimental: DTableDataSupplimental | null,\n\t\trowIndex: number,\n\t\tcolumnIndex: number,\n\t\tforcibly?: boolean\n\t): void {\n\t\tthis._row = row;\n\t\tthis._rowIndex = rowIndex;\n\t\tconst input = this._input;\n\t\tinput.visible = true;\n\t\tinput.text = String(value);\n\n\t\tconst marker = this._marker;\n\t\tif (supplimental != null) {\n\t\t\tconst isOpened = !!(supplimental & 0x1);\n\t\t\tconst hasChildren = !!(supplimental & 0x2);\n\t\t\tconst level = supplimental >> 2;\n\t\t\tconst markerState = marker.state;\n\t\t\tmarkerState.lock();\n\t\t\tmarkerState.set(DTableState.HAS_CHILDREN, hasChildren);\n\t\t\tmarkerState.set(DBaseState.DISABLED, !hasChildren);\n\t\t\tmarkerState.set(DTableState.OPENED, isOpened);\n\t\t\tmarkerState.unlock();\n\t\t\tconst padding = this.theme.getLevelPadding(level);\n\t\t\tmarker.width = padding;\n\t\t\tif (hasChildren) {\n\t\t\t\tmarker.show();\n\t\t\t} else {\n\t\t\t\tmarker.hide();\n\t\t\t}\n\t\t\tinput.padding.adjLeft(padding);\n\t\t} else {\n\t\t\tmarker.state.removeAll(DTableState.OPENED, DTableState.HAS_CHILDREN);\n\t\t\tmarker.hide();\n\t\t\tinput.padding.adjLeft(0);\n\t\t}\n\n\t\tDTableBodyCells.set(this._input, row, columnIndex, this._column);\n\t}\n\n\tunset(): void {\n\t\tthis._row = undefined;\n\t\tthis._rowIndex = -1;\n\t\tthis._input.visible = false;\n\t\tthis._marker.hide();\n\t}\n\n\tprotected getType(): string {\n\t\treturn \"DTableBodyCellInputTree\";\n\t}\n}\n"]}
1
+ {"version":3,"file":"d-table-body-cell-input-tree.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-table-body-cell-input-tree.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,KAAK,EAAc,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EACN,4BAA4B,EAE5B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,WAAW,E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AAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;YAClD,MAAM,CAAC,KAAK,GAAG,OAAO,CAAC;YACvB,IAAI,WAAW,EAAE;gBAChB,MAAM,CAAC,IAAI,EAAE,CAAC;aACd;iBAAM;gBACN,MAAM,CAAC,IAAI,EAAE,CAAC;aACd;YACD,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;SAC/B;aAAM;YACN,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;YACrE,MAAM,CAAC,IAAI,EAAE,CAAC;YACd,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;SACzB;QAED,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAClE,CAAC;IAED,uCAAK,GAAL;QACC,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC;QACtB,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;QACpB,IAAI,CAAC,MAAM,CAAC,OAAO,GAAG,KAAK,CAAC;QAC5B,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;IACrB,CAAC;IAES,yCAAO,GAAjB;QACC,OAAO,yBAAyB,CAAC;IAClC,CAAC;IACF,8BAAC;AAAD,CAAC,AAjMD,CAKS,KAAK,GA4Lb","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { InteractionEvent, Point } from \"pixi.js\";\nimport { DBase, DThemeBase } from \"./d-base\";\nimport { DBaseState } from \"./d-base-state\";\nimport {\n\tDTableBodyCellInputTreeInput,\n\tDTableBodyCellInputTreeInputOptions\n} from \"./d-table-body-cell-input-tree-input\";\nimport { DTableBodyCellInputTreeMarker } from \"./d-table-body-cell-input-tree-marker\";\nimport { DTableBodyCells } from \"./d-table-body-cells\";\nimport { DTableState } from \"./d-table-state\";\nimport { DTableColumn } from \"./d-table-column\";\nimport { DTableBodyCell, DTableBodyCellOnChange } from \"./d-table-body-cell\";\nimport { DTableDataSupplimental } from \"./d-table-data\";\n\nexport interface DThemeTableBodyCellInputTree extends DThemeBase {\n\tgetLevelPadding(level: number): number;\n}\n\nconst toBaseOptions = (options?: DTableBodyCellInputTreeInputOptions) => {\n\tif (options != null) {\n\t\treturn {\n\t\t\tweight: options.weight,\n\t\t\twidth: options.width\n\t\t};\n\t}\n\treturn undefined;\n};\n\nexport class DTableBodyCellInputTree<\n\t\tROW = unknown,\n\t\tTHEME extends DThemeTableBodyCellInputTree = DThemeTableBodyCellInputTree,\n\t\tOPTIONS extends DTableBodyCellInputTreeInputOptions = DTableBodyCellInputTreeInputOptions\n\t>\n\textends DBase<THEME>\n\timplements DTableBodyCell<ROW, string>\n{\n\tprotected _row?: ROW;\n\tprotected _rowIndex: number;\n\tprotected _columnIndex: number;\n\tprotected _column: DTableColumn<ROW, string>;\n\tprotected _onChange: DTableBodyCellOnChange<ROW, string>;\n\n\tprotected _marker: DTableBodyCellInputTreeMarker;\n\tprotected _input: DTableBodyCellInputTreeInput;\n\n\tconstructor(\n\t\tcolumnIndex: number,\n\t\tcolumn: DTableColumn<ROW, string>,\n\t\tonChange: DTableBodyCellOnChange<ROW, string>,\n\t\toptions?: OPTIONS\n\t) {\n\t\tsuper(toBaseOptions(options));\n\n\t\tthis._rowIndex = -1;\n\t\tthis._columnIndex = columnIndex;\n\t\tthis._column = column;\n\t\tthis._onChange = onChange;\n\n\t\t// Input\n\t\tconst input = this.newInput(options);\n\t\tthis._input = input;\n\t\tthis.addChild(input);\n\n\t\t// Marker\n\t\tconst marker = this.newMarker(options);\n\t\tthis._marker = marker;\n\t\tthis.addChild(marker);\n\t}\n\n\tprotected newInput(options?: OPTIONS): DTableBodyCellInputTreeInput {\n\t\treturn new DTableBodyCellInputTreeInput(this.toInputOptions(options));\n\t}\n\n\tprotected toInputOptions(options?: OPTIONS): DTableBodyCellInputTreeInputOptions {\n\t\treturn {\n\t\t\tweight: 1,\n\t\t\ttext: options?.text,\n\t\t\tediting: options?.editing,\n\t\t\twhen: options?.when,\n\t\t\tcursor: options?.cursor,\n\t\t\ton: {\n\t\t\t\tchange: (newValue: string, oldValue: string): void => {\n\t\t\t\t\tthis.onInputChange(newValue, oldValue);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}\n\n\tprotected onInputChange(newValue: string, oldValue: string): void {\n\t\tconst row = this._row;\n\t\tif (row !== undefined) {\n\t\t\tconst rowIndex = this._rowIndex;\n\t\t\tconst columnIndex = this._columnIndex;\n\t\t\tconst column = this._column;\n\t\t\tcolumn.setter(row, columnIndex, newValue);\n\t\t\tthis.emit(\"change\", newValue, oldValue, this);\n\t\t\tthis._onChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);\n\t\t}\n\t}\n\n\tprotected newMarker(options?: OPTIONS): DTableBodyCellInputTreeMarker {\n\t\treturn new DTableBodyCellInputTreeMarker({\n\t\t\tvisible: false,\n\t\t\ton: {\n\t\t\t\tactive: (): void => {\n\t\t\t\t\tthis.onMarkerActive();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n\tprotected onMarkerActive(): void {\n\t\tif (this._marker.state.is(DTableState.HAS_CHILDREN)) {\n\t\t\tthis.toggle();\n\t\t}\n\t}\n\n\tget row(): ROW | undefined {\n\t\treturn this._row;\n\t}\n\n\tget rowIndex(): number {\n\t\treturn this._rowIndex;\n\t}\n\n\tget columnIndex(): number {\n\t\treturn this._columnIndex;\n\t}\n\n\tget column(): DTableColumn<ROW, string> {\n\t\treturn this._column;\n\t}\n\n\tprotected toggle(): void {\n\t\tconst row = this._row;\n\t\tif (row === undefined) {\n\t\t\treturn;\n\t\t}\n\t\tconst parent = this.parent;\n\t\tif (parent == null) {\n\t\t\treturn;\n\t\t}\n\t\tconst body = parent.parent;\n\t\tif (body == null) {\n\t\t\treturn;\n\t\t}\n\t\tconst data = (body as any).data;\n\t\tif (data && data.toggle) {\n\t\t\tif (data.isExpanded(row)) {\n\t\t\t\tif (data.collapse(row)) {\n\t\t\t\t\tthis.emit(\"collapse\", this);\n\t\t\t\t\tdata.emit(\"collapse\", row, this);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (data.expand(row)) {\n\t\t\t\t\tthis.emit(\"expand\", this);\n\t\t\t\t\tdata.emit(\"expand\", row, this);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tonRowSelect(e: InteractionEvent, local: Point): boolean {\n\t\tif (local.x <= this.position.x + this._input.padding.getLeft()) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\n\tset(\n\t\tvalue: unknown,\n\t\trow: ROW,\n\t\tsupplimental: DTableDataSupplimental | null,\n\t\trowIndex: number,\n\t\tcolumnIndex: number,\n\t\tforcibly?: boolean\n\t): void {\n\t\tthis._row = row;\n\t\tthis._rowIndex = rowIndex;\n\t\tconst input = this._input;\n\t\tinput.visible = true;\n\t\tinput.text = String(value);\n\n\t\tconst marker = this._marker;\n\t\tif (supplimental != null) {\n\t\t\tconst isOpened = !!(supplimental & 0x1);\n\t\t\tconst hasChildren = !!(supplimental & 0x2);\n\t\t\tconst level = supplimental >> 2;\n\t\t\tconst markerState = marker.state;\n\t\t\tmarkerState.lock();\n\t\t\tmarkerState.set(DTableState.HAS_CHILDREN, hasChildren);\n\t\t\tmarkerState.set(DBaseState.DISABLED, !hasChildren);\n\t\t\tmarkerState.set(DTableState.OPENED, isOpened);\n\t\t\tmarkerState.unlock();\n\t\t\tconst padding = this.theme.getLevelPadding(level);\n\t\t\tmarker.width = padding;\n\t\t\tif (hasChildren) {\n\t\t\t\tmarker.show();\n\t\t\t} else {\n\t\t\t\tmarker.hide();\n\t\t\t}\n\t\t\tinput.padding.adjLeft(padding);\n\t\t} else {\n\t\t\tmarker.state.removeAll(DTableState.OPENED, DTableState.HAS_CHILDREN);\n\t\t\tmarker.hide();\n\t\t\tinput.padding.adjLeft(0);\n\t\t}\n\n\t\tDTableBodyCells.set(this._input, row, columnIndex, this._column);\n\t}\n\n\tunset(): void {\n\t\tthis._row = undefined;\n\t\tthis._rowIndex = -1;\n\t\tthis._input.visible = false;\n\t\tthis._marker.hide();\n\t}\n\n\tprotected getType(): string {\n\t\treturn \"DTableBodyCellInputTree\";\n\t}\n}\n"]}