修改自定义颜色插件

This commit is contained in:
zh
2025-07-16 15:02:18 +08:00
parent a43c71d94e
commit ea7feea226
47 changed files with 2109 additions and 1982 deletions

View File

@ -147,7 +147,7 @@ class CurvelineObject extends Base {
this.entity.polyline.material = this.getMaterial(v, this.options.type)
if (this._elms.color) {
this._elms.color.forEach((item, i) => {
let colorPicker = new ewPlugins('colorpicker', {
let colorPicker = new YJColorPicker({
el: item.el,
size: 'mini', //颜色box类型
alpha: true, //是否开启透明度
@ -438,7 +438,7 @@ class CurvelineObject extends Base {
this.options['extend-color'] = v
if (this._elms.extendColor) {
this._elms.extendColor.forEach((item, i) => {
let extendColorPicker = new ewPlugins('colorpicker', {
let extendColorPicker = new YJColorPicker({
el: item.el,
size: 'mini', //颜色box类型
alpha: true, //是否开启透明度
@ -508,7 +508,7 @@ class CurvelineObject extends Base {
this.label.color = v
if (this._elms.labelColor) {
this._elms.labelColor.forEach((item, i) => {
let labelColorPicker = new ewPlugins('colorpicker', {
let labelColorPicker = new YJColorPicker({
el: item.el,
size: 'mini', //颜色box类型
alpha: true, //是否开启透明度
@ -612,7 +612,7 @@ class CurvelineObject extends Base {
this.label.lineColor = v
if (this._elms.labelLineColor) {
this._elms.labelLineColor.forEach((item, i) => {
let lineColorPicker = new ewPlugins('colorpicker', {
let lineColorPicker = new YJColorPicker({
el: item.el,
size: 'mini', //颜色box类型
alpha: true, //是否开启透明度
@ -639,7 +639,7 @@ class CurvelineObject extends Base {
this.label.backgroundColor = [v, this.label.backgroundColor[1]]
if (this._elms.labelBackgroundColorStart) {
this._elms.labelBackgroundColorStart.forEach((item, i) => {
let labelBackgroundColorStartPicker = new ewPlugins('colorpicker', {
let labelBackgroundColorStartPicker = new YJColorPicker({
el: item.el,
size: 'mini', //颜色box类型
alpha: true, //是否开启透明度
@ -667,7 +667,7 @@ class CurvelineObject extends Base {
this.label.backgroundColor = [this.label.backgroundColor[0], v]
if (this._elms.labelBackgroundColorEnd) {
this._elms.labelBackgroundColorEnd.forEach((item, i) => {
let labelBackgroundColorEndPicker = new ewPlugins('colorpicker', {
let labelBackgroundColorEndPicker = new YJColorPicker({
el: item.el,
size: 'mini', //颜色box类型
alpha: true, //是否开启透明度
@ -1263,7 +1263,7 @@ class CurvelineObject extends Base {
this.sdk
)
// 颜色组件
let colorPicker = new ewPlugins('colorpicker', {
let colorPicker = new YJColorPicker({
el: contentElm.getElementsByClassName('color')[0],
size: 'mini', //颜色box类型
alpha: true, //是否开启透明度
@ -1277,7 +1277,7 @@ class CurvelineObject extends Base {
this.color = 'rgba(255,255,255,1)'
} //点击清空按钮事件回调
})
let labelColorPicker = new ewPlugins('colorpicker', {
let labelColorPicker = new YJColorPicker({
el: contentElm.getElementsByClassName('labelColor')[0],
size: 'mini', //颜色box类型
alpha: true, //是否开启透明度
@ -1291,7 +1291,7 @@ class CurvelineObject extends Base {
this.labelColor = 'rgba(255,255,255,1)'
} //点击清空按钮事件回调
})
let extendColorPicker = new ewPlugins('colorpicker', {
let extendColorPicker = new YJColorPicker({
el: contentElm.getElementsByClassName('extendColor')[0],
size: 'mini', //颜色box类型
alpha: true, //是否开启透明度
@ -1305,7 +1305,7 @@ class CurvelineObject extends Base {
this.extendColor = 'rgba(255,255,255,1)'
} //点击清空按钮事件回调
})
let lineColorPicker = new ewPlugins('colorpicker', {
let lineColorPicker = new YJColorPicker({
el: contentElm.getElementsByClassName('labelLineColor')[0],
size: 'mini', //颜色box类型
alpha: true, //是否开启透明度
@ -1319,7 +1319,7 @@ class CurvelineObject extends Base {
this.labelLineColor = 'rgba(255,255,255,1)'
} //点击清空按钮事件回调
})
let labelBackgroundColorStartPicker = new ewPlugins('colorpicker', {
let labelBackgroundColorStartPicker = new YJColorPicker({
el: contentElm.getElementsByClassName('labelBackgroundColorStart')[0],
size: 'mini',
alpha: true,
@ -1333,7 +1333,7 @@ class CurvelineObject extends Base {
this.labelBackgroundColorStart = 'rgba(255,255,255,1)'
}
})
let labelBackgroundColorEndPicker = new ewPlugins('colorpicker', {
let labelBackgroundColorEndPicker = new YJColorPicker({
el: contentElm.getElementsByClassName('labelBackgroundColorEnd')[0],
size: 'mini',
alpha: true,