代码调整

This commit is contained in:
joylink_fanyuhong 2024-10-14 15:36:57 +08:00
parent aacfdf8b2d
commit 0787c7419e
3 changed files with 9 additions and 4 deletions

View File

@ -18,7 +18,7 @@
"@quasar/extras": "^1.16.4",
"axios": "^1.2.1",
"google-protobuf": "^3.21.4",
"jl-graphic": "git+https://gitea.joylink.club/joylink/graphic-pixi.git#v0.1.18",
"jl-graphic": "git+https://gitea.joylink.club/joylink/graphic-pixi.git#v0.1.19",
"js-base64": "^3.7.5",
"pinia": "^2.0.11",
"quasar": "^2.16.0",

View File

@ -6,6 +6,7 @@ import {
KeyListener,
newDrawApp,
ClientEngine,
GraphicIdGenerator,
} from 'jl-graphic';
import {
@ -107,6 +108,10 @@ function handleSubscribe(app: IDrawApp) {
const proto = handlerTypeData(data);
const template = app.getGraphicTemplatesByType(proto.graphicType);
const g = template.new();
if (app.queryStore.checkIdExist(proto.id)) {
const newId = GraphicIdGenerator.next();
proto.id = newId;
}
g.loadData(proto);
app.addGraphics(g);
});

View File

@ -2528,9 +2528,9 @@ isobject@^3.0.1:
resolved "https://mirrors.huaweicloud.com/repository/npm/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df"
integrity sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==
"jl-graphic@git+https://gitea.joylink.club/joylink/graphic-pixi.git#v0.1.18":
version "0.1.16"
resolved "git+https://gitea.joylink.club/joylink/graphic-pixi.git#38045a10271f81b65820db402051fefc62b0a2cd"
"jl-graphic@git+https://gitea.joylink.club/joylink/graphic-pixi.git#v0.1.19":
version "0.1.18"
resolved "git+https://gitea.joylink.club/joylink/graphic-pixi.git#1c803d096585e258be3f60d3d95d1bd0c318d316"
dependencies:
"@pixi/graphics-extras" "^7.3.2"
"@pixi/utils" "^7.3.2"