Skip to content

Commit

Permalink
feat: restore graphics draw prop
Browse files Browse the repository at this point in the history
  • Loading branch information
trezy committed Jun 14, 2024
1 parent 9ff4d7e commit 7f5782b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/helpers/applyProps.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { Container } from 'pixi.js';
import {
Container,
Graphics,
} from 'pixi.js';
import { diffProps } from './diffProps.js';
import { isDiffSet } from './isDiffSet.js';
// import { pruneKeys } from './pruneKeys.js';
Expand Down Expand Up @@ -44,6 +47,11 @@ export function applyProps(instance, data)
let currentInstance = /** @type {*} */ (instance);
let targetProp = currentInstance[key];

if ((instance instanceof Graphics) && (key === 'draw') && (value instanceof Function))
{
value(instance);
}

// Resolve dashed props
if (keys.length)
{
Expand Down

0 comments on commit 7f5782b

Please sign in to comment.