File tree Expand file tree Collapse file tree
packages/designto-token/token-graphics Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ import { keyFromNode } from "../key";
66import { tokenizeBackground } from "../token-background" ;
77import { tokenizeBitmap } from "./bitmap" ;
88
9+ /**
10+ * @deprecated TODO: update the asset repository pattern.
11+ */
12+ const _asset_key = "fill-later-assets" ;
13+
914function fromStar ( ) : VectorWidget {
1015 // return new VectorWidget("");
1116 return ;
@@ -44,12 +49,10 @@ function fromFrame() {
4449}
4550
4651function fromImage ( image : ReflectSceneNode , data : ImagePaint ) {
47- const _tmp_img = MainImageRepository . instance
48- . get ( "fill-later-assets" )
49- . addImage ( {
50- key : image . id ,
51- hash : data . imageHash ,
52- } ) ;
52+ const _tmp_img = MainImageRepository . instance . get ( _asset_key ) . addImage ( {
53+ key : image . id ,
54+ hash : data . imageHash ,
55+ } ) ;
5356
5457 const _key = keyFromNode ( image ) ;
5558 return new ImageWidget ( {
You can’t perform that action at this time.
0 commit comments