@visactor/vrender-components 0.22.15 → 0.22.17-alpha.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/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/label/arc.js +1 -1
- package/cjs/label/base.d.ts +1 -0
- package/cjs/label/base.js +27 -18
- package/cjs/label/base.js.map +1 -1
- package/cjs/label/data-label-register.js +1 -1
- package/cjs/label/type.d.ts +1 -0
- package/cjs/label/type.js.map +1 -1
- package/cjs/legend/base.js +1 -1
- package/cjs/legend/constant.js +1 -1
- package/cjs/legend/index.js +1 -1
- package/dist/index.es.js +45 -18
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/label/arc.js +1 -1
- package/es/label/base.d.ts +1 -0
- package/es/label/base.js +27 -18
- package/es/label/base.js.map +1 -1
- package/es/label/data-label-register.js +1 -1
- package/es/label/type.d.ts +1 -0
- package/es/label/type.js.map +1 -1
- package/es/legend/base.js +1 -1
- package/es/legend/constant.js +1 -1
- package/es/legend/index.js +1 -1
- package/package.json +5 -5
package/cjs/legend/constant.js
CHANGED
|
@@ -21,4 +21,4 @@ function(LegendEvent) {
|
|
|
21
21
|
LEGEND_ELEMENT_NAME.itemLabel = "legendItemLabel", LEGEND_ELEMENT_NAME.itemValue = "legendItemValue",
|
|
22
22
|
LEGEND_ELEMENT_NAME.focus = "legendItemFocus";
|
|
23
23
|
}(LEGEND_ELEMENT_NAME = exports.LEGEND_ELEMENT_NAME || (exports.LEGEND_ELEMENT_NAME = {}));
|
|
24
|
-
//# sourceMappingURL=constant.js.map
|
|
24
|
+
//# sourceMappingURL=constant.js.map
|
package/cjs/legend/index.js
CHANGED
|
@@ -22,4 +22,4 @@ __exportStar(require("./color/color"), exports), __exportStar(require("./color/t
|
|
|
22
22
|
__exportStar(require("./size/size"), exports), __exportStar(require("./size/type"), exports),
|
|
23
23
|
__exportStar(require("./type"), exports), __exportStar(require("./constant"), exports),
|
|
24
24
|
__exportStar(require("./util"), exports);
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
package/dist/index.es.js
CHANGED
|
@@ -21194,14 +21194,19 @@ class LabelBase extends AbstractComponent {
|
|
|
21194
21194
|
let result = labels.filter(label => label.attribute.visible &&
|
|
21195
21195
|
label.attribute.opacity !== 0 &&
|
|
21196
21196
|
this.isMarkInsideRect(this.getRelatedGraphic(label.attribute), bmpTool));
|
|
21197
|
-
const { clampForce = true, hideOnHit = true, overlapPadding, strategy } = option;
|
|
21198
|
-
if (clampForce) {
|
|
21197
|
+
const { clampForce = true, hideOnHit = true, hideOnOverflow = false, overlapPadding, strategy } = option;
|
|
21198
|
+
if (clampForce || hideOnOverflow) {
|
|
21199
21199
|
for (let i = 0; i < result.length; i++) {
|
|
21200
21200
|
const text = labels[i];
|
|
21201
21201
|
const { dx = 0, dy = 0 } = clampText(text, bmpTool.width, bmpTool.height, bmpTool.padding);
|
|
21202
21202
|
if (dx !== 0 || dy !== 0) {
|
|
21203
|
-
|
|
21204
|
-
|
|
21203
|
+
if (hideOnOverflow) {
|
|
21204
|
+
text.setAttributes({ visible: false });
|
|
21205
|
+
}
|
|
21206
|
+
else {
|
|
21207
|
+
text.setAttributes({ x: text.attribute.x + dx, y: text.attribute.y + dy });
|
|
21208
|
+
text._isClamped = true;
|
|
21209
|
+
}
|
|
21205
21210
|
}
|
|
21206
21211
|
}
|
|
21207
21212
|
}
|
|
@@ -21216,13 +21221,17 @@ class LabelBase extends AbstractComponent {
|
|
|
21216
21221
|
const text = result[i];
|
|
21217
21222
|
const bounds = text.AABBBounds;
|
|
21218
21223
|
const range = boundToRange(bmpTool, bounds, true);
|
|
21219
|
-
if (canPlace(bmpTool, bitmap, bounds, clampForce, overlapPadding)) {
|
|
21224
|
+
if (canPlace(bmpTool, bitmap, bounds, clampForce || hideOnOverflow, overlapPadding)) {
|
|
21220
21225
|
bitmap.setRange(range);
|
|
21221
21226
|
}
|
|
21222
21227
|
else {
|
|
21223
|
-
if (
|
|
21224
|
-
|
|
21225
|
-
|
|
21228
|
+
if (hideOnOverflow) {
|
|
21229
|
+
if (this._processHideOnOverflow(text, bmpTool)) {
|
|
21230
|
+
continue;
|
|
21231
|
+
}
|
|
21232
|
+
}
|
|
21233
|
+
else if (clampForce) {
|
|
21234
|
+
if (this._processClampForce(text, bmpTool, bitmap, overlapPadding)) {
|
|
21226
21235
|
continue;
|
|
21227
21236
|
}
|
|
21228
21237
|
}
|
|
@@ -21236,6 +21245,16 @@ class LabelBase extends AbstractComponent {
|
|
|
21236
21245
|
}
|
|
21237
21246
|
return result;
|
|
21238
21247
|
}
|
|
21248
|
+
_processHideOnOverflow(text, bmpTool) {
|
|
21249
|
+
const { dy: dy = 0, dx: dx = 0 } = clampText(text, bmpTool.width, bmpTool.height, bmpTool.padding);
|
|
21250
|
+
if (0 !== dx || 0 !== dy) {
|
|
21251
|
+
text.setAttributes({
|
|
21252
|
+
visible: false
|
|
21253
|
+
});
|
|
21254
|
+
return false;
|
|
21255
|
+
}
|
|
21256
|
+
return true;
|
|
21257
|
+
}
|
|
21239
21258
|
_processClampForce(text, bmpTool, bitmap, overlapPadding = 0) {
|
|
21240
21259
|
const { dy = 0, dx = 0 } = clampText(text, bmpTool.width, bmpTool.height, bmpTool.padding);
|
|
21241
21260
|
if (dx === 0 && dy === 0) {
|
|
@@ -21258,7 +21277,7 @@ class LabelBase extends AbstractComponent {
|
|
|
21258
21277
|
}
|
|
21259
21278
|
_overlapByStrategy(labels, option, bmpTool, bitmap) {
|
|
21260
21279
|
var _a;
|
|
21261
|
-
const { avoidBaseMark, strategy = [], hideOnHit = true, clampForce = true, avoidMarks = [], overlapPadding } = option;
|
|
21280
|
+
const { avoidBaseMark, strategy = [], hideOnHit = true, clampForce = true, avoidMarks = [], overlapPadding, hideOnOverflow = false } = option;
|
|
21262
21281
|
const result = [];
|
|
21263
21282
|
const checkBounds = strategy.some(s => s.type === 'bound');
|
|
21264
21283
|
if (avoidBaseMark) {
|
|
@@ -21288,7 +21307,7 @@ class LabelBase extends AbstractComponent {
|
|
|
21288
21307
|
if (!this.isMarkInsideRect(baseMark, bmpTool)) {
|
|
21289
21308
|
continue;
|
|
21290
21309
|
}
|
|
21291
|
-
if (canPlace(bmpTool, bitmap, text.AABBBounds, clampForce, overlapPadding)) {
|
|
21310
|
+
if (canPlace(bmpTool, bitmap, text.AABBBounds, clampForce || hideOnOverflow, overlapPadding)) {
|
|
21292
21311
|
if (!checkBounds) {
|
|
21293
21312
|
bitmap.setRange(boundToRange(bmpTool, text.AABBBounds, true));
|
|
21294
21313
|
result.push(text);
|
|
@@ -21310,15 +21329,23 @@ class LabelBase extends AbstractComponent {
|
|
|
21310
21329
|
: this.getGraphicBounds(baseMark, labels[i].attribute), this.labeling);
|
|
21311
21330
|
if (hasPlace !== false) {
|
|
21312
21331
|
text.setAttributes({ x: hasPlace.x, y: hasPlace.y });
|
|
21313
|
-
|
|
21314
|
-
|
|
21332
|
+
if (!(hideOnOverflow && !this._processHideOnOverflow(text, bmpTool))) {
|
|
21333
|
+
result.push(text);
|
|
21334
|
+
break;
|
|
21335
|
+
}
|
|
21315
21336
|
}
|
|
21316
21337
|
}
|
|
21317
|
-
if (!hasPlace
|
|
21318
|
-
|
|
21319
|
-
|
|
21320
|
-
|
|
21321
|
-
|
|
21338
|
+
if (!hasPlace) {
|
|
21339
|
+
if (hideOnOverflow) {
|
|
21340
|
+
if (!this._processHideOnOverflow(text, bmpTool)) {
|
|
21341
|
+
continue;
|
|
21342
|
+
}
|
|
21343
|
+
}
|
|
21344
|
+
if (clampForce) {
|
|
21345
|
+
if (this._processClampForce(text, bmpTool, bitmap, overlapPadding)) {
|
|
21346
|
+
result.push(text);
|
|
21347
|
+
continue;
|
|
21348
|
+
}
|
|
21322
21349
|
}
|
|
21323
21350
|
}
|
|
21324
21351
|
!hasPlace && !hideOnHit && result.push(text);
|
|
@@ -31731,6 +31758,6 @@ StoryLabelItem.defaultAttributes = {
|
|
|
31731
31758
|
theme: 'default'
|
|
31732
31759
|
};
|
|
31733
31760
|
|
|
31734
|
-
const version = "0.22.
|
|
31761
|
+
const version = "0.22.17-alpha.0";
|
|
31735
31762
|
|
|
31736
31763
|
export { AXIS_ELEMENT_NAME, AbstractComponent, ArcInfo, ArcLabel, ArcSegment, AxisStateValue, BasePlayer, Brush, CheckBox, CircleAxis, CircleAxisGrid, CircleCrosshair, ColorContinuousLegend, ContinuousPlayer, DEFAULT_ITEM_SPACE_COL, DEFAULT_ITEM_SPACE_ROW, DEFAULT_LABEL_SPACE, DEFAULT_PAGER_SPACE, DEFAULT_SHAPE_SIZE, DEFAULT_SHAPE_SPACE, DEFAULT_STATES$1 as DEFAULT_STATES, DEFAULT_TITLE_SPACE, DEFAULT_VALUE_SPACE, DataLabel, DataZoom, DataZoomActiveTag, DirectionEnum, DiscreteLegend, DiscretePlayer, EmptyTip, GroupTransition, IMarkAreaLabelPosition, IMarkCommonArcLabelPosition, IMarkLineLabelPosition, IMarkPointItemPosition, IOperateType, Indicator, LEGEND_ELEMENT_NAME, LabelBase, LegendEvent, LegendStateValue, LineAxis, LineAxisGrid, LineCrosshair, LineLabel, LinkPath, MarkArcArea, MarkArcLine, MarkArea, MarkLine, MarkPoint, Pager, PlayerEventEnum, PolygonCrosshair, PolygonSectorCrosshair, PopTip, Radio, RectCrosshair, RectLabel, SLIDER_ELEMENT_NAME, ScrollBar, SectorCrosshair, Segment, SizeContinuousLegend, Slider, StoryLabelItem, Switch, SymbolLabel, Tag, Timeline, Title, Tooltip, TopZIndex, VTag, WeatherBox, alignTextInLine, angle, angleLabelOrientAttribute, angleTo, cartesianTicks, clampRadian, computeOffsetForlimit, continuousTicks, contrastAccessibilityChecker, convertDomainToTickData, createTextGraphicByType, deltaXYToAngle, fuzzyEqualNumber, getAxisBreakSymbolAttrs, getCircleLabelPosition, getCirclePoints, getCircleVerticalVector, getElMap, getHorizontalPath, getMarksByName, getNoneGroupMarksByName, getPolarAngleLabelPosition, getPolygonPath, getSizeHandlerPath, getTextAlignAttrOfVerticalDir, getTextType, getVerticalCoord, getVerticalPath, hasOverlap, htmlAttributeTransform, initTextMeasure, isInRange, isPostiveXAxis, isRichText, isVisible, labelSmartInvert, length, limitShapeInBounds, linearDiscreteTicks, loadPoptip, loadScrollbar, measureTextSize, normalize, polarAngleAxisDiscreteTicks, polarTicks, reactAttributeTransform, registerArcDataLabel, registerLineDataLabel, registerMarkArcAreaAnimate, registerMarkArcLineAnimate, registerMarkAreaAnimate, registerMarkLineAnimate, registerMarkPointAnimate, registerRectDataLabel, registerSymbolDataLabel, removeRepeatPoint, richTextAttributeTransform, scale, scrollbarModule, setPoptipTheme, smartInvertStrategy, tan2AngleToAngle, textIntersect, ticks, traverseGroup, version };
|
package/es/index.d.ts
CHANGED
package/es/index.js
CHANGED
package/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,OAAO,GAAG,iBAAiB,CAAC;AAEzC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"0.22.17-alpha.0\";\n\nexport * from './core/base';\nexport * from './core/type';\nexport * from './scrollbar';\nexport * from './tag';\nexport * from './poptip';\nexport * from './crosshair';\nexport * from './label';\nexport * from './axis';\nexport * from './axis/grid';\nexport * from './segment';\nexport * from './data-zoom';\nexport * from './marker';\nexport * from './pager';\nexport * from './legend';\nexport * from './title';\nexport * from './indicator';\nexport * from './slider';\nexport * from './link-path';\nexport * from './player';\nexport * from './brush';\nexport * from './tooltip';\nexport * from './timeline';\nexport * from './interface';\nexport * from './jsx';\nexport * from './checkbox';\nexport * from './radio';\nexport * from './empty-tip';\nexport * from './weather';\nexport * from './util';\nexport * from './switch';\nexport * from './label-item';\n"]}
|
package/es/label/arc.js
CHANGED
package/es/label/base.d.ts
CHANGED
|
@@ -50,6 +50,7 @@ export declare class LabelBase<T extends BaseLabelAttrs> extends AbstractCompone
|
|
|
50
50
|
protected _layout(texts: (IText | IRichText)[]): (IText | IRichText)[];
|
|
51
51
|
protected _overlapping(labels: (IText | IRichText)[]): (IRichText | IText)[];
|
|
52
52
|
protected _overlapGlobal(labels: (IText | IRichText)[], option: OverlapAttrs, bmpTool: BitmapTool, bitmap: Bitmap): (IRichText | IText)[];
|
|
53
|
+
protected _processHideOnOverflow(text: IText, bmpTool: BitmapTool): boolean;
|
|
53
54
|
protected _processClampForce(text: IText, bmpTool: BitmapTool, bitmap: Bitmap, overlapPadding?: number): boolean;
|
|
54
55
|
protected _overlapByStrategy(labels: (IText | IRichText)[], option: OverlapAttrs, bmpTool: BitmapTool, bitmap: Bitmap): (IRichText | IText)[];
|
|
55
56
|
protected isMarkInsideRect(baseMark: IGraphic, bmpTool: BitmapTool): boolean;
|
package/es/label/base.js
CHANGED
|
@@ -221,13 +221,15 @@ export class LabelBase extends AbstractComponent {
|
|
|
221
221
|
}
|
|
222
222
|
_overlapGlobal(labels, option, bmpTool, bitmap) {
|
|
223
223
|
let result = labels.filter((label => label.attribute.visible && 0 !== label.attribute.opacity && this.isMarkInsideRect(this.getRelatedGraphic(label.attribute), bmpTool)));
|
|
224
|
-
const {clampForce: clampForce = !0, hideOnHit: hideOnHit = !0, overlapPadding: overlapPadding, strategy: strategy} = option;
|
|
225
|
-
if (clampForce) for (let i = 0; i < result.length; i++) {
|
|
224
|
+
const {clampForce: clampForce = !0, hideOnHit: hideOnHit = !0, hideOnOverflow: hideOnOverflow = !1, overlapPadding: overlapPadding, strategy: strategy} = option;
|
|
225
|
+
if (clampForce || hideOnOverflow) for (let i = 0; i < result.length; i++) {
|
|
226
226
|
const text = labels[i], {dx: dx = 0, dy: dy = 0} = clampText(text, bmpTool.width, bmpTool.height, bmpTool.padding);
|
|
227
|
-
0 === dx && 0 === dy || (text.setAttributes({
|
|
227
|
+
0 === dx && 0 === dy || (hideOnOverflow ? text.setAttributes({
|
|
228
|
+
visible: !1
|
|
229
|
+
}) : (text.setAttributes({
|
|
228
230
|
x: text.attribute.x + dx,
|
|
229
231
|
y: text.attribute.y + dy
|
|
230
|
-
}), text._isClamped = !0);
|
|
232
|
+
}), text._isClamped = !0));
|
|
231
233
|
}
|
|
232
234
|
result = shiftY(result, Object.assign(Object.assign({
|
|
233
235
|
maxY: bmpTool.height
|
|
@@ -239,10 +241,10 @@ export class LabelBase extends AbstractComponent {
|
|
|
239
241
|
}));
|
|
240
242
|
for (let i = 0; i < result.length; i++) {
|
|
241
243
|
const text = result[i], bounds = text.AABBBounds, range = boundToRange(bmpTool, bounds, !0);
|
|
242
|
-
if (canPlace(bmpTool, bitmap, bounds, clampForce, overlapPadding)) bitmap.setRange(range); else {
|
|
243
|
-
if (
|
|
244
|
-
if (this.
|
|
245
|
-
}
|
|
244
|
+
if (canPlace(bmpTool, bitmap, bounds, clampForce || hideOnOverflow, overlapPadding)) bitmap.setRange(range); else {
|
|
245
|
+
if (hideOnOverflow) {
|
|
246
|
+
if (this._processHideOnOverflow(text, bmpTool)) continue;
|
|
247
|
+
} else if (clampForce && this._processClampForce(text, bmpTool, bitmap, overlapPadding)) continue;
|
|
246
248
|
hideOnHit ? text.setAttributes({
|
|
247
249
|
visible: !1
|
|
248
250
|
}) : bitmap.setRange(range);
|
|
@@ -250,6 +252,12 @@ export class LabelBase extends AbstractComponent {
|
|
|
250
252
|
}
|
|
251
253
|
return result;
|
|
252
254
|
}
|
|
255
|
+
_processHideOnOverflow(text, bmpTool) {
|
|
256
|
+
const {dy: dy = 0, dx: dx = 0} = clampText(text, bmpTool.width, bmpTool.height, bmpTool.padding);
|
|
257
|
+
return 0 === dx && 0 === dy || (text.setAttributes({
|
|
258
|
+
visible: !1
|
|
259
|
+
}), !1);
|
|
260
|
+
}
|
|
253
261
|
_processClampForce(text, bmpTool, bitmap, overlapPadding = 0) {
|
|
254
262
|
const {dy: dy = 0, dx: dx = 0} = clampText(text, bmpTool.width, bmpTool.height, bmpTool.padding);
|
|
255
263
|
if (0 === dx && 0 === dy) {
|
|
@@ -268,7 +276,7 @@ export class LabelBase extends AbstractComponent {
|
|
|
268
276
|
}
|
|
269
277
|
_overlapByStrategy(labels, option, bmpTool, bitmap) {
|
|
270
278
|
var _a;
|
|
271
|
-
const {avoidBaseMark: avoidBaseMark, strategy: strategy = [], hideOnHit: hideOnHit = !0, clampForce: clampForce = !0, avoidMarks: avoidMarks = [], overlapPadding: overlapPadding} = option, result = [], checkBounds = strategy.some((s => "bound" === s.type));
|
|
279
|
+
const {avoidBaseMark: avoidBaseMark, strategy: strategy = [], hideOnHit: hideOnHit = !0, clampForce: clampForce = !0, avoidMarks: avoidMarks = [], overlapPadding: overlapPadding, hideOnOverflow: hideOnOverflow = !1} = option, result = [], checkBounds = strategy.some((s => "bound" === s.type));
|
|
272
280
|
avoidBaseMark && (null === (_a = this._baseMarks) || void 0 === _a || _a.forEach((mark => {
|
|
273
281
|
mark.AABBBounds && bitmap.setRange(boundToRange(bmpTool, mark.AABBBounds, !0));
|
|
274
282
|
}))), avoidMarks.length > 0 && avoidMarks.forEach((avoid => {
|
|
@@ -280,7 +288,7 @@ export class LabelBase extends AbstractComponent {
|
|
|
280
288
|
if (!1 === labels[i].attribute.visible) continue;
|
|
281
289
|
const text = labels[i], baseMark = this.getRelatedGraphic(text.attribute);
|
|
282
290
|
if (text.update(), !this.isMarkInsideRect(baseMark, bmpTool)) continue;
|
|
283
|
-
if (canPlace(bmpTool, bitmap, text.AABBBounds, clampForce, overlapPadding)) {
|
|
291
|
+
if (canPlace(bmpTool, bitmap, text.AABBBounds, clampForce || hideOnOverflow, overlapPadding)) {
|
|
284
292
|
if (!checkBounds) {
|
|
285
293
|
bitmap.setRange(boundToRange(bmpTool, text.AABBBounds, !0)), result.push(text);
|
|
286
294
|
continue;
|
|
@@ -292,15 +300,16 @@ export class LabelBase extends AbstractComponent {
|
|
|
292
300
|
}
|
|
293
301
|
let hasPlace = !1;
|
|
294
302
|
for (let j = 0; j < strategy.length; j++) if (hasPlace = place(bmpTool, bitmap, strategy[j], this.attribute, text, this._isCollectionBase ? this.getGraphicBounds(null, this._idToPoint.get(labels[i].attribute.id)) : this.getGraphicBounds(baseMark, labels[i].attribute), this.labeling),
|
|
295
|
-
!1 !== hasPlace
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
303
|
+
!1 !== hasPlace && (text.setAttributes({
|
|
304
|
+
x: hasPlace.x,
|
|
305
|
+
y: hasPlace.y
|
|
306
|
+
}), !hideOnOverflow || this._processHideOnOverflow(text, bmpTool))) {
|
|
307
|
+
result.push(text);
|
|
300
308
|
break;
|
|
301
309
|
}
|
|
302
|
-
if (!hasPlace
|
|
303
|
-
if (this.
|
|
310
|
+
if (!hasPlace) {
|
|
311
|
+
if (hideOnOverflow && !this._processHideOnOverflow(text, bmpTool)) continue;
|
|
312
|
+
if (clampForce && this._processClampForce(text, bmpTool, bitmap, overlapPadding)) {
|
|
304
313
|
result.push(text);
|
|
305
314
|
continue;
|
|
306
315
|
}
|
|
@@ -545,4 +554,4 @@ LabelBase.defaultAttributes = {
|
|
|
545
554
|
offset: 0,
|
|
546
555
|
pickable: !1
|
|
547
556
|
};
|
|
548
|
-
//# sourceMappingURL=base.js.map
|
|
557
|
+
//# sourceMappingURL=base.js.map
|