diff --git a/apps/examples/src/examples/APIExample.tsx b/apps/examples/src/examples/APIExample.tsx index 61fc1f470..668eb8e04 100644 --- a/apps/examples/src/examples/APIExample.tsx +++ b/apps/examples/src/examples/APIExample.tsx @@ -90,7 +90,8 @@ const InsideOfEditorContext = () => { const interval = setInterval(() => { const selection = [...editor.selectedShapeIds] editor.selectAll() - editor.setStyle(DefaultColorStyle, i % 2 ? 'blue' : 'light-blue') + editor.setStyleForSelectedShapes(DefaultColorStyle, i % 2 ? 'blue' : 'light-blue') + editor.setStyleForNextShapes(DefaultColorStyle, i % 2 ? 'blue' : 'light-blue') editor.setSelectedShapes(selection) i++ }, 1000) diff --git a/apps/examples/src/examples/CustomStylesExample/FilterStyleUi.tsx b/apps/examples/src/examples/CustomStylesExample/FilterStyleUi.tsx index 1dacd8b22..f8c6e4bef 100644 --- a/apps/examples/src/examples/CustomStylesExample/FilterStyleUi.tsx +++ b/apps/examples/src/examples/CustomStylesExample/FilterStyleUi.tsx @@ -13,7 +13,14 @@ export const FilterStyleUi = track(function FilterStyleUi() { filter:{' '}