diff --git a/src/common/ClientConnection.ts b/src/common/ClientConnection.ts index 726403f..c83e0fd 100644 --- a/src/common/ClientConnection.ts +++ b/src/common/ClientConnection.ts @@ -1469,6 +1469,12 @@ export default class ClientConnection { ); } + public async ResetBlendingConfig() { + return await this.doRpc( + new Protocol.ResetBlendingConfigRequestEntity() + ); + } + public destory() { this.ws?.close(); if (this.ws) { diff --git a/src/entities/WSProtocol.ts b/src/entities/WSProtocol.ts index 6fe811f..1e64b73 100644 --- a/src/entities/WSProtocol.ts +++ b/src/entities/WSProtocol.ts @@ -520,6 +520,9 @@ export namespace Protocol { public static get kSetBlendingVerDensity() { return Commands.PROTOCOL_PREFIX + "SetBlendingVerDensity"; } + public static get kResetBlending() { + return Commands.PROTOCOL_PREFIX + "ResetBlending"; + } static _all_commands = new Set([ Commands.kUnKnowCommand, @@ -650,7 +653,8 @@ export namespace Protocol { Commands.kGetBlendingConfig, Commands.kSaveBlendingConfig, Commands.kSetBlendingHorDensity, - Commands.kSetBlendingVerDensity, + Commands.kSetBlendingVerDensity, + Commands.kResetBlending, ]); public static get AllCommands() { return this._all_commands; @@ -3447,4 +3451,15 @@ export namespace Protocol { control_point = 0; //控制点编号,1开始,从上到下从左到右 value = 0; } + + export class ResetBlendingConfigRequestEntity extends PacketEntity { + constructor( + rpc_id = 0 + ) { + super(); + super.command = Commands.kResetBlending; + super.flag = PacketEntity.FLAG_REQUEST; + super.rpc_id = rpc_id; + } + } }