@@ -19,6 +19,7 @@ import {
1919 largeMax ,
2020 largeMin ,
2121 numberToLetters ,
22+ UuidGenerator ,
2223} from "../helpers/index" ;
2324import { DEFAULT_TABLE_CONFIG } from "../helpers/table_presets" ;
2425import { interactivePaste , interactivePasteFromOS } from "../helpers/ui/paste_interactive" ;
@@ -399,7 +400,7 @@ export const HIDE_ROWS_NAME = (env: SpreadsheetChildEnv) => {
399400
400401export const CREATE_CHART = ( env : SpreadsheetChildEnv ) => {
401402 const getters = env . model . getters ;
402- const figureId = env . model . uuidGenerator . smallUuid ( ) ;
403+ const figureId = UuidGenerator . smallUuid ( ) ;
403404 const sheetId = getters . getActiveSheetId ( ) ;
404405 let zones = getters . getSelectedZones ( ) ;
405406
@@ -414,7 +415,7 @@ export const CREATE_CHART = (env: SpreadsheetChildEnv) => {
414415 const result = env . model . dispatch ( "CREATE_CHART" , {
415416 sheetId,
416417 figureId,
417- chartId : env . model . uuidGenerator . smallUuid ( ) ,
418+ chartId : UuidGenerator . smallUuid ( ) ,
418419 col,
419420 row,
420421 offset,
@@ -429,7 +430,7 @@ export const CREATE_CHART = (env: SpreadsheetChildEnv) => {
429430
430431export const CREATE_CAROUSEL = ( env : SpreadsheetChildEnv ) => {
431432 const getters = env . model . getters ;
432- const figureId = env . model . uuidGenerator . smallUuid ( ) ;
433+ const figureId = UuidGenerator . smallUuid ( ) ;
433434 const sheetId = getters . getActiveSheetId ( ) ;
434435
435436 const size = { width : DEFAULT_FIGURE_WIDTH , height : DEFAULT_FIGURE_HEIGHT } ;
@@ -455,8 +456,8 @@ export const CREATE_CAROUSEL = (env: SpreadsheetChildEnv) => {
455456//------------------------------------------------------------------------------
456457
457458export const CREATE_PIVOT = ( env : SpreadsheetChildEnv ) => {
458- const pivotId = env . model . uuidGenerator . smallUuid ( ) ;
459- const newSheetId = env . model . uuidGenerator . smallUuid ( ) ;
459+ const pivotId = UuidGenerator . smallUuid ( ) ;
460+ const newSheetId = UuidGenerator . smallUuid ( ) ;
460461 const result = env . model . dispatch ( "INSERT_NEW_PIVOT" , { pivotId, newSheetId } ) ;
461462 if ( result . isSuccessful ) {
462463 env . openSidePanel ( "PivotSidePanel" , { pivotId } ) ;
@@ -520,7 +521,7 @@ export const REINSERT_STATIC_PIVOT_CHILDREN = (env: SpreadsheetChildEnv) =>
520521export const CREATE_IMAGE = async ( env : SpreadsheetChildEnv ) => {
521522 if ( env . imageProvider ) {
522523 const sheetId = env . model . getters . getActiveSheetId ( ) ;
523- const figureId = env . model . uuidGenerator . smallUuid ( ) ;
524+ const figureId = UuidGenerator . smallUuid ( ) ;
524525 const image = await env . imageProvider . requestImage ( ) ;
525526 const size = getMaxFigureSize ( env . model . getters , image . size ) ;
526527 const { col, row, offset } = centerFigurePosition ( env . model . getters , size ) ;
0 commit comments