@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 +1 -1
- package/src/canvas/canvas.js +6 -5
- package/src/canvas/canvas.js.map +1 -1
- package/src/core.d.ts +12 -3
- package/src/core.js +200 -52
- package/src/core.js.map +1 -1
- package/src/diagrams/rectangle.js +29 -0
- package/src/diagrams/rectangle.js.map +1 -1
- package/src/dialog/dialog.js +9 -1
- package/src/dialog/dialog.js.map +1 -1
- package/src/event/event.d.ts +2 -0
- package/src/message/message.d.ts +2 -0
- package/src/message/message.js +6 -4
- package/src/message/message.js.map +1 -1
- package/src/pen/model.d.ts +5 -0
- package/src/pen/model.js.map +1 -1
- package/src/pen/render.js +18 -1
- package/src/pen/render.js.map +1 -1
- package/src/store/store.d.ts +33 -2
- package/src/store/store.js.map +1 -1
- package/src/theme.d.ts +9 -0
- package/src/theme.js +116 -28
- package/src/theme.js.map +1 -1
- package/src/utils/jetLinks.d.ts +1 -0
- package/src/utils/jetLinks.js +88 -4
- package/src/utils/jetLinks.js.map +1 -1
- package/src/utils/url.js +4 -1
- package/src/utils/url.js.map +1 -1
package/package.json
CHANGED
package/src/canvas/canvas.js
CHANGED
|
@@ -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
|
-
|
|
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);
|