polotno 4.13.0 → 4.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/blueprint/side-panel/select-video.d.ts +105 -36
  2. package/canvas/apply-filters.js +1 -1
  3. package/canvas/downscale.d.ts +4 -0
  4. package/canvas/downscale.js +1 -1
  5. package/canvas/element.d.ts +1 -1
  6. package/canvas/element.js +1 -1
  7. package/canvas/figure-element.js +1 -1
  8. package/canvas/gif-element.js +1 -1
  9. package/canvas/html-element.js +1 -1
  10. package/canvas/image-element.js +1 -1
  11. package/canvas/line-element.js +1 -1
  12. package/canvas/page.js +1 -1
  13. package/canvas/paint-opacity.d.ts +12 -0
  14. package/canvas/paint-opacity.js +1 -0
  15. package/canvas/render-tag-element.js +1 -1
  16. package/canvas/rich-editor.js +11 -3
  17. package/canvas/table-element.js +1 -1
  18. package/canvas/text-element/font-specs-loader.js +1 -1
  19. package/canvas/text-element.js +1 -1
  20. package/canvas/use-filtered-source.js +1 -1
  21. package/canvas/video-element.js +1 -1
  22. package/canvas/workspace-canvas.js +1 -1
  23. package/model/audio-model.d.ts +54 -2
  24. package/model/figure-model.d.ts +65 -24
  25. package/model/gif-model.d.ts +65 -24
  26. package/model/group-model.d.ts +497 -182
  27. package/model/group-model.js +1 -1
  28. package/model/history.js +1 -1
  29. package/model/image-model.d.ts +65 -24
  30. package/model/line-model.d.ts +65 -24
  31. package/model/node-model.d.ts +65 -24
  32. package/model/node-model.js +1 -1
  33. package/model/page-model.d.ts +4369 -445
  34. package/model/page-model.js +1 -1
  35. package/model/shape-model.d.ts +65 -24
  36. package/model/store.d.ts +480 -18060
  37. package/model/store.js +1 -1
  38. package/model/svg-model.d.ts +64 -24
  39. package/model/table-model.d.ts +40 -12
  40. package/model/table-model.js +1 -1
  41. package/model/text-model.d.ts +64 -24
  42. package/model/text-model.js +1 -1
  43. package/model/video-model.d.ts +65 -24
  44. package/package.json +8 -8
  45. package/polotno.bundle.js +167 -156
  46. package/primitives/panel-header.js +1 -1
  47. package/primitives/panel-scroll-area.d.ts +4 -0
  48. package/primitives/panel-scroll-area.js +1 -0
  49. package/primitives/select.js +1 -1
  50. package/side-panel/animations-panel.js +1 -1
  51. package/side-panel/draw-panel.js +1 -1
  52. package/side-panel/effects-panel.js +1 -1
  53. package/side-panel/elements-panel.js +1 -1
  54. package/side-panel/image-clip-panel.js +1 -1
  55. package/side-panel/layers-panel.js +1 -1
  56. package/side-panel/select-video.d.ts +105 -36
  57. package/side-panel/side-panel.js +1 -1
  58. package/side-panel/size-panel.js +1 -1
  59. package/side-panel/text-panel.js +1 -1
  60. package/toolbar/color-picker.js +1 -1
  61. package/toolbar/html-toolbar.js +3 -3
  62. package/toolbar/opacity-picker.js +1 -1
  63. package/toolbar/text-toolbar.js +1 -1
  64. package/ui.css +1 -1
  65. package/utils/canvas.d.ts +0 -3
  66. package/utils/canvas.js +1 -1
  67. package/utils/clipboard.d.ts +104 -36
  68. package/utils/fonts.js +1 -1
  69. package/utils/from-svg.js +1 -1
  70. package/utils/l10n.d.ts +21 -0
  71. package/utils/l10n.js +1 -1
  72. package/utils/pointer-drag.js +1 -1
  73. package/utils/text-format-state.d.ts +3 -0
  74. package/utils/text-format-state.js +1 -1
  75. package/utils/validate-key.js +1 -1
@@ -1 +1 @@
1
- import{getParentOfType as e,getSnapshot as t,isAlive as o,types as i}from"mobx-state-tree";import{nanoid as n}from"nanoid";import{resolveBleed as r}from"@polotno/schema";import{ElementTypes as s,forEveryChild as d,forEveryNode as a,TYPES_MAP as m,zIndexOps as c}from"./group-model.js";import{Store as h}from"./store.js";import{getTotalClientRect as l}from"../utils/math.js";export const Page=i.model("Page",{id:i.identifier,children:i.array(i.late(()=>s)),width:i.optional(i.union(i.number,i.literal("auto")),"auto"),height:i.optional(i.union(i.number,i.literal("auto")),"auto"),background:"white",bleed:0,bleedTop:i.maybe(i.number),bleedRight:i.maybe(i.number),bleedBottom:i.maybe(i.number),bleedLeft:i.maybe(i.number),custom:i.frozen(),duration:5e3,_exporting:!1,_rendering:!1,_forceMount:!1}).postProcessSnapshot(e=>{const t=Object.assign({},e),o={};for(var i in t){"_"!==i[0]&&(o[i]=e[i])}return o}).views(t=>({get store(){return e(t,h)}})).views(e=>({get startTime(){let t=0;for(const o of e.store.pages){if(o.id===e.id){return t}t+=o.duration}return t},get _exportingOrRendering(){return e._exporting||e._rendering},get playheadLocalTime(){if(!o(e)){return null}const t=e.store;if(!(null==t?void 0:t.playheadAccurate)){return null}const i=t.effectiveTime-this.startTime;return i<0||i>e.duration?null:Math.min(i,Math.max(0,e.duration-1))}})).views(e=>({get computedWidth(){return"auto"===e.width?e.store.width:e.width},get computedHeight(){return"auto"===e.height?e.store.height:e.height},get computedBleed(){return r(e)}})).actions(e=>({toJSON:()=>JSON.parse(JSON.stringify(t(e)))})).actions(e=>Object.assign(Object.assign({clone(t={}){const o=e.toJSON(),i=new Map;o.children.forEach(e=>{const t=e.id,o=n(10);i.set(t,o),e.id=o,a(e,e=>{const t=e.id,o=n(10);i.set(t,o),e.id=o})}),o.children.forEach(e=>{e.cells&&e.cells.forEach(e=>{e.mergedInto&&i.has(e.mergedInto)&&(e.mergedInto=i.get(e.mergedInto))})});const r=Object.assign(Object.assign(Object.assign({},o),{id:n(10)}),t),s=e.store.selectedPages.includes(e),d=e.store.addPage(r),m=e.store.pages.indexOf(e);return d.setZIndex(m+1),s&&e.store.selectPages([d.id]),d},setZIndex(t){e.store.setPageZIndex(e.id,t)},set(t){Object.assign(e,t)},select(){e.store.selectPage(e.id)},addElement(t,{skipSelect:o=!1}={}){const i=m[t.type];if(!i){return void console.error("Can not find model with type "+t.type)}"children"in t&&Array.isArray(t.children)&&a(t,e=>{e.id=e.id||n(10)});const r=e.children.reduce((e,o)=>{if("group"===o.type){const i=o.children.reduce((e,o)=>{var i;const n=null===(i=o.name)||void 0===i?void 0:i.match(new RegExp(`${t.type}-(\\d+)`));if(n){const t=parseInt(n[1],10);return Math.max(e,t||0)}},0);return Math.max(e,i||0)}{const i=o.name.match(new RegExp(`${t.type}-(\\d+)`));if(i){const t=parseInt(i[1],10);return Math.max(e,t||0)}}return e},0),s=i.create(Object.assign({id:n(10),name:`${t.type}-${r+1}`},t));return e.children.push(s),s.selectable&&!o&&e.store.selectElements([s.id]),s}},c(e)),{setSize({width:t,height:o,useMagic:i,softChange:n}){if(i){const i=[],n=t=>"image"===t.type&&t.x<1&&t.y<1&&t.width>=e.computedWidth-2&&t.height>=e.computedHeight-2;d(e,e=>{"group"!==e.type&&(n(e)||i.push(e))});const r=i.length?l(i):{x:0,y:0,width:e.computedWidth,height:e.computedHeight},s=1/4,a=Math.max(0,Math.min(r.x,e.computedWidth-r.x-r.width)),m=e.computedWidth*s,c=Math.max(0,a-m),h=Math.max(0,Math.min(r.y,e.computedHeight-r.y-r.height)),p=e.computedHeight*s,g=Math.max(0,h-p),u=e.computedWidth-2*c,f=e.computedHeight-2*g,b=t/u,y=o/f,w=Math.min(b,y),v=(t-u*w)/2-c*w,x=(o-f*w)/2-g*w;d(e,e=>{var t;if("group"!==e.type){if(n(e)){e.set({x:e.x*w,y:e.y*w,width:e.width*b,height:e.height*y,cropX:0,cropY:0,cropWidth:1,cropHeight:1})}else if(e.set({x:v+e.x*w,y:x+e.y*w,width:e.width*w,height:e.height*w}),"text"===e.type){e.set({fontSize:e.fontSize*w})}else if("figure"===e.type){e.set({strokeWidth:e.strokeWidth*w})}else if("table"===e.type){e.set({borderWidth:e.borderWidth*w});for(const o of e.cells){const e={fontSize:o.fontSize*w,cellPadding:o.cellPadding*w};if(o.borders){const i=JSON.parse(JSON.stringify(o.borders));for(const e of["top","right","bottom","left"]){null!=(null===(t=i[e])||void 0===t?void 0:t.width)&&(i[e]=Object.assign(Object.assign({},i[e]),{width:i[e].width*w}))}e.borders=i}o.set(e)}}}})}n||(e.width=t),n||(e.height=o)}})).actions(e=>({moveElementUp(t){console.warn("page.moveElementUp(id) is deprecated. Please use page.moveElementsUp([id1, id2]) instead."),e.moveElementsUp([t])},moveElementDown(t){console.warn("page.moveElementDown(id) is deprecated. Please use page.moveElementsDown([id1, id2]) instead."),e.moveElementsDown([t])},moveElementTop(t){console.warn("page.moveElementTop(id) is deprecated. Please use page.moveElementsTop([id1, id2]) instead."),e.moveElementsTop([t])},moveElementBottom(t){console.warn("page.moveElementBottom(id) is deprecated. Please use page.moveElementsBottom([id1, id2]) instead."),e.moveElementsBottom([t])},play(){e.store.play({startTime:e.startTime,endTime:e.startTime+e.duration})}}));
1
+ import{getParentOfType as e,getSnapshot as t,isAlive as o,types as i}from"mobx-state-tree";import{nanoid as n}from"nanoid";import{resolveBleed as r}from"@polotno/schema";import{hasBlendMode as s}from"@polotno/core/page";import{ElementTypes as d,forEveryChild as a,forEveryNode as m,TYPES_MAP as c,zIndexOps as h}from"./group-model.js";import{Store as l}from"./store.js";import{getTotalClientRect as p}from"../utils/math.js";const g=i.model("Page",{id:i.identifier,children:i.array(i.late(()=>d)),width:i.optional(i.union(i.number,i.literal("auto")),"auto"),height:i.optional(i.union(i.number,i.literal("auto")),"auto"),background:"white",bleed:0,bleedTop:i.maybe(i.number),bleedRight:i.maybe(i.number),bleedBottom:i.maybe(i.number),bleedLeft:i.maybe(i.number),custom:i.frozen(),duration:5e3,_exporting:!1,_rendering:!1,_forceMount:!1}).postProcessSnapshot(e=>{const t=Object.assign({},e),o={};for(var i in t){"_"!==i[0]&&(o[i]=e[i])}return o}).views(t=>({get store(){return e(t,l)}})).views(e=>({get startTime(){let t=0;for(const o of e.store.pages){if(o.id===e.id){return t}t+=o.duration}return t},get _exportingOrRendering(){return e._exporting||e._rendering},get playheadLocalTime(){if(!o(e)){return null}const t=e.store;if(!(null==t?void 0:t.playheadAccurate)){return null}const i=t.effectiveTime-this.startTime;return i<0||i>e.duration?null:Math.min(i,Math.max(0,e.duration-1))}})).views(e=>({get computedWidth(){return"auto"===e.width?e.store.width:e.width},get computedHeight(){return"auto"===e.height?e.store.height:e.height},get computedBleed(){return r(e)},get hasBlendMode(){return s(e.children)}})).actions(e=>({toJSON:()=>JSON.parse(JSON.stringify(t(e)))})).actions(e=>Object.assign(Object.assign({clone(t={}){const o=e.toJSON(),i=new Map;o.children.forEach(e=>{const t=e.id,o=n(10);i.set(t,o),e.id=o,m(e,e=>{const t=e.id,o=n(10);i.set(t,o),e.id=o})}),o.children.forEach(e=>{e.cells&&e.cells.forEach(e=>{e.mergedInto&&i.has(e.mergedInto)&&(e.mergedInto=i.get(e.mergedInto))})});const r=Object.assign(Object.assign(Object.assign({},o),{id:n(10)}),t),s=e.store.selectedPages.includes(e),d=e.store.addPage(r),a=e.store.pages.indexOf(e);return d.setZIndex(a+1),s&&e.store.selectPages([d.id]),d},setZIndex(t){e.store.setPageZIndex(e.id,t)},set(t){Object.assign(e,t)},select(){e.store.selectPage(e.id)},addElement(t,{skipSelect:o=!1}={}){const i=c[t.type];if(!i){return void console.error("Can not find model with type "+t.type)}"children"in t&&Array.isArray(t.children)&&m(t,e=>{e.id=e.id||n(10)});const r=e.children.reduce((e,o)=>{if("group"===o.type){const i=o.children.reduce((e,o)=>{var i;const n=null===(i=o.name)||void 0===i?void 0:i.match(new RegExp(`${t.type}-(\\d+)`));if(n){const t=parseInt(n[1],10);return Math.max(e,t||0)}},0);return Math.max(e,i||0)}{const i=o.name.match(new RegExp(`${t.type}-(\\d+)`));if(i){const t=parseInt(i[1],10);return Math.max(e,t||0)}}return e},0),s=i.create(Object.assign({id:n(10),name:`${t.type}-${r+1}`},t));return e.children.push(s),s.selectable&&!o&&e.store.selectElements([s.id]),s}},h(e)),{setSize({width:t,height:o,useMagic:i,softChange:n}){if(i){const i=[],n=t=>"image"===t.type&&t.x<1&&t.y<1&&t.width>=e.computedWidth-2&&t.height>=e.computedHeight-2;a(e,e=>{"group"!==e.type&&(n(e)||i.push(e))});const r=i.length?p(i):{x:0,y:0,width:e.computedWidth,height:e.computedHeight},s=1/4,d=Math.max(0,Math.min(r.x,e.computedWidth-r.x-r.width)),m=e.computedWidth*s,c=Math.max(0,d-m),h=Math.max(0,Math.min(r.y,e.computedHeight-r.y-r.height)),l=e.computedHeight*s,g=Math.max(0,h-l),u=e.computedWidth-2*c,f=e.computedHeight-2*g,b=t/u,y=o/f,w=Math.min(b,y),v=(t-u*w)/2-c*w,x=(o-f*w)/2-g*w;a(e,e=>{var t;if("group"!==e.type){if(n(e)){e.set({x:e.x*w,y:e.y*w,width:e.width*b,height:e.height*y,cropX:0,cropY:0,cropWidth:1,cropHeight:1})}else if(e.set({x:v+e.x*w,y:x+e.y*w,width:e.width*w,height:e.height*w}),"text"===e.type){e.set({fontSize:e.fontSize*w})}else if("figure"===e.type){e.set({strokeWidth:e.strokeWidth*w})}else if("table"===e.type){e.set({borderWidth:e.borderWidth*w});for(const o of e.cells){const e={fontSize:o.fontSize*w,cellPadding:o.cellPadding*w};if(o.borders){const i=JSON.parse(JSON.stringify(o.borders));for(const e of["top","right","bottom","left"]){null!=(null===(t=i[e])||void 0===t?void 0:t.width)&&(i[e]=Object.assign(Object.assign({},i[e]),{width:i[e].width*w}))}e.borders=i}o.set(e)}}}})}n||(e.width=t),n||(e.height=o)}})).actions(e=>({moveElementUp(t){console.warn("page.moveElementUp(id) is deprecated. Please use page.moveElementsUp([id1, id2]) instead."),e.moveElementsUp([t])},moveElementDown(t){console.warn("page.moveElementDown(id) is deprecated. Please use page.moveElementsDown([id1, id2]) instead."),e.moveElementsDown([t])},moveElementTop(t){console.warn("page.moveElementTop(id) is deprecated. Please use page.moveElementsTop([id1, id2]) instead."),e.moveElementsTop([t])},moveElementBottom(t){console.warn("page.moveElementBottom(id) is deprecated. Please use page.moveElementsBottom([id1, id2]) instead."),e.moveElementsBottom([t])},play(){e.store.play({startTime:e.startTime,endTime:e.startTime+e.duration})}}));export const Page=g;
@@ -26,6 +26,7 @@ export declare const Shape: import("mobx-state-tree").IModelType<{
26
26
  type: import("mobx-state-tree").IType<string | undefined, string, string>;
27
27
  name: import("mobx-state-tree").IType<string | undefined, string, string>;
28
28
  opacity: import("mobx-state-tree").IType<number | undefined, number, number>;
29
+ blendMode: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<"normal" | "color" | "color-burn" | "color-dodge" | "darken" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light">, [undefined]>;
29
30
  custom: import("mobx-state-tree").IType<any, any, any>;
30
31
  visible: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
31
32
  selectable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
@@ -78,6 +79,7 @@ export declare const Shape: import("mobx-state-tree").IModelType<{
78
79
  type: import("mobx-state-tree").IType<string | undefined, string, string>;
79
80
  name: import("mobx-state-tree").IType<string | undefined, string, string>;
80
81
  opacity: import("mobx-state-tree").IType<number | undefined, number, number>;
82
+ blendMode: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<"normal" | "color" | "color-burn" | "color-dodge" | "darken" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light">, [undefined]>;
81
83
  custom: import("mobx-state-tree").IType<any, any, any>;
82
84
  visible: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
83
85
  selectable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
@@ -89,6 +91,7 @@ export declare const Shape: import("mobx-state-tree").IModelType<{
89
91
  type: import("mobx-state-tree").IType<string | undefined, string, string>;
90
92
  name: import("mobx-state-tree").IType<string | undefined, string, string>;
91
93
  opacity: import("mobx-state-tree").IType<number | undefined, number, number>;
94
+ blendMode: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<"normal" | "color" | "color-burn" | "color-dodge" | "darken" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light">, [undefined]>;
92
95
  custom: import("mobx-state-tree").IType<any, any, any>;
93
96
  visible: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
94
97
  selectable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
@@ -100,24 +103,37 @@ export declare const Shape: import("mobx-state-tree").IModelType<{
100
103
  type: string | undefined;
101
104
  name: string | undefined;
102
105
  opacity: number | undefined;
106
+ blendMode: "normal" | "color" | "color-burn" | "color-dodge" | "darken" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | undefined;
103
107
  custom: any;
104
108
  visible: boolean | undefined;
105
109
  selectable: boolean | undefined;
106
110
  removable: boolean | undefined;
107
111
  alwaysOnTop: boolean | undefined;
108
112
  showInExport: boolean | undefined;
109
- }>, import("mobx-state-tree").ModelSnapshotType<{
110
- id: import("mobx-state-tree").ISimpleType<string>;
111
- type: import("mobx-state-tree").IType<string | undefined, string, string>;
112
- name: import("mobx-state-tree").IType<string | undefined, string, string>;
113
- opacity: import("mobx-state-tree").IType<number | undefined, number, number>;
114
- custom: import("mobx-state-tree").IType<any, any, any>;
115
- visible: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
116
- selectable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
117
- removable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
118
- alwaysOnTop: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
119
- showInExport: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
120
- }>>>;
113
+ }>, {
114
+ id: string;
115
+ type: string;
116
+ name: string;
117
+ opacity: number;
118
+ custom: any;
119
+ visible: boolean;
120
+ selectable: boolean;
121
+ removable: boolean;
122
+ alwaysOnTop: boolean;
123
+ showInExport: boolean;
124
+ } | {
125
+ blendMode: "normal" | "color" | "color-burn" | "color-dodge" | "darken" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light";
126
+ id: string;
127
+ type: string;
128
+ name: string;
129
+ opacity: number;
130
+ custom: any;
131
+ visible: boolean;
132
+ selectable: boolean;
133
+ removable: boolean;
134
+ alwaysOnTop: boolean;
135
+ showInExport: boolean;
136
+ }>>;
121
137
  readonly parent: any;
122
138
  readonly zIndex: any;
123
139
  } & {
@@ -132,6 +148,18 @@ export declare const Shape: import("mobx-state-tree").IModelType<{
132
148
  removable: boolean;
133
149
  alwaysOnTop: boolean;
134
150
  showInExport: boolean;
151
+ } | {
152
+ blendMode: "normal" | "color" | "color-burn" | "color-dodge" | "darken" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light";
153
+ id: string;
154
+ type: string;
155
+ name: string;
156
+ opacity: number;
157
+ custom: any;
158
+ visible: boolean;
159
+ selectable: boolean;
160
+ removable: boolean;
161
+ alwaysOnTop: boolean;
162
+ showInExport: boolean;
135
163
  };
136
164
  } & {
137
165
  clone(attrs?: any, { skipSelect }?: {
@@ -163,22 +191,35 @@ export declare const Shape: import("mobx-state-tree").IModelType<{
163
191
  type: string | undefined;
164
192
  name: string | undefined;
165
193
  opacity: number | undefined;
194
+ blendMode: "normal" | "color" | "color-burn" | "color-dodge" | "darken" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | undefined;
166
195
  custom: any;
167
196
  visible: boolean | undefined;
168
197
  selectable: boolean | undefined;
169
198
  removable: boolean | undefined;
170
199
  alwaysOnTop: boolean | undefined;
171
200
  showInExport: boolean | undefined;
172
- }>, import("mobx-state-tree").ModelSnapshotType<{
173
- id: import("mobx-state-tree").ISimpleType<string>;
174
- type: import("mobx-state-tree").IType<string | undefined, string, string>;
175
- name: import("mobx-state-tree").IType<string | undefined, string, string>;
176
- opacity: import("mobx-state-tree").IType<number | undefined, number, number>;
177
- custom: import("mobx-state-tree").IType<any, any, any>;
178
- visible: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
179
- selectable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
180
- removable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
181
- alwaysOnTop: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
182
- showInExport: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
183
- }>>;
201
+ }>, {
202
+ id: string;
203
+ type: string;
204
+ name: string;
205
+ opacity: number;
206
+ custom: any;
207
+ visible: boolean;
208
+ selectable: boolean;
209
+ removable: boolean;
210
+ alwaysOnTop: boolean;
211
+ showInExport: boolean;
212
+ } | {
213
+ blendMode: "normal" | "color" | "color-burn" | "color-dodge" | "darken" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light";
214
+ id: string;
215
+ type: string;
216
+ name: string;
217
+ opacity: number;
218
+ custom: any;
219
+ visible: boolean;
220
+ selectable: boolean;
221
+ removable: boolean;
222
+ alwaysOnTop: boolean;
223
+ showInExport: boolean;
224
+ }>;
184
225
  export type ShapeType = Instance<typeof Shape>;