@meta2d/core 1.0.71 → 1.0.72

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meta2d/core",
3
- "version": "1.0.71",
3
+ "version": "1.0.72",
4
4
  "description": "@meta2d/core: Powerful, Beautiful, Simple, Open - Web-Based 2D At Its Best .",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -19,7 +19,7 @@ import { Title } from '../title';
19
19
  import { CanvasTemplate } from './canvasTemplate';
20
20
  import { getLinePoints } from '../diagrams/line';
21
21
  import { Popconfirm } from '../popconfirm';
22
- import { themeKeys } from '../theme';
22
+ import { le5leTheme, themeKeys } from '../theme';
23
23
  export const movingSuffix = '-moving';
24
24
  export class Canvas {
25
25
  parent;
@@ -4047,7 +4047,8 @@ export class Canvas {
4047
4047
  }
4048
4048
  });
4049
4049
  this.store.styles = {};
4050
- Object.assign(this.store.styles, options, data, theme);
4050
+ const themeObj = le5leTheme.getThemeObj(this.store.data.theme);
4051
+ Object.assign(this.store.styles, options, data, theme, themeObj);
4051
4052
  }
4052
4053
  render = (patchFlags) => {
4053
4054
  if (patchFlags) {
@@ -6250,7 +6251,7 @@ export class Canvas {
6250
6251
  // if (!this.store.data.locked) {
6251
6252
  // this.inputRight.style.display = 'none';
6252
6253
  // }
6253
- this.dropdown.style.background = pen.dropdownBackground || '#fff';
6254
+ this.dropdown.style.background = pen.dropdownBackground || this.store.styles["popContentBg"] || '#fff';
6254
6255
  this.dropdown.style.color = pen.dropdownColor || '#bdc7db';
6255
6256
  this.dropdown.style.width = this.inputParent.style.width;
6256
6257
  this.dropdown.style.fontSize = (pen.fontSize || 12) + 'px';
@@ -6703,11 +6704,11 @@ export class Canvas {
6703
6704
  li.onclick = this.selectDropdown;
6704
6705
  const pen = this.store.pens[this.inputDiv.dataset.penId];
6705
6706
  li.onmouseenter = () => {
6706
- li.style.background = pen.dropdownHoverBackground || '#eee';
6707
+ li.style.background = pen.dropdownHoverBackground || this.store.styles["activeBg"] || '#eee';
6707
6708
  li.style.color = pen.dropdownHoverColor || '#bdc7db';
6708
6709
  };
6709
6710
  li.onmouseleave = () => {
6710
- li.style.background = pen.dropdownBackground || '#fff';
6711
+ li.style.background = pen.dropdownBackground || this.store.styles["popContentBg"] || '#fff';
6711
6712
  li.style.color = pen.dropdownColor || '#bdc7db';
6712
6713
  };
6713
6714
  this.dropdown.appendChild(li);