@meta2d/core 1.1.6 → 1.1.7

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,40 +1,40 @@
1
- {
2
- "name": "@meta2d/core",
3
- "version": "1.1.6",
4
- "description": "@meta2d/core: Powerful, Beautiful, Simple, Open - Web-Based 2D At Its Best .",
5
- "main": "index.js",
6
- "types": "index.d.ts",
7
- "scripts": {
8
- "copy": "copyfiles package.json ../../dist/core/",
9
- "build": "tsc && npm run copy"
10
- },
11
- "keywords": [
12
- "meta2d",
13
- "diagram",
14
- "2D",
15
- "canvas"
16
- ],
17
- "author": "alsmile123@qq.com",
18
- "license": "MIT",
19
- "repository": {
20
- "type": "git",
21
- "url": "git+https://github.com/le5le-com/meta2d.js.git"
22
- },
23
- "bugs": {
24
- "url": "https://github.com/le5le-com/meta2d.js/issues"
25
- },
26
- "homepage": "https://github.com/le5le-com/meta2d.js#readme",
27
- "devDependencies": {
28
- "@types/marked": "^4.0.3",
29
- "@types/offscreencanvas": "latest",
30
- "@types/zrender": "^4.0.0"
31
- },
32
- "dependencies": {
33
- "mitt": "^2.1.0",
34
- "mqtt": "^4.2.6"
35
- },
36
- "publishConfig": {
37
- "access": "public"
38
- },
39
- "gitHead": "78f2a53ca1839c89b56e2e498d17ba4eb987ad14"
40
- }
1
+ {
2
+ "name": "@meta2d/core",
3
+ "version": "1.1.7",
4
+ "description": "@meta2d/core: Powerful, Beautiful, Simple, Open - Web-Based 2D At Its Best .",
5
+ "main": "index.js",
6
+ "types": "index.d.ts",
7
+ "scripts": {
8
+ "copy": "copyfiles package.json ../../dist/core/",
9
+ "build": "tsc && npm run copy"
10
+ },
11
+ "keywords": [
12
+ "meta2d",
13
+ "diagram",
14
+ "2D",
15
+ "canvas"
16
+ ],
17
+ "author": "alsmile123@qq.com",
18
+ "license": "MIT",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/le5le-com/meta2d.js.git"
22
+ },
23
+ "bugs": {
24
+ "url": "https://github.com/le5le-com/meta2d.js/issues"
25
+ },
26
+ "homepage": "https://github.com/le5le-com/meta2d.js#readme",
27
+ "devDependencies": {
28
+ "@types/marked": "^4.0.3",
29
+ "@types/offscreencanvas": "latest",
30
+ "@types/zrender": "^4.0.0"
31
+ },
32
+ "dependencies": {
33
+ "mitt": "^2.1.0",
34
+ "mqtt": "^4.2.6"
35
+ },
36
+ "publishConfig": {
37
+ "access": "public"
38
+ },
39
+ "gitHead": "78f2a53ca1839c89b56e2e498d17ba4eb987ad14"
40
+ }
@@ -6842,8 +6842,8 @@ export class Canvas {
6842
6842
  }
6843
6843
  sheet.deleteRule(0);
6844
6844
  sheet.deleteRule(0);
6845
- sheet.insertRule(`.meta2d-input
6846
- .input-div{
6845
+ sheet.insertRule(`.meta2d-input
6846
+ .input-div{
6847
6847
  resize:none;border:none;outline:none;background:transparent;position:absolute;flex-grow:1;height:100%;width: 100%;position:absolute;left:0;top:0;display:flex;flex-direction: column;cursor: text;${style}}`);
6848
6848
  sheet.insertRule(`.input-div div{${div_style}}`);
6849
6849
  // sheet.insertRule(`.meta2d-input .input-div-font{${style_font}}`);
@@ -6966,11 +6966,12 @@ export class Canvas {
6966
6966
  }
6967
6967
  }
6968
6968
  };
6969
- this.inputDiv.onblur = () => {
6970
- setTimeout(() => {
6971
- this.hideInput();
6972
- }, 300);
6973
- };
6969
+ // 下拉 点击滚动条
6970
+ // this.inputDiv.onblur = ()=>{
6971
+ // setTimeout(()=> {
6972
+ // this.hideInput()
6973
+ // },300)
6974
+ // }
6974
6975
  this.inputDiv.oninput = (e) => {
6975
6976
  const pen = this.store.pens[this.inputDiv.dataset.penId];
6976
6977
  if (pen && pen.inputType === 'number') {