cione-comp-lib
Version:
`$ yarn add cione-comp-lib` 或者 `$ npm i cione-comp-lib -S`
103 lines (102 loc) • 2.3 kB
JavaScript
import "../../../../echarts/lib/echarts.mjs";
import componentViewControlMixin from "../common/componentViewControlMixin.mjs";
import componentPostEffectMixin from "../common/componentPostEffectMixin.mjs";
import componentLightMixin from "../common/componentLightMixin.mjs";
import ComponentModel from "../../../../echarts/lib/model/Component.mjs";
import { merge } from "../../../../zrender/lib/core/util.mjs";
var Grid3DModel = ComponentModel.extend({
type: "grid3D",
dependencies: ["xAxis3D", "yAxis3D", "zAxis3D"],
defaultOption: {
show: true,
zlevel: -10,
left: 0,
top: 0,
width: "100%",
height: "100%",
environment: "auto",
boxWidth: 100,
boxHeight: 100,
boxDepth: 100,
axisPointer: {
show: true,
lineStyle: {
color: "rgba(0, 0, 0, 0.8)",
width: 1
},
label: {
show: true,
formatter: null,
margin: 8,
textStyle: {
fontSize: 14,
color: "#fff",
backgroundColor: "rgba(0,0,0,0.5)",
padding: 3,
borderRadius: 3
}
}
},
axisLine: {
show: true,
lineStyle: {
color: "#333",
width: 2,
type: "solid"
}
},
axisTick: {
show: true,
inside: false,
length: 3,
lineStyle: {
width: 1
}
},
axisLabel: {
show: true,
inside: false,
rotate: 0,
margin: 8,
textStyle: {
fontSize: 12
}
},
splitLine: {
show: true,
lineStyle: {
color: ["#ccc"],
width: 1,
type: "solid"
}
},
splitArea: {
show: false,
areaStyle: {
color: ["rgba(250,250,250,0.3)", "rgba(200,200,200,0.3)"]
}
},
light: {
main: {
alpha: 30,
beta: 40
},
ambient: {
intensity: 0.4
}
},
viewControl: {
alpha: 20,
beta: 40,
autoRotate: false,
distance: 200,
minDistance: 40,
maxDistance: 400
}
}
});
merge(Grid3DModel.prototype, componentViewControlMixin);
merge(Grid3DModel.prototype, componentPostEffectMixin);
merge(Grid3DModel.prototype, componentLightMixin);
var Grid3DModel$1 = Grid3DModel;
export { Grid3DModel$1 as default };