From dec18361ef5dbde0fcac783dd2ad13bd01b0d294 Mon Sep 17 00:00:00 2001 From: MrKBear Date: Mon, 4 Apr 2022 22:22:16 +0800 Subject: [PATCH] Mod behavior model add cache object --- source/Model/Behavior.ts | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/source/Model/Behavior.ts b/source/Model/Behavior.ts index 9dac877..f25a612 100644 --- a/source/Model/Behavior.ts +++ b/source/Model/Behavior.ts @@ -6,6 +6,11 @@ import type { Model } from "./Model"; import type { Range } from "./Range"; import type { Label } from "./Label"; +type IObjectParamCacheType = { + picker: P; + objects: Q; +} + /** * 参数类型 */ @@ -16,12 +21,10 @@ type IMapBasicParamTypeKeyToType = { } type IMapObjectParamTypeKeyToType = { - "R"?: Range; - "G"?: Group; - "GR"?: Group | Range; - "LR"?: Label | Range; - "LG"?: Label | Group; - "LGR"?: Label | Group | Range; + "R": IObjectParamCacheType; + "G": IObjectParamCacheType; + "LR": IObjectParamCacheType