@wcardinal/wcardinal-ui 0.369.0 → 0.371.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.
@@ -35,6 +35,8 @@ export declare class DApplicationLayerOptions {
35
35
  private _pixi;
36
36
  private _padding;
37
37
  private _overlay;
38
+ private _isWidthFixed;
39
+ private _isHeightFixed;
38
40
  constructor(options: DApplicationLayerOptionsOptions);
39
41
  /**
40
42
  * Returns a root element.
@@ -60,6 +62,18 @@ export declare class DApplicationLayerOptions {
60
62
  * @param width new canvas width
61
63
  */
62
64
  setWidth(width: number): this;
65
+ /**
66
+ * Returns true if the width is fixed.
67
+ *
68
+ * @returns true if the width is fixed.
69
+ */
70
+ isWidthFixed(): boolean;
71
+ /**
72
+ * Makes the canvas width fixed.
73
+ *
74
+ * @param fixed true to make the canvas width fixed
75
+ */
76
+ setWidthFixed(fixed: boolean): this;
63
77
  /**
64
78
  * Returns a canvas height.
65
79
  */
@@ -70,6 +84,18 @@ export declare class DApplicationLayerOptions {
70
84
  * @param height new canvas height
71
85
  */
72
86
  setHeight(height: number): this;
87
+ /**
88
+ * Returns true if the height is fixed.
89
+ *
90
+ * @returns true if the height is fixed.
91
+ */
92
+ isHeightFixed(): boolean;
93
+ /**
94
+ * Makes the canvas height fixed.
95
+ *
96
+ * @param fixed true to make the canvas height fixed
97
+ */
98
+ setHeightFixed(fixed: boolean): this;
73
99
  /**
74
100
  * Returns padding sizes.
75
101
  * The default padding size is 6.
@@ -44,6 +44,8 @@ var DApplicationLayerOptions = /** @class */ (function () {
44
44
  width = bbox.width;
45
45
  height = bbox.height;
46
46
  }
47
+ this._isWidthFixed = options.width != null;
48
+ this._isHeightFixed = options.height != null;
47
49
  // Background color
48
50
  var background = options === null || options === void 0 ? void 0 : options.background;
49
51
  var backgroundColor = 0;
@@ -112,6 +114,23 @@ var DApplicationLayerOptions = /** @class */ (function () {
112
114
  this._pixi.width = width;
113
115
  return this;
114
116
  };
117
+ /**
118
+ * Returns true if the width is fixed.
119
+ *
120
+ * @returns true if the width is fixed.
121
+ */
122
+ DApplicationLayerOptions.prototype.isWidthFixed = function () {
123
+ return this._isWidthFixed;
124
+ };
125
+ /**
126
+ * Makes the canvas width fixed.
127
+ *
128
+ * @param fixed true to make the canvas width fixed
129
+ */
130
+ DApplicationLayerOptions.prototype.setWidthFixed = function (fixed) {
131
+ this._isWidthFixed = fixed;
132
+ return this;
133
+ };
115
134
  /**
116
135
  * Returns a canvas height.
117
136
  */
@@ -127,6 +146,23 @@ var DApplicationLayerOptions = /** @class */ (function () {
127
146
  this._pixi.height = height;
128
147
  return this;
129
148
  };
149
+ /**
150
+ * Returns true if the height is fixed.
151
+ *
152
+ * @returns true if the height is fixed.
153
+ */
154
+ DApplicationLayerOptions.prototype.isHeightFixed = function () {
155
+ return this._isHeightFixed;
156
+ };
157
+ /**
158
+ * Makes the canvas height fixed.
159
+ *
160
+ * @param fixed true to make the canvas height fixed
161
+ */
162
+ DApplicationLayerOptions.prototype.setHeightFixed = function (fixed) {
163
+ this._isHeightFixed = fixed;
164
+ return this;
165
+ };
130
166
  /**
131
167
  * Returns padding sizes.
132
168
  * The default padding size is 6.
@@ -1 +1 @@
1
- {"version":3,"file":"d-application-layer-options.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-application-layer-options.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAmC9D;;GAEG;AACH;IAMC,kCAAY,OAAwC;;QACnD,OAAO;QACP,IAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QAC1B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAElB,sBAAsB;QACtB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC;QAEhC,UAAU;QACV,IAAI,CAAC,QAAQ,GAAG,IAAI,mBAAmB,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OA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: Apache-2.0\n */\n\nimport { DApplicationPadding } from \"./d-application-padding\";\nimport { DPadding, DPaddingLike } from \"./d-padding\";\n\n/**\n * PixiJS options\n */\nexport interface PixiApplicationOptions {\n\twidth: number;\n\theight: number;\n\tautoStart: boolean;\n\tbackgroundColor: number;\n\ttransparent: boolean;\n\tresolution: number;\n\tantialias: boolean;\n}\n\nexport interface DApplicationLayerBackgroundOptions {\n\tcolor?: number | null;\n}\n\nexport interface DApplicationLayerOptionsOptions {\n\troot: HTMLElement;\n\tpadding?: number | DPaddingLike;\n\twidth?: number;\n\theight?: number;\n\tbackground?: DApplicationLayerBackgroundOptions;\n\tresolution: number;\n\tantialias?: boolean;\n\n\t/**\n\t * Sets to true if a layer is a overlay layer.\n\t */\n\toverlay: boolean;\n}\n\n/**\n * DApplicationLayer options\n */\nexport class DApplicationLayerOptions {\n\tprivate _root: HTMLElement;\n\tprivate _pixi: PixiApplicationOptions;\n\tprivate _padding: DPadding;\n\tprivate _overlay: boolean;\n\n\tconstructor(options: DApplicationLayerOptionsOptions) {\n\t\t// Root\n\t\tconst root = options.root;\n\t\tthis._root = root;\n\n\t\t// Overlay mode or not\n\t\tthis._overlay = options.overlay;\n\n\t\t// Padding\n\t\tthis._padding = new DApplicationPadding(options?.padding);\n\n\t\t// Width & height\n\t\tlet width = 100;\n\t\tlet height = 100;\n\t\tif (options) {\n\t\t\tif (options.width != null) {\n\t\t\t\twidth = options.width;\n\t\t\t\tif (options.height != null) {\n\t\t\t\t\theight = options.height;\n\t\t\t\t} else {\n\t\t\t\t\theight = root.getBoundingClientRect().height;\n\t\t\t\t}\n\t\t\t} else if (options.height != null) {\n\t\t\t\twidth = root.getBoundingClientRect().width;\n\t\t\t\theight = options.height;\n\t\t\t} else {\n\t\t\t\tconst bbox = root.getBoundingClientRect();\n\t\t\t\twidth = bbox.width;\n\t\t\t\theight = bbox.height;\n\t\t\t}\n\t\t} else {\n\t\t\tconst bbox = root.getBoundingClientRect();\n\t\t\twidth = bbox.width;\n\t\t\theight = bbox.height;\n\t\t}\n\n\t\t// Background color\n\t\tconst background = options?.background;\n\t\tlet backgroundColor = 0;\n\t\tlet transparent = true;\n\t\tif (background != null) {\n\t\t\tconst color = background.color;\n\t\t\tif (color != null) {\n\t\t\t\tbackgroundColor = color;\n\t\t\t\ttransparent = false;\n\t\t\t}\n\t\t}\n\n\t\t// Resolution\n\t\tconst resolution = options.resolution;\n\n\t\t// Antialias\n\t\tconst antialias = options?.antialias ?? false;\n\n\t\t// Pixi\n\t\tthis._pixi = {\n\t\t\twidth,\n\t\t\theight,\n\t\t\tautoStart: false,\n\t\t\tbackgroundColor,\n\t\t\ttransparent,\n\t\t\tresolution,\n\t\t\tantialias\n\t\t};\n\t}\n\n\t/**\n\t * Returns a root element.\n\t * `HTMLCanvasElement` and other DOM elements are created in this element.\n\t * The default root element is `document.body`.\n\t */\n\tgetRootElement(): HTMLElement {\n\t\treturn this._root;\n\t}\n\n\t/**\n\t * Sets a root element and updates the canvas width and height\n\t * if `updateWidthAndHeight` is not false.\n\t *\n\t * @param root new root element\n\t * @param updateWidthAndHeight false to preserve the canvas width / height\n\t */\n\tsetRootElement(root: HTMLElement, updateWidthAndHeight?: boolean): this {\n\t\tif (this._root !== root) {\n\t\t\tthis._root = root;\n\t\t\tif (updateWidthAndHeight !== false) {\n\t\t\t\tconst bbox = root.getBoundingClientRect();\n\t\t\t\tconst pixi = this._pixi;\n\t\t\t\tpixi.width = bbox.width;\n\t\t\t\tpixi.height = bbox.height;\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t}\n\n\t/**\n\t * Returns a canvas width.\n\t */\n\tgetWidth(): number {\n\t\treturn this._pixi.width;\n\t}\n\n\t/**\n\t * Sets a canvas width.\n\t *\n\t * @param width new canvas width\n\t */\n\tsetWidth(width: number): this {\n\t\tthis._pixi.width = width;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Returns a canvas height.\n\t */\n\tgetHeight(): number {\n\t\treturn this._pixi.height;\n\t}\n\n\t/**\n\t * Sets a canvas height.\n\t *\n\t * @param height new canvas height\n\t */\n\tsetHeight(height: number): this {\n\t\tthis._pixi.height = height;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Returns padding sizes.\n\t * The default padding size is 6.\n\t */\n\tgetPadding(): DPadding {\n\t\treturn this._padding;\n\t}\n\n\t/**\n\t * Sets padding sizes.\n\t *\n\t * @param left new left padding\n\t * @param top new top padding\n\t * @param right new right padding\n\t * @param bottom new bottom padding\n\t */\n\tsetPadding(left: number, top: number, right: number, bottom: number): this {\n\t\tconst padding = this._padding;\n\t\tpadding.left = left;\n\t\tpadding.top = top;\n\t\tpadding.right = right;\n\t\tpadding.bottom = bottom;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Returns a background color.\n\t */\n\tgetBackgroundColor(): number {\n\t\treturn this._pixi.backgroundColor;\n\t}\n\n\t/**\n\t * Sets a background color.\n\t *\n\t * @param color new background color\n\t */\n\tsetBackgroundColor(color: number): this {\n\t\tthis._pixi.backgroundColor = color;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Returns an antialias setting.\n\t * The default antialias setting is false.\n\t */\n\tgetAntialias(): boolean {\n\t\treturn this._pixi.antialias;\n\t}\n\n\t/**\n\t * Sets an antialias setting.\n\t *\n\t * @param antialias new antialias setting\n\t */\n\tsetAntialias(antialias: boolean): this {\n\t\tthis._pixi.antialias = antialias;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Returns true if a layer is supposed to be an overlay layer.\n\t */\n\tisOverlay(): boolean {\n\t\treturn this._overlay;\n\t}\n\n\tgetPixiApplicationOptions(): PixiApplicationOptions {\n\t\treturn this._pixi;\n\t}\n}\n"]}
1
+ {"version":3,"file":"d-application-layer-options.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-application-layer-options.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAmC9D;;GAEG;AACH;IAQC,kCAAY,OAAwC;;QAC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AClB,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC;QACtB,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC;QACxB,OAAO,IAAI,CAAC;IACb,CAAC;IAED;;OAEG;IACH,qDAAkB,GAAlB;QACC,OAAO,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC;IACnC,CAAC;IAED;;;;OAIG;IACH,qDAAkB,GAAlB,UAAmB,KAAa;QAC/B,IAAI,CAAC,KAAK,CAAC,eAAe,GAAG,KAAK,CAAC;QACnC,OAAO,IAAI,CAAC;IACb,CAAC;IAED;;;OAGG;IACH,+CAAY,GAAZ;QACC,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC;IAC7B,CAAC;IAED;;;;OAIG;IACH,+CAAY,GAAZ,UAAa,SAAkB;QAC9B,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;QACjC,OAAO,IAAI,CAAC;IACb,CAAC;IAED;;OAEG;IACH,4CAAS,GAAT;QACC,OAAO,IAAI,CAAC,QAAQ,CAAC;IACtB,CAAC;IAED,4DAAyB,GAAzB;QACC,OAAO,IAAI,CAAC,KAAK,CAAC;IACnB,CAAC;IACF,+BAAC;AAAD,CAAC,AAvPD,IAuPC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DApplicationPadding } from \"./d-application-padding\";\nimport { DPadding, DPaddingLike } from \"./d-padding\";\n\n/**\n * PixiJS options\n */\nexport interface PixiApplicationOptions {\n\twidth: number;\n\theight: number;\n\tautoStart: boolean;\n\tbackgroundColor: number;\n\ttransparent: boolean;\n\tresolution: number;\n\tantialias: boolean;\n}\n\nexport interface DApplicationLayerBackgroundOptions {\n\tcolor?: number | null;\n}\n\nexport interface DApplicationLayerOptionsOptions {\n\troot: HTMLElement;\n\tpadding?: number | DPaddingLike;\n\twidth?: number;\n\theight?: number;\n\tbackground?: DApplicationLayerBackgroundOptions;\n\tresolution: number;\n\tantialias?: boolean;\n\n\t/**\n\t * Sets to true if a layer is a overlay layer.\n\t */\n\toverlay: boolean;\n}\n\n/**\n * DApplicationLayer options\n */\nexport class DApplicationLayerOptions {\n\tprivate _root: HTMLElement;\n\tprivate _pixi: PixiApplicationOptions;\n\tprivate _padding: DPadding;\n\tprivate _overlay: boolean;\n\tprivate _isWidthFixed: boolean;\n\tprivate _isHeightFixed: boolean;\n\n\tconstructor(options: DApplicationLayerOptionsOptions) {\n\t\t// Root\n\t\tconst root = options.root;\n\t\tthis._root = root;\n\n\t\t// Overlay mode or not\n\t\tthis._overlay = options.overlay;\n\n\t\t// Padding\n\t\tthis._padding = new DApplicationPadding(options?.padding);\n\n\t\t// Width & height\n\t\tlet width = 100;\n\t\tlet height = 100;\n\t\tif (options) {\n\t\t\tif (options.width != null) {\n\t\t\t\twidth = options.width;\n\t\t\t\tif (options.height != null) {\n\t\t\t\t\theight = options.height;\n\t\t\t\t} else {\n\t\t\t\t\theight = root.getBoundingClientRect().height;\n\t\t\t\t}\n\t\t\t} else if (options.height != null) {\n\t\t\t\twidth = root.getBoundingClientRect().width;\n\t\t\t\theight = options.height;\n\t\t\t} else {\n\t\t\t\tconst bbox = root.getBoundingClientRect();\n\t\t\t\twidth = bbox.width;\n\t\t\t\theight = bbox.height;\n\t\t\t}\n\t\t} else {\n\t\t\tconst bbox = root.getBoundingClientRect();\n\t\t\twidth = bbox.width;\n\t\t\theight = bbox.height;\n\t\t}\n\t\tthis._isWidthFixed = options.width != null;\n\t\tthis._isHeightFixed = options.height != null;\n\n\t\t// Background color\n\t\tconst background = options?.background;\n\t\tlet backgroundColor = 0;\n\t\tlet transparent = true;\n\t\tif (background != null) {\n\t\t\tconst color = background.color;\n\t\t\tif (color != null) {\n\t\t\t\tbackgroundColor = color;\n\t\t\t\ttransparent = false;\n\t\t\t}\n\t\t}\n\n\t\t// Resolution\n\t\tconst resolution = options.resolution;\n\n\t\t// Antialias\n\t\tconst antialias = options?.antialias ?? false;\n\n\t\t// Pixi\n\t\tthis._pixi = {\n\t\t\twidth,\n\t\t\theight,\n\t\t\tautoStart: false,\n\t\t\tbackgroundColor,\n\t\t\ttransparent,\n\t\t\tresolution,\n\t\t\tantialias\n\t\t};\n\t}\n\n\t/**\n\t * Returns a root element.\n\t * `HTMLCanvasElement` and other DOM elements are created in this element.\n\t * The default root element is `document.body`.\n\t */\n\tgetRootElement(): HTMLElement {\n\t\treturn this._root;\n\t}\n\n\t/**\n\t * Sets a root element and updates the canvas width and height\n\t * if `updateWidthAndHeight` is not false.\n\t *\n\t * @param root new root element\n\t * @param updateWidthAndHeight false to preserve the canvas width / height\n\t */\n\tsetRootElement(root: HTMLElement, updateWidthAndHeight?: boolean): this {\n\t\tif (this._root !== root) {\n\t\t\tthis._root = root;\n\t\t\tif (updateWidthAndHeight !== false) {\n\t\t\t\tconst bbox = root.getBoundingClientRect();\n\t\t\t\tconst pixi = this._pixi;\n\t\t\t\tpixi.width = bbox.width;\n\t\t\t\tpixi.height = bbox.height;\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t}\n\n\t/**\n\t * Returns a canvas width.\n\t */\n\tgetWidth(): number {\n\t\treturn this._pixi.width;\n\t}\n\n\t/**\n\t * Sets a canvas width.\n\t *\n\t * @param width new canvas width\n\t */\n\tsetWidth(width: number): this {\n\t\tthis._pixi.width = width;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Returns true if the width is fixed.\n\t *\n\t * @returns true if the width is fixed.\n\t */\n\tisWidthFixed(): boolean {\n\t\treturn this._isWidthFixed;\n\t}\n\n\t/**\n\t * Makes the canvas width fixed.\n\t *\n\t * @param fixed true to make the canvas width fixed\n\t */\n\tsetWidthFixed(fixed: boolean): this {\n\t\tthis._isWidthFixed = fixed;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Returns a canvas height.\n\t */\n\tgetHeight(): number {\n\t\treturn this._pixi.height;\n\t}\n\n\t/**\n\t * Sets a canvas height.\n\t *\n\t * @param height new canvas height\n\t */\n\tsetHeight(height: number): this {\n\t\tthis._pixi.height = height;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Returns true if the height is fixed.\n\t *\n\t * @returns true if the height is fixed.\n\t */\n\tisHeightFixed(): boolean {\n\t\treturn this._isHeightFixed;\n\t}\n\n\t/**\n\t * Makes the canvas height fixed.\n\t *\n\t * @param fixed true to make the canvas height fixed\n\t */\n\tsetHeightFixed(fixed: boolean): this {\n\t\tthis._isHeightFixed = fixed;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Returns padding sizes.\n\t * The default padding size is 6.\n\t */\n\tgetPadding(): DPadding {\n\t\treturn this._padding;\n\t}\n\n\t/**\n\t * Sets padding sizes.\n\t *\n\t * @param left new left padding\n\t * @param top new top padding\n\t * @param right new right padding\n\t * @param bottom new bottom padding\n\t */\n\tsetPadding(left: number, top: number, right: number, bottom: number): this {\n\t\tconst padding = this._padding;\n\t\tpadding.left = left;\n\t\tpadding.top = top;\n\t\tpadding.right = right;\n\t\tpadding.bottom = bottom;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Returns a background color.\n\t */\n\tgetBackgroundColor(): number {\n\t\treturn this._pixi.backgroundColor;\n\t}\n\n\t/**\n\t * Sets a background color.\n\t *\n\t * @param color new background color\n\t */\n\tsetBackgroundColor(color: number): this {\n\t\tthis._pixi.backgroundColor = color;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Returns an antialias setting.\n\t * The default antialias setting is false.\n\t */\n\tgetAntialias(): boolean {\n\t\treturn this._pixi.antialias;\n\t}\n\n\t/**\n\t * Sets an antialias setting.\n\t *\n\t * @param antialias new antialias setting\n\t */\n\tsetAntialias(antialias: boolean): this {\n\t\tthis._pixi.antialias = antialias;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Returns true if a layer is supposed to be an overlay layer.\n\t */\n\tisOverlay(): boolean {\n\t\treturn this._overlay;\n\t}\n\n\tgetPixiApplicationOptions(): PixiApplicationOptions {\n\t\treturn this._pixi;\n\t}\n}\n"]}
@@ -126,23 +126,34 @@ var DApplicationLayer = /** @class */ (function (_super) {
126
126
  };
127
127
  DApplicationLayer.prototype.initResizeHandling = function () {
128
128
  var _this = this;
129
- var onResizeBound = function () {
130
- _this.onResize();
131
- };
132
- window.addEventListener("resize", onResizeBound);
133
- window.addEventListener("orientationchange", onResizeBound);
129
+ var options = this._options;
130
+ var isWidthFixed = options.isWidthFixed();
131
+ var isHeightFixed = options.isHeightFixed();
132
+ if (!isWidthFixed || !isHeightFixed) {
133
+ var onResizeBound = function () {
134
+ _this.onResize();
135
+ };
136
+ if (window.ResizeObserver != null) {
137
+ new ResizeObserver(onResizeBound).observe(this._rootElement);
138
+ }
139
+ else {
140
+ window.addEventListener("resize", onResizeBound);
141
+ window.addEventListener("orientationchange", onResizeBound);
142
+ }
143
+ }
134
144
  };
135
145
  DApplicationLayer.prototype.onResize = function () {
146
+ var options = this._options;
136
147
  var bbox = this._rootElement.getBoundingClientRect();
137
- var bboxWidth = bbox.width;
138
- var bboxHeight = bbox.height;
139
- this.renderer.resize(bboxWidth, bboxHeight);
148
+ var newWidth = options.isWidthFixed() ? options.getWidth() : bbox.width;
149
+ var newHeight = options.isHeightFixed() ? options.getHeight() : bbox.height;
150
+ this.renderer.resize(newWidth, newHeight);
140
151
  var padding = this._padding;
141
152
  var children = this.stage.children;
142
153
  for (var i = 0, imax = children.length; i < imax; ++i) {
143
154
  var child = children[i];
144
155
  if (child instanceof DBase) {
145
- child.onParentResize(bboxWidth, bboxHeight, padding);
156
+ child.onParentResize(newWidth, newHeight, padding);
146
157
  }
147
158
  }
148
159
  this.update();
@@ -1 +1 @@
1
- {"version":3,"file":"d-application-layer.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-application-layer.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,WAAW,EAAe,KAAK,EAAE,MAAM,SAAS,CAAC;AAI1D,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,i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ation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Application, interaction, Point } from \"pixi.js\";\nimport { DApplicationLayerLike } from \"./d-application-layer-like\";\nimport { DApplicationLayerOptions } from \"./d-application-layer-options\";\nimport { DApplicationLike } from \"./d-application-like\";\nimport { DBase } from \"./d-base\";\nimport { DControllerFocus, DFocusable, DFocusableContainer } from \"./d-controller-focus\";\nimport { DControllers } from \"./d-controllers\";\nimport { DPadding } from \"./d-padding\";\nimport { DynamicFontAtlases } from \"./util/dynamic-font-atlases\";\nimport { UtilPointerEvent } from \"./util/util-pointer-event\";\nimport { UtilWheelEvent, UtilWheelEventDeltas } from \"./util/util-wheel-event\";\n\ninterface DblClickable {\n\tonDblClick(\n\t\te: MouseEvent | TouchEvent,\n\t\tinteractionManager: interaction.InteractionManager\n\t): boolean;\n}\n\nconst isDblClickable = (target: any): target is DblClickable => {\n\treturn target != null && target.onDblClick != null;\n};\n\ninterface Wheelable {\n\tonWheel(e: WheelEvent, deltas: UtilWheelEventDeltas, global: Point): boolean;\n}\n\nconst isWheelable = (target: any): target is Wheelable => {\n\treturn target != null && target.onWheel != null;\n};\n\nexport class DApplicationLayer extends Application implements DApplicationLayerLike {\n\tprotected _options: DApplicationLayerOptions;\n\tprotected _renderId: number | null = null;\n\tprotected _renderBound: () => void;\n\tprotected _isLocked: boolean;\n\tprotected _isOverlay: boolean;\n\tprotected _reflowLimit: number;\n\tprotected _rootElement: HTMLElement;\n\tprotected _elementContainer: HTMLElement;\n\tprotected _padding: DPadding;\n\tprotected _dynamicFontAtlases: DynamicFontAtlases | null = null;\n\tprotected _isVisible: boolean;\n\n\treadonly application: DApplicationLike;\n\n\tconstructor(application: DApplicationLike, options: DApplicationLayerOptions) {\n\t\tsuper(options.getPixiApplicationOptions());\n\n\t\tthis._options = options;\n\t\tthis._isLocked = false;\n\t\tthis._isVisible = true;\n\t\tthis._isOverlay = options.isOverlay();\n\t\tthis._padding = options.getPadding();\n\t\tthis._rootElement = options.getRootElement();\n\t\tthis._reflowLimit = 5;\n\t\tthis._elementContainer = this.newElementContainer();\n\n\t\tthis.application = application;\n\n\t\tthis._renderBound = (): void => {\n\t\t\tif (this._renderId != null) {\n\t\t\t\tthis.render();\n\t\t\t}\n\t\t};\n\n\t\tthis.initStage();\n\t\tthis.initView();\n\t\tthis.initRootElement();\n\t\tthis.initFocusHandling();\n\t\tthis.initResizeHandling();\n\t\tthis.initWheelHandling();\n\t\tthis.initDoubleClickHandling();\n\t}\n\n\tprotected newElementContainer(): HTMLElement {\n\t\tconst result = document.createElement(\"div\");\n\t\tresult.setAttribute(\n\t\t\t\"style\",\n\t\t\t\"position: absolute; top: 0; left: 0; width: 0; height: 0;\" +\n\t\t\t\t\"margin: 0; padding: 0; outline: none;\"\n\t\t);\n\t\treturn result;\n\t}\n\n\tprotected initStage(): void {\n\t\tconst stage = this.stage;\n\t\t(stage as any).layer = this;\n\t\t(stage as any).application = this.application;\n\t\tstage.interactive = true;\n\t}\n\n\tprotected initView(): void {\n\t\tconst view = this.view;\n\t\tconst style = view.style;\n\t\tstyle.position = \"absolute\";\n\t\tstyle.top = \"0\";\n\t\tstyle.left = \"0\";\n\t\tstyle.width = \"100%\";\n\t\tstyle.height = \"100%\";\n\t\tstyle.display = \"block\";\n\t\tstyle.outline = \"none\";\n\t\t(style as any).webkitTapHighlightColor = \"rgba(255,255,255,0)\";\n\t\tstyle.webkitUserSelect = \"none\";\n\t\tstyle.setProperty(\"-khtml-user-select\", \"none\");\n\t\tstyle.setProperty(\"-moz-user-select\", \"none\");\n\t\tstyle.setProperty(\"-ms-user-select\", \"none\");\n\t\tstyle.userSelect = \"none\";\n\t}\n\n\tprotected initRootElement(): void {\n\t\tconst view = this.view;\n\t\tconst isOverlay = this._isOverlay;\n\t\tconst rootElement = this._rootElement;\n\t\tconst elementContainer = this._elementContainer;\n\n\t\t// Insert elements\n\t\tconst insertionPosition = isOverlay ? 2 : 0;\n\t\tconst children = rootElement.children;\n\t\tif (insertionPosition < children.length) {\n\t\t\tconst child = children[insertionPosition];\n\t\t\trootElement.insertBefore(view, child);\n\t\t\trootElement.insertBefore(elementContainer, child);\n\t\t} else {\n\t\t\trootElement.appendChild(view);\n\t\t\trootElement.appendChild(elementContainer);\n\t\t}\n\n\t\tif (isOverlay) {\n\t\t\tconst stage = this.stage;\n\t\t\tconst oldOnChildrenChange = (stage as any).onChildrenChange;\n\t\t\t(stage as any).onChildrenChange = (): void => {\n\t\t\t\tthis.onStageDirty();\n\t\t\t\toldOnChildrenChange.call(stage);\n\t\t\t};\n\t\t}\n\n\t\t// Init styles\n\t\tconst rootElementStyle = rootElement.style;\n\t\tif (rootElement !== document.body) {\n\t\t\tconst rootElementStylePosition = window.getComputedStyle(rootElement).position;\n\t\t\tif (rootElementStylePosition === \"static\") {\n\t\t\t\trootElementStyle.position = \"relative\";\n\t\t\t}\n\t\t}\n\t\trootElementStyle.margin = \"0\";\n\t\trootElementStyle.padding = \"0\";\n\t\trootElementStyle.overflow = \"hidden\";\n\t}\n\n\tprotected initFocusHandling(): void {\n\t\tconst view = this.view;\n\t\tconst stage = this.stage;\n\t\tconst focusController = this.getFocusController();\n\n\t\tview.setAttribute(\"tabindex\", \"0\");\n\n\t\tDControllers.getKeyboardController().init(view, stage, focusController);\n\n\t\tconst interactionManager = this.renderer.plugins.interaction;\n\t\tinteractionManager.on(UtilPointerEvent.down, (e: interaction.InteractionEvent): void => {\n\t\t\tif (e.target == null || e.target === stage) {\n\t\t\t\tfocusController.clear();\n\t\t\t}\n\t\t});\n\t}\n\n\tprotected initResizeHandling(): void {\n\t\tconst onResizeBound = (): void => {\n\t\t\tthis.onResize();\n\t\t};\n\t\twindow.addEventListener(\"resize\", onResizeBound);\n\t\twindow.addEventListener(\"orientationchange\", onResizeBound);\n\t}\n\n\tprotected onResize(): void {\n\t\tconst bbox = this._rootElement.getBoundingClientRect();\n\t\tconst bboxWidth = bbox.width;\n\t\tconst bboxHeight = bbox.height;\n\t\tthis.renderer.resize(bboxWidth, bboxHeight);\n\n\t\tconst padding = this._padding;\n\t\tconst children = this.stage.children;\n\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\tconst child = children[i];\n\t\t\tif (child instanceof DBase) {\n\t\t\t\tchild.onParentResize(bboxWidth, bboxHeight, padding);\n\t\t\t}\n\t\t}\n\n\t\tthis.update();\n\t}\n\n\tprotected initWheelHandling(): void {\n\t\tconst global = new Point();\n\t\tconst util = UtilWheelEvent.getInstance();\n\t\tconst interactionManager = this.renderer.plugins.interaction;\n\t\tutil.on(this.view, (e: WheelEvent | Event): void => {\n\t\t\tconst wheelEvent = e as WheelEvent;\n\t\t\tUtilPointerEvent.toGlobal(wheelEvent, interactionManager, global);\n\t\t\tlet current = interactionManager.hitTest(global);\n\t\t\tconst deltas = util.normalize(e);\n\t\t\tif (deltas != null) {\n\t\t\t\twhile (current != null) {\n\t\t\t\t\tif (isWheelable(current)) {\n\t\t\t\t\t\tif (current.onWheel(wheelEvent, deltas, global)) {\n\t\t\t\t\t\t\twheelEvent.preventDefault();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcurrent = current.parent;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n\tprotected initDoubleClickHandling(): void {\n\t\tconst focusController = this.getFocusController();\n\t\tconst interactionManager = this.renderer.plugins.interaction;\n\t\tUtilPointerEvent.onDblClick(this.view, (e: MouseEvent | TouchEvent): void => {\n\t\t\tconst focused = focusController.get();\n\t\t\tif (focused != null) {\n\t\t\t\tlet current: DFocusable | DFocusableContainer | null = focused;\n\t\t\t\twhile (current != null) {\n\t\t\t\t\tif (isDblClickable(current)) {\n\t\t\t\t\t\tif (current.onDblClick(e, interactionManager)) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcurrent = current.parent;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n\tlock(): void {\n\t\tthis._isLocked = true;\n\t}\n\n\tunlock(): void {\n\t\tthis._isLocked = false;\n\t}\n\n\tupdate(): void {\n\t\tif (!this._isLocked && this._renderId == null) {\n\t\t\tthis._renderId = requestAnimationFrame(this._renderBound);\n\t\t}\n\t}\n\n\tprotected onStageDirty(): void {\n\t\t// Update the visibility if this is a overlay layer.\n\t\tif (this._isOverlay) {\n\t\t\tif (0 < this.stage.children.length) {\n\t\t\t\t// There are more than one children,\n\t\t\t\t// therefore must be visible.\n\t\t\t\tif (!this._isVisible) {\n\t\t\t\t\tthis._isVisible = true;\n\t\t\t\t\tthis.view.style.display = \"block\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// There is no child,\n\t\t\t\t// therefore must not be visible.\n\t\t\t\tif (this._isVisible) {\n\t\t\t\t\tthis._isVisible = false;\n\t\t\t\t\tthis.view.style.display = \"none\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\trender(): void {\n\t\tthis.reflow();\n\n\t\t// Please note why the following line is here.\n\t\t//\n\t\t// Before this line, the update method does not enque a rendering task\n\t\t// because `this._renderId` is not null. As a result, this prevents\n\t\t// an unintentional rendering loop caused by the refit or the reflow.\n\t\t//\n\t\t// After this line, the update method enques a rendering task.\n\t\t// Namely, in the DisplayObject#render(Renderer) method, allowed to enque\n\t\t// a rendering task. For instance, please refer to the DDiagramShape#update().\n\t\tthis._renderId = null;\n\n\t\t// Render\n\t\tsuper.render();\n\t}\n\n\tget width(): number {\n\t\treturn this.screen.width;\n\t}\n\n\tget height(): number {\n\t\treturn this.screen.height;\n\t}\n\n\tget padding(): DPadding {\n\t\treturn this._padding;\n\t}\n\n\treflow(): void {\n\t\tconst children = this.stage.children;\n\t\tfor (let ilimit = 0, limit = this._reflowLimit; ilimit < limit; ++ilimit) {\n\t\t\tlet isDirty = false;\n\t\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\t\tconst child = children[i];\n\t\t\t\tif (child instanceof DBase) {\n\t\t\t\t\tchild.reflow();\n\t\t\t\t\tisDirty =\n\t\t\t\t\t\tisDirty || child.isDirty() || child.hasDirty() || child.isHierarchyDirty();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If DBases are changed during the `reflow` process, need to reflow again.\n\t\t\tif (!isDirty) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tgetFocusController(): DControllerFocus {\n\t\treturn this.application.getFocusController();\n\t}\n\n\tgetRootElement(): HTMLElement {\n\t\treturn this._rootElement;\n\t}\n\n\tgetElementContainer(): HTMLElement {\n\t\treturn this._elementContainer;\n\t}\n\n\tgetDynamicFontAtlases(): DynamicFontAtlases {\n\t\tif (this._dynamicFontAtlases == null) {\n\t\t\tthis._dynamicFontAtlases = new DynamicFontAtlases(this);\n\t\t}\n\t\treturn this._dynamicFontAtlases;\n\t}\n}\n"]}
1
+ {"version":3,"file":"d-application-layer.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-application-layer.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,WAAW,EAAe,KAAK,EAAE,MAAM,SAAS,CAAC;AAI1D,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAwB,MAAM,yBAAyB,CAAC;AAS/E,IAAM,cAAc,GAAG,UAAC,MAAW;IAClC,OAAO,MAAM,IAAI,IAAI,IAAI,MAAM,CAAC,UAAU,IAAI,IAAI,CAAC;AACpD,CAAC,CAAC;AAMF,IAAM,WAAW,GAAG,UAAC,MAAW;IAC/B,OAAO,MAAM,IAAI,IAAI,IAAI,MAAM,CAAC,OAAO,IAAI,IAAI,CAAC;AACjD,CAAC,CAAC;AAEF;IAAuC,qCAAW;IAejD,2BAAY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AO,IAAI,CAAC,mBAAmB,CAAC;IACjC,CAAC;IACF,wBAAC;AAAD,CAAC,AA7TD,CAAuC,WAAW,GA6TjD","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Application, interaction, Point } from \"pixi.js\";\nimport { DApplicationLayerLike } from \"./d-application-layer-like\";\nimport { DApplicationLayerOptions } from \"./d-application-layer-options\";\nimport { DApplicationLike } from \"./d-application-like\";\nimport { DBase } from \"./d-base\";\nimport { DControllerFocus, DFocusable, DFocusableContainer } from \"./d-controller-focus\";\nimport { DControllers } from \"./d-controllers\";\nimport { DPadding } from \"./d-padding\";\nimport { DynamicFontAtlases } from \"./util/dynamic-font-atlases\";\nimport { UtilPointerEvent } from \"./util/util-pointer-event\";\nimport { UtilWheelEvent, UtilWheelEventDeltas } from \"./util/util-wheel-event\";\n\ninterface DblClickable {\n\tonDblClick(\n\t\te: MouseEvent | TouchEvent,\n\t\tinteractionManager: interaction.InteractionManager\n\t): boolean;\n}\n\nconst isDblClickable = (target: any): target is DblClickable => {\n\treturn target != null && target.onDblClick != null;\n};\n\ninterface Wheelable {\n\tonWheel(e: WheelEvent, deltas: UtilWheelEventDeltas, global: Point): boolean;\n}\n\nconst isWheelable = (target: any): target is Wheelable => {\n\treturn target != null && target.onWheel != null;\n};\n\nexport class DApplicationLayer extends Application implements DApplicationLayerLike {\n\tprotected _options: DApplicationLayerOptions;\n\tprotected _renderId: number | null = null;\n\tprotected _renderBound: () => void;\n\tprotected _isLocked: boolean;\n\tprotected _isOverlay: boolean;\n\tprotected _reflowLimit: number;\n\tprotected _rootElement: HTMLElement;\n\tprotected _elementContainer: HTMLElement;\n\tprotected _padding: DPadding;\n\tprotected _dynamicFontAtlases: DynamicFontAtlases | null = null;\n\tprotected _isVisible: boolean;\n\n\treadonly application: DApplicationLike;\n\n\tconstructor(application: DApplicationLike, options: DApplicationLayerOptions) {\n\t\tsuper(options.getPixiApplicationOptions());\n\n\t\tthis._options = options;\n\t\tthis._isLocked = false;\n\t\tthis._isVisible = true;\n\t\tthis._isOverlay = options.isOverlay();\n\t\tthis._padding = options.getPadding();\n\t\tthis._rootElement = options.getRootElement();\n\t\tthis._reflowLimit = 5;\n\t\tthis._elementContainer = this.newElementContainer();\n\n\t\tthis.application = application;\n\n\t\tthis._renderBound = (): void => {\n\t\t\tif (this._renderId != null) {\n\t\t\t\tthis.render();\n\t\t\t}\n\t\t};\n\n\t\tthis.initStage();\n\t\tthis.initView();\n\t\tthis.initRootElement();\n\t\tthis.initFocusHandling();\n\t\tthis.initResizeHandling();\n\t\tthis.initWheelHandling();\n\t\tthis.initDoubleClickHandling();\n\t}\n\n\tprotected newElementContainer(): HTMLElement {\n\t\tconst result = document.createElement(\"div\");\n\t\tresult.setAttribute(\n\t\t\t\"style\",\n\t\t\t\"position: absolute; top: 0; left: 0; width: 0; height: 0;\" +\n\t\t\t\t\"margin: 0; padding: 0; outline: none;\"\n\t\t);\n\t\treturn result;\n\t}\n\n\tprotected initStage(): void {\n\t\tconst stage = this.stage;\n\t\t(stage as any).layer = this;\n\t\t(stage as any).application = this.application;\n\t\tstage.interactive = true;\n\t}\n\n\tprotected initView(): void {\n\t\tconst view = this.view;\n\t\tconst style = view.style;\n\t\tstyle.position = \"absolute\";\n\t\tstyle.top = \"0\";\n\t\tstyle.left = \"0\";\n\t\tstyle.width = \"100%\";\n\t\tstyle.height = \"100%\";\n\t\tstyle.display = \"block\";\n\t\tstyle.outline = \"none\";\n\t\t(style as any).webkitTapHighlightColor = \"rgba(255,255,255,0)\";\n\t\tstyle.webkitUserSelect = \"none\";\n\t\tstyle.setProperty(\"-khtml-user-select\", \"none\");\n\t\tstyle.setProperty(\"-moz-user-select\", \"none\");\n\t\tstyle.setProperty(\"-ms-user-select\", \"none\");\n\t\tstyle.userSelect = \"none\";\n\t}\n\n\tprotected initRootElement(): void {\n\t\tconst view = this.view;\n\t\tconst isOverlay = this._isOverlay;\n\t\tconst rootElement = this._rootElement;\n\t\tconst elementContainer = this._elementContainer;\n\n\t\t// Insert elements\n\t\tconst insertionPosition = isOverlay ? 2 : 0;\n\t\tconst children = rootElement.children;\n\t\tif (insertionPosition < children.length) {\n\t\t\tconst child = children[insertionPosition];\n\t\t\trootElement.insertBefore(view, child);\n\t\t\trootElement.insertBefore(elementContainer, child);\n\t\t} else {\n\t\t\trootElement.appendChild(view);\n\t\t\trootElement.appendChild(elementContainer);\n\t\t}\n\n\t\tif (isOverlay) {\n\t\t\tconst stage = this.stage;\n\t\t\tconst oldOnChildrenChange = (stage as any).onChildrenChange;\n\t\t\t(stage as any).onChildrenChange = (): void => {\n\t\t\t\tthis.onStageDirty();\n\t\t\t\toldOnChildrenChange.call(stage);\n\t\t\t};\n\t\t}\n\n\t\t// Init styles\n\t\tconst rootElementStyle = rootElement.style;\n\t\tif (rootElement !== document.body) {\n\t\t\tconst rootElementStylePosition = window.getComputedStyle(rootElement).position;\n\t\t\tif (rootElementStylePosition === \"static\") {\n\t\t\t\trootElementStyle.position = \"relative\";\n\t\t\t}\n\t\t}\n\t\trootElementStyle.margin = \"0\";\n\t\trootElementStyle.padding = \"0\";\n\t\trootElementStyle.overflow = \"hidden\";\n\t}\n\n\tprotected initFocusHandling(): void {\n\t\tconst view = this.view;\n\t\tconst stage = this.stage;\n\t\tconst focusController = this.getFocusController();\n\n\t\tview.setAttribute(\"tabindex\", \"0\");\n\n\t\tDControllers.getKeyboardController().init(view, stage, focusController);\n\n\t\tconst interactionManager = this.renderer.plugins.interaction;\n\t\tinteractionManager.on(UtilPointerEvent.down, (e: interaction.InteractionEvent): void => {\n\t\t\tif (e.target == null || e.target === stage) {\n\t\t\t\tfocusController.clear();\n\t\t\t}\n\t\t});\n\t}\n\n\tprotected initResizeHandling(): void {\n\t\tconst options = this._options;\n\t\tconst isWidthFixed = options.isWidthFixed();\n\t\tconst isHeightFixed = options.isHeightFixed();\n\t\tif (!isWidthFixed || !isHeightFixed) {\n\t\t\tconst onResizeBound = (): void => {\n\t\t\t\tthis.onResize();\n\t\t\t};\n\t\t\tif (window.ResizeObserver != null) {\n\t\t\t\tnew ResizeObserver(onResizeBound).observe(this._rootElement);\n\t\t\t} else {\n\t\t\t\twindow.addEventListener(\"resize\", onResizeBound);\n\t\t\t\twindow.addEventListener(\"orientationchange\", onResizeBound);\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected onResize(): void {\n\t\tconst options = this._options;\n\t\tconst bbox = this._rootElement.getBoundingClientRect();\n\t\tconst newWidth = options.isWidthFixed() ? options.getWidth() : bbox.width;\n\t\tconst newHeight = options.isHeightFixed() ? options.getHeight() : bbox.height;\n\t\tthis.renderer.resize(newWidth, newHeight);\n\n\t\tconst padding = this._padding;\n\t\tconst children = this.stage.children;\n\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\tconst child = children[i];\n\t\t\tif (child instanceof DBase) {\n\t\t\t\tchild.onParentResize(newWidth, newHeight, padding);\n\t\t\t}\n\t\t}\n\n\t\tthis.update();\n\t}\n\n\tprotected initWheelHandling(): void {\n\t\tconst global = new Point();\n\t\tconst util = UtilWheelEvent.getInstance();\n\t\tconst interactionManager = this.renderer.plugins.interaction;\n\t\tutil.on(this.view, (e: WheelEvent | Event): void => {\n\t\t\tconst wheelEvent = e as WheelEvent;\n\t\t\tUtilPointerEvent.toGlobal(wheelEvent, interactionManager, global);\n\t\t\tlet current = interactionManager.hitTest(global);\n\t\t\tconst deltas = util.normalize(e);\n\t\t\tif (deltas != null) {\n\t\t\t\twhile (current != null) {\n\t\t\t\t\tif (isWheelable(current)) {\n\t\t\t\t\t\tif (current.onWheel(wheelEvent, deltas, global)) {\n\t\t\t\t\t\t\twheelEvent.preventDefault();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcurrent = current.parent;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n\tprotected initDoubleClickHandling(): void {\n\t\tconst focusController = this.getFocusController();\n\t\tconst interactionManager = this.renderer.plugins.interaction;\n\t\tUtilPointerEvent.onDblClick(this.view, (e: MouseEvent | TouchEvent): void => {\n\t\t\tconst focused = focusController.get();\n\t\t\tif (focused != null) {\n\t\t\t\tlet current: DFocusable | DFocusableContainer | null = focused;\n\t\t\t\twhile (current != null) {\n\t\t\t\t\tif (isDblClickable(current)) {\n\t\t\t\t\t\tif (current.onDblClick(e, interactionManager)) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcurrent = current.parent;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n\tlock(): void {\n\t\tthis._isLocked = true;\n\t}\n\n\tunlock(): void {\n\t\tthis._isLocked = false;\n\t}\n\n\tupdate(): void {\n\t\tif (!this._isLocked && this._renderId == null) {\n\t\t\tthis._renderId = requestAnimationFrame(this._renderBound);\n\t\t}\n\t}\n\n\tprotected onStageDirty(): void {\n\t\t// Update the visibility if this is a overlay layer.\n\t\tif (this._isOverlay) {\n\t\t\tif (0 < this.stage.children.length) {\n\t\t\t\t// There are more than one children,\n\t\t\t\t// therefore must be visible.\n\t\t\t\tif (!this._isVisible) {\n\t\t\t\t\tthis._isVisible = true;\n\t\t\t\t\tthis.view.style.display = \"block\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// There is no child,\n\t\t\t\t// therefore must not be visible.\n\t\t\t\tif (this._isVisible) {\n\t\t\t\t\tthis._isVisible = false;\n\t\t\t\t\tthis.view.style.display = \"none\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\trender(): void {\n\t\tthis.reflow();\n\n\t\t// Please note why the following line is here.\n\t\t//\n\t\t// Before this line, the update method does not enque a rendering task\n\t\t// because `this._renderId` is not null. As a result, this prevents\n\t\t// an unintentional rendering loop caused by the refit or the reflow.\n\t\t//\n\t\t// After this line, the update method enques a rendering task.\n\t\t// Namely, in the DisplayObject#render(Renderer) method, allowed to enque\n\t\t// a rendering task. For instance, please refer to the DDiagramShape#update().\n\t\tthis._renderId = null;\n\n\t\t// Render\n\t\tsuper.render();\n\t}\n\n\tget width(): number {\n\t\treturn this.screen.width;\n\t}\n\n\tget height(): number {\n\t\treturn this.screen.height;\n\t}\n\n\tget padding(): DPadding {\n\t\treturn this._padding;\n\t}\n\n\treflow(): void {\n\t\tconst children = this.stage.children;\n\t\tfor (let ilimit = 0, limit = this._reflowLimit; ilimit < limit; ++ilimit) {\n\t\t\tlet isDirty = false;\n\t\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\t\tconst child = children[i];\n\t\t\t\tif (child instanceof DBase) {\n\t\t\t\t\tchild.reflow();\n\t\t\t\t\tisDirty =\n\t\t\t\t\t\tisDirty || child.isDirty() || child.hasDirty() || child.isHierarchyDirty();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If DBases are changed during the `reflow` process, need to reflow again.\n\t\t\tif (!isDirty) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tgetFocusController(): DControllerFocus {\n\t\treturn this.application.getFocusController();\n\t}\n\n\tgetRootElement(): HTMLElement {\n\t\treturn this._rootElement;\n\t}\n\n\tgetElementContainer(): HTMLElement {\n\t\treturn this._elementContainer;\n\t}\n\n\tgetDynamicFontAtlases(): DynamicFontAtlases {\n\t\tif (this._dynamicFontAtlases == null) {\n\t\t\tthis._dynamicFontAtlases = new DynamicFontAtlases(this);\n\t\t}\n\t\treturn this._dynamicFontAtlases;\n\t}\n}\n"]}
@@ -45,14 +45,14 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
45
45
  this._container = undefined;
46
46
  };
47
47
  DChartAxisBaseTickContainer.prototype.update = function () {
48
+ var parser = this._parser;
48
49
  var container = this._container;
49
50
  var majorShapes = this._major.shapes;
50
51
  var minorShapes = this._minor.shapes;
51
- if (container != null && majorShapes && minorShapes) {
52
+ if (parser.tick.enable && container != null && majorShapes && minorShapes) {
52
53
  var plotArea = container.plotArea;
53
54
  var transform = plotArea.container.transform.localTransform;
54
55
  var gridlineShapes = this._major.gridline.shapes;
55
- var parser = this._parser;
56
56
  var offset = parser.padding * this._index;
57
57
  var work = this._work;
58
58
  var coordinate = void 0;
@@ -1 +1 @@
1
- {"version":3,"file":"d-chart-axis-base-tick-container.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-axis-base-tick-container.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAEzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAS7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAKzD;IAcC,qCAAY,MAAkC,EAAE,OAAiB;QAChE,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAChB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC7C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC7C,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;QACtB,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;QACtB,IAAI,CAAC,KAAK,GAAG,IAAI,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACzC,CAAC;IAED,sBAAI,8CAAK;aAAT;YACC,OAAO,IAAI,CAAC,MAAM,CAAC;QACpB,CAAC;;;OAAA;IAES,8CAAQ,GAAlB,UACC,MAAkC,EAClC,OAAiB;QAEjB,OAAO,IAAI,uBAAuB,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;IAED,sBAAI,8CAAK;aAAT;YACC,OAAO,IAAI,CAAC,MAAM,CAAC;QACpB,CAAC;;;OAAA;IAES,8CAAQ,GAAlB,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port { DBase } from \"./d-base\";\nimport { DChartAxisBaseOptionParser } from \"./d-chart-axis-base-options-parser\";\nimport { DChartAxisBaseTickMajor } from \"./d-chart-axis-base-tick-major\";\nimport { DChartAxisBaseTickMinor } from \"./d-chart-axis-base-tick-minor\";\nimport { DChartAxisContainer } from \"./d-chart-axis-container\";\nimport { DChartAxisPosition } from \"./d-chart-axis-position\";\nimport { DChartAxisTickContainer } from \"./d-chart-axis-tick-container\";\nimport { DChartAxisTickMajor } from \"./d-chart-axis-tick-major\";\nimport { DChartAxisTickMinor } from \"./d-chart-axis-tick-minor\";\nimport { DChartCoordinate } from \"./d-chart-coordinate\";\nimport { DChartCoordinateTickMajorStepFunction } from \"./d-chart-coordinate-tick-major-step-function\";\nimport { DChartCoordinateTickMinorStepFunction } from \"./d-chart-coordinate-tick-minor-step-function\";\nimport { DChartPlotArea } from \"./d-chart-plot-area\";\nimport { DChartRegion } from \"./d-chart-region\";\nimport { DChartRegionImpl } from \"./d-chart-region-impl\";\nimport { EShape } from \"./shape/e-shape\";\n\nexport interface DChartAxisBaseTickContainerOptions {}\n\nexport class DChartAxisBaseTickContainer<\n\tCHART extends DBase = DBase,\n\tOPTIONS extends DChartAxisBaseTickContainerOptions = DChartAxisBaseTickContainerOptions\n> implements DChartAxisTickContainer<CHART>\n{\n\tprotected _parser: DChartAxisBaseOptionParser;\n\tprotected _container?: DChartAxisContainer<CHART>;\n\tprotected _index: number;\n\tprotected _major: DChartAxisTickMajor<CHART>;\n\tprotected _minor: DChartAxisTickMinor<CHART>;\n\tprotected _majorTicks: number[];\n\tprotected _minorTicks: number[];\n\tprotected _work: DChartRegion;\n\n\tconstructor(parser: DChartAxisBaseOptionParser, options?: OPTIONS) {\n\t\tthis._parser = parser;\n\t\tthis._index = 0;\n\t\tthis._major = this.newMajor(parser, options);\n\t\tthis._minor = this.newMinor(parser, options);\n\t\tthis._majorTicks = [];\n\t\tthis._minorTicks = [];\n\t\tthis._work = new DChartRegionImpl(0, 0);\n\t}\n\n\tget major(): DChartAxisTickMajor<CHART> {\n\t\treturn this._major;\n\t}\n\n\tprotected newMajor(\n\t\tparser: DChartAxisBaseOptionParser,\n\t\toptions?: OPTIONS\n\t): DChartAxisTickMajor<CHART> {\n\t\treturn new DChartAxisBaseTickMajor(parser);\n\t}\n\n\tget minor(): DChartAxisTickMinor<CHART> {\n\t\treturn this._minor;\n\t}\n\n\tprotected newMinor(\n\t\tparser: DChartAxisBaseOptionParser,\n\t\toptions?: OPTIONS\n\t): DChartAxisTickMinor<CHART> {\n\t\treturn new DChartAxisBaseTickMinor(parser);\n\t}\n\n\tbind(container: DChartAxisContainer<CHART>, index: number): void {\n\t\tthis._container = container;\n\t\tthis._index = index;\n\t\tthis._major.bind(container, index);\n\t\tthis._minor.bind(container, index);\n\t}\n\n\tunbind(): void {\n\t\tthis._minor.unbind();\n\t\tthis._major.unbind();\n\t\tthis._index = 0;\n\t\tthis._container = undefined;\n\t}\n\n\tupdate(): boolean {\n\t\tconst container = this._container;\n\t\tconst majorShapes = this._major.shapes;\n\t\tconst minorShapes = this._minor.shapes;\n\t\tif (container != null && majorShapes && minorShapes) {\n\t\t\tconst plotArea = container.plotArea;\n\t\t\tconst transform = plotArea.container.transform.localTransform;\n\t\t\tconst gridlineShapes = this._major.gridline.shapes;\n\n\t\t\tconst parser = this._parser;\n\t\t\tconst offset = parser.padding * this._index;\n\t\t\tconst work = this._work;\n\t\t\tlet coordinate: DChartCoordinate<CHART> | null;\n\t\t\tswitch (parser.position) {\n\t\t\t\tcase DChartAxisPosition.TOP:\n\t\t\t\t\tcoordinate = plotArea.coordinate.x.get(parser.coordinate);\n\t\t\t\t\tif (coordinate) {\n\t\t\t\t\t\tconst domain = this.getDomain(plotArea, coordinate, work);\n\t\t\t\t\t\tconst domainFrom = domain.from;\n\t\t\t\t\t\tconst domainTo = domain.to;\n\t\t\t\t\t\tconst domainVisible = this.getDomainVisible(plotArea, coordinate, work);\n\t\t\t\t\t\tconst domainVisibleFrom = domainVisible.from;\n\t\t\t\t\t\tconst domainVisibleTo = domainVisible.to;\n\t\t\t\t\t\tconst plotAreaHeight = plotArea.height;\n\t\t\t\t\t\treturn this.updateX(\n\t\t\t\t\t\t\tdomainFrom,\n\t\t\t\t\t\t\tdomainTo,\n\t\t\t\t\t\t\tdomainVisibleFrom,\n\t\t\t\t\t\t\tdomainVisibleTo,\n\t\t\t\t\t\t\tcoordinate,\n\t\t\t\t\t\t\tmajorShapes,\n\t\t\t\t\t\t\tminorShapes,\n\t\t\t\t\t\t\tgridlineShapes,\n\t\t\t\t\t\t\t0 - offset,\n\t\t\t\t\t\t\ttransform,\n\t\t\t\t\t\t\tplotAreaHeight\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DChartAxisPosition.BOTTOM:\n\t\t\t\t\tcoordinate = plotArea.coordinate.x.get(parser.coordinate);\n\t\t\t\t\tif (coordinate) {\n\t\t\t\t\t\tconst domain = this.getDomain(plotArea, coordinate, work);\n\t\t\t\t\t\tconst domainFrom = domain.from;\n\t\t\t\t\t\tconst domainTo = domain.to;\n\t\t\t\t\t\tconst domainVisible = this.getDomainVisible(plotArea, coordinate, work);\n\t\t\t\t\t\tconst domainVisibleFrom = domainVisible.from;\n\t\t\t\t\t\tconst domainVisibleTo = domainVisible.to;\n\t\t\t\t\t\tconst plotAreaHeight = plotArea.height;\n\t\t\t\t\t\treturn this.updateX(\n\t\t\t\t\t\t\tdomainFrom,\n\t\t\t\t\t\t\tdomainTo,\n\t\t\t\t\t\t\tdomainVisibleFrom,\n\t\t\t\t\t\t\tdomainVisibleTo,\n\t\t\t\t\t\t\tcoordinate,\n\t\t\t\t\t\t\tmajorShapes,\n\t\t\t\t\t\t\tminorShapes,\n\t\t\t\t\t\t\tgridlineShapes,\n\t\t\t\t\t\t\tplotAreaHeight + offset,\n\t\t\t\t\t\t\ttransform,\n\t\t\t\t\t\t\tplotAreaHeight\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DChartAxisPosition.LEFT:\n\t\t\t\t\tcoordinate = plotArea.coordinate.y.get(parser.coordinate);\n\t\t\t\t\tif (coordinate) {\n\t\t\t\t\t\tconst range = this.getRange(plotArea, coordinate, work);\n\t\t\t\t\t\tconst rangeFrom = range.from;\n\t\t\t\t\t\tconst rangeTo = range.to;\n\t\t\t\t\t\tconst rangeVisible = this.getRangeVisible(plotArea, coordinate, work);\n\t\t\t\t\t\tconst rangeVisibleFrom = rangeVisible.from;\n\t\t\t\t\t\tconst rangeVisibleTo = rangeVisible.to;\n\t\t\t\t\t\tconst plotAreaWidth = plotArea.width;\n\t\t\t\t\t\treturn this.updateY(\n\t\t\t\t\t\t\trangeFrom,\n\t\t\t\t\t\t\trangeTo,\n\t\t\t\t\t\t\trangeVisibleFrom,\n\t\t\t\t\t\t\trangeVisibleTo,\n\t\t\t\t\t\t\tcoordinate,\n\t\t\t\t\t\t\tmajorShapes,\n\t\t\t\t\t\t\tminorShapes,\n\t\t\t\t\t\t\tgridlineShapes,\n\t\t\t\t\t\t\t0 - offset,\n\t\t\t\t\t\t\ttransform,\n\t\t\t\t\t\t\tplotAreaWidth\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DChartAxisPosition.RIGHT:\n\t\t\t\t\tcoordinate = plotArea.coordinate.y.get(parser.coordinate);\n\t\t\t\t\tif (coordinate) {\n\t\t\t\t\t\tconst range = this.getRange(plotArea, coordinate, work);\n\t\t\t\t\t\tconst rangeFrom = range.from;\n\t\t\t\t\t\tconst rangeTo = range.to;\n\t\t\t\t\t\tconst rangeVisible = this.getRangeVisible(plotArea, coordinate, work);\n\t\t\t\t\t\tconst rangeVisibleFrom = rangeVisible.from;\n\t\t\t\t\t\tconst rangeVisibleTo = rangeVisible.to;\n\t\t\t\t\t\tconst plotAreaWidth = plotArea.width;\n\t\t\t\t\t\treturn this.updateY(\n\t\t\t\t\t\t\trangeFrom,\n\t\t\t\t\t\t\trangeTo,\n\t\t\t\t\t\t\trangeVisibleFrom,\n\t\t\t\t\t\t\trangeVisibleTo,\n\t\t\t\t\t\t\tcoordinate,\n\t\t\t\t\t\t\tmajorShapes,\n\t\t\t\t\t\t\tminorShapes,\n\t\t\t\t\t\t\tgridlineShapes,\n\t\t\t\t\t\t\tplotAreaWidth + offset,\n\t\t\t\t\t\t\ttransform,\n\t\t\t\t\t\t\tplotAreaWidth\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n\n\tprotected getDomain(\n\t\tplotArea: DChartPlotArea<CHART>,\n\t\tcoordinate: DChartCoordinate<CHART>,\n\t\tresult: DChartRegion\n\t): DChartRegion {\n\t\tconst bounds = plotArea.getBoundsInContainer();\n\t\tconst transform = coordinate.transform;\n\t\treturn result.set(\n\t\t\tcoordinate.unmap(transform.unmap(bounds.x)),\n\t\t\tcoordinate.unmap(transform.unmap(bounds.x + bounds.width))\n\t\t);\n\t}\n\n\tprotected getDomainVisible(\n\t\tplotArea: DChartPlotArea<CHART>,\n\t\tcoordinate: DChartCoordinate<CHART>,\n\t\tresult: DChartRegion\n\t): DChartRegion {\n\t\treturn result;\n\t}\n\n\tprotected getRange(\n\t\tplotArea: DChartPlotArea<CHART>,\n\t\tcoordinate: DChartCoordinate<CHART>,\n\t\tresult: DChartRegion\n\t): DChartRegion {\n\t\tconst bounds = plotArea.getBoundsInContainer();\n\t\tconst transform = coordinate.transform;\n\t\treturn result.set(\n\t\t\tcoordinate.unmap(transform.unmap(bounds.y)),\n\t\t\tcoordinate.unmap(transform.unmap(bounds.y + bounds.height))\n\t\t);\n\t}\n\n\tprotected getRangeVisible(\n\t\tplotArea: DChartPlotArea<CHART>,\n\t\tcoordinate: DChartCoordinate<CHART>,\n\t\tresult: DChartRegion\n\t): DChartRegion {\n\t\treturn result;\n\t}\n\n\tprotected updateX(\n\t\tdomainFrom: number,\n\t\tdomainTo: number,\n\t\tdomainVisibleFrom: number,\n\t\tdomainVisibleTo: number,\n\t\tcoordinate: DChartCoordinate<CHART>,\n\t\tmajorShapes: EShape[],\n\t\tminorShapes: EShape[],\n\t\tgridlineShapes: EShape[],\n\t\tshapePositionY: number,\n\t\ttransform: Matrix,\n\t\tplotAreaHeight: number\n\t): boolean {\n\t\tconst tick = this._parser.tick;\n\t\tconst majorTick = tick.major;\n\t\tconst majorCount = majorTick.count;\n\t\tconst majorCapacity = majorTick.capacity;\n\t\tconst majorStep = majorTick.step;\n\t\tconst majorFormatter = majorTick.formatter;\n\t\tconst minorTick = tick.minor;\n\t\tconst minorCountPerMajor = minorTick.count;\n\t\tconst minorCount = (majorCapacity + 1) * minorCountPerMajor;\n\t\tconst minorStep = minorTick.step;\n\t\tconst minorFormatter = minorTick.formatter;\n\t\tconst majorTicks = this._majorTicks;\n\t\tconst minorTicks = this._minorTicks;\n\t\tthis.newTicks(\n\t\t\tcoordinate,\n\t\t\tdomainFrom,\n\t\t\tdomainTo,\n\t\t\tdomainVisibleFrom,\n\t\t\tdomainVisibleTo,\n\t\t\tmajorCount,\n\t\t\tmajorCapacity,\n\t\t\tmajorStep,\n\t\t\tminorCountPerMajor,\n\t\t\tminorCount,\n\t\t\tminorStep,\n\t\t\tmajorTicks,\n\t\t\tminorTicks\n\t\t);\n\n\t\tconst a = transform.a;\n\t\tconst tx = transform.tx;\n\t\tfor (let i = 0; i < majorCapacity; ++i) {\n\t\t\tconst majorShape = majorShapes[i];\n\t\t\tconst imajorTick = i * 3;\n\t\t\tconst majorTickPosition = majorTicks[imajorTick + 0];\n\t\t\tif (!isNaN(majorTickPosition)) {\n\t\t\t\tconst majorTickProjectedPosition = majorTicks[imajorTick + 1];\n\t\t\t\tconst majotTickPositionX = a * majorTickProjectedPosition + tx;\n\t\t\t\tconst majorTickStep = majorTicks[imajorTick + 2];\n\t\t\t\tthis.showMajor(\n\t\t\t\t\tmajorShape,\n\t\t\t\t\tmajotTickPositionX,\n\t\t\t\t\tshapePositionY,\n\t\t\t\t\tmajorFormatter?.format(majorTickPosition, majorTickStep)\n\t\t\t\t);\n\t\t\t\tif (i < gridlineShapes.length) {\n\t\t\t\t\tthis.showMajorGridline(\n\t\t\t\t\t\tgridlineShapes[i],\n\t\t\t\t\t\tmajorTickPosition,\n\t\t\t\t\t\tmajotTickPositionX,\n\t\t\t\t\t\tplotAreaHeight * 0.5,\n\t\t\t\t\t\t0,\n\t\t\t\t\t\tplotAreaHeight\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthis.hideMajor(majorShape);\n\t\t\t\tif (i < gridlineShapes.length) {\n\t\t\t\t\tthis.hideMajorGridline(gridlineShapes[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (let i = 0; i < minorCount; ++i) {\n\t\t\tconst minorShape = minorShapes[i];\n\t\t\tconst iminorTick = i * 3;\n\t\t\tconst minorTickPosition = minorTicks[iminorTick + 0];\n\t\t\tif (!isNaN(minorTickPosition)) {\n\t\t\t\tconst minorTickProjectedPosition = minorTicks[iminorTick + 1];\n\t\t\t\tconst minorTickPositionX = a * minorTickProjectedPosition + tx;\n\t\t\t\tconst minorTickStep = minorTicks[iminorTick + 2];\n\t\t\t\tthis.showMinor(\n\t\t\t\t\tminorShape,\n\t\t\t\t\tminorTickPositionX,\n\t\t\t\t\tshapePositionY,\n\t\t\t\t\tminorFormatter?.format(minorTickPosition, minorTickStep)\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tthis.hideMinor(minorShape);\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\n\tprotected updateY(\n\t\trangeFrom: number,\n\t\trangeTo: number,\n\t\trangeVisibleFrom: number,\n\t\trangeVisibleTo: number,\n\t\tcoordinate: DChartCoordinate<CHART>,\n\t\tmajorShapes: EShape[],\n\t\tminorShapes: EShape[],\n\t\tgridlineShapes: EShape[],\n\t\tshapePositionX: number,\n\t\ttransform: Matrix,\n\t\tplotAreaWidth: number\n\t): boolean {\n\t\tconst tick = this._parser.tick;\n\t\tconst majorTick = tick.major;\n\t\tconst majorCount = majorTick.count;\n\t\tconst majorCapacity = majorTick.capacity;\n\t\tconst majorStep = majorTick.step;\n\t\tconst majorFormatter = majorTick.formatter;\n\t\tconst minorTick = tick.minor;\n\t\tconst minorCountPerMajor = minorTick.count;\n\t\tconst minorCount = (majorCapacity + 1) * minorCountPerMajor;\n\t\tconst minorStep = minorTick.step;\n\t\tconst minorFormatter = minorTick.formatter;\n\t\tconst majorTicks = this._majorTicks;\n\t\tconst minorTicks = this._minorTicks;\n\t\tthis.newTicks(\n\t\t\tcoordinate,\n\t\t\trangeFrom,\n\t\t\trangeTo,\n\t\t\trangeVisibleFrom,\n\t\t\trangeVisibleTo,\n\t\t\tmajorCount,\n\t\t\tmajorCapacity,\n\t\t\tmajorStep,\n\t\t\tminorCountPerMajor,\n\t\t\tminorCount,\n\t\t\tminorStep,\n\t\t\tmajorTicks,\n\t\t\tminorTicks\n\t\t);\n\n\t\tconst d = transform.d;\n\t\tconst ty = transform.ty;\n\t\tfor (let i = 0; i < majorCapacity; ++i) {\n\t\t\tconst majorShape = majorShapes[i];\n\t\t\tconst imajorTick = i * 3;\n\t\t\tconst majorTickPosition = majorTicks[imajorTick + 0];\n\t\t\tif (!isNaN(majorTickPosition)) {\n\t\t\t\tconst majorTickProjectedPosition = majorTicks[imajorTick + 1];\n\t\t\t\tconst majotTickPositionY = d * majorTickProjectedPosition + ty;\n\t\t\t\tconst majorTickStep = majorTicks[imajorTick + 2];\n\t\t\t\tthis.showMajor(\n\t\t\t\t\tmajorShape,\n\t\t\t\t\tshapePositionX,\n\t\t\t\t\tmajotTickPositionY,\n\t\t\t\t\tmajorFormatter?.format(majorTickPosition, majorTickStep)\n\t\t\t\t);\n\t\t\t\tif (i < gridlineShapes.length) {\n\t\t\t\t\tthis.showMajorGridline(\n\t\t\t\t\t\tgridlineShapes[i],\n\t\t\t\t\t\tmajorTickPosition,\n\t\t\t\t\t\tplotAreaWidth * 0.5,\n\t\t\t\t\t\tmajotTickPositionY,\n\t\t\t\t\t\tplotAreaWidth,\n\t\t\t\t\t\t0\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthis.hideMajor(majorShape);\n\t\t\t\tif (i < gridlineShapes.length) {\n\t\t\t\t\tthis.hideMajorGridline(gridlineShapes[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (let i = 0; i < minorCount; ++i) {\n\t\t\tconst minorShape = minorShapes[i];\n\t\t\tconst iminorTick = i * 3;\n\t\t\tconst minorTickPosition = minorTicks[iminorTick + 0];\n\t\t\tif (!isNaN(minorTickPosition)) {\n\t\t\t\tconst minorTickProjectedPosition = minorTicks[iminorTick + 1];\n\t\t\t\tconst minorTickPositionY = d * minorTickProjectedPosition + ty;\n\t\t\t\tconst minorTickStep = minorTicks[iminorTick + 2];\n\t\t\t\tthis.showMinor(\n\t\t\t\t\tminorShape,\n\t\t\t\t\tshapePositionX,\n\t\t\t\t\tminorTickPositionY,\n\t\t\t\t\tminorFormatter?.format(minorTickPosition, minorTickStep)\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tthis.hideMinor(minorShape);\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\n\tprotected showMajor(shape: EShape, x: number, y: number, text?: string): void {\n\t\tshape.disallowUploadedUpdate();\n\t\tshape.visible = true;\n\t\tshape.transform.position.set(x, y);\n\t\tshape.text.value = text != null ? text : \"\";\n\t\tshape.allowUploadedUpdate();\n\t}\n\n\tprotected showMajorGridline(\n\t\tshape: EShape,\n\t\tvalue: number,\n\t\tx: number,\n\t\ty: number,\n\t\tsx: number,\n\t\tsy: number\n\t): void {\n\t\tshape.disallowUploadedUpdate();\n\t\tshape.visible = true;\n\t\tshape.transform.position.set(x, y);\n\t\tshape.size.set(sx, sy);\n\t\tshape.allowUploadedUpdate();\n\t}\n\n\tprotected hideMajor(shape: EShape): void {\n\t\tshape.visible = false;\n\t}\n\n\tprotected hideMajorGridline(shape: EShape): void {\n\t\tshape.visible = false;\n\t}\n\n\tprotected showMinor(shape: EShape, x: number, y: number, text?: string): void {\n\t\tshape.disallowUploadedUpdate();\n\t\tshape.visible = true;\n\t\tshape.transform.position.set(x, y);\n\t\tshape.text.value = text != null ? text : \"\";\n\t\tshape.allowUploadedUpdate();\n\t}\n\n\tprotected hideMinor(shape: EShape): void {\n\t\tshape.visible = false;\n\t}\n\n\tprotected newTicks(\n\t\tcoordinate: DChartCoordinate<CHART>,\n\t\tdomainFrom: number,\n\t\tdomainTo: number,\n\t\tdomainVisibleFrom: number,\n\t\tdomainVisibleTo: number,\n\t\tmajorCount: number,\n\t\tmajorCapacity: number,\n\t\tmajorStep: number | DChartCoordinateTickMajorStepFunction | undefined,\n\t\tminorCountPerMajor: number,\n\t\tminorCount: number,\n\t\tminorStep: number | DChartCoordinateTickMinorStepFunction | undefined,\n\t\tmajorResult: number[],\n\t\tminorResult: number[]\n\t): void {\n\t\tcoordinate.ticks(\n\t\t\tdomainFrom,\n\t\t\tdomainTo,\n\t\t\tdomainVisibleFrom,\n\t\t\tdomainVisibleTo,\n\t\t\tmajorCount,\n\t\t\tmajorCapacity,\n\t\t\tmajorStep,\n\t\t\tminorCountPerMajor,\n\t\t\tminorCount,\n\t\t\tminorStep,\n\t\t\tmajorResult,\n\t\t\tminorResult\n\t\t);\n\t}\n\n\tdestroy(): void {\n\t\tthis._major.destroy();\n\t\tthis._minor.destroy();\n\t\tthis._index = 0;\n\t\tthis._container = undefined;\n\t}\n}\n"]}
1
+ {"version":3,"file":"d-chart-axis-base-tick-container.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-axis-base-tick-container.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAEzE,OAAO,EAAE,kBAAkB,EAAE,MA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AG,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;QAC5C,KAAK,CAAC,mBAAmB,EAAE,CAAC;IAC7B,CAAC;IAES,+CAAS,GAAnB,UAAoB,KAAa;QAChC,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;IACvB,CAAC;IAES,8CAAQ,GAAlB,UACC,UAAmC,EACnC,UAAkB,EAClB,QAAgB,EAChB,iBAAyB,EACzB,eAAuB,EACvB,UAAkB,EAClB,aAAqB,EACrB,SAAqE,EACrE,kBAA0B,EAC1B,UAAkB,EAClB,SAAqE,EACrE,WAAqB,EACrB,WAAqB;QAErB,UAAU,CAAC,KAAK,CACf,UAAU,EACV,QAAQ,EACR,iBAAiB,EACjB,eAAe,EACf,UAAU,EACV,aAAa,EACb,SAAS,EACT,kBAAkB,EAClB,UAAU,EACV,SAAS,EACT,WAAW,EACX,WAAW,CACX,CAAC;IACH,CAAC;IAED,6CAAO,GAAP;QACC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACtB,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAChB,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAC7B,CAAC;IACF,kCAAC;AAAD,CAAC,AA/eD,IA+eC","sourcesContent":["import { Matrix } from \"pixi.js\";\nimport { DBase } from \"./d-base\";\nimport { DChartAxisBaseOptionParser } from \"./d-chart-axis-base-options-parser\";\nimport { DChartAxisBaseTickMajor } from \"./d-chart-axis-base-tick-major\";\nimport { DChartAxisBaseTickMinor } from \"./d-chart-axis-base-tick-minor\";\nimport { DChartAxisContainer } from \"./d-chart-axis-container\";\nimport { DChartAxisPosition } from \"./d-chart-axis-position\";\nimport { DChartAxisTickContainer } from \"./d-chart-axis-tick-container\";\nimport { DChartAxisTickMajor } from \"./d-chart-axis-tick-major\";\nimport { DChartAxisTickMinor } from \"./d-chart-axis-tick-minor\";\nimport { DChartCoordinate } from \"./d-chart-coordinate\";\nimport { DChartCoordinateTickMajorStepFunction } from \"./d-chart-coordinate-tick-major-step-function\";\nimport { DChartCoordinateTickMinorStepFunction } from \"./d-chart-coordinate-tick-minor-step-function\";\nimport { DChartPlotArea } from \"./d-chart-plot-area\";\nimport { DChartRegion } from \"./d-chart-region\";\nimport { DChartRegionImpl } from \"./d-chart-region-impl\";\nimport { EShape } from \"./shape/e-shape\";\n\nexport interface DChartAxisBaseTickContainerOptions {}\n\nexport class DChartAxisBaseTickContainer<\n\tCHART extends DBase = DBase,\n\tOPTIONS extends DChartAxisBaseTickContainerOptions = DChartAxisBaseTickContainerOptions\n> implements DChartAxisTickContainer<CHART>\n{\n\tprotected _parser: DChartAxisBaseOptionParser;\n\tprotected _container?: DChartAxisContainer<CHART>;\n\tprotected _index: number;\n\tprotected _major: DChartAxisTickMajor<CHART>;\n\tprotected _minor: DChartAxisTickMinor<CHART>;\n\tprotected _majorTicks: number[];\n\tprotected _minorTicks: number[];\n\tprotected _work: DChartRegion;\n\n\tconstructor(parser: DChartAxisBaseOptionParser, options?: OPTIONS) {\n\t\tthis._parser = parser;\n\t\tthis._index = 0;\n\t\tthis._major = this.newMajor(parser, options);\n\t\tthis._minor = this.newMinor(parser, options);\n\t\tthis._majorTicks = [];\n\t\tthis._minorTicks = [];\n\t\tthis._work = new DChartRegionImpl(0, 0);\n\t}\n\n\tget major(): DChartAxisTickMajor<CHART> {\n\t\treturn this._major;\n\t}\n\n\tprotected newMajor(\n\t\tparser: DChartAxisBaseOptionParser,\n\t\toptions?: OPTIONS\n\t): DChartAxisTickMajor<CHART> {\n\t\treturn new DChartAxisBaseTickMajor(parser);\n\t}\n\n\tget minor(): DChartAxisTickMinor<CHART> {\n\t\treturn this._minor;\n\t}\n\n\tprotected newMinor(\n\t\tparser: DChartAxisBaseOptionParser,\n\t\toptions?: OPTIONS\n\t): DChartAxisTickMinor<CHART> {\n\t\treturn new DChartAxisBaseTickMinor(parser);\n\t}\n\n\tbind(container: DChartAxisContainer<CHART>, index: number): void {\n\t\tthis._container = container;\n\t\tthis._index = index;\n\t\tthis._major.bind(container, index);\n\t\tthis._minor.bind(container, index);\n\t}\n\n\tunbind(): void {\n\t\tthis._minor.unbind();\n\t\tthis._major.unbind();\n\t\tthis._index = 0;\n\t\tthis._container = undefined;\n\t}\n\n\tupdate(): boolean {\n\t\tconst parser = this._parser;\n\t\tconst container = this._container;\n\t\tconst majorShapes = this._major.shapes;\n\t\tconst minorShapes = this._minor.shapes;\n\t\tif (parser.tick.enable && container != null && majorShapes && minorShapes) {\n\t\t\tconst plotArea = container.plotArea;\n\t\t\tconst transform = plotArea.container.transform.localTransform;\n\t\t\tconst gridlineShapes = this._major.gridline.shapes;\n\n\t\t\tconst offset = parser.padding * this._index;\n\t\t\tconst work = this._work;\n\t\t\tlet coordinate: DChartCoordinate<CHART> | null;\n\t\t\tswitch (parser.position) {\n\t\t\t\tcase DChartAxisPosition.TOP:\n\t\t\t\t\tcoordinate = plotArea.coordinate.x.get(parser.coordinate);\n\t\t\t\t\tif (coordinate) {\n\t\t\t\t\t\tconst domain = this.getDomain(plotArea, coordinate, work);\n\t\t\t\t\t\tconst domainFrom = domain.from;\n\t\t\t\t\t\tconst domainTo = domain.to;\n\t\t\t\t\t\tconst domainVisible = this.getDomainVisible(plotArea, coordinate, work);\n\t\t\t\t\t\tconst domainVisibleFrom = domainVisible.from;\n\t\t\t\t\t\tconst domainVisibleTo = domainVisible.to;\n\t\t\t\t\t\tconst plotAreaHeight = plotArea.height;\n\t\t\t\t\t\treturn this.updateX(\n\t\t\t\t\t\t\tdomainFrom,\n\t\t\t\t\t\t\tdomainTo,\n\t\t\t\t\t\t\tdomainVisibleFrom,\n\t\t\t\t\t\t\tdomainVisibleTo,\n\t\t\t\t\t\t\tcoordinate,\n\t\t\t\t\t\t\tmajorShapes,\n\t\t\t\t\t\t\tminorShapes,\n\t\t\t\t\t\t\tgridlineShapes,\n\t\t\t\t\t\t\t0 - offset,\n\t\t\t\t\t\t\ttransform,\n\t\t\t\t\t\t\tplotAreaHeight\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DChartAxisPosition.BOTTOM:\n\t\t\t\t\tcoordinate = plotArea.coordinate.x.get(parser.coordinate);\n\t\t\t\t\tif (coordinate) {\n\t\t\t\t\t\tconst domain = this.getDomain(plotArea, coordinate, work);\n\t\t\t\t\t\tconst domainFrom = domain.from;\n\t\t\t\t\t\tconst domainTo = domain.to;\n\t\t\t\t\t\tconst domainVisible = this.getDomainVisible(plotArea, coordinate, work);\n\t\t\t\t\t\tconst domainVisibleFrom = domainVisible.from;\n\t\t\t\t\t\tconst domainVisibleTo = domainVisible.to;\n\t\t\t\t\t\tconst plotAreaHeight = plotArea.height;\n\t\t\t\t\t\treturn this.updateX(\n\t\t\t\t\t\t\tdomainFrom,\n\t\t\t\t\t\t\tdomainTo,\n\t\t\t\t\t\t\tdomainVisibleFrom,\n\t\t\t\t\t\t\tdomainVisibleTo,\n\t\t\t\t\t\t\tcoordinate,\n\t\t\t\t\t\t\tmajorShapes,\n\t\t\t\t\t\t\tminorShapes,\n\t\t\t\t\t\t\tgridlineShapes,\n\t\t\t\t\t\t\tplotAreaHeight + offset,\n\t\t\t\t\t\t\ttransform,\n\t\t\t\t\t\t\tplotAreaHeight\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DChartAxisPosition.LEFT:\n\t\t\t\t\tcoordinate = plotArea.coordinate.y.get(parser.coordinate);\n\t\t\t\t\tif (coordinate) {\n\t\t\t\t\t\tconst range = this.getRange(plotArea, coordinate, work);\n\t\t\t\t\t\tconst rangeFrom = range.from;\n\t\t\t\t\t\tconst rangeTo = range.to;\n\t\t\t\t\t\tconst rangeVisible = this.getRangeVisible(plotArea, coordinate, work);\n\t\t\t\t\t\tconst rangeVisibleFrom = rangeVisible.from;\n\t\t\t\t\t\tconst rangeVisibleTo = rangeVisible.to;\n\t\t\t\t\t\tconst plotAreaWidth = plotArea.width;\n\t\t\t\t\t\treturn this.updateY(\n\t\t\t\t\t\t\trangeFrom,\n\t\t\t\t\t\t\trangeTo,\n\t\t\t\t\t\t\trangeVisibleFrom,\n\t\t\t\t\t\t\trangeVisibleTo,\n\t\t\t\t\t\t\tcoordinate,\n\t\t\t\t\t\t\tmajorShapes,\n\t\t\t\t\t\t\tminorShapes,\n\t\t\t\t\t\t\tgridlineShapes,\n\t\t\t\t\t\t\t0 - offset,\n\t\t\t\t\t\t\ttransform,\n\t\t\t\t\t\t\tplotAreaWidth\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DChartAxisPosition.RIGHT:\n\t\t\t\t\tcoordinate = plotArea.coordinate.y.get(parser.coordinate);\n\t\t\t\t\tif (coordinate) {\n\t\t\t\t\t\tconst range = this.getRange(plotArea, coordinate, work);\n\t\t\t\t\t\tconst rangeFrom = range.from;\n\t\t\t\t\t\tconst rangeTo = range.to;\n\t\t\t\t\t\tconst rangeVisible = this.getRangeVisible(plotArea, coordinate, work);\n\t\t\t\t\t\tconst rangeVisibleFrom = rangeVisible.from;\n\t\t\t\t\t\tconst rangeVisibleTo = rangeVisible.to;\n\t\t\t\t\t\tconst plotAreaWidth = plotArea.width;\n\t\t\t\t\t\treturn this.updateY(\n\t\t\t\t\t\t\trangeFrom,\n\t\t\t\t\t\t\trangeTo,\n\t\t\t\t\t\t\trangeVisibleFrom,\n\t\t\t\t\t\t\trangeVisibleTo,\n\t\t\t\t\t\t\tcoordinate,\n\t\t\t\t\t\t\tmajorShapes,\n\t\t\t\t\t\t\tminorShapes,\n\t\t\t\t\t\t\tgridlineShapes,\n\t\t\t\t\t\t\tplotAreaWidth + offset,\n\t\t\t\t\t\t\ttransform,\n\t\t\t\t\t\t\tplotAreaWidth\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n\n\tprotected getDomain(\n\t\tplotArea: DChartPlotArea<CHART>,\n\t\tcoordinate: DChartCoordinate<CHART>,\n\t\tresult: DChartRegion\n\t): DChartRegion {\n\t\tconst bounds = plotArea.getBoundsInContainer();\n\t\tconst transform = coordinate.transform;\n\t\treturn result.set(\n\t\t\tcoordinate.unmap(transform.unmap(bounds.x)),\n\t\t\tcoordinate.unmap(transform.unmap(bounds.x + bounds.width))\n\t\t);\n\t}\n\n\tprotected getDomainVisible(\n\t\tplotArea: DChartPlotArea<CHART>,\n\t\tcoordinate: DChartCoordinate<CHART>,\n\t\tresult: DChartRegion\n\t): DChartRegion {\n\t\treturn result;\n\t}\n\n\tprotected getRange(\n\t\tplotArea: DChartPlotArea<CHART>,\n\t\tcoordinate: DChartCoordinate<CHART>,\n\t\tresult: DChartRegion\n\t): DChartRegion {\n\t\tconst bounds = plotArea.getBoundsInContainer();\n\t\tconst transform = coordinate.transform;\n\t\treturn result.set(\n\t\t\tcoordinate.unmap(transform.unmap(bounds.y)),\n\t\t\tcoordinate.unmap(transform.unmap(bounds.y + bounds.height))\n\t\t);\n\t}\n\n\tprotected getRangeVisible(\n\t\tplotArea: DChartPlotArea<CHART>,\n\t\tcoordinate: DChartCoordinate<CHART>,\n\t\tresult: DChartRegion\n\t): DChartRegion {\n\t\treturn result;\n\t}\n\n\tprotected updateX(\n\t\tdomainFrom: number,\n\t\tdomainTo: number,\n\t\tdomainVisibleFrom: number,\n\t\tdomainVisibleTo: number,\n\t\tcoordinate: DChartCoordinate<CHART>,\n\t\tmajorShapes: EShape[],\n\t\tminorShapes: EShape[],\n\t\tgridlineShapes: EShape[],\n\t\tshapePositionY: number,\n\t\ttransform: Matrix,\n\t\tplotAreaHeight: number\n\t): boolean {\n\t\tconst tick = this._parser.tick;\n\t\tconst majorTick = tick.major;\n\t\tconst majorCount = majorTick.count;\n\t\tconst majorCapacity = majorTick.capacity;\n\t\tconst majorStep = majorTick.step;\n\t\tconst majorFormatter = majorTick.formatter;\n\t\tconst minorTick = tick.minor;\n\t\tconst minorCountPerMajor = minorTick.count;\n\t\tconst minorCount = (majorCapacity + 1) * minorCountPerMajor;\n\t\tconst minorStep = minorTick.step;\n\t\tconst minorFormatter = minorTick.formatter;\n\t\tconst majorTicks = this._majorTicks;\n\t\tconst minorTicks = this._minorTicks;\n\t\tthis.newTicks(\n\t\t\tcoordinate,\n\t\t\tdomainFrom,\n\t\t\tdomainTo,\n\t\t\tdomainVisibleFrom,\n\t\t\tdomainVisibleTo,\n\t\t\tmajorCount,\n\t\t\tmajorCapacity,\n\t\t\tmajorStep,\n\t\t\tminorCountPerMajor,\n\t\t\tminorCount,\n\t\t\tminorStep,\n\t\t\tmajorTicks,\n\t\t\tminorTicks\n\t\t);\n\n\t\tconst a = transform.a;\n\t\tconst tx = transform.tx;\n\t\tfor (let i = 0; i < majorCapacity; ++i) {\n\t\t\tconst majorShape = majorShapes[i];\n\t\t\tconst imajorTick = i * 3;\n\t\t\tconst majorTickPosition = majorTicks[imajorTick + 0];\n\t\t\tif (!isNaN(majorTickPosition)) {\n\t\t\t\tconst majorTickProjectedPosition = majorTicks[imajorTick + 1];\n\t\t\t\tconst majotTickPositionX = a * majorTickProjectedPosition + tx;\n\t\t\t\tconst majorTickStep = majorTicks[imajorTick + 2];\n\t\t\t\tthis.showMajor(\n\t\t\t\t\tmajorShape,\n\t\t\t\t\tmajotTickPositionX,\n\t\t\t\t\tshapePositionY,\n\t\t\t\t\tmajorFormatter?.format(majorTickPosition, majorTickStep)\n\t\t\t\t);\n\t\t\t\tif (i < gridlineShapes.length) {\n\t\t\t\t\tthis.showMajorGridline(\n\t\t\t\t\t\tgridlineShapes[i],\n\t\t\t\t\t\tmajorTickPosition,\n\t\t\t\t\t\tmajotTickPositionX,\n\t\t\t\t\t\tplotAreaHeight * 0.5,\n\t\t\t\t\t\t0,\n\t\t\t\t\t\tplotAreaHeight\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthis.hideMajor(majorShape);\n\t\t\t\tif (i < gridlineShapes.length) {\n\t\t\t\t\tthis.hideMajorGridline(gridlineShapes[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (let i = 0; i < minorCount; ++i) {\n\t\t\tconst minorShape = minorShapes[i];\n\t\t\tconst iminorTick = i * 3;\n\t\t\tconst minorTickPosition = minorTicks[iminorTick + 0];\n\t\t\tif (!isNaN(minorTickPosition)) {\n\t\t\t\tconst minorTickProjectedPosition = minorTicks[iminorTick + 1];\n\t\t\t\tconst minorTickPositionX = a * minorTickProjectedPosition + tx;\n\t\t\t\tconst minorTickStep = minorTicks[iminorTick + 2];\n\t\t\t\tthis.showMinor(\n\t\t\t\t\tminorShape,\n\t\t\t\t\tminorTickPositionX,\n\t\t\t\t\tshapePositionY,\n\t\t\t\t\tminorFormatter?.format(minorTickPosition, minorTickStep)\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tthis.hideMinor(minorShape);\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\n\tprotected updateY(\n\t\trangeFrom: number,\n\t\trangeTo: number,\n\t\trangeVisibleFrom: number,\n\t\trangeVisibleTo: number,\n\t\tcoordinate: DChartCoordinate<CHART>,\n\t\tmajorShapes: EShape[],\n\t\tminorShapes: EShape[],\n\t\tgridlineShapes: EShape[],\n\t\tshapePositionX: number,\n\t\ttransform: Matrix,\n\t\tplotAreaWidth: number\n\t): boolean {\n\t\tconst tick = this._parser.tick;\n\t\tconst majorTick = tick.major;\n\t\tconst majorCount = majorTick.count;\n\t\tconst majorCapacity = majorTick.capacity;\n\t\tconst majorStep = majorTick.step;\n\t\tconst majorFormatter = majorTick.formatter;\n\t\tconst minorTick = tick.minor;\n\t\tconst minorCountPerMajor = minorTick.count;\n\t\tconst minorCount = (majorCapacity + 1) * minorCountPerMajor;\n\t\tconst minorStep = minorTick.step;\n\t\tconst minorFormatter = minorTick.formatter;\n\t\tconst majorTicks = this._majorTicks;\n\t\tconst minorTicks = this._minorTicks;\n\t\tthis.newTicks(\n\t\t\tcoordinate,\n\t\t\trangeFrom,\n\t\t\trangeTo,\n\t\t\trangeVisibleFrom,\n\t\t\trangeVisibleTo,\n\t\t\tmajorCount,\n\t\t\tmajorCapacity,\n\t\t\tmajorStep,\n\t\t\tminorCountPerMajor,\n\t\t\tminorCount,\n\t\t\tminorStep,\n\t\t\tmajorTicks,\n\t\t\tminorTicks\n\t\t);\n\n\t\tconst d = transform.d;\n\t\tconst ty = transform.ty;\n\t\tfor (let i = 0; i < majorCapacity; ++i) {\n\t\t\tconst majorShape = majorShapes[i];\n\t\t\tconst imajorTick = i * 3;\n\t\t\tconst majorTickPosition = majorTicks[imajorTick + 0];\n\t\t\tif (!isNaN(majorTickPosition)) {\n\t\t\t\tconst majorTickProjectedPosition = majorTicks[imajorTick + 1];\n\t\t\t\tconst majotTickPositionY = d * majorTickProjectedPosition + ty;\n\t\t\t\tconst majorTickStep = majorTicks[imajorTick + 2];\n\t\t\t\tthis.showMajor(\n\t\t\t\t\tmajorShape,\n\t\t\t\t\tshapePositionX,\n\t\t\t\t\tmajotTickPositionY,\n\t\t\t\t\tmajorFormatter?.format(majorTickPosition, majorTickStep)\n\t\t\t\t);\n\t\t\t\tif (i < gridlineShapes.length) {\n\t\t\t\t\tthis.showMajorGridline(\n\t\t\t\t\t\tgridlineShapes[i],\n\t\t\t\t\t\tmajorTickPosition,\n\t\t\t\t\t\tplotAreaWidth * 0.5,\n\t\t\t\t\t\tmajotTickPositionY,\n\t\t\t\t\t\tplotAreaWidth,\n\t\t\t\t\t\t0\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthis.hideMajor(majorShape);\n\t\t\t\tif (i < gridlineShapes.length) {\n\t\t\t\t\tthis.hideMajorGridline(gridlineShapes[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (let i = 0; i < minorCount; ++i) {\n\t\t\tconst minorShape = minorShapes[i];\n\t\t\tconst iminorTick = i * 3;\n\t\t\tconst minorTickPosition = minorTicks[iminorTick + 0];\n\t\t\tif (!isNaN(minorTickPosition)) {\n\t\t\t\tconst minorTickProjectedPosition = minorTicks[iminorTick + 1];\n\t\t\t\tconst minorTickPositionY = d * minorTickProjectedPosition + ty;\n\t\t\t\tconst minorTickStep = minorTicks[iminorTick + 2];\n\t\t\t\tthis.showMinor(\n\t\t\t\t\tminorShape,\n\t\t\t\t\tshapePositionX,\n\t\t\t\t\tminorTickPositionY,\n\t\t\t\t\tminorFormatter?.format(minorTickPosition, minorTickStep)\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tthis.hideMinor(minorShape);\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\n\tprotected showMajor(shape: EShape, x: number, y: number, text?: string): void {\n\t\tshape.disallowUploadedUpdate();\n\t\tshape.visible = true;\n\t\tshape.transform.position.set(x, y);\n\t\tshape.text.value = text != null ? text : \"\";\n\t\tshape.allowUploadedUpdate();\n\t}\n\n\tprotected showMajorGridline(\n\t\tshape: EShape,\n\t\tvalue: number,\n\t\tx: number,\n\t\ty: number,\n\t\tsx: number,\n\t\tsy: number\n\t): void {\n\t\tshape.disallowUploadedUpdate();\n\t\tshape.visible = true;\n\t\tshape.transform.position.set(x, y);\n\t\tshape.size.set(sx, sy);\n\t\tshape.allowUploadedUpdate();\n\t}\n\n\tprotected hideMajor(shape: EShape): void {\n\t\tshape.visible = false;\n\t}\n\n\tprotected hideMajorGridline(shape: EShape): void {\n\t\tshape.visible = false;\n\t}\n\n\tprotected showMinor(shape: EShape, x: number, y: number, text?: string): void {\n\t\tshape.disallowUploadedUpdate();\n\t\tshape.visible = true;\n\t\tshape.transform.position.set(x, y);\n\t\tshape.text.value = text != null ? text : \"\";\n\t\tshape.allowUploadedUpdate();\n\t}\n\n\tprotected hideMinor(shape: EShape): void {\n\t\tshape.visible = false;\n\t}\n\n\tprotected newTicks(\n\t\tcoordinate: DChartCoordinate<CHART>,\n\t\tdomainFrom: number,\n\t\tdomainTo: number,\n\t\tdomainVisibleFrom: number,\n\t\tdomainVisibleTo: number,\n\t\tmajorCount: number,\n\t\tmajorCapacity: number,\n\t\tmajorStep: number | DChartCoordinateTickMajorStepFunction | undefined,\n\t\tminorCountPerMajor: number,\n\t\tminorCount: number,\n\t\tminorStep: number | DChartCoordinateTickMinorStepFunction | undefined,\n\t\tmajorResult: number[],\n\t\tminorResult: number[]\n\t): void {\n\t\tcoordinate.ticks(\n\t\t\tdomainFrom,\n\t\t\tdomainTo,\n\t\t\tdomainVisibleFrom,\n\t\t\tdomainVisibleTo,\n\t\t\tmajorCount,\n\t\t\tmajorCapacity,\n\t\t\tmajorStep,\n\t\t\tminorCountPerMajor,\n\t\t\tminorCount,\n\t\t\tminorStep,\n\t\t\tmajorResult,\n\t\t\tminorResult\n\t\t);\n\t}\n\n\tdestroy(): void {\n\t\tthis._major.destroy();\n\t\tthis._minor.destroy();\n\t\tthis._index = 0;\n\t\tthis._container = undefined;\n\t}\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.369.0
2
+ Winter Cardinal UI v0.371.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.369.0
2
+ Winter Cardinal UI v0.371.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.369.0
2
+ Winter Cardinal UI v0.371.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.369.0
2
+ Winter Cardinal UI v0.371.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.369.0
2
+ Winter Cardinal UI v0.371.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -67624,6 +67624,8 @@ var DApplicationLayerOptions = /** @class */ (function () {
67624
67624
  width = bbox.width;
67625
67625
  height = bbox.height;
67626
67626
  }
67627
+ this._isWidthFixed = options.width != null;
67628
+ this._isHeightFixed = options.height != null;
67627
67629
  // Background color
67628
67630
  var background = options === null || options === void 0 ? void 0 : options.background;
67629
67631
  var backgroundColor = 0;
@@ -67692,6 +67694,23 @@ var DApplicationLayerOptions = /** @class */ (function () {
67692
67694
  this._pixi.width = width;
67693
67695
  return this;
67694
67696
  };
67697
+ /**
67698
+ * Returns true if the width is fixed.
67699
+ *
67700
+ * @returns true if the width is fixed.
67701
+ */
67702
+ DApplicationLayerOptions.prototype.isWidthFixed = function () {
67703
+ return this._isWidthFixed;
67704
+ };
67705
+ /**
67706
+ * Makes the canvas width fixed.
67707
+ *
67708
+ * @param fixed true to make the canvas width fixed
67709
+ */
67710
+ DApplicationLayerOptions.prototype.setWidthFixed = function (fixed) {
67711
+ this._isWidthFixed = fixed;
67712
+ return this;
67713
+ };
67695
67714
  /**
67696
67715
  * Returns a canvas height.
67697
67716
  */
@@ -67707,6 +67726,23 @@ var DApplicationLayerOptions = /** @class */ (function () {
67707
67726
  this._pixi.height = height;
67708
67727
  return this;
67709
67728
  };
67729
+ /**
67730
+ * Returns true if the height is fixed.
67731
+ *
67732
+ * @returns true if the height is fixed.
67733
+ */
67734
+ DApplicationLayerOptions.prototype.isHeightFixed = function () {
67735
+ return this._isHeightFixed;
67736
+ };
67737
+ /**
67738
+ * Makes the canvas height fixed.
67739
+ *
67740
+ * @param fixed true to make the canvas height fixed
67741
+ */
67742
+ DApplicationLayerOptions.prototype.setHeightFixed = function (fixed) {
67743
+ this._isHeightFixed = fixed;
67744
+ return this;
67745
+ };
67710
67746
  /**
67711
67747
  * Returns padding sizes.
67712
67748
  * The default padding size is 6.
@@ -68228,23 +68264,34 @@ var DApplicationLayer = /** @class */ (function (_super) {
68228
68264
  };
68229
68265
  DApplicationLayer.prototype.initResizeHandling = function () {
68230
68266
  var _this = this;
68231
- var onResizeBound = function () {
68232
- _this.onResize();
68233
- };
68234
- window.addEventListener("resize", onResizeBound);
68235
- window.addEventListener("orientationchange", onResizeBound);
68267
+ var options = this._options;
68268
+ var isWidthFixed = options.isWidthFixed();
68269
+ var isHeightFixed = options.isHeightFixed();
68270
+ if (!isWidthFixed || !isHeightFixed) {
68271
+ var onResizeBound = function () {
68272
+ _this.onResize();
68273
+ };
68274
+ if (window.ResizeObserver != null) {
68275
+ new ResizeObserver(onResizeBound).observe(this._rootElement);
68276
+ }
68277
+ else {
68278
+ window.addEventListener("resize", onResizeBound);
68279
+ window.addEventListener("orientationchange", onResizeBound);
68280
+ }
68281
+ }
68236
68282
  };
68237
68283
  DApplicationLayer.prototype.onResize = function () {
68284
+ var options = this._options;
68238
68285
  var bbox = this._rootElement.getBoundingClientRect();
68239
- var bboxWidth = bbox.width;
68240
- var bboxHeight = bbox.height;
68241
- this.renderer.resize(bboxWidth, bboxHeight);
68286
+ var newWidth = options.isWidthFixed() ? options.getWidth() : bbox.width;
68287
+ var newHeight = options.isHeightFixed() ? options.getHeight() : bbox.height;
68288
+ this.renderer.resize(newWidth, newHeight);
68242
68289
  var padding = this._padding;
68243
68290
  var children = this.stage.children;
68244
68291
  for (var i = 0, imax = children.length; i < imax; ++i) {
68245
68292
  var child = children[i];
68246
68293
  if (child instanceof DBase) {
68247
- child.onParentResize(bboxWidth, bboxHeight, padding);
68294
+ child.onParentResize(newWidth, newHeight, padding);
68248
68295
  }
68249
68296
  }
68250
68297
  this.update();
@@ -75816,14 +75863,14 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
75816
75863
  this._container = undefined;
75817
75864
  };
75818
75865
  DChartAxisBaseTickContainer.prototype.update = function () {
75866
+ var parser = this._parser;
75819
75867
  var container = this._container;
75820
75868
  var majorShapes = this._major.shapes;
75821
75869
  var minorShapes = this._minor.shapes;
75822
- if (container != null && majorShapes && minorShapes) {
75870
+ if (parser.tick.enable && container != null && majorShapes && minorShapes) {
75823
75871
  var plotArea = container.plotArea;
75824
75872
  var transform = plotArea.container.transform.localTransform;
75825
75873
  var gridlineShapes = this._major.gridline.shapes;
75826
- var parser = this._parser;
75827
75874
  var offset = parser.padding * this._index;
75828
75875
  var work = this._work;
75829
75876
  var coordinate = void 0;