|
3 | 3 | EK_IMAGE_ASSET_REPOSITORY_MAP,
|
4 | 4 | EK_VANILLA_TRANSPORT,
|
5 | 5 | } from "@core/constant/ek.constant";
|
6 |
| -import * as vanilla from "@design-sdk/vanilla"; |
7 | 6 | import { ReflectFrameNode, ReflectSceneNode } from "@design-sdk/figma-node";
|
8 | 7 | import { user_interest } from "./user-interest";
|
9 | 8 | import { broadcastSelectionPreview } from "./broadcast-selection-preview";
|
@@ -35,18 +34,19 @@ export async function runon(rnode: ReflectSceneNode) {
|
35 | 34 |
|
36 | 35 | // TODO: migrate this to __plugin
|
37 | 36 | // region make vanilla
|
38 |
| - if (user_interest == "g11n" || user_interest == "exporter") { |
39 |
| - const globalizatoinScreen = vanilla.makeVanilla(rnode as ReflectFrameNode); |
40 |
| - const vanillaTransportableImageRepository = await globalizatoinScreen.repository.makeTransportable(); |
41 |
| - figma.ui.postMessage({ |
42 |
| - type: EK_IMAGE_ASSET_REPOSITORY_MAP, |
43 |
| - data: vanillaTransportableImageRepository, |
44 |
| - }); |
45 |
| - figma.ui.postMessage({ |
46 |
| - type: EK_VANILLA_TRANSPORT, |
47 |
| - data: globalizatoinScreen, |
48 |
| - }); |
49 |
| - } |
| 37 | + // import * as vanilla from "@design-sdk/vanilla"; |
| 38 | + // if (user_interest == "g11n" || user_interest == "exporter") { |
| 39 | + // const globalizatoinScreen = vanilla.makeVanilla(rnode as ReflectFrameNode); |
| 40 | + // const vanillaTransportableImageRepository = await globalizatoinScreen.repository.makeTransportable(); |
| 41 | + // figma.ui.postMessage({ |
| 42 | + // type: EK_IMAGE_ASSET_REPOSITORY_MAP, |
| 43 | + // data: vanillaTransportableImageRepository, |
| 44 | + // }); |
| 45 | + // figma.ui.postMessage({ |
| 46 | + // type: EK_VANILLA_TRANSPORT, |
| 47 | + // data: globalizatoinScreen, |
| 48 | + // }); |
| 49 | + // } |
50 | 50 | // endregion
|
51 | 51 |
|
52 | 52 | // send preview image
|
|
0 commit comments