|
|
@@ -6,7 +6,7 @@ export type IconItem = {
|
|
|
icon: string;
|
|
|
name: string;
|
|
|
color?: string;
|
|
|
- type?: string
|
|
|
+ type?: string;
|
|
|
parse?: {
|
|
|
key?: string;
|
|
|
fill?: string;
|
|
|
@@ -53,7 +53,11 @@ const traceIcons: IconItem[] = [
|
|
|
},
|
|
|
{ parse: { key: "trace" }, icon: "shitiz_o", name: getIT("shitiz_o") },
|
|
|
{ parse: { key: "trace" }, icon: "shitib_o", name: getIT("shitib_o") },
|
|
|
- { parse: { key: "trace" }, icon: "shitifuhao_o", name: getIT("shitifuhao_o") },
|
|
|
+ {
|
|
|
+ parse: { key: "trace" },
|
|
|
+ icon: "shitifuhao_o",
|
|
|
+ name: getIT("shitifuhao_o"),
|
|
|
+ },
|
|
|
|
|
|
{ parse: { key: "trace" }, icon: "handprint", name: getIT("handprint") },
|
|
|
{ parse: { key: "trace" }, icon: "footprint", name: getIT("footprint") },
|
|
|
@@ -71,7 +75,11 @@ const traceIcons: IconItem[] = [
|
|
|
icon: "physics_and_chemistry",
|
|
|
name: getIT("physics_and_chemistry"),
|
|
|
},
|
|
|
- { parse: { key: "trace" }, icon: "folder_close", name: getIT("folder_close") },
|
|
|
+ {
|
|
|
+ parse: { key: "trace" },
|
|
|
+ icon: "folder_close",
|
|
|
+ name: getIT("folder_close"),
|
|
|
+ },
|
|
|
{ parse: { key: "trace" }, icon: "check", name: getIT("check") },
|
|
|
{
|
|
|
parse: { key: "trace" },
|
|
|
@@ -92,6 +100,37 @@ export const iconGroups: IconGroup[] = [
|
|
|
children: [
|
|
|
{
|
|
|
wall: true,
|
|
|
+ icon: "MotherDoor",
|
|
|
+ name: getIT("MotherDoor"),
|
|
|
+ parse: { type: "align-bottom" },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ wall: true,
|
|
|
+ icon: "PullGate",
|
|
|
+ name: getIT("PullGate"),
|
|
|
+ parse: { type: "full" },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ wall: true,
|
|
|
+ icon: "RollerShutter",
|
|
|
+ name: getIT("RollerShutter"),
|
|
|
+ parse: { type: "full" },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ wall: true,
|
|
|
+ icon: "RevolutionDoor",
|
|
|
+ name: getIT("RevolutionDoor"),
|
|
|
+ parse: { type: "align-bottom" },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ wall: true,
|
|
|
+ icon: "DoorWindow",
|
|
|
+ name: getIT("DoorWindow"),
|
|
|
+ parse: { type: "align-bottom" },
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ wall: true,
|
|
|
icon: "men_l",
|
|
|
name: getIT("men_l"),
|
|
|
parse: { type: "align-bottom" },
|
|
|
@@ -108,13 +147,36 @@ export const iconGroups: IconGroup[] = [
|
|
|
name: getIT("yimen"),
|
|
|
parse: { type: "full" },
|
|
|
},
|
|
|
- { wall: true, icon: "yakou", name: getIT("yakou"), parse: { type: "full" } },
|
|
|
+ {
|
|
|
+ wall: true,
|
|
|
+ icon: "yakou",
|
|
|
+ name: getIT("yakou"),
|
|
|
+ parse: { type: "full" },
|
|
|
+ },
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
name: getGT("chuang"),
|
|
|
children: [
|
|
|
- { wall: true, icon: "chuang", name: getIT("chuang"), parse: { type: "full" } },
|
|
|
+ {
|
|
|
+ wall: true,
|
|
|
+ icon: "SlidingWindow",
|
|
|
+ name: getIT("SlidingWindow"),
|
|
|
+ parse: { type: "full" },
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ wall: true,
|
|
|
+ icon: "SingleBayWindow",
|
|
|
+ name: getIT("SingleBayWindow"),
|
|
|
+ parse: { type: "align-bottom-fix", width: 180, height: 70 },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ wall: true,
|
|
|
+ icon: "chuang",
|
|
|
+ name: getIT("chuang"),
|
|
|
+ parse: { type: "full" },
|
|
|
+ },
|
|
|
{
|
|
|
wall: true,
|
|
|
icon: "piaochuang",
|
|
|
@@ -141,77 +203,133 @@ export const iconGroups: IconGroup[] = [
|
|
|
},
|
|
|
{
|
|
|
name: getGT("jiaju"),
|
|
|
-
|
|
|
+
|
|
|
children: [
|
|
|
{
|
|
|
name: getGT("kecan"),
|
|
|
children: [
|
|
|
- { type: 'realScale', icon: "TV", name: getIT("TV") },
|
|
|
- { type: 'realScale', icon: "HangingTV", name: getIT("HangingTV") },
|
|
|
- { type: 'realScale', icon: "Cabinet", name: getIT("Cabinet") },
|
|
|
- { type: 'realScale', icon: "CombinationSofa", name: getIT("CombinationSofa") },
|
|
|
- { type: 'realScale', icon: "ThreeSofa", name: getIT("ThreeSofa") },
|
|
|
- { type: 'realScale', icon: "SingleSofa", name: getIT("SingleSofa") },
|
|
|
- { type: 'realScale', icon: "SingleSofaR", name: getIT("SingleSofaR") },
|
|
|
- { type: 'realScale', icon: "CurvedSofa", name: getIT("CurvedSofa") },
|
|
|
- { type: 'realScale', icon: "CornerSofa", name: getIT("CornerSofa") },
|
|
|
- { type: 'realScale', icon: "TwoSofa", name: getIT("TwoSofa") },
|
|
|
- { type: 'realScale', icon: "TeaTable", name: getIT("TeaTable") },
|
|
|
- { type: 'realScale', icon: "Carpet", name: getIT("Carpet") },
|
|
|
- { type: 'realScale', icon: "Plant", name: getIT("Plant") },
|
|
|
- { type: 'realScale', icon: "TeaTableR", name: getIT("TeaTableR") },
|
|
|
- { type: 'realScale', icon: "TeaTableO", name: getIT("TeaTableO") },
|
|
|
- { type: 'realScale', icon: "SideTableR", name: getIT("SideTableR") },
|
|
|
- { type: 'realScale', icon: "SideTableS", name: getIT("SideTableS") },
|
|
|
- { type: 'realScale', icon: "DiningTableC", name: getIT("DiningTableC") },
|
|
|
- { type: 'realScale', icon: "Chair", name: getIT("Chair") },
|
|
|
- { type: 'realScale', icon: "DiningTableRC", name: getIT("DiningTableRC") },
|
|
|
- { type: 'realScale', icon: "DiningTable", name: getIT("DiningTable") },
|
|
|
- { type: 'realScale', icon: "DiningTableR", name: getIT("DiningTableR") },
|
|
|
- { type: 'realScale', icon: "Stool", name: getIT("Stool") },
|
|
|
+ { type: "realScale", icon: "TV", name: getIT("TV") },
|
|
|
+ { type: "realScale", icon: "HangingTV", name: getIT("HangingTV") },
|
|
|
+ { type: "realScale", icon: "Cabinet", name: getIT("Cabinet") },
|
|
|
+ {
|
|
|
+ type: "realScale",
|
|
|
+ icon: "CombinationSofa",
|
|
|
+ name: getIT("CombinationSofa"),
|
|
|
+ },
|
|
|
+ { type: "realScale", icon: "ThreeSofa", name: getIT("ThreeSofa") },
|
|
|
+ { type: "realScale", icon: "SingleSofa", name: getIT("SingleSofa") },
|
|
|
+ {
|
|
|
+ type: "realScale",
|
|
|
+ icon: "SingleSofaR",
|
|
|
+ name: getIT("SingleSofaR"),
|
|
|
+ },
|
|
|
+ { type: "realScale", icon: "CurvedSofa", name: getIT("CurvedSofa") },
|
|
|
+ { type: "realScale", icon: "CornerSofa", name: getIT("CornerSofa") },
|
|
|
+ { type: "realScale", icon: "TwoSofa", name: getIT("TwoSofa") },
|
|
|
+ { type: "realScale", icon: "TeaTable", name: getIT("TeaTable") },
|
|
|
+ { type: "realScale", icon: "Carpet", name: getIT("Carpet") },
|
|
|
+ { type: "realScale", icon: "Plant", name: getIT("Plant") },
|
|
|
+ { type: "realScale", icon: "TeaTableR", name: getIT("TeaTableR") },
|
|
|
+ { type: "realScale", icon: "TeaTableO", name: getIT("TeaTableO") },
|
|
|
+ { type: "realScale", icon: "SideTableR", name: getIT("SideTableR") },
|
|
|
+ { type: "realScale", icon: "SideTableS", name: getIT("SideTableS") },
|
|
|
+ {
|
|
|
+ type: "realScale",
|
|
|
+ icon: "DiningTableC",
|
|
|
+ name: getIT("DiningTableC"),
|
|
|
+ },
|
|
|
+ { type: "realScale", icon: "Chair", name: getIT("Chair") },
|
|
|
+ {
|
|
|
+ type: "realScale",
|
|
|
+ icon: "DiningTableRC",
|
|
|
+ name: getIT("DiningTableRC"),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "realScale",
|
|
|
+ icon: "DiningTable",
|
|
|
+ name: getIT("DiningTable"),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "realScale",
|
|
|
+ icon: "DiningTableR",
|
|
|
+ name: getIT("DiningTableR"),
|
|
|
+ },
|
|
|
+ { type: "realScale", icon: "Stool", name: getIT("Stool") },
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
name: getGT("woshi"),
|
|
|
children: [
|
|
|
- { type: 'realScale', icon: "DoubleBed", name: getIT("DoubleBed") },
|
|
|
- { type: 'realScale', icon: "SingleBed", name: getIT("SingleBed") },
|
|
|
- { type: 'realScale', icon: "Wardrobe", name: getIT("Wardrobe") },
|
|
|
- { type: 'realScale', icon: "DoubleBedB", name: getIT("DoubleBedB") },
|
|
|
- { type: 'realScale', icon: "Dresser", name: getIT("Dresser") },
|
|
|
- { type: 'realScale', icon: "BedsideCupboard", name: getIT("BedsideCupboard") },
|
|
|
- { type: 'realScale', icon: "Pillow", name: getIT("Pillow") },
|
|
|
+ { type: "realScale", icon: "DoubleBed", name: getIT("DoubleBed") },
|
|
|
+ { type: "realScale", icon: "SingleBed", name: getIT("SingleBed") },
|
|
|
+ { type: "realScale", icon: "Wardrobe", name: getIT("Wardrobe") },
|
|
|
+ { type: "realScale", icon: "DoubleBedB", name: getIT("DoubleBedB") },
|
|
|
+ { type: "realScale", icon: "Dresser", name: getIT("Dresser") },
|
|
|
+ {
|
|
|
+ type: "realScale",
|
|
|
+ icon: "BedsideCupboard",
|
|
|
+ name: getIT("BedsideCupboard"),
|
|
|
+ },
|
|
|
+ { type: "realScale", icon: "Pillow", name: getIT("Pillow") },
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
name: getGT("chuwei"),
|
|
|
children: [
|
|
|
- { type: 'realScale', icon: "GasStove", name: getIT("GasStove") },
|
|
|
- { type: 'realScale', icon: "Cupboard", name: getIT("Cupboard") },
|
|
|
- { type: 'realScale', icon: "Bathtub", name: getIT("Bathtub") },
|
|
|
- { type: 'realScale', icon: "Closestool", name: getIT("Closestool") },
|
|
|
- { type: 'realScale', icon: "Washstand", name: getIT("Washstand") },
|
|
|
- { type: 'realScale', icon: "CupboardU", name: getIT("CupboardU") },
|
|
|
- { type: 'realScale', icon: "WaterChannel", name: getIT("WaterChannel") },
|
|
|
- { type: 'realScale', icon: "WaterChannelD", name: getIT("WaterChannelD") },
|
|
|
- { type: 'realScale', icon: "FridgeS", name: getIT("FridgeS") },
|
|
|
- { type: 'realScale', icon: "FridgeD", name: getIT("FridgeD") },
|
|
|
- { type: 'realScale', icon: "CabinetB", name: getIT("CabinetB") },
|
|
|
- { type: 'realScale', icon: "SquattingPan", name: getIT("SquattingPan") },
|
|
|
- { type: 'realScale', icon: "Shower", name: getIT("Shower") },
|
|
|
+ { type: "realScale", icon: "GasStove", name: getIT("GasStove") },
|
|
|
+ { type: "realScale", icon: "Cupboard", name: getIT("Cupboard") },
|
|
|
+ { type: "realScale", icon: "Bathtub", name: getIT("Bathtub") },
|
|
|
+ { type: "realScale", icon: "Closestool", name: getIT("Closestool") },
|
|
|
+ { type: "realScale", icon: "Washstand", name: getIT("Washstand") },
|
|
|
+ { type: "realScale", icon: "CupboardU", name: getIT("CupboardU") },
|
|
|
+ {
|
|
|
+ type: "realScale",
|
|
|
+ icon: "WaterChannel",
|
|
|
+ name: getIT("WaterChannel"),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "realScale",
|
|
|
+ icon: "WaterChannelD",
|
|
|
+ name: getIT("WaterChannelD"),
|
|
|
+ },
|
|
|
+ { type: "realScale", icon: "FridgeS", name: getIT("FridgeS") },
|
|
|
+ { type: "realScale", icon: "FridgeD", name: getIT("FridgeD") },
|
|
|
+ { type: "realScale", icon: "CabinetB", name: getIT("CabinetB") },
|
|
|
+ {
|
|
|
+ type: "realScale",
|
|
|
+ icon: "SquattingPan",
|
|
|
+ name: getIT("SquattingPan"),
|
|
|
+ },
|
|
|
+ { type: "realScale", icon: "Shower", name: getIT("Shower") },
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
name: getGT("qita"),
|
|
|
children: [
|
|
|
- { type: 'realScale', icon: "Desk", name: getIT("Desk") },
|
|
|
- { type: 'realScale', icon: "BalconyChair", name: getIT("BalconyChair") },
|
|
|
- { type: 'realScale', icon: "MopPool", name: getIT("MopPool") },
|
|
|
- { type: 'realScale', icon: "WashingMachine", name: getIT("WashingMachine") },
|
|
|
- { type: 'realScale', icon: "Elevator", name: getIT("Elevator") },
|
|
|
- { type: 'realScale', icon: "WaterFountain", name: getIT("WaterFountain") },
|
|
|
- { type: 'realScale', icon: "AirConditioner", name: getIT("AirConditioner") },
|
|
|
- { type: 'realScale', icon: "Tablelamp", name: getIT("Tablelamp") },
|
|
|
+ { type: "realScale", icon: "Desk", name: getIT("Desk") },
|
|
|
+ {
|
|
|
+ type: "realScale",
|
|
|
+ icon: "BalconyChair",
|
|
|
+ name: getIT("BalconyChair"),
|
|
|
+ },
|
|
|
+ { type: "realScale", icon: "MopPool", name: getIT("MopPool") },
|
|
|
+ {
|
|
|
+ type: "realScale",
|
|
|
+ icon: "WashingMachine",
|
|
|
+ name: getIT("WashingMachine"),
|
|
|
+ },
|
|
|
+ { type: "realScale", icon: "Elevator", name: getIT("Elevator") },
|
|
|
+ {
|
|
|
+ type: "realScale",
|
|
|
+ icon: "WaterFountain",
|
|
|
+ name: getIT("WaterFountain"),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "realScale",
|
|
|
+ icon: "AirConditioner",
|
|
|
+ name: getIT("AirConditioner"),
|
|
|
+ },
|
|
|
+ { type: "realScale", icon: "Tablelamp", name: getIT("Tablelamp") },
|
|
|
],
|
|
|
},
|
|
|
],
|
|
|
@@ -238,7 +356,6 @@ export const getIconItem = (icon: string) => {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
-
|
|
|
export const aiIconMap = {
|
|
|
SingleDoor: "men_l",
|
|
|
DoubleDoor: "shuangkaimen",
|
|
|
@@ -295,19 +412,19 @@ export const overviewBorderMMToPixel = 7.69;
|
|
|
if (import.meta.env.DEV) {
|
|
|
const icons = iconGroups.flatMap((group) =>
|
|
|
group.children.flatMap((itemGroup) =>
|
|
|
- itemGroup.children.flatMap((item) => item.icon)
|
|
|
- )
|
|
|
+ itemGroup.children.flatMap((item) => item.icon),
|
|
|
+ ),
|
|
|
);
|
|
|
- const prev = '../../public/icons/'
|
|
|
- const svgModules = import.meta.glob('../../public/icons/*.svg');
|
|
|
+ const prev = "../../public/icons/";
|
|
|
+ const svgModules = import.meta.glob("../../public/icons/*.svg");
|
|
|
|
|
|
// 示例:获取所有路径
|
|
|
- const unusesdIcons: string[] = []
|
|
|
+ const unusesdIcons: string[] = [];
|
|
|
for (const path in svgModules) {
|
|
|
- const name = path.substring(prev.length, path.length - 4)
|
|
|
+ const name = path.substring(prev.length, path.length - 4);
|
|
|
if (!icons.includes(name)) {
|
|
|
- unusesdIcons.push(name)
|
|
|
+ unusesdIcons.push(name);
|
|
|
}
|
|
|
}
|
|
|
- console.log('未使用svg: ', unusesdIcons)
|
|
|
+ console.log("未使用svg: ", unusesdIcons);
|
|
|
}
|