MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / AxisBuilder

Function AxisBuilder

libs/echarts/echarts-en.simple.js:40349–40391  ·  view source on GitHub ↗
(axisModel, opt)

Source from the content-addressed store, hash-verified

40347 * @param {number} [opt.nameTruncateMaxWidth]
40348 */
40349var AxisBuilder = function (axisModel, opt) {
40350
40351 /**
40352 * @readOnly
40353 */
40354 this.opt = opt;
40355
40356 /**
40357 * @readOnly
40358 */
40359 this.axisModel = axisModel;
40360
40361 // Default value
40362 defaults(
40363 opt,
40364 {
40365 labelOffset: 0,
40366 nameDirection: 1,
40367 tickDirection: 1,
40368 labelDirection: 1,
40369 silent: true
40370 }
40371 );
40372
40373 /**
40374 * @readOnly
40375 */
40376 this.group = new Group();
40377
40378 // FIXME Not use a seperate text group?
40379 var dumbGroup = new Group({
40380 position: opt.position.slice(),
40381 rotation: opt.rotation
40382 });
40383
40384 // this.group.add(dumbGroup);
40385 // this._dumbGroup = dumbGroup;
40386
40387 dumbGroup.updateTransform();
40388 this._transform = dumbGroup.transform;
40389
40390 this._dumbGroup = dumbGroup;
40391};
40392
40393AxisBuilder.prototype = {
40394

Callers

nothing calls this directly

Calls 2

defaultsFunction · 0.70
updateTransformMethod · 0.45

Tested by

no test coverage detected