@wcardinal/wcardinal-ui 0.408.0 → 0.409.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.
- package/dist/types/wcardinal/ui/shape/e-shape-buffer.d.ts +3 -9
- package/dist/types/wcardinal/ui/shape/e-shape-container.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/build-bar.d.ts +1 -2
- package/dist/types/wcardinal/ui/shape/variant/build-circle.d.ts +1 -2
- package/dist/types/wcardinal/ui/shape/variant/build-color.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/build-image-sdf.d.ts +0 -1
- package/dist/types/wcardinal/ui/shape/variant/build-line-of-any.d.ts +17 -1
- package/dist/types/wcardinal/ui/shape/variant/build-line.d.ts +2 -3
- package/dist/types/wcardinal/ui/shape/variant/build-null.d.ts +0 -1
- package/dist/types/wcardinal/ui/shape/variant/build-rectangle-rounded.d.ts +2 -3
- package/dist/types/wcardinal/ui/shape/variant/build-rectangle.d.ts +4 -5
- package/dist/types/wcardinal/ui/shape/variant/build-semicircle.d.ts +1 -2
- package/dist/types/wcardinal/ui/shape/variant/build-text.d.ts +0 -1
- package/dist/types/wcardinal/ui/shape/variant/build-triangle-rounded.d.ts +1 -2
- package/dist/types/wcardinal/ui/shape/variant/build-triangle.d.ts +1 -2
- package/dist/types/wcardinal/ui/shape/variant/builder-bar.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/builder-base.d.ts +1 -2
- package/dist/types/wcardinal/ui/shape/variant/builder-line-of-any.d.ts +1 -2
- package/dist/types/wcardinal/ui/shape/variant/builder-line-of-rectangle-roundeds.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/builder-line-of-rectangles.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/builder-line-of-triangle-roundeds.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/builder-line.d.ts +1 -2
- package/dist/types/wcardinal/ui/shape/variant/builder-marker-base.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/builder-marker-rectangle.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/builder-rectangle-pivoted.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/builder-rectangle-rounded.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/builder-rectangle.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/builder-text.d.ts +1 -2
- package/dist/types/wcardinal/ui/shape/variant/builder-triangle-rounded.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/builder.d.ts +9 -18
- package/dist/types/wcardinal/ui/shape/variant/index.d.ts +0 -1
- package/dist/types/wcardinal/ui/shape/variant/to-dash.d.ts +1 -2
- package/dist/types/wcardinal/ui/shape/variant/to-normal-packed.d.ts +1 -0
- package/dist/types/wcardinal/ui/shape/variant/to-normal.d.ts +1 -0
- package/dist/types/wcardinal/ui/shape/variant/to-packed.d.ts +2 -0
- package/dist/types/wcardinal/ui/shape/variant/to-vector-length.d.ts +1 -0
- package/dist/types/wcardinal/ui/shape/variant/to-vector.d.ts +1 -0
- package/dist/wcardinal/ui/shape/e-shape-buffer.js +10 -30
- package/dist/wcardinal/ui/shape/e-shape-buffer.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-container.js +1 -1
- package/dist/wcardinal/ui/shape/e-shape-container.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-renderer.js +4 -5
- package/dist/wcardinal/ui/shape/e-shape-renderer.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/build-bar.js +37 -63
- package/dist/wcardinal/ui/shape/variant/build-bar.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/build-circle.js +63 -40
- package/dist/wcardinal/ui/shape/variant/build-circle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/build-color.js +8 -11
- package/dist/wcardinal/ui/shape/variant/build-color.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/build-image-sdf.js +30 -37
- package/dist/wcardinal/ui/shape/variant/build-image-sdf.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/build-line-of-any.js +244 -25
- package/dist/wcardinal/ui/shape/variant/build-line-of-any.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/build-line.js +149 -129
- package/dist/wcardinal/ui/shape/variant/build-line.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/build-null.js +0 -7
- package/dist/wcardinal/ui/shape/variant/build-null.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/build-rectangle-rounded.js +917 -849
- package/dist/wcardinal/ui/shape/variant/build-rectangle-rounded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/build-rectangle.js +279 -353
- package/dist/wcardinal/ui/shape/variant/build-rectangle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/build-semicircle.js +45 -31
- package/dist/wcardinal/ui/shape/variant/build-semicircle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/build-text.js +6 -13
- package/dist/wcardinal/ui/shape/variant/build-text.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/build-triangle-rounded.js +255 -128
- package/dist/wcardinal/ui/shape/variant/build-triangle-rounded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/build-triangle.js +55 -35
- package/dist/wcardinal/ui/shape/variant/build-triangle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-bar.js +8 -11
- package/dist/wcardinal/ui/shape/variant/builder-bar.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-base.js +18 -22
- package/dist/wcardinal/ui/shape/variant/builder-base.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-circle.js +4 -7
- package/dist/wcardinal/ui/shape/variant/builder-circle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-image-sdf.js +3 -6
- package/dist/wcardinal/ui/shape/variant/builder-image-sdf.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-line-of-any.js +13 -17
- package/dist/wcardinal/ui/shape/variant/builder-line-of-any.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-line-of-circles.js +5 -12
- package/dist/wcardinal/ui/shape/variant/builder-line-of-circles.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-line-of-rectangle-roundeds.js +10 -26
- package/dist/wcardinal/ui/shape/variant/builder-line-of-rectangle-roundeds.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-line-of-rectangles.js +9 -25
- package/dist/wcardinal/ui/shape/variant/builder-line-of-rectangles.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-line-of-triangle-roundeds.js +9 -25
- package/dist/wcardinal/ui/shape/variant/builder-line-of-triangle-roundeds.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-line-of-triangles.js +5 -12
- package/dist/wcardinal/ui/shape/variant/builder-line-of-triangles.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-line.js +13 -27
- package/dist/wcardinal/ui/shape/variant/builder-line.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-marker-base.js +27 -19
- package/dist/wcardinal/ui/shape/variant/builder-marker-base.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-marker-circle.js +4 -7
- package/dist/wcardinal/ui/shape/variant/builder-marker-circle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-marker-rectangle.js +7 -13
- package/dist/wcardinal/ui/shape/variant/builder-marker-rectangle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-marker-triangle.js +4 -7
- package/dist/wcardinal/ui/shape/variant/builder-marker-triangle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-rectangle-pivoted.js +7 -13
- package/dist/wcardinal/ui/shape/variant/builder-rectangle-pivoted.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-rectangle-rounded.js +6 -12
- package/dist/wcardinal/ui/shape/variant/builder-rectangle-rounded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-rectangle.js +7 -13
- package/dist/wcardinal/ui/shape/variant/builder-rectangle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-semicircle.js +4 -7
- package/dist/wcardinal/ui/shape/variant/builder-semicircle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-text.js +19 -28
- package/dist/wcardinal/ui/shape/variant/builder-text.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-triangle-rounded.js +7 -12
- package/dist/wcardinal/ui/shape/variant/builder-triangle-rounded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder-triangle.js +4 -7
- package/dist/wcardinal/ui/shape/variant/builder-triangle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/builder.js +18 -14
- package/dist/wcardinal/ui/shape/variant/builder.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/index.js +0 -1
- package/dist/wcardinal/ui/shape/variant/index.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/to-dash.js +8 -9
- package/dist/wcardinal/ui/shape/variant/to-dash.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/to-normal-packed.js +7 -0
- package/dist/wcardinal/ui/shape/variant/to-normal-packed.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/to-normal.js +15 -0
- package/dist/wcardinal/ui/shape/variant/to-normal.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/to-packed.js +7 -0
- package/dist/wcardinal/ui/shape/variant/to-packed.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/to-vector-length.js +4 -0
- package/dist/wcardinal/ui/shape/variant/to-vector-length.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/to-vector.js +6 -0
- package/dist/wcardinal/ui/shape/variant/to-vector.js.map +1 -0
- package/dist/wcardinal-ui-theme-dark-en-us.js +1 -1
- package/dist/wcardinal-ui-theme-dark-en-us.min.js +1 -1
- package/dist/wcardinal-ui-theme-dark-ja-jp.js +1 -1
- package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +1 -1
- package/dist/wcardinal-ui-theme-dark.js +1 -1
- package/dist/wcardinal-ui-theme-dark.min.js +1 -1
- package/dist/wcardinal-ui-theme-white-en-us.js +1 -1
- package/dist/wcardinal-ui-theme-white-en-us.min.js +1 -1
- package/dist/wcardinal-ui-theme-white-ja-jp.js +1 -1
- package/dist/wcardinal-ui-theme-white-ja-jp.min.js +1 -1
- package/dist/wcardinal-ui-theme-white.js +1 -1
- package/dist/wcardinal-ui-theme-white.min.js +1 -1
- package/dist/wcardinal-ui.cjs.js +2306 -2094
- package/dist/wcardinal-ui.js +2302 -2090
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/wcardinal/ui/shape/variant/copy-clipping.d.ts +0 -1
- package/dist/wcardinal/ui/shape/variant/copy-clipping.js +0 -20
- package/dist/wcardinal/ui/shape/variant/copy-clipping.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder-text.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/builder-text.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAIlC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EACN,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,eAAe,EACf,SAAS,EACT,sBAAsB,EACtB,uBAAuB,EACvB,iBAAiB,EACjB,MAAM,cAAc,CAAC;AACtB,OAAO,EAA0B,WAAW,EAAE,MAAM,WAAW,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEpF;IAuCC,qBACC,MAAqB,EACrB,YAAoB,EACpB,WAAmB,EACnB,WAAmB,EACnB,UAAkB;QAElB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,WAAW,GAAG,WAAW,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IAAI,EACT,gBAAgB,EAChB,UAAU,EACV,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,MAAM,CACX,CAAC;SACF;IACF,CAAC;IAED,+BAAS,GAAT,UAAU,OAAgC;QACzC,IAAI,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE;YACzB,IAAM,WAAW,GAAG,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,KAAK,CAAC;YAClD,IAAM,eAAe,GAAG,WAAW,CAAC,WAAW,CAAC;YAChD,IAAI,eAAe,KAAK,OAAO,CAAC,WAAW,EAAE;gBAC5C,OAAO,CAAC,WAAW,GAAG,eAAe,CAAC;gBACtC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;aAC5C;SACD;IACF,CAAC;IACF,kBAAC;AAAD,CAAC,AAnXD,IAmXC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Texture } from \"pixi.js\";\nimport { EShape } from \"../e-shape\";\nimport { EShapeBufferUnitBuilder } from \"../e-shape-buffer-unit-builder\";\nimport { EShapeTextAtlas } from \"../e-shape-text\";\nimport { buildColor } from \"./build-color\";\nimport {\n\tbuildTextClipping,\n\tbuildTextIndex,\n\tbuildTextStep,\n\tbuildTextVertex,\n\tTEXT_FMIN,\n\tTEXT_INDEX_COUNT_SHIFT,\n\tTEXT_VERTEX_COUNT_SHIFT,\n\ttoTextBufferCount\n} from \"./build-text\";\nimport { Builder, BuilderBuffer, BuilderFlag } from \"./builder\";\nimport { toTextureTransformId, toTextureUvs, toTransformLocalId } from \"./builders\";\n\nexport class BuilderText implements Builder {\n\tbuffer: BuilderBuffer;\n\tvertexOffset: number;\n\tindexOffset: number;\n\tvertexCount: number;\n\tindexCount: number;\n\n\tprotected inited: BuilderFlag;\n\n\tprotected sizeX: number;\n\tprotected sizeY: number;\n\tprotected transformLocalId: number;\n\tprotected scaleX: number;\n\tprotected scaleY: number;\n\n\tprotected texture: Texture | null;\n\tprotected textureTransformId: number;\n\tprotected value: string;\n\tprotected family: string;\n\tprotected size: number;\n\tprotected color: number;\n\tprotected alpha: number;\n\tprotected weight: number;\n\tprotected style: number;\n\tprotected alignHorizontal: number;\n\tprotected alignVertical: number;\n\tprotected offsetHorizontal: number;\n\tprotected offsetVertical: number;\n\tprotected outlineWidth: number;\n\tprotected outlineColor: number;\n\tprotected outlineAlpha: number;\n\tprotected spacingHorizontal: number;\n\tprotected spacingVertical: number;\n\tprotected direction: number;\n\tprotected paddingHorizontal: number;\n\tprotected paddingVertical: number;\n\tprotected clipping: boolean;\n\tprotected fitting: boolean;\n\n\tconstructor(\n\t\tbuffer: BuilderBuffer,\n\t\tvertexOffset: number,\n\t\tindexOffset: number,\n\t\tvertexCount: number,\n\t\tindexCount: number\n\t) {\n\t\tthis.buffer = buffer;\n\t\tthis.vertexOffset = vertexOffset;\n\t\tthis.indexOffset = indexOffset;\n\t\tthis.vertexCount = vertexCount;\n\t\tthis.indexCount = indexCount;\n\n\t\tthis.inited = BuilderFlag.NONE;\n\n\t\tthis.sizeX = 0;\n\t\tthis.sizeY = 0;\n\n\t\tthis.transformLocalId = 0;\n\n\t\tthis.scaleX = 1;\n\t\tthis.scaleY = 1;\n\n\t\tthis.size = 0;\n\t\tthis.family = \"auto\";\n\t\tthis.value = \"\";\n\t\tthis.texture = null;\n\t\tthis.textureTransformId = 0;\n\t\tthis.color = 0;\n\t\tthis.alpha = 0;\n\t\tthis.weight = 0;\n\t\tthis.style = 0;\n\t\tthis.alignHorizontal = 0;\n\t\tthis.alignVertical = 0;\n\t\tthis.offsetHorizontal = 0;\n\t\tthis.offsetVertical = 0;\n\t\tthis.outlineWidth = 0;\n\t\tthis.outlineColor = 0;\n\t\tthis.outlineAlpha = 0;\n\t\tthis.spacingHorizontal = 0;\n\t\tthis.spacingVertical = 0;\n\t\tthis.direction = 0;\n\t\tthis.paddingHorizontal = 0;\n\t\tthis.paddingVertical = 0;\n\t\tthis.clipping = false;\n\t\tthis.fitting = false;\n\t}\n\n\tinit(): this {\n\t\tconst vcount = this.vertexCount;\n\t\tif (0 < vcount) {\n\t\t\t// Clippings\n\t\t\tconst buffer = this.buffer;\n\t\t\tconst voffset = this.vertexOffset;\n\t\t\tbuffer.updateClippings();\n\t\t\tbuildTextClipping(buffer.clippings, voffset, vcount);\n\n\t\t\t// Indices\n\t\t\tbuffer.updateIndices();\n\t\t\tbuildTextIndex(buffer.indices, voffset, this.indexOffset, this.indexCount);\n\t\t}\n\t\tthis.inited |= BuilderFlag.CLIPPING_AND_INDEX;\n\t\treturn this;\n\t}\n\n\treinit(\n\t\tbuffer: BuilderBuffer,\n\t\tshape: EShape,\n\t\tvertexOffset: number,\n\t\tindexOffset: number\n\t): boolean {\n\t\tconst tcount = toTextBufferCount(shape);\n\t\tconst vertexCount = tcount << TEXT_VERTEX_COUNT_SHIFT;\n\t\tconst indexCount = tcount << TEXT_INDEX_COUNT_SHIFT;\n\t\tif (\n\t\t\tthis.buffer !== buffer ||\n\t\t\tthis.vertexOffset !== vertexOffset ||\n\t\t\tthis.indexOffset !== indexOffset ||\n\t\t\tthis.vertexCount !== vertexCount ||\n\t\t\tthis.indexCount !== indexCount\n\t\t) {\n\t\t\tif (buffer.check(vertexOffset, indexOffset, vertexCount, indexCount)) {\n\t\t\t\tthis.inited = BuilderFlag.NONE;\n\t\t\t\tthis.buffer = buffer;\n\t\t\t\tthis.vertexOffset = vertexOffset;\n\t\t\t\tthis.indexOffset = indexOffset;\n\t\t\t\tthis.vertexCount = vertexCount;\n\t\t\t\tthis.indexCount = indexCount;\n\t\t\t\tthis.init();\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}\n\n\tisCompatible(shape: EShape): boolean {\n\t\treturn toTextBufferCount(shape) << TEXT_VERTEX_COUNT_SHIFT === this.vertexCount;\n\t}\n\n\tupdate(shape: EShape): this {\n\t\tconst vcount = this.vertexCount;\n\t\tif (0 < vcount) {\n\t\t\tconst textAtlas = shape.text.atlas;\n\t\t\tif (textAtlas != null) {\n\t\t\t\tconst buffer = this.buffer;\n\t\t\t\tthis.updateVertex(buffer, shape, textAtlas);\n\t\t\t\tthis.updateColorFill(buffer, shape);\n\t\t\t\tthis.updateColorStroke(buffer, shape);\n\t\t\t\tthis.updateStep(buffer, shape);\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t}\n\n\tprotected updateVertex(buffer: BuilderBuffer, shape: EShape, textAtlas: EShapeTextAtlas): void {\n\t\tconst size = shape.size;\n\t\tconst sizeX = size.x;\n\t\tconst sizeY = size.y;\n\t\tconst isSizeChanged = sizeX !== this.sizeX || sizeY !== this.sizeY;\n\n\t\tconst transformLocalId = toTransformLocalId(shape);\n\t\tconst isTransformChanged = this.transformLocalId !== transformLocalId;\n\n\t\tconst text = shape.text;\n\t\tconst textSize = text.size;\n\t\tconst textFamily = text.family;\n\t\tconst textValue = text.value;\n\t\tconst textStyle = text.style;\n\t\tconst textAlignHorizontal = text.align.horizontal;\n\t\tconst textAlignVertical = text.align.vertical;\n\t\tconst textOffsetHorizontal = text.offset.horizontal;\n\t\tconst textOffsetVertical = text.offset.vertical;\n\t\tconst textSpacingHorizontal = text.spacing.horizontal;\n\t\tconst textSpacingVertical = text.spacing.vertical;\n\t\tconst textDirection = text.direction;\n\t\tconst textPaddingHorizontal = text.padding.horizontal;\n\t\tconst textPaddingVertical = text.padding.vertical;\n\t\tconst textClipping = text.clipping;\n\t\tconst textFitting = text.fitting;\n\t\tconst textTexture = text.texture || Texture.WHITE;\n\t\tconst textTextureTransformId = toTextureTransformId(textTexture);\n\n\t\tconst isCharChanged = textValue !== this.value || textFamily !== this.family;\n\t\tconst isCharSizeChanged = textSize !== this.size;\n\t\tconst isCharStyleChanged = textStyle !== this.style;\n\t\tconst isCharAlignChanged =\n\t\t\ttextAlignHorizontal !== this.alignHorizontal ||\n\t\t\ttextAlignVertical !== this.alignVertical;\n\t\tconst isCharOffsetChanged =\n\t\t\ttextOffsetHorizontal !== this.offsetHorizontal ||\n\t\t\ttextOffsetVertical !== this.offsetVertical;\n\t\tconst isCharSpacingChanged =\n\t\t\ttextSpacingHorizontal !== this.spacingHorizontal ||\n\t\t\ttextSpacingVertical !== this.spacingVertical ||\n\t\t\ttextPaddingHorizontal !== this.paddingHorizontal ||\n\t\t\ttextPaddingVertical !== this.paddingVertical;\n\t\tconst isCharDirectionChanged = textDirection !== this.direction;\n\t\tconst isClippingChanged = this.clipping !== textClipping;\n\t\tconst isFittingChanged = this.fitting !== textFitting;\n\t\tconst isTextureChanged =\n\t\t\ttextTexture !== this.texture || textTextureTransformId !== this.textureTransformId;\n\n\t\tconst isNotInited = !(this.inited & BuilderFlag.VERTEX);\n\n\t\tif (\n\t\t\tisNotInited ||\n\t\t\tisSizeChanged ||\n\t\t\tisTransformChanged ||\n\t\t\tisCharChanged ||\n\t\t\tisCharSizeChanged ||\n\t\t\tisCharStyleChanged ||\n\t\t\tisCharAlignChanged ||\n\t\t\tisCharOffsetChanged ||\n\t\t\tisCharSpacingChanged ||\n\t\t\tisCharDirectionChanged ||\n\t\t\tisClippingChanged ||\n\t\t\tisFittingChanged ||\n\t\t\tisTextureChanged\n\t\t) {\n\t\t\tthis.inited |= BuilderFlag.VERTEX;\n\t\t\tthis.size = textSize;\n\t\t\tthis.family = textFamily;\n\t\t\tthis.value = textValue;\n\t\t\tthis.style = textStyle;\n\t\t\tthis.alignHorizontal = textAlignHorizontal;\n\t\t\tthis.alignVertical = textAlignVertical;\n\t\t\tthis.offsetHorizontal = textOffsetHorizontal;\n\t\t\tthis.offsetVertical = textOffsetVertical;\n\t\t\tthis.spacingHorizontal = textSpacingHorizontal;\n\t\t\tthis.spacingVertical = textSpacingVertical;\n\t\t\tthis.direction = textDirection;\n\t\t\tthis.paddingHorizontal = textPaddingHorizontal;\n\t\t\tthis.paddingVertical = textPaddingVertical;\n\t\t\tthis.clipping = textClipping;\n\t\t\tthis.fitting = textFitting;\n\t\t\tthis.texture = textTexture;\n\t\t\tthis.textureTransformId = textTextureTransformId;\n\n\t\t\tif (isCharSizeChanged || isFittingChanged || (textFitting && isSizeChanged)) {\n\t\t\t\t// Invalidate the step buffer.\n\t\t\t\tthis.inited &= ~BuilderFlag.STEP;\n\t\t\t}\n\n\t\t\t// Vertices & UVs\n\t\t\tbuffer.updateVertices();\n\t\t\tbuffer.updateUvs();\n\t\t\tconst shapeSize = shape.size;\n\t\t\tlet textWorld = text.world;\n\t\t\tif (textWorld == null) {\n\t\t\t\ttextWorld = [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0];\n\t\t\t\ttext.world = textWorld;\n\t\t\t}\n\t\t\tbuildTextVertex(\n\t\t\t\tbuffer.vertices,\n\t\t\t\tbuffer.uvs,\n\t\t\t\tthis.vertexOffset,\n\t\t\t\tthis.vertexCount,\n\t\t\t\t0,\n\t\t\t\t0,\n\t\t\t\tshapeSize.x,\n\t\t\t\tshapeSize.y,\n\t\t\t\ttextAtlas,\n\t\t\t\ttextSize,\n\t\t\t\ttextValue,\n\t\t\t\ttextStyle,\n\t\t\t\ttextAlignHorizontal,\n\t\t\t\ttextAlignVertical,\n\t\t\t\ttextOffsetHorizontal,\n\t\t\t\ttextOffsetVertical,\n\t\t\t\ttextSpacingHorizontal,\n\t\t\t\ttextSpacingVertical,\n\t\t\t\ttextDirection,\n\t\t\t\ttextPaddingHorizontal,\n\t\t\t\ttextPaddingVertical,\n\t\t\t\ttextClipping,\n\t\t\t\ttextFitting,\n\t\t\t\ttextWorld,\n\t\t\t\ttoTextureUvs(textTexture),\n\t\t\t\tshape.transform.internalTransform\n\t\t\t);\n\t\t}\n\t}\n\n\tprotected updateColorFill(buffer: BuilderBuffer, shape: EShape): void {\n\t\tconst text = shape.text;\n\t\tconst color = text.color;\n\t\tconst alpha = shape.visible && text.enable ? text.alpha : 0;\n\t\tconst isNotInited = !(this.inited & BuilderFlag.COLOR_FILL);\n\t\tif (isNotInited || color !== this.color || alpha !== this.alpha) {\n\t\t\tthis.inited |= BuilderFlag.COLOR_FILL;\n\t\t\tthis.color = color;\n\t\t\tthis.alpha = alpha;\n\t\t\tbuffer.updateColorFills();\n\n\t\t\tbuildColor(color, alpha, this.vertexOffset, this.vertexCount, buffer.colorFills);\n\t\t}\n\t}\n\n\tprotected updateColorStroke(buffer: BuilderBuffer, shape: EShape): void {\n\t\tconst text = shape.text;\n\t\tconst outline = text.outline;\n\t\tconst color = outline.color;\n\t\tconst alpha = shape.visible && text.enable ? outline.alpha : 0;\n\t\tconst isNotInited = !(this.inited & BuilderFlag.COLOR_STROKE);\n\t\tif (isNotInited || color !== this.outlineColor || alpha !== this.outlineAlpha) {\n\t\t\tthis.inited |= BuilderFlag.COLOR_STROKE;\n\t\t\tthis.outlineColor = color;\n\t\t\tthis.outlineAlpha = alpha;\n\t\t\tbuffer.updateColorStrokes();\n\n\t\t\tbuildColor(color, alpha, this.vertexOffset, this.vertexCount, buffer.colorStrokes);\n\t\t}\n\t}\n\n\tprotected updateStep(buffer: BuilderBuffer, shape: EShape): void {\n\t\tconst text = shape.text;\n\n\t\tconst textOutline = text.outline;\n\t\tconst textOutlineWidth = textOutline.enable ? textOutline.width : 0;\n\t\tconst isOutlineWidthChanged = textOutlineWidth !== this.outlineWidth;\n\n\t\tconst textWeight = text.weight;\n\t\tconst isWeightChanged = textWeight !== this.weight;\n\n\t\tlet scaleX = 1;\n\t\tlet scaleY = 1;\n\t\tconst textWorld = text.world;\n\t\tif (textWorld != null) {\n\t\t\tscaleX = textWorld[8];\n\t\t\tscaleY = textWorld[9];\n\t\t}\n\t\tconst isScaleChanged =\n\t\t\tTEXT_FMIN < Math.abs(this.scaleX - scaleX) ||\n\t\t\tTEXT_FMIN < Math.abs(this.scaleY - scaleY);\n\n\t\tconst isNotInited = !(this.inited & BuilderFlag.STEP);\n\n\t\tif (isNotInited || isWeightChanged || isOutlineWidthChanged || isScaleChanged) {\n\t\t\tthis.inited |= BuilderFlag.STEP;\n\t\t\tthis.weight = textWeight;\n\t\t\tthis.outlineWidth = textOutlineWidth;\n\t\t\tthis.scaleX = scaleX;\n\t\t\tthis.scaleY = scaleY;\n\n\t\t\tbuffer.updateSteps();\n\t\t\tbuildTextStep(\n\t\t\t\tbuffer.steps,\n\t\t\t\tthis.vertexOffset,\n\t\t\t\tthis.vertexCount,\n\t\t\t\ttext.atlas,\n\t\t\t\ttext.size,\n\t\t\t\ttextOutlineWidth,\n\t\t\t\ttextWeight,\n\t\t\t\tthis.scaleX,\n\t\t\t\tthis.scaleY\n\t\t\t);\n\t\t}\n\t}\n\n\tbuildUnit(builder: EShapeBufferUnitBuilder): void {\n\t\tif (0 < this.vertexCount) {\n\t\t\tconst textTexture = this.texture || Texture.WHITE;\n\t\t\tconst textBaseTexture = textTexture.baseTexture;\n\t\t\tif (textBaseTexture !== builder.baseTexture) {\n\t\t\t\tbuilder.baseTexture = textBaseTexture;\n\t\t\t\tbuilder.push(textTexture, this.indexOffset);\n\t\t\t}\n\t\t}\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"builder-text.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/builder-text.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAIlC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EACN,cAAc,EACd,aAAa,EACb,eAAe,EACf,SAAS,EACT,sBAAsB,EACtB,uBAAuB,EACvB,iBAAiB,EACjB,MAAM,cAAc,CAAC;AACtB,OAAO,EAA0B,WAAW,EAAE,MAAM,WAAW,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEpF;IAuCC,qBACC,MAAqB,EACrB,YAAoB,EACpB,WAAmB,EACnB,WAAmB,EACnB,UAAkB;QAElB,IAAI,CAAC,MAAM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","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Texture } from \"pixi.js\";\nimport { EShape } from \"../e-shape\";\nimport { EShapeBufferUnitBuilder } from \"../e-shape-buffer-unit-builder\";\nimport { EShapeTextAtlas } from \"../e-shape-text\";\nimport { buildColor } from \"./build-color\";\nimport {\n\tbuildTextIndex,\n\tbuildTextStep,\n\tbuildTextVertex,\n\tTEXT_FMIN,\n\tTEXT_INDEX_COUNT_SHIFT,\n\tTEXT_VERTEX_COUNT_SHIFT,\n\ttoTextBufferCount\n} from \"./build-text\";\nimport { Builder, BuilderBuffer, BuilderFlag } from \"./builder\";\nimport { toTextureTransformId, toTextureUvs, toTransformLocalId } from \"./builders\";\n\nexport class BuilderText implements Builder {\n\tbuffer: BuilderBuffer;\n\tvertexOffset: number;\n\tindexOffset: number;\n\tvertexCount: number;\n\tindexCount: number;\n\n\tprotected inited: BuilderFlag;\n\n\tprotected sizeX: number;\n\tprotected sizeY: number;\n\tprotected transformLocalId: number;\n\tprotected scaleX: number;\n\tprotected scaleY: number;\n\n\tprotected texture: Texture | null;\n\tprotected textureTransformId: number;\n\tprotected value: string;\n\tprotected family: string;\n\tprotected size: number;\n\tprotected color: number;\n\tprotected alpha: number;\n\tprotected weight: number;\n\tprotected style: number;\n\tprotected alignHorizontal: number;\n\tprotected alignVertical: number;\n\tprotected offsetHorizontal: number;\n\tprotected offsetVertical: number;\n\tprotected outlineWidth: number;\n\tprotected outlineColor: number;\n\tprotected outlineAlpha: number;\n\tprotected spacingHorizontal: number;\n\tprotected spacingVertical: number;\n\tprotected direction: number;\n\tprotected paddingHorizontal: number;\n\tprotected paddingVertical: number;\n\tprotected clipping: boolean;\n\tprotected fitting: boolean;\n\n\tconstructor(\n\t\tbuffer: BuilderBuffer,\n\t\tvertexOffset: number,\n\t\tindexOffset: number,\n\t\tvertexCount: number,\n\t\tindexCount: number\n\t) {\n\t\tthis.buffer = buffer;\n\t\tthis.vertexOffset = vertexOffset;\n\t\tthis.indexOffset = indexOffset;\n\t\tthis.vertexCount = vertexCount;\n\t\tthis.indexCount = indexCount;\n\n\t\tthis.inited = BuilderFlag.NONE;\n\n\t\tthis.sizeX = 0;\n\t\tthis.sizeY = 0;\n\n\t\tthis.transformLocalId = 0;\n\n\t\tthis.scaleX = 1;\n\t\tthis.scaleY = 1;\n\n\t\tthis.size = 0;\n\t\tthis.family = \"auto\";\n\t\tthis.value = \"\";\n\t\tthis.texture = null;\n\t\tthis.textureTransformId = 0;\n\t\tthis.color = 0;\n\t\tthis.alpha = 0;\n\t\tthis.weight = 0;\n\t\tthis.style = 0;\n\t\tthis.alignHorizontal = 0;\n\t\tthis.alignVertical = 0;\n\t\tthis.offsetHorizontal = 0;\n\t\tthis.offsetVertical = 0;\n\t\tthis.outlineWidth = 0;\n\t\tthis.outlineColor = 0;\n\t\tthis.outlineAlpha = 0;\n\t\tthis.spacingHorizontal = 0;\n\t\tthis.spacingVertical = 0;\n\t\tthis.direction = 0;\n\t\tthis.paddingHorizontal = 0;\n\t\tthis.paddingVertical = 0;\n\t\tthis.clipping = false;\n\t\tthis.fitting = false;\n\t}\n\n\tinit(): this {\n\t\tconst vcount = this.vertexCount;\n\t\tif (0 < vcount) {\n\t\t\t// Indices\n\t\t\tconst buffer = this.buffer;\n\t\t\tconst voffset = this.vertexOffset;\n\t\t\tbuffer.updateIndices();\n\t\t\tbuildTextIndex(buffer.indices, voffset, this.indexOffset, this.indexCount);\n\t\t}\n\t\tthis.inited |= BuilderFlag.INDEX;\n\t\treturn this;\n\t}\n\n\treinit(\n\t\tbuffer: BuilderBuffer,\n\t\tshape: EShape,\n\t\tvertexOffset: number,\n\t\tindexOffset: number\n\t): boolean {\n\t\tconst tcount = toTextBufferCount(shape);\n\t\tconst vertexCount = tcount << TEXT_VERTEX_COUNT_SHIFT;\n\t\tconst indexCount = tcount << TEXT_INDEX_COUNT_SHIFT;\n\t\tif (\n\t\t\tthis.buffer !== buffer ||\n\t\t\tthis.vertexOffset !== vertexOffset ||\n\t\t\tthis.indexOffset !== indexOffset ||\n\t\t\tthis.vertexCount !== vertexCount ||\n\t\t\tthis.indexCount !== indexCount\n\t\t) {\n\t\t\tif (buffer.check(vertexOffset, indexOffset, vertexCount, indexCount)) {\n\t\t\t\tthis.inited = BuilderFlag.NONE;\n\t\t\t\tthis.buffer = buffer;\n\t\t\t\tthis.vertexOffset = vertexOffset;\n\t\t\t\tthis.indexOffset = indexOffset;\n\t\t\t\tthis.vertexCount = vertexCount;\n\t\t\t\tthis.indexCount = indexCount;\n\t\t\t\tthis.init();\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}\n\n\tisCompatible(shape: EShape): boolean {\n\t\treturn toTextBufferCount(shape) << TEXT_VERTEX_COUNT_SHIFT === this.vertexCount;\n\t}\n\n\tupdate(shape: EShape): this {\n\t\tconst vcount = this.vertexCount;\n\t\tif (0 < vcount) {\n\t\t\tconst textAtlas = shape.text.atlas;\n\t\t\tif (textAtlas != null) {\n\t\t\t\tconst buffer = this.buffer;\n\t\t\t\tthis.updateVertex(buffer, shape, textAtlas);\n\t\t\t\tthis.updateColor(buffer, shape);\n\t\t\t\tthis.updateStep(buffer, shape);\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t}\n\n\tprotected updateVertex(buffer: BuilderBuffer, shape: EShape, textAtlas: EShapeTextAtlas): void {\n\t\tconst size = shape.size;\n\t\tconst sizeX = size.x;\n\t\tconst sizeY = size.y;\n\t\tconst isSizeChanged = sizeX !== this.sizeX || sizeY !== this.sizeY;\n\n\t\tconst transformLocalId = toTransformLocalId(shape);\n\t\tconst isTransformChanged = this.transformLocalId !== transformLocalId;\n\n\t\tconst text = shape.text;\n\t\tconst textSize = text.size;\n\t\tconst textFamily = text.family;\n\t\tconst textValue = text.value;\n\t\tconst textStyle = text.style;\n\t\tconst textAlignHorizontal = text.align.horizontal;\n\t\tconst textAlignVertical = text.align.vertical;\n\t\tconst textOffsetHorizontal = text.offset.horizontal;\n\t\tconst textOffsetVertical = text.offset.vertical;\n\t\tconst textSpacingHorizontal = text.spacing.horizontal;\n\t\tconst textSpacingVertical = text.spacing.vertical;\n\t\tconst textDirection = text.direction;\n\t\tconst textPaddingHorizontal = text.padding.horizontal;\n\t\tconst textPaddingVertical = text.padding.vertical;\n\t\tconst textClipping = text.clipping;\n\t\tconst textFitting = text.fitting;\n\t\tconst textTexture = text.texture || Texture.WHITE;\n\t\tconst textTextureTransformId = toTextureTransformId(textTexture);\n\n\t\tconst isCharChanged = textValue !== this.value || textFamily !== this.family;\n\t\tconst isCharSizeChanged = textSize !== this.size;\n\t\tconst isCharStyleChanged = textStyle !== this.style;\n\t\tconst isCharAlignChanged =\n\t\t\ttextAlignHorizontal !== this.alignHorizontal ||\n\t\t\ttextAlignVertical !== this.alignVertical;\n\t\tconst isCharOffsetChanged =\n\t\t\ttextOffsetHorizontal !== this.offsetHorizontal ||\n\t\t\ttextOffsetVertical !== this.offsetVertical;\n\t\tconst isCharSpacingChanged =\n\t\t\ttextSpacingHorizontal !== this.spacingHorizontal ||\n\t\t\ttextSpacingVertical !== this.spacingVertical ||\n\t\t\ttextPaddingHorizontal !== this.paddingHorizontal ||\n\t\t\ttextPaddingVertical !== this.paddingVertical;\n\t\tconst isCharDirectionChanged = textDirection !== this.direction;\n\t\tconst isClippingChanged = this.clipping !== textClipping;\n\t\tconst isFittingChanged = this.fitting !== textFitting;\n\t\tconst isTextureChanged =\n\t\t\ttextTexture !== this.texture || textTextureTransformId !== this.textureTransformId;\n\n\t\tconst isNotInited = !(this.inited & BuilderFlag.VERTEX);\n\n\t\tif (\n\t\t\tisNotInited ||\n\t\t\tisSizeChanged ||\n\t\t\tisTransformChanged ||\n\t\t\tisCharChanged ||\n\t\t\tisCharSizeChanged ||\n\t\t\tisCharStyleChanged ||\n\t\t\tisCharAlignChanged ||\n\t\t\tisCharOffsetChanged ||\n\t\t\tisCharSpacingChanged ||\n\t\t\tisCharDirectionChanged ||\n\t\t\tisClippingChanged ||\n\t\t\tisFittingChanged ||\n\t\t\tisTextureChanged\n\t\t) {\n\t\t\tthis.inited |= BuilderFlag.VERTEX;\n\t\t\tthis.size = textSize;\n\t\t\tthis.family = textFamily;\n\t\t\tthis.value = textValue;\n\t\t\tthis.style = textStyle;\n\t\t\tthis.alignHorizontal = textAlignHorizontal;\n\t\t\tthis.alignVertical = textAlignVertical;\n\t\t\tthis.offsetHorizontal = textOffsetHorizontal;\n\t\t\tthis.offsetVertical = textOffsetVertical;\n\t\t\tthis.spacingHorizontal = textSpacingHorizontal;\n\t\t\tthis.spacingVertical = textSpacingVertical;\n\t\t\tthis.direction = textDirection;\n\t\t\tthis.paddingHorizontal = textPaddingHorizontal;\n\t\t\tthis.paddingVertical = textPaddingVertical;\n\t\t\tthis.clipping = textClipping;\n\t\t\tthis.fitting = textFitting;\n\t\t\tthis.texture = textTexture;\n\t\t\tthis.textureTransformId = textTextureTransformId;\n\n\t\t\tif (isCharSizeChanged || isFittingChanged || (textFitting && isSizeChanged)) {\n\t\t\t\t// Invalidate the step buffer.\n\t\t\t\tthis.inited &= ~BuilderFlag.STEP;\n\t\t\t}\n\n\t\t\t// Vertices & UVs\n\t\t\tbuffer.updateVertices();\n\t\t\tbuffer.updateUvs();\n\t\t\tconst shapeSize = shape.size;\n\t\t\tlet textWorld = text.world;\n\t\t\tif (textWorld == null) {\n\t\t\t\ttextWorld = [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0];\n\t\t\t\ttext.world = textWorld;\n\t\t\t}\n\t\t\tbuildTextVertex(\n\t\t\t\tbuffer.vertices,\n\t\t\t\tbuffer.uvs,\n\t\t\t\tthis.vertexOffset,\n\t\t\t\tthis.vertexCount,\n\t\t\t\t0,\n\t\t\t\t0,\n\t\t\t\tshapeSize.x,\n\t\t\t\tshapeSize.y,\n\t\t\t\ttextAtlas,\n\t\t\t\ttextSize,\n\t\t\t\ttextValue,\n\t\t\t\ttextStyle,\n\t\t\t\ttextAlignHorizontal,\n\t\t\t\ttextAlignVertical,\n\t\t\t\ttextOffsetHorizontal,\n\t\t\t\ttextOffsetVertical,\n\t\t\t\ttextSpacingHorizontal,\n\t\t\t\ttextSpacingVertical,\n\t\t\t\ttextDirection,\n\t\t\t\ttextPaddingHorizontal,\n\t\t\t\ttextPaddingVertical,\n\t\t\t\ttextClipping,\n\t\t\t\ttextFitting,\n\t\t\t\ttextWorld,\n\t\t\t\ttoTextureUvs(textTexture),\n\t\t\t\tshape.transform.internalTransform\n\t\t\t);\n\t\t}\n\t}\n\n\tprotected updateColor(buffer: BuilderBuffer, shape: EShape): void {\n\t\tconst text = shape.text;\n\t\tconst color = text.color;\n\t\tconst alpha = shape.visible && text.enable ? text.alpha : 0;\n\n\t\tconst outline = text.outline;\n\t\tconst outlineColor = outline.color;\n\t\tconst outlineAlpha = shape.visible && text.enable ? outline.alpha : 0;\n\t\tconst isNotInited = !(this.inited & BuilderFlag.COLOR);\n\n\t\tif (\n\t\t\tisNotInited ||\n\t\t\tcolor !== this.color ||\n\t\t\talpha !== this.alpha ||\n\t\t\tcolor !== this.outlineColor ||\n\t\t\talpha !== this.outlineAlpha\n\t\t) {\n\t\t\tthis.inited |= BuilderFlag.COLOR;\n\t\t\tthis.color = color;\n\t\t\tthis.alpha = alpha;\n\t\t\tthis.outlineColor = outlineColor;\n\t\t\tthis.outlineAlpha = outlineAlpha;\n\t\t\tbuffer.updateColors();\n\n\t\t\tbuildColor(\n\t\t\t\tcolor,\n\t\t\t\talpha,\n\t\t\t\toutlineColor,\n\t\t\t\toutlineAlpha,\n\t\t\t\tthis.vertexOffset,\n\t\t\t\tthis.vertexCount,\n\t\t\t\tbuffer.colors\n\t\t\t);\n\t\t}\n\t}\n\n\tprotected updateStep(buffer: BuilderBuffer, shape: EShape): void {\n\t\tconst text = shape.text;\n\n\t\tconst textOutline = text.outline;\n\t\tconst textOutlineWidth = textOutline.enable ? textOutline.width : 0;\n\t\tconst isOutlineWidthChanged = textOutlineWidth !== this.outlineWidth;\n\n\t\tconst textWeight = text.weight;\n\t\tconst isWeightChanged = textWeight !== this.weight;\n\n\t\tlet scaleX = 1;\n\t\tlet scaleY = 1;\n\t\tconst textWorld = text.world;\n\t\tif (textWorld != null) {\n\t\t\tscaleX = textWorld[8];\n\t\t\tscaleY = textWorld[9];\n\t\t}\n\t\tconst isScaleChanged =\n\t\t\tTEXT_FMIN < Math.abs(this.scaleX - scaleX) ||\n\t\t\tTEXT_FMIN < Math.abs(this.scaleY - scaleY);\n\n\t\tconst isNotInited = !(this.inited & BuilderFlag.STEP);\n\n\t\tif (isNotInited || isWeightChanged || isOutlineWidthChanged || isScaleChanged) {\n\t\t\tthis.inited |= BuilderFlag.STEP;\n\t\t\tthis.weight = textWeight;\n\t\t\tthis.outlineWidth = textOutlineWidth;\n\t\t\tthis.scaleX = scaleX;\n\t\t\tthis.scaleY = scaleY;\n\n\t\t\tbuffer.updateSteps();\n\t\t\tbuildTextStep(\n\t\t\t\tbuffer.steps,\n\t\t\t\tthis.vertexOffset,\n\t\t\t\tthis.vertexCount,\n\t\t\t\ttext.atlas,\n\t\t\t\ttext.size,\n\t\t\t\ttextOutlineWidth,\n\t\t\t\ttextWeight,\n\t\t\t\tthis.scaleX,\n\t\t\t\tthis.scaleY\n\t\t\t);\n\t\t}\n\t}\n\n\tbuildUnit(builder: EShapeBufferUnitBuilder): void {\n\t\tif (0 < this.vertexCount) {\n\t\t\tconst textTexture = this.texture || Texture.WHITE;\n\t\t\tconst textBaseTexture = textTexture.baseTexture;\n\t\t\tif (textBaseTexture !== builder.baseTexture) {\n\t\t\t\tbuilder.baseTexture = textBaseTexture;\n\t\t\t\tbuilder.push(textTexture, this.indexOffset);\n\t\t\t}\n\t\t}\n\t}\n}\n"]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
import { __extends } from "tslib";
|
|
6
|
-
import {
|
|
6
|
+
import { buildTriangleRoundedIndex, buildTriangleRoundedStep, buildTriangleRoundedUv, buildTriangleRoundedVertex, TRIANGLE_ROUNDED_INDEX_COUNT, TRIANGLE_ROUNDED_VERTEX_COUNT, TRIANGLE_ROUNDED_WORLD_SIZE } from "./build-triangle-rounded";
|
|
7
7
|
import { BuilderFlag } from "./builder";
|
|
8
8
|
import { BuilderBase } from "./builder-base";
|
|
9
9
|
import { toTexture, toTextureTransformId, toTextureUvs, toTransformLocalId } from "./builders";
|
|
@@ -23,11 +23,10 @@ var BuilderTriangleRounded = /** @class */ (function (_super) {
|
|
|
23
23
|
};
|
|
24
24
|
BuilderTriangleRounded.prototype.update = function (shape) {
|
|
25
25
|
var buffer = this.buffer;
|
|
26
|
-
this.
|
|
27
|
-
this.
|
|
28
|
-
this.updateColorStroke(buffer, shape);
|
|
26
|
+
this.updateVertexStepAndUv(buffer, shape);
|
|
27
|
+
this.updateColor(buffer, shape);
|
|
29
28
|
};
|
|
30
|
-
BuilderTriangleRounded.prototype.
|
|
29
|
+
BuilderTriangleRounded.prototype.updateVertexStepAndUv = function (buffer, shape) {
|
|
31
30
|
var size = shape.size;
|
|
32
31
|
var sizeX = size.x;
|
|
33
32
|
var sizeY = size.y;
|
|
@@ -49,13 +48,13 @@ var BuilderTriangleRounded = /** @class */ (function (_super) {
|
|
|
49
48
|
var textureTransformId = toTextureTransformId(texture);
|
|
50
49
|
var isTextureChanged = texture !== this.texture || textureTransformId !== this.textureTransformId;
|
|
51
50
|
var isVertexChanged = isSizeChanged || isRadiusChanged || isStrokeChanged;
|
|
52
|
-
var isNotInited = !(this.inited & BuilderFlag.
|
|
51
|
+
var isNotInited = !(this.inited & BuilderFlag.VERTEX_STEP_AND_UV);
|
|
53
52
|
if (isNotInited ||
|
|
54
53
|
isVertexChanged ||
|
|
55
54
|
isTransformChanged ||
|
|
56
55
|
isCornerChanged ||
|
|
57
56
|
isTextureChanged) {
|
|
58
|
-
this.inited |= BuilderFlag.
|
|
57
|
+
this.inited |= BuilderFlag.VERTEX_STEP_AND_UV;
|
|
59
58
|
this.sizeX = sizeX;
|
|
60
59
|
this.sizeY = sizeY;
|
|
61
60
|
this.radius = radius;
|
|
@@ -69,13 +68,9 @@ var BuilderTriangleRounded = /** @class */ (function (_super) {
|
|
|
69
68
|
var voffset = this.vertexOffset;
|
|
70
69
|
buffer.updateVertices();
|
|
71
70
|
buildTriangleRoundedVertex(buffer.vertices, voffset, 0, 0, sizeX, sizeY, strokeAlign, strokeWidth, radius, shape.transform.internalTransform, TRIANGLE_ROUNDED_WORLD_SIZE);
|
|
72
|
-
if (isNotInited || isRadiusChanged || isCornerChanged) {
|
|
73
|
-
buffer.updateClippings();
|
|
74
|
-
buildTriangleRoundedClipping(buffer.clippings, voffset, corner, radius);
|
|
75
|
-
}
|
|
76
71
|
if (isNotInited || isVertexChanged || isTransformChanged || isCornerChanged) {
|
|
77
72
|
buffer.updateSteps();
|
|
78
|
-
buildTriangleRoundedStep(buffer.steps,
|
|
73
|
+
buildTriangleRoundedStep(buffer.steps, voffset, strokeWidth, strokeStyle, corner, radius, TRIANGLE_ROUNDED_WORLD_SIZE);
|
|
79
74
|
}
|
|
80
75
|
if (isNotInited || isVertexChanged || isTextureChanged) {
|
|
81
76
|
buffer.updateUvs();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder-triangle-rounded.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/builder-triangle-rounded.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAIH,OAAO,EACN,
|
|
1
|
+
{"version":3,"file":"builder-triangle-rounded.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/builder-triangle-rounded.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAIH,OAAO,EACN,yBAAyB,EACzB,wBAAwB,EACxB,sBAAsB,EACtB,0BAA0B,EAC1B,4BAA4B,EAC5B,6BAA6B,E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,CAA4C,WAAW,GA2HtD","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShape } from \"../e-shape\";\nimport { EShapeCorner } from \"../e-shape-corner\";\nimport {\n\tbuildTriangleRoundedIndex,\n\tbuildTriangleRoundedStep,\n\tbuildTriangleRoundedUv,\n\tbuildTriangleRoundedVertex,\n\tTRIANGLE_ROUNDED_INDEX_COUNT,\n\tTRIANGLE_ROUNDED_VERTEX_COUNT,\n\tTRIANGLE_ROUNDED_WORLD_SIZE\n} from \"./build-triangle-rounded\";\nimport { BuilderBuffer, BuilderFlag } from \"./builder\";\nimport { BuilderBase } from \"./builder-base\";\nimport { toTexture, toTextureTransformId, toTextureUvs, toTransformLocalId } from \"./builders\";\n\nexport class BuilderTriangleRounded extends BuilderBase {\n\tprotected radius: number;\n\tprotected corner: EShapeCorner;\n\n\tconstructor(buffer: BuilderBuffer, vertexOffset: number, indexOffset: number) {\n\t\tsuper(\n\t\t\tbuffer,\n\t\t\tvertexOffset,\n\t\t\tindexOffset,\n\t\t\tTRIANGLE_ROUNDED_VERTEX_COUNT,\n\t\t\tTRIANGLE_ROUNDED_INDEX_COUNT\n\t\t);\n\t\tthis.radius = 0;\n\t\tthis.corner = 0;\n\t}\n\n\toverride init(): void {\n\t\tconst buffer = this.buffer;\n\t\tbuffer.updateIndices();\n\t\tbuildTriangleRoundedIndex(buffer.indices, this.vertexOffset, this.indexOffset);\n\t\tthis.inited |= BuilderFlag.INDEX;\n\t}\n\n\toverride update(shape: EShape): void {\n\t\tconst buffer = this.buffer;\n\t\tthis.updateVertexStepAndUv(buffer, shape);\n\t\tthis.updateColor(buffer, shape);\n\t}\n\n\tprotected updateVertexStepAndUv(buffer: BuilderBuffer, shape: EShape): void {\n\t\tconst size = shape.size;\n\t\tconst sizeX = size.x;\n\t\tconst sizeY = size.y;\n\t\tconst isSizeChanged = sizeX !== this.sizeX || sizeY !== this.sizeY;\n\n\t\tconst radius = shape.radius;\n\t\tconst isRadiusChanged = radius !== this.radius;\n\n\t\tconst transformLocalId = toTransformLocalId(shape);\n\t\tconst isTransformChanged = this.transformLocalId !== transformLocalId;\n\n\t\tconst stroke = shape.stroke;\n\t\tconst strokeAlign = stroke.align;\n\t\tconst strokeWidth = stroke.enable ? stroke.width : 0;\n\t\tconst strokeStyle = stroke.style;\n\t\tconst isStrokeChanged =\n\t\t\tthis.strokeAlign !== strokeAlign ||\n\t\t\tthis.strokeWidth !== strokeWidth ||\n\t\t\tthis.strokeStyle !== strokeStyle;\n\n\t\tconst corner = shape.corner;\n\t\tconst isCornerChanged = corner !== this.corner;\n\n\t\tconst texture = toTexture(shape);\n\t\tconst textureTransformId = toTextureTransformId(texture);\n\t\tconst isTextureChanged =\n\t\t\ttexture !== this.texture || textureTransformId !== this.textureTransformId;\n\n\t\tconst isVertexChanged = isSizeChanged || isRadiusChanged || isStrokeChanged;\n\n\t\tconst isNotInited = !(this.inited & BuilderFlag.VERTEX_STEP_AND_UV);\n\n\t\tif (\n\t\t\tisNotInited ||\n\t\t\tisVertexChanged ||\n\t\t\tisTransformChanged ||\n\t\t\tisCornerChanged ||\n\t\t\tisTextureChanged\n\t\t) {\n\t\t\tthis.inited |= BuilderFlag.VERTEX_STEP_AND_UV;\n\t\t\tthis.sizeX = sizeX;\n\t\t\tthis.sizeY = sizeY;\n\t\t\tthis.radius = radius;\n\t\t\tthis.transformLocalId = transformLocalId;\n\t\t\tthis.strokeAlign = strokeAlign;\n\t\t\tthis.strokeWidth = strokeWidth;\n\t\t\tthis.strokeStyle = strokeStyle;\n\t\t\tthis.corner = corner;\n\t\t\tthis.texture = texture;\n\t\t\tthis.textureTransformId = textureTransformId;\n\n\t\t\tconst voffset = this.vertexOffset;\n\n\t\t\tbuffer.updateVertices();\n\t\t\tbuildTriangleRoundedVertex(\n\t\t\t\tbuffer.vertices,\n\t\t\t\tvoffset,\n\t\t\t\t0,\n\t\t\t\t0,\n\t\t\t\tsizeX,\n\t\t\t\tsizeY,\n\t\t\t\tstrokeAlign,\n\t\t\t\tstrokeWidth,\n\t\t\t\tradius,\n\t\t\t\tshape.transform.internalTransform,\n\t\t\t\tTRIANGLE_ROUNDED_WORLD_SIZE\n\t\t\t);\n\n\t\t\tif (isNotInited || isVertexChanged || isTransformChanged || isCornerChanged) {\n\t\t\t\tbuffer.updateSteps();\n\t\t\t\tbuildTriangleRoundedStep(\n\t\t\t\t\tbuffer.steps,\n\t\t\t\t\tvoffset,\n\t\t\t\t\tstrokeWidth,\n\t\t\t\t\tstrokeStyle,\n\t\t\t\t\tcorner,\n\t\t\t\t\tradius,\n\t\t\t\t\tTRIANGLE_ROUNDED_WORLD_SIZE\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif (isNotInited || isVertexChanged || isTextureChanged) {\n\t\t\t\tbuffer.updateUvs();\n\t\t\t\tbuildTriangleRoundedUv(\n\t\t\t\t\tbuffer.uvs,\n\t\t\t\t\tvoffset,\n\t\t\t\t\ttoTextureUvs(texture),\n\t\t\t\t\tradius,\n\t\t\t\t\tTRIANGLE_ROUNDED_WORLD_SIZE\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n}\n"]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
import { __extends } from "tslib";
|
|
6
|
-
import {
|
|
6
|
+
import { buildTriangleIndex, buildTriangleStep, buildTriangleUv, buildTriangleVertex, TRIANGLE_INDEX_COUNT, TRIANGLE_VERTEX_COUNT, TRIANGLE_WORLD_SIZE } from "./build-triangle";
|
|
7
7
|
import { BuilderFlag } from "./builder";
|
|
8
8
|
import { BuilderBase } from "./builder-base";
|
|
9
9
|
import { toTexture, toTextureTransformId, toTextureUvs, toTransformLocalId } from "./builders";
|
|
@@ -14,17 +14,14 @@ var BuilderTriangle = /** @class */ (function (_super) {
|
|
|
14
14
|
}
|
|
15
15
|
BuilderTriangle.prototype.init = function () {
|
|
16
16
|
var buffer = this.buffer;
|
|
17
|
-
buffer.updateClippings();
|
|
18
17
|
buffer.updateIndices();
|
|
19
|
-
buildTriangleClipping(buffer.clippings, this.vertexOffset);
|
|
20
18
|
buildTriangleIndex(buffer.indices, this.vertexOffset, this.indexOffset);
|
|
21
|
-
this.inited |= BuilderFlag.
|
|
19
|
+
this.inited |= BuilderFlag.INDEX;
|
|
22
20
|
};
|
|
23
21
|
BuilderTriangle.prototype.update = function (shape) {
|
|
24
22
|
var buffer = this.buffer;
|
|
25
23
|
this.updateVertexStepAndUv(buffer, shape);
|
|
26
|
-
this.
|
|
27
|
-
this.updateColorStroke(buffer, shape);
|
|
24
|
+
this.updateColor(buffer, shape);
|
|
28
25
|
};
|
|
29
26
|
BuilderTriangle.prototype.updateVertexStepAndUv = function (buffer, shape) {
|
|
30
27
|
var size = shape.size;
|
|
@@ -60,7 +57,7 @@ var BuilderTriangle = /** @class */ (function (_super) {
|
|
|
60
57
|
buildTriangleVertex(buffer.vertices, voffset, 0, 0, sizeX, sizeY, strokeAlign, strokeWidth, shape.transform.internalTransform, TRIANGLE_WORLD_SIZE);
|
|
61
58
|
if (isNotInited || isVertexChanged || isTransformChanged) {
|
|
62
59
|
buffer.updateSteps();
|
|
63
|
-
buildTriangleStep(buffer.steps,
|
|
60
|
+
buildTriangleStep(buffer.steps, voffset, strokeWidth, strokeStyle, TRIANGLE_WORLD_SIZE);
|
|
64
61
|
}
|
|
65
62
|
if (isNotInited || isVertexChanged || isTextureChanged) {
|
|
66
63
|
buffer.updateUvs();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder-triangle.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/builder-triangle.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EACN,
|
|
1
|
+
{"version":3,"file":"builder-triangle.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/builder-triangle.ts"],"names":[],"mappings":"A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,CAAC,WAAW,GAAG,WAAW,CAAC;YAC/B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;YAC/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;YACvB,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;YAE7C,IAAM,OAAO,GAAG,IAAI,CAAC,YAAY,CAAC;YAElC,MAAM,CAAC,cAAc,EAAE,CAAC;YACxB,mBAAmB,CAClB,MAAM,CAAC,QAAQ,EACf,OAAO,EACP,CAAC,EACD,CAAC,EACD,KAAK,EACL,KAAK,EACL,WAAW,EACX,WAAW,EACX,KAAK,CAAC,SAAS,CAAC,iBAAiB,EACjC,mBAAmB,CACnB,CAAC;YAEF,IAAI,WAAW,IAAI,eAAe,IAAI,kBAAkB,EAAE;gBACzD,MAAM,CAAC,WAAW,EAAE,CAAC;gBACrB,iBAAiB,CAChB,MAAM,CAAC,KAAK,EACZ,OAAO,EACP,WAAW,EACX,WAAW,EACX,mBAAmB,CACnB,CAAC;aACF;YAED,IAAI,WAAW,IAAI,eAAe,IAAI,gBAAgB,EAAE;gBACvD,MAAM,CAAC,SAAS,EAAE,CAAC;gBACnB,eAAe,CAAC,MAAM,CAAC,GAAG,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,mBAAmB,CAAC,CAAC;aACjF;SACD;IACF,CAAC;IACF,sBAAC;AAAD,CAAC,AAzFD,CAAqC,WAAW,GAyF/C","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShape } from \"../e-shape\";\nimport {\n\tbuildTriangleIndex,\n\tbuildTriangleStep,\n\tbuildTriangleUv,\n\tbuildTriangleVertex,\n\tTRIANGLE_INDEX_COUNT,\n\tTRIANGLE_VERTEX_COUNT,\n\tTRIANGLE_WORLD_SIZE\n} from \"./build-triangle\";\nimport { BuilderBuffer, BuilderFlag } from \"./builder\";\nimport { BuilderBase } from \"./builder-base\";\nimport { toTexture, toTextureTransformId, toTextureUvs, toTransformLocalId } from \"./builders\";\n\nexport class BuilderTriangle extends BuilderBase {\n\tconstructor(buffer: BuilderBuffer, vertexOffset: number, indexOffset: number) {\n\t\tsuper(buffer, vertexOffset, indexOffset, TRIANGLE_VERTEX_COUNT, TRIANGLE_INDEX_COUNT);\n\t}\n\n\toverride init(): void {\n\t\tconst buffer = this.buffer;\n\t\tbuffer.updateIndices();\n\t\tbuildTriangleIndex(buffer.indices, this.vertexOffset, this.indexOffset);\n\t\tthis.inited |= BuilderFlag.INDEX;\n\t}\n\n\toverride update(shape: EShape): void {\n\t\tconst buffer = this.buffer;\n\t\tthis.updateVertexStepAndUv(buffer, shape);\n\t\tthis.updateColor(buffer, shape);\n\t}\n\n\tprotected updateVertexStepAndUv(buffer: BuilderBuffer, shape: EShape): void {\n\t\tconst size = shape.size;\n\t\tconst sizeX = size.x;\n\t\tconst sizeY = size.y;\n\t\tconst isSizeChanged = sizeX !== this.sizeX || sizeY !== this.sizeY;\n\n\t\tconst transformLocalId = toTransformLocalId(shape);\n\t\tconst isTransformChanged = this.transformLocalId !== transformLocalId;\n\n\t\tconst stroke = shape.stroke;\n\t\tconst strokeAlign = stroke.align;\n\t\tconst strokeWidth = stroke.enable ? stroke.width : 0;\n\t\tconst strokeStyle = stroke.style;\n\t\tconst isStrokeChanged =\n\t\t\tthis.strokeAlign !== strokeAlign ||\n\t\t\tthis.strokeWidth !== strokeWidth ||\n\t\t\tthis.strokeStyle !== strokeStyle;\n\n\t\tconst texture = toTexture(shape);\n\t\tconst textureTransformId = toTextureTransformId(texture);\n\t\tconst isTextureChanged =\n\t\t\ttexture !== this.texture || textureTransformId !== this.textureTransformId;\n\n\t\tconst isVertexChanged = isSizeChanged || isStrokeChanged;\n\n\t\tconst isNotInited = !(this.inited & BuilderFlag.VERTEX_STEP_AND_UV);\n\n\t\tif (isNotInited || isVertexChanged || isTransformChanged || isTextureChanged) {\n\t\t\tthis.inited |= BuilderFlag.VERTEX_STEP_AND_UV;\n\t\t\tthis.sizeX = sizeX;\n\t\t\tthis.sizeY = sizeY;\n\t\t\tthis.transformLocalId = transformLocalId;\n\t\t\tthis.strokeAlign = strokeAlign;\n\t\t\tthis.strokeWidth = strokeWidth;\n\t\t\tthis.strokeStyle = strokeStyle;\n\t\t\tthis.texture = texture;\n\t\t\tthis.textureTransformId = textureTransformId;\n\n\t\t\tconst voffset = this.vertexOffset;\n\n\t\t\tbuffer.updateVertices();\n\t\t\tbuildTriangleVertex(\n\t\t\t\tbuffer.vertices,\n\t\t\t\tvoffset,\n\t\t\t\t0,\n\t\t\t\t0,\n\t\t\t\tsizeX,\n\t\t\t\tsizeY,\n\t\t\t\tstrokeAlign,\n\t\t\t\tstrokeWidth,\n\t\t\t\tshape.transform.internalTransform,\n\t\t\t\tTRIANGLE_WORLD_SIZE\n\t\t\t);\n\n\t\t\tif (isNotInited || isVertexChanged || isTransformChanged) {\n\t\t\t\tbuffer.updateSteps();\n\t\t\t\tbuildTriangleStep(\n\t\t\t\t\tbuffer.steps,\n\t\t\t\t\tvoffset,\n\t\t\t\t\tstrokeWidth,\n\t\t\t\t\tstrokeStyle,\n\t\t\t\t\tTRIANGLE_WORLD_SIZE\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif (isNotInited || isVertexChanged || isTextureChanged) {\n\t\t\t\tbuffer.updateUvs();\n\t\t\t\tbuildTriangleUv(buffer.uvs, toTextureUvs(texture), voffset, TRIANGLE_WORLD_SIZE);\n\t\t\t}\n\t\t}\n\t}\n}\n"]}
|
|
@@ -2,20 +2,24 @@
|
|
|
2
2
|
* Copyright (C) 2019 Toshiba Corporation
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
|
+
var NONE = 0;
|
|
6
|
+
var VERTEX = 1;
|
|
7
|
+
var STEP = 2;
|
|
8
|
+
var COLOR = 4;
|
|
9
|
+
var UV = 8;
|
|
10
|
+
var INDEX = 16;
|
|
11
|
+
var VERTEX_AND_STEP = VERTEX | STEP;
|
|
12
|
+
var VERTEX_STEP_AND_UV = VERTEX_AND_STEP | UV;
|
|
13
|
+
var ALL = VERTEX | STEP | COLOR | UV | INDEX;
|
|
5
14
|
export var BuilderFlag = {
|
|
6
|
-
NONE:
|
|
7
|
-
VERTEX:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
VERTEX_STEP_AND_UV: 37,
|
|
16
|
-
VERTEX_STEP_AND_COLOR_FILL: 13,
|
|
17
|
-
VERTEX_CLIPPING_STEP_AND_UV: 39,
|
|
18
|
-
CLIPPING_AND_INDEX: 66,
|
|
19
|
-
ALL: 127
|
|
15
|
+
NONE: NONE,
|
|
16
|
+
VERTEX: VERTEX,
|
|
17
|
+
STEP: STEP,
|
|
18
|
+
COLOR: COLOR,
|
|
19
|
+
UV: UV,
|
|
20
|
+
INDEX: INDEX,
|
|
21
|
+
VERTEX_AND_STEP: VERTEX_AND_STEP,
|
|
22
|
+
VERTEX_STEP_AND_UV: VERTEX_STEP_AND_UV,
|
|
23
|
+
ALL: ALL
|
|
20
24
|
};
|
|
21
25
|
//# sourceMappingURL=builder.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/builder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,
|
|
1
|
+
{"version":3,"file":"builder.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/builder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,IAAM,IAAI,GAAG,CAAC,CAAC;AACf,IAAM,MAAM,GAAG,CAAC,CAAC;AACjB,IAAM,IAAI,GAAG,CAAC,CAAC;AACf,IAAM,KAAK,GAAG,CAAC,CAAC;AAChB,IAAM,EAAE,GAAG,CAAC,CAAC;AACb,IAAM,KAAK,GAAG,EAAE,CAAC;AAEjB,IAAM,eAAe,GAAG,MAAM,GAAG,IAAI,CAAC;AACtC,IAAM,kBAAkB,GAAG,eAAe,GAAG,EAAE,CAAC;AAEhD,IAAM,GAAG,GAAG,MAAM,GAAG,IAAI,GAAG,KAAK,GAAG,EAAE,GAAG,KAAK,CAAC;AAE/C,MAAM,CAAC,IAAM,WAAW,GAAG;IAC1B,IAAI,MAAA;IACJ,MAAM,QAAA;IACN,IAAI,MAAA;IACJ,KAAK,OAAA;IACL,EAAE,IAAA;IACF,KAAK,OAAA;IAEL,eAAe,iBAAA;IACf,kBAAkB,oBAAA;IAElB,GAAG,KAAA;CACM,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShape } from \"../e-shape\";\nimport { EShapeBufferUnitBuilder } from \"../e-shape-buffer-unit-builder\";\n\nconst NONE = 0;\nconst VERTEX = 1;\nconst STEP = 2;\nconst COLOR = 4;\nconst UV = 8;\nconst INDEX = 16;\n\nconst VERTEX_AND_STEP = VERTEX | STEP;\nconst VERTEX_STEP_AND_UV = VERTEX_AND_STEP | UV;\n\nconst ALL = VERTEX | STEP | COLOR | UV | INDEX;\n\nexport const BuilderFlag = {\n\tNONE,\n\tVERTEX,\n\tSTEP,\n\tCOLOR,\n\tUV,\n\tINDEX,\n\n\tVERTEX_AND_STEP,\n\tVERTEX_STEP_AND_UV,\n\n\tALL\n} as const;\n\nexport type BuilderFlag = number;\n\nexport interface BuilderBuffer {\n\treadonly vertices: Float32Array;\n\treadonly steps: Float32Array;\n\treadonly colors: Float32Array;\n\treadonly uvs: Float32Array;\n\treadonly indices: Uint16Array | Uint32Array;\n\n\tcheck(vindex: number, ioffset: number, vcount: number, icount: number): boolean;\n\n\tupdateVertices(): void;\n\tupdateSteps(): void;\n\tupdateColors(): void;\n\tupdateUvs(): void;\n\tupdateIndices(): void;\n}\n\nexport interface Builder {\n\treadonly buffer: BuilderBuffer;\n\treadonly vertexOffset: number;\n\treadonly indexOffset: number;\n\treadonly vertexCount: number;\n\treadonly indexCount: number;\n\n\tinit(): void;\n\treinit(\n\t\tbuffer: BuilderBuffer,\n\t\tshape: EShape,\n\t\tvertexOffset: number,\n\t\tindexOffset: number\n\t): boolean;\n\tisCompatible(shape: EShape): boolean;\n\tupdate(shape: EShape): void;\n\tbuildUnit(builder: EShapeBufferUnitBuilder): void;\n}\n"]}
|
|
@@ -46,7 +46,6 @@ export * from "./builder-triangle-rounded";
|
|
|
46
46
|
export * from "./builder-triangle";
|
|
47
47
|
export * from "./builder";
|
|
48
48
|
export * from "./builders";
|
|
49
|
-
export * from "./copy-clipping";
|
|
50
49
|
export * from "./copy-index";
|
|
51
50
|
export * from "./copy-step";
|
|
52
51
|
export * from "./copy-uv";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sCAAsC,CAAC;AACrD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CA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) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./build-bar\";\nexport * from \"./build-circle\";\nexport * from \"./build-color\";\nexport * from \"./build-image-sdf\";\nexport * from \"./build-line-of-any\";\nexport * from \"./build-line\";\nexport * from \"./build-null\";\nexport * from \"./build-rectangle-rounded\";\nexport * from \"./build-rectangle\";\nexport * from \"./build-semicircle\";\nexport * from \"./build-text\";\nexport * from \"./build-triangle-rounded\";\nexport * from \"./build-triangle\";\nexport * from \"./builder-bar\";\nexport * from \"./builder-base\";\nexport * from \"./builder-circle\";\nexport * from \"./builder-image-sdf\";\nexport * from \"./builder-label\";\nexport * from \"./builder-line-of-any\";\nexport * from \"./builder-line-of-circles\";\nexport * from \"./builder-line-of-rectangle-roundeds\";\nexport * from \"./builder-line-of-rectangles\";\nexport * from \"./builder-line-of-triangle-roundeds\";\nexport * from \"./builder-line-of-triangles\";\nexport * from \"./builder-line\";\nexport * from \"./builder-marker-circle-head\";\nexport * from \"./builder-marker-circle-tail\";\nexport * from \"./builder-marker-circle\";\nexport * from \"./builder-marker-rectangle-head\";\nexport * from \"./builder-marker-rectangle-tail\";\nexport * from \"./builder-marker-rectangle\";\nexport * from \"./builder-marker-triangle-head\";\nexport * from \"./builder-marker-triangle-tail\";\nexport * from \"./builder-marker-triangle\";\nexport * from \"./builder-null\";\nexport * from \"./builder-rectangle-pivoted\";\nexport * from \"./builder-rectangle-rounded\";\nexport * from \"./builder-rectangle\";\nexport * from \"./builder-semicircle\";\nexport * from \"./builder-text\";\nexport * from \"./builder-triangle-rounded\";\nexport * from \"./builder-triangle\";\nexport * from \"./builder\";\nexport * from \"./builders\";\nexport * from \"./copy-clipping\";\nexport * from \"./copy-index\";\nexport * from \"./copy-step\";\nexport * from \"./copy-uv\";\nexport * from \"./copy-vertex\";\nexport * from \"./create-bar-uploaded\";\nexport * from \"./create-button-uploaded\";\nexport * from \"./create-circle-uploaded\";\nexport * from \"./create-rectangle-pivoted-uploaded\";\nexport * from \"./create-group-uploaded\";\nexport * from \"./create-image-sdf-uploaded\";\nexport * from \"./create-image-sdf\";\nexport * from \"./create-image\";\nexport * from \"./create-label-uploaded\";\nexport * from \"./create-line-of-any-uploaded\";\nexport * from \"./create-line-of-circles-uploaded\";\nexport * from \"./create-line-of-rectangle-roundeds-uploaded\";\nexport * from \"./create-line-of-rectangles-uploaded\";\nexport * from \"./create-line-of-triangle-roundeds-uploaded\";\nexport * from \"./create-line-of-triangles-uploaded\";\nexport * from \"./create-line-uploaded\";\nexport * from \"./create-line\";\nexport * from \"./create-null-uploaded\";\nexport * from \"./create-rectangle-rounded-uploaded\";\nexport * from \"./create-rectangle-uploaded\";\nexport * from \"./create-semicircle-uploaded\";\nexport * from \"./create-triangle-rounded-uploaded\";\nexport * from \"./create-triangle-uploaded\";\nexport * from \"./deserialize-all\";\nexport * from \"./deserialize-bar\";\nexport * from \"./deserialize-base\";\nexport * from \"./deserialize-button\";\nexport * from \"./deserialize-circle\";\nexport * from \"./deserialize-connector-elbow\";\nexport * from \"./deserialize-connector-line\";\nexport * from \"./deserialize-embedded-acceptor-edge\";\nexport * from \"./deserialize-embedded-layer\";\nexport * from \"./deserialize-embedded\";\nexport * from \"./deserialize-gradient\";\nexport * from \"./deserialize-group-shadowed\";\nexport * from \"./deserialize-group\";\nexport * from \"./deserialize-image-sdf\";\nexport * from \"./deserialize-image\";\nexport * from \"./deserialize-label\";\nexport * from \"./deserialize-line-of-circles\";\nexport * from \"./deserialize-line-of-rectangle-roundeds\";\nexport * from \"./deserialize-line-of-rectangles\";\nexport * from \"./deserialize-line-of-triangle-roundeds\";\nexport * from \"./deserialize-line-of-triangles\";\nexport * from \"./deserialize-line\";\nexport * from \"./deserialize-null\";\nexport * from \"./deserialize-rectangle-pivoted\";\nexport * from \"./deserialize-rectangle-rounded\";\nexport * from \"./deserialize-rectangle\";\nexport * from \"./deserialize-semicircle\";\nexport * from \"./deserialize-triangle-rounded\";\nexport * from \"./deserialize-triangle\";\nexport * from \"./deserialize\";\nexport * from \"./e-shape-bar-points\";\nexport * from \"./e-shape-bar-position\";\nexport * from \"./e-shape-bar\";\nexport * from \"./e-shape-base-hit-test-data\";\nexport * from \"./e-shape-base\";\nexport * from \"./e-shape-button-runtime-action-toggle\";\nexport * from \"./e-shape-button-runtime-action\";\nexport * from \"./e-shape-button-runtime\";\nexport * from \"./e-shape-button\";\nexport * from \"./e-shape-circle\";\nexport * from \"./e-shape-connector-elbow-points-filler\";\nexport * from \"./e-shape-connector-elbow\";\nexport * from \"./e-shape-connector-line\";\nexport * from \"./e-shape-embedded-acceptor-edge\";\nexport * from \"./e-shape-embedded-acceptor\";\nexport * from \"./e-shape-embedded-datum\";\nexport * from \"./e-shape-embedded-layer-container\";\nexport * from \"./e-shape-embedded-layer\";\nexport * from \"./e-shape-embedded\";\nexport * from \"./e-shape-embeddeds\";\nexport * from \"./e-shape-fill-impl-parent\";\nexport * from \"./e-shape-fill-impl\";\nexport * from \"./e-shape-group-fill-editor\";\nexport * from \"./e-shape-group-fill-viewer\";\nexport * from \"./e-shape-group-points\";\nexport * from \"./e-shape-group-property-parent\";\nexport * from \"./e-shape-group-shadowed\";\nexport * from \"./e-shape-group-size-editor\";\nexport * from \"./e-shape-group-size-layout\";\nexport * from \"./e-shape-group-size-parent\";\nexport * from \"./e-shape-group-size-shadowed\";\nexport * from \"./e-shape-group-size-viewer\";\nexport * from \"./e-shape-group-size\";\nexport * from \"./e-shape-group-stroke-editor\";\nexport * from \"./e-shape-group-stroke-viewer\";\nexport * from \"./e-shape-group-viewer\";\nexport * from \"./e-shape-group\";\nexport * from \"./e-shape-image-sdf\";\nexport * from \"./e-shape-image\";\nexport * from \"./e-shape-label\";\nexport * from \"./e-shape-line-base-hit-part\";\nexport * from \"./e-shape-line-base-points-hit-tester-to-range\";\nexport * from \"./e-shape-line-base-points-hit-tester-to-threshold\";\nexport * from \"./e-shape-line-base-points-hit-tester\";\nexport * from \"./e-shape-line-base-points\";\nexport * from \"./e-shape-line-base\";\nexport * from \"./e-shape-line-of-any-points-fill-impl\";\nexport * from \"./e-shape-line-of-any-points-fill\";\nexport * from \"./e-shape-line-of-any-points-hit-tester-to-range\";\nexport * from \"./e-shape-line-of-any-points-hit-tester-to-threshold\";\nexport * from \"./e-shape-line-of-any-points-hit-tester\";\nexport * from \"./e-shape-line-of-any-points-impl\";\nexport * from \"./e-shape-line-of-any-points-point-impl\";\nexport * from \"./e-shape-line-of-any-points-point\";\nexport * from \"./e-shape-line-of-any-points-stroke-impl\";\nexport * from \"./e-shape-line-of-any-points-stroke\";\nexport * from \"./e-shape-line-of-any-points\";\nexport * from \"./e-shape-line-of-any-value\";\nexport * from \"./e-shape-line-of-any\";\nexport * from \"./e-shape-line-of-circles\";\nexport * from \"./e-shape-line-of-rectangle-roundeds\";\nexport * from \"./e-shape-line-of-rectangles\";\nexport * from \"./e-shape-line-of-triangle-roundeds\";\nexport * from \"./e-shape-line-of-triangles\";\nexport * from \"./e-shape-line-points\";\nexport * from \"./e-shape-line\";\nexport * from \"./e-shape-lock-part\";\nexport * from \"./e-shape-lock\";\nexport * from \"./e-shape-null\";\nexport * from \"./e-shape-primitive\";\nexport * from \"./e-shape-rectangle-pivoted\";\nexport * from \"./e-shape-rectangle-rounded\";\nexport * from \"./e-shape-rectangle\";\nexport * from \"./e-shape-semicircle\";\nexport * from \"./e-shape-stroke-impl-parent\";\nexport * from \"./e-shape-stroke-impl\";\nexport * from \"./e-shape-text-align-impl-parent\";\nexport * from \"./e-shape-text-align-impl\";\nexport * from \"./e-shape-text-impl-parent\";\nexport * from \"./e-shape-text-impl\";\nexport * from \"./e-shape-text-offset-impl-parent\";\nexport * from \"./e-shape-text-offset-impl\";\nexport * from \"./e-shape-text-outline-impl-parent\";\nexport * from \"./e-shape-text-outline-impl\";\nexport * from \"./e-shape-triangle-rounded\";\nexport * from \"./e-shape-triangle\";\nexport * from \"./hit-test-bbox\";\nexport * from \"./hit-test-circle\";\nexport * from \"./hit-test-semicircle\";\nexport * from \"./hit-test-rectangle-rounded\";\nexport * from \"./hit-test-rectangle\";\nexport * from \"./hit-test-triangle-rounded\";\nexport * from \"./hit-test-triangle\";\nexport * from \"./is-static\";\nexport * from \"./to-computed\";\nexport * from \"./to-dash\";\nexport * from \"./to-gradient-image-url\";\nexport * from \"./to-gradient-serialized\";\nexport * from \"./to-image-element\";\nexport * from \"./to-length\";\nexport * from \"./to-resized\";\nexport * from \"./to-scale-invariant\";\nexport * from \"./to-size-normalized\";\nexport * from \"./to-size-rounded\";\nexport * from \"./to-threshold-default\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sCAAsC,CAAC;AACrD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AACh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/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mCAAmC,CAAC;AAClD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./build-bar\";\nexport * from \"./build-circle\";\nexport * from \"./build-color\";\nexport * from \"./build-image-sdf\";\nexport * from \"./build-line-of-any\";\nexport * from \"./build-line\";\nexport * from \"./build-null\";\nexport * from \"./build-rectangle-rounded\";\nexport * from \"./build-rectangle\";\nexport * from \"./build-semicircle\";\nexport * from \"./build-text\";\nexport * from \"./build-triangle-rounded\";\nexport * from \"./build-triangle\";\nexport * from \"./builder-bar\";\nexport * from \"./builder-base\";\nexport * from \"./builder-circle\";\nexport * from \"./builder-image-sdf\";\nexport * from \"./builder-label\";\nexport * from \"./builder-line-of-any\";\nexport * from \"./builder-line-of-circles\";\nexport * from \"./builder-line-of-rectangle-roundeds\";\nexport * from \"./builder-line-of-rectangles\";\nexport * from \"./builder-line-of-triangle-roundeds\";\nexport * from \"./builder-line-of-triangles\";\nexport * from \"./builder-line\";\nexport * from \"./builder-marker-circle-head\";\nexport * from \"./builder-marker-circle-tail\";\nexport * from \"./builder-marker-circle\";\nexport * from \"./builder-marker-rectangle-head\";\nexport * from \"./builder-marker-rectangle-tail\";\nexport * from \"./builder-marker-rectangle\";\nexport * from \"./builder-marker-triangle-head\";\nexport * from \"./builder-marker-triangle-tail\";\nexport * from \"./builder-marker-triangle\";\nexport * from \"./builder-null\";\nexport * from \"./builder-rectangle-pivoted\";\nexport * from \"./builder-rectangle-rounded\";\nexport * from \"./builder-rectangle\";\nexport * from \"./builder-semicircle\";\nexport * from \"./builder-text\";\nexport * from \"./builder-triangle-rounded\";\nexport * from \"./builder-triangle\";\nexport * from \"./builder\";\nexport * from \"./builders\";\nexport * from \"./copy-index\";\nexport * from \"./copy-step\";\nexport * from \"./copy-uv\";\nexport * from \"./copy-vertex\";\nexport * from \"./create-bar-uploaded\";\nexport * from \"./create-button-uploaded\";\nexport * from \"./create-circle-uploaded\";\nexport * from \"./create-rectangle-pivoted-uploaded\";\nexport * from \"./create-group-uploaded\";\nexport * from \"./create-image-sdf-uploaded\";\nexport * from \"./create-image-sdf\";\nexport * from \"./create-image\";\nexport * from \"./create-label-uploaded\";\nexport * from \"./create-line-of-any-uploaded\";\nexport * from \"./create-line-of-circles-uploaded\";\nexport * from \"./create-line-of-rectangle-roundeds-uploaded\";\nexport * from \"./create-line-of-rectangles-uploaded\";\nexport * from \"./create-line-of-triangle-roundeds-uploaded\";\nexport * from \"./create-line-of-triangles-uploaded\";\nexport * from \"./create-line-uploaded\";\nexport * from \"./create-line\";\nexport * from \"./create-null-uploaded\";\nexport * from \"./create-rectangle-rounded-uploaded\";\nexport * from \"./create-rectangle-uploaded\";\nexport * from \"./create-semicircle-uploaded\";\nexport * from \"./create-triangle-rounded-uploaded\";\nexport * from \"./create-triangle-uploaded\";\nexport * from \"./deserialize-all\";\nexport * from \"./deserialize-bar\";\nexport * from \"./deserialize-base\";\nexport * from \"./deserialize-button\";\nexport * from \"./deserialize-circle\";\nexport * from \"./deserialize-connector-elbow\";\nexport * from \"./deserialize-connector-line\";\nexport * from \"./deserialize-embedded-acceptor-edge\";\nexport * from \"./deserialize-embedded-layer\";\nexport * from \"./deserialize-embedded\";\nexport * from \"./deserialize-gradient\";\nexport * from \"./deserialize-group-shadowed\";\nexport * from \"./deserialize-group\";\nexport * from \"./deserialize-image-sdf\";\nexport * from \"./deserialize-image\";\nexport * from \"./deserialize-label\";\nexport * from \"./deserialize-line-of-circles\";\nexport * from \"./deserialize-line-of-rectangle-roundeds\";\nexport * from \"./deserialize-line-of-rectangles\";\nexport * from \"./deserialize-line-of-triangle-roundeds\";\nexport * from \"./deserialize-line-of-triangles\";\nexport * from \"./deserialize-line\";\nexport * from \"./deserialize-null\";\nexport * from \"./deserialize-rectangle-pivoted\";\nexport * from \"./deserialize-rectangle-rounded\";\nexport * from \"./deserialize-rectangle\";\nexport * from \"./deserialize-semicircle\";\nexport * from \"./deserialize-triangle-rounded\";\nexport * from \"./deserialize-triangle\";\nexport * from \"./deserialize\";\nexport * from \"./e-shape-bar-points\";\nexport * from \"./e-shape-bar-position\";\nexport * from \"./e-shape-bar\";\nexport * from \"./e-shape-base-hit-test-data\";\nexport * from \"./e-shape-base\";\nexport * from \"./e-shape-button-runtime-action-toggle\";\nexport * from \"./e-shape-button-runtime-action\";\nexport * from \"./e-shape-button-runtime\";\nexport * from \"./e-shape-button\";\nexport * from \"./e-shape-circle\";\nexport * from \"./e-shape-connector-elbow-points-filler\";\nexport * from \"./e-shape-connector-elbow\";\nexport * from \"./e-shape-connector-line\";\nexport * from \"./e-shape-embedded-acceptor-edge\";\nexport * from \"./e-shape-embedded-acceptor\";\nexport * from \"./e-shape-embedded-datum\";\nexport * from \"./e-shape-embedded-layer-container\";\nexport * from \"./e-shape-embedded-layer\";\nexport * from \"./e-shape-embedded\";\nexport * from \"./e-shape-embeddeds\";\nexport * from \"./e-shape-fill-impl-parent\";\nexport * from \"./e-shape-fill-impl\";\nexport * from \"./e-shape-group-fill-editor\";\nexport * from \"./e-shape-group-fill-viewer\";\nexport * from \"./e-shape-group-points\";\nexport * from \"./e-shape-group-property-parent\";\nexport * from \"./e-shape-group-shadowed\";\nexport * from \"./e-shape-group-size-editor\";\nexport * from \"./e-shape-group-size-layout\";\nexport * from \"./e-shape-group-size-parent\";\nexport * from \"./e-shape-group-size-shadowed\";\nexport * from \"./e-shape-group-size-viewer\";\nexport * from \"./e-shape-group-size\";\nexport * from \"./e-shape-group-stroke-editor\";\nexport * from \"./e-shape-group-stroke-viewer\";\nexport * from \"./e-shape-group-viewer\";\nexport * from \"./e-shape-group\";\nexport * from \"./e-shape-image-sdf\";\nexport * from \"./e-shape-image\";\nexport * from \"./e-shape-label\";\nexport * from \"./e-shape-line-base-hit-part\";\nexport * from \"./e-shape-line-base-points-hit-tester-to-range\";\nexport * from \"./e-shape-line-base-points-hit-tester-to-threshold\";\nexport * from \"./e-shape-line-base-points-hit-tester\";\nexport * from \"./e-shape-line-base-points\";\nexport * from \"./e-shape-line-base\";\nexport * from \"./e-shape-line-of-any-points-fill-impl\";\nexport * from \"./e-shape-line-of-any-points-fill\";\nexport * from \"./e-shape-line-of-any-points-hit-tester-to-range\";\nexport * from \"./e-shape-line-of-any-points-hit-tester-to-threshold\";\nexport * from \"./e-shape-line-of-any-points-hit-tester\";\nexport * from \"./e-shape-line-of-any-points-impl\";\nexport * from \"./e-shape-line-of-any-points-point-impl\";\nexport * from \"./e-shape-line-of-any-points-point\";\nexport * from \"./e-shape-line-of-any-points-stroke-impl\";\nexport * from \"./e-shape-line-of-any-points-stroke\";\nexport * from \"./e-shape-line-of-any-points\";\nexport * from \"./e-shape-line-of-any-value\";\nexport * from \"./e-shape-line-of-any\";\nexport * from \"./e-shape-line-of-circles\";\nexport * from \"./e-shape-line-of-rectangle-roundeds\";\nexport * from \"./e-shape-line-of-rectangles\";\nexport * from \"./e-shape-line-of-triangle-roundeds\";\nexport * from \"./e-shape-line-of-triangles\";\nexport * from \"./e-shape-line-points\";\nexport * from \"./e-shape-line\";\nexport * from \"./e-shape-lock-part\";\nexport * from \"./e-shape-lock\";\nexport * from \"./e-shape-null\";\nexport * from \"./e-shape-primitive\";\nexport * from \"./e-shape-rectangle-pivoted\";\nexport * from \"./e-shape-rectangle-rounded\";\nexport * from \"./e-shape-rectangle\";\nexport * from \"./e-shape-semicircle\";\nexport * from \"./e-shape-stroke-impl-parent\";\nexport * from \"./e-shape-stroke-impl\";\nexport * from \"./e-shape-text-align-impl-parent\";\nexport * from \"./e-shape-text-align-impl\";\nexport * from \"./e-shape-text-impl-parent\";\nexport * from \"./e-shape-text-impl\";\nexport * from \"./e-shape-text-offset-impl-parent\";\nexport * from \"./e-shape-text-offset-impl\";\nexport * from \"./e-shape-text-outline-impl-parent\";\nexport * from \"./e-shape-text-outline-impl\";\nexport * from \"./e-shape-triangle-rounded\";\nexport * from \"./e-shape-triangle\";\nexport * from \"./hit-test-bbox\";\nexport * from \"./hit-test-circle\";\nexport * from \"./hit-test-semicircle\";\nexport * from \"./hit-test-rectangle-rounded\";\nexport * from \"./hit-test-rectangle\";\nexport * from \"./hit-test-triangle-rounded\";\nexport * from \"./hit-test-triangle\";\nexport * from \"./is-static\";\nexport * from \"./to-computed\";\nexport * from \"./to-dash\";\nexport * from \"./to-gradient-image-url\";\nexport * from \"./to-gradient-serialized\";\nexport * from \"./to-image-element\";\nexport * from \"./to-length\";\nexport * from \"./to-resized\";\nexport * from \"./to-scale-invariant\";\nexport * from \"./to-size-normalized\";\nexport * from \"./to-size-rounded\";\nexport * from \"./to-threshold-default\";\n"]}
|
|
@@ -3,32 +3,31 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
import { EShapeStrokeStyle } from "../e-shape-stroke-style";
|
|
6
|
-
export var toDash = function (
|
|
6
|
+
export var toDash = function (style) {
|
|
7
7
|
if (style & EShapeStrokeStyle.DOTTED_MASK) {
|
|
8
8
|
if (style & EShapeStrokeStyle.DOTTED) {
|
|
9
|
-
|
|
9
|
+
return 1;
|
|
10
10
|
}
|
|
11
11
|
else if (style & EShapeStrokeStyle.DOTTED_DENSELY) {
|
|
12
|
-
|
|
12
|
+
return 2;
|
|
13
13
|
}
|
|
14
14
|
else {
|
|
15
|
-
|
|
15
|
+
return 3;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
else if (style & EShapeStrokeStyle.DASHED_MASK) {
|
|
19
19
|
if (style & EShapeStrokeStyle.DASHED) {
|
|
20
|
-
|
|
20
|
+
return 4;
|
|
21
21
|
}
|
|
22
22
|
else if (style & EShapeStrokeStyle.DASHED_DENSELY) {
|
|
23
|
-
|
|
23
|
+
return 5;
|
|
24
24
|
}
|
|
25
25
|
else {
|
|
26
|
-
|
|
26
|
+
return 6;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
else {
|
|
30
|
-
|
|
30
|
+
return 0;
|
|
31
31
|
}
|
|
32
|
-
return result;
|
|
33
32
|
};
|
|
34
33
|
//# sourceMappingURL=to-dash.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-dash.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/to-dash.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"to-dash.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/to-dash.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,CAAC,IAAM,MAAM,GAAG,UAAC,KAAwB;IAC9C,IAAI,KAAK,GAAG,iBAAiB,CAAC,WAAW,EAAE;QAC1C,IAAI,KAAK,GAAG,iBAAiB,CAAC,MAAM,EAAE;YACrC,OAAO,CAAC,CAAC;SACT;aAAM,IAAI,KAAK,GAAG,iBAAiB,CAAC,cAAc,EAAE;YACpD,OAAO,CAAC,CAAC;SACT;aAAM;YACN,OAAO,CAAC,CAAC;SACT;KACD;SAAM,IAAI,KAAK,GAAG,iBAAiB,CAAC,WAAW,EAAE;QACjD,IAAI,KAAK,GAAG,iBAAiB,CAAC,MAAM,EAAE;YACrC,OAAO,CAAC,CAAC;SACT;aAAM,IAAI,KAAK,GAAG,iBAAiB,CAAC,cAAc,EAAE;YACpD,OAAO,CAAC,CAAC;SACT;aAAM;YACN,OAAO,CAAC,CAAC;SACT;KACD;SAAM;QACN,OAAO,CAAC,CAAC;KACT;AACF,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeStrokeStyle } from \"../e-shape-stroke-style\";\n\nexport const toDash = (style: EShapeStrokeStyle): number => {\n\tif (style & EShapeStrokeStyle.DOTTED_MASK) {\n\t\tif (style & EShapeStrokeStyle.DOTTED) {\n\t\t\treturn 1;\n\t\t} else if (style & EShapeStrokeStyle.DOTTED_DENSELY) {\n\t\t\treturn 2;\n\t\t} else {\n\t\t\treturn 3;\n\t\t}\n\t} else if (style & EShapeStrokeStyle.DASHED_MASK) {\n\t\tif (style & EShapeStrokeStyle.DASHED) {\n\t\t\treturn 4;\n\t\t} else if (style & EShapeStrokeStyle.DASHED_DENSELY) {\n\t\t\treturn 5;\n\t\t} else {\n\t\t\treturn 6;\n\t\t}\n\t} else {\n\t\treturn 0;\n\t}\n};\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export var toNormalPacked = function (n0, n1) {
|
|
2
|
+
var x = Math.round(511.5 * (1 + n0[0]));
|
|
3
|
+
var y = Math.round(511.5 * (1 + n1[0]));
|
|
4
|
+
var z = (0 <= n0[1] ? 1 : 0) + (0 <= n1[1] ? 2 : 0);
|
|
5
|
+
return x + (y << 10) + (z << 20);
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=to-normal-packed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to-normal-packed.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/to-normal-packed.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,cAAc,GAAG,UAAC,EAAY,EAAE,EAAY;IACxD,IAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1C,IAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1C,IAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACtD,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;AAClC,CAAC,CAAC","sourcesContent":["export const toNormalPacked = (n0: number[], n1: number[]): number => {\n\tconst x = Math.round(511.5 * (1 + n0[0]));\n\tconst y = Math.round(511.5 * (1 + n1[0]));\n\tconst z = (0 <= n0[1] ? 1 : 0) + (0 <= n1[1] ? 2 : 0);\n\treturn x + (y << 10) + (z << 20);\n};\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export var toNormal = function (v, l) {
|
|
2
|
+
if (0.00001 < l) {
|
|
3
|
+
var f = 1 / l;
|
|
4
|
+
var v0 = v[0] * f;
|
|
5
|
+
var v1 = v[1] * f;
|
|
6
|
+
v[0] = -v1;
|
|
7
|
+
v[1] = +v0;
|
|
8
|
+
}
|
|
9
|
+
else {
|
|
10
|
+
v[0] = 0;
|
|
11
|
+
v[1] = 1;
|
|
12
|
+
}
|
|
13
|
+
return v;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=to-normal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to-normal.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/to-normal.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,QAAQ,GAAG,UAAC,CAAW,EAAE,CAAS;IAC9C,IAAI,OAAO,GAAG,CAAC,EAAE;QAChB,IAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAChB,IAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QACpB,IAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QACpB,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;QACX,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;KACX;SAAM;QACN,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QACT,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;KACT;IACD,OAAO,CAAC,CAAC;AACV,CAAC,CAAC","sourcesContent":["export const toNormal = (v: number[], l: number): number[] => {\n\tif (0.00001 < l) {\n\t\tconst f = 1 / l;\n\t\tconst v0 = v[0] * f;\n\t\tconst v1 = v[1] * f;\n\t\tv[0] = -v1;\n\t\tv[1] = +v0;\n\t} else {\n\t\tv[0] = 0;\n\t\tv[1] = 1;\n\t}\n\treturn v;\n};\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export var toPackedI4x64 = function (i0, i1, i2, i3) {
|
|
2
|
+
return i0 + (i1 << 6) + (i2 << 12) + (i3 << 18);
|
|
3
|
+
};
|
|
4
|
+
export var toPackedF2x1024 = function (f0, f1) {
|
|
5
|
+
return Math.round(1023 * f0) + (Math.round(1023 * f1) << 10);
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=to-packed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to-packed.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/to-packed.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,aAAa,GAAG,UAAC,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU;IAC3E,OAAO,EAAE,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;AACjD,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,eAAe,GAAG,UAAC,EAAU,EAAE,EAAU;IACrD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;AAC9D,CAAC,CAAC","sourcesContent":["export const toPackedI4x64 = (i0: number, i1: number, i2: number, i3: number): number => {\n\treturn i0 + (i1 << 6) + (i2 << 12) + (i3 << 18);\n};\n\nexport const toPackedF2x1024 = (f0: number, f1: number): number => {\n\treturn Math.round(1023 * f0) + (Math.round(1023 * f1) << 10);\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to-vector-length.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/to-vector-length.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,cAAc,GAAG,UAAC,CAAW;IACzC,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC7C,CAAC,CAAC","sourcesContent":["export const toVectorLength = (v: number[]): number => {\n\treturn Math.sqrt(v[0] * v[0] + v[1] * v[1]);\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to-vector.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/to-vector.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,QAAQ,GAAG,UACvB,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,MAAgB;IAEhB,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC;IACpB,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC;IACpB,OAAO,MAAM,CAAC;AACf,CAAC,CAAC","sourcesContent":["export const toVector = (\n\tx0: number,\n\ty0: number,\n\tx1: number,\n\ty1: number,\n\tresult: number[]\n): number[] => {\n\tresult[0] = x1 - x0;\n\tresult[1] = y1 - y0;\n\treturn result;\n};\n"]}
|