@vunk/plus 1.3.12 → 1.3.14
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.
- package/components/WebGLRenderer.mjs +2 -1
- package/components/WebGPURenderer.mjs +2 -1
- package/components/browserAll.mjs +2 -1
- package/components/index2.mjs +110 -87
- package/components/pixi-frame/index.d.ts +3 -2
- package/components/pixi-frame/index.mjs +3 -2
- package/components/pixi-frame/src/core.vue.d.ts +8 -3
- package/components/pixi-frame/src/ctx.d.ts +1 -0
- package/components/pixi-frame/src/index.vue.d.ts +32 -28
- package/components/pixi-frame/src/provider.vue.d.ts +2 -0
- package/components/pixi-frame/src/{app.vue.d.ts → view.vue.d.ts} +0 -4
- package/components/webworkerAll.mjs +2 -1
- package/package.json +1 -1
|
@@ -2,9 +2,10 @@ import { E as ExtensionType, B as BufferUsage, w as warn, D as DOMAdapter, K as
|
|
|
2
2
|
import { S as State, b as localUniformBitGl } from './colorToUniform.mjs';
|
|
3
3
|
import { e as ensureAttributes, G as GpuStencilModesToPixi, c as createUboSyncFunction, b as uboSyncFunctionsSTD40, U as UboSystem, R as RenderTargetSystem, B as BufferResource, d as uniformParsers, f as textureBitGl, S as SharedSystems, a as SharedRenderPipes } from './SharedSystems.mjs';
|
|
4
4
|
import 'vue';
|
|
5
|
-
import './_commonjsHelpers.mjs';
|
|
6
5
|
import '@vunk/shared/enum';
|
|
6
|
+
import '@vunk/shared/promise';
|
|
7
7
|
import './browser.mjs';
|
|
8
|
+
import './_commonjsHelpers.mjs';
|
|
8
9
|
import './_plugin-vue_export-helper.mjs';
|
|
9
10
|
|
|
10
11
|
class GlBatchAdaptor {
|
|
@@ -2,9 +2,10 @@ import { g as getTextureBatchBindGroup, E as ExtensionType, f as fastCopy, D as
|
|
|
2
2
|
import { S as State, l as localUniformBitGroup2, a as localUniformBit } from './colorToUniform.mjs';
|
|
3
3
|
import { c as createUboSyncFunction, u as uboSyncFunctionsWGSL, U as UboSystem, B as BufferResource, G as GpuStencilModesToPixi, e as ensureAttributes, R as RenderTargetSystem, t as textureBit, S as SharedSystems, a as SharedRenderPipes } from './SharedSystems.mjs';
|
|
4
4
|
import 'vue';
|
|
5
|
-
import './_commonjsHelpers.mjs';
|
|
6
5
|
import '@vunk/shared/enum';
|
|
6
|
+
import '@vunk/shared/promise';
|
|
7
7
|
import './browser.mjs';
|
|
8
|
+
import './_commonjsHelpers.mjs';
|
|
8
9
|
import './_plugin-vue_export-helper.mjs';
|
|
9
10
|
|
|
10
11
|
const tempState = State.for2d();
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { P as Point, r as removeItems, E as ExtensionType, T as Ticker, U as UPDATE_PRIORITY, a as EventEmitter, w as warn, e as extensions, C as Container } from './index2.mjs';
|
|
2
2
|
import './init.mjs';
|
|
3
3
|
import 'vue';
|
|
4
|
-
import './_commonjsHelpers.mjs';
|
|
5
4
|
import '@vunk/shared/enum';
|
|
5
|
+
import '@vunk/shared/promise';
|
|
6
6
|
import './browser.mjs';
|
|
7
|
+
import './_commonjsHelpers.mjs';
|
|
7
8
|
import './_plugin-vue_export-helper.mjs';
|
|
8
9
|
import './colorToUniform.mjs';
|
|
9
10
|
|
package/components/index2.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { inject, provide, defineComponent,
|
|
2
|
-
import { g as getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
|
|
1
|
+
import { inject, provide, defineComponent, useId, watchEffect, ref, onBeforeUnmount, renderSlot, onMounted, createElementBlock, openBlock, resolveComponent, createBlock, withCtx, createVNode, mergeProps } from 'vue';
|
|
3
2
|
import { TickerStatus } from '@vunk/shared/enum';
|
|
3
|
+
import { sleep } from '@vunk/shared/promise';
|
|
4
4
|
import { c as consola } from './browser.mjs';
|
|
5
|
+
import { g as getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
|
|
5
6
|
import { _ as _export_sfc } from './_plugin-vue_export-helper.mjs';
|
|
6
7
|
|
|
7
8
|
var ExtensionType = /* @__PURE__ */ ((ExtensionType2) => {
|
|
@@ -20995,73 +20996,6 @@ extensions.handle(ExtensionType.Asset, (extension) => {
|
|
|
20995
20996
|
|
|
20996
20997
|
extensions.add(browserExt, webworkerExt);
|
|
20997
20998
|
|
|
20998
|
-
const appInjectKey = Symbol("appInjectKey");
|
|
20999
|
-
function initPixiApp() {
|
|
21000
|
-
const app = new Application();
|
|
21001
|
-
provide(appInjectKey, app);
|
|
21002
|
-
return app;
|
|
21003
|
-
}
|
|
21004
|
-
function usePixiApp() {
|
|
21005
|
-
const app = inject(appInjectKey);
|
|
21006
|
-
if (!app) {
|
|
21007
|
-
throw new Error("Pixi app not provided");
|
|
21008
|
-
}
|
|
21009
|
-
return app;
|
|
21010
|
-
}
|
|
21011
|
-
|
|
21012
|
-
var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
21013
|
-
__name: "app",
|
|
21014
|
-
props: {
|
|
21015
|
-
appendTo: null,
|
|
21016
|
-
defaultOptions: {
|
|
21017
|
-
type: Object,
|
|
21018
|
-
default: () => ({})
|
|
21019
|
-
}
|
|
21020
|
-
},
|
|
21021
|
-
setup(__props) {
|
|
21022
|
-
const props = __props;
|
|
21023
|
-
const app = initPixiApp();
|
|
21024
|
-
const appRef = ref();
|
|
21025
|
-
const ready = ref(false);
|
|
21026
|
-
onMounted(async () => {
|
|
21027
|
-
await app.init({
|
|
21028
|
-
resizeTo: appRef.value,
|
|
21029
|
-
background: "#1099bb",
|
|
21030
|
-
...props.defaultOptions
|
|
21031
|
-
});
|
|
21032
|
-
appRef.value.appendChild(app.canvas);
|
|
21033
|
-
ready.value = true;
|
|
21034
|
-
});
|
|
21035
|
-
return (_ctx, _cache) => {
|
|
21036
|
-
return openBlock(), createElementBlock(
|
|
21037
|
-
Fragment,
|
|
21038
|
-
null,
|
|
21039
|
-
[
|
|
21040
|
-
(openBlock(), createBlock(Teleport, {
|
|
21041
|
-
to: __props.appendTo,
|
|
21042
|
-
disabled: !__props.appendTo
|
|
21043
|
-
}, [
|
|
21044
|
-
createElementVNode(
|
|
21045
|
-
"div",
|
|
21046
|
-
{
|
|
21047
|
-
ref_key: "appRef",
|
|
21048
|
-
ref: appRef,
|
|
21049
|
-
class: "vk-pixi-frame"
|
|
21050
|
-
},
|
|
21051
|
-
null,
|
|
21052
|
-
512
|
|
21053
|
-
/* NEED_PATCH */
|
|
21054
|
-
)
|
|
21055
|
-
], 8, ["to", "disabled"])),
|
|
21056
|
-
ready.value ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("v-if", true)
|
|
21057
|
-
],
|
|
21058
|
-
64
|
|
21059
|
-
/* STABLE_FRAGMENT */
|
|
21060
|
-
);
|
|
21061
|
-
};
|
|
21062
|
-
}
|
|
21063
|
-
});
|
|
21064
|
-
|
|
21065
20999
|
const props = {
|
|
21066
21000
|
data: {
|
|
21067
21001
|
type: Array,
|
|
@@ -21085,10 +21019,25 @@ const props = {
|
|
|
21085
21019
|
};
|
|
21086
21020
|
const emits = {
|
|
21087
21021
|
"update:status": null,
|
|
21088
|
-
"update:data": null
|
|
21022
|
+
"update:data": null,
|
|
21023
|
+
"setData": null
|
|
21089
21024
|
};
|
|
21090
21025
|
|
|
21091
|
-
|
|
21026
|
+
const appInjectKey = Symbol("appInjectKey");
|
|
21027
|
+
function initPixiApp() {
|
|
21028
|
+
const app = new Application();
|
|
21029
|
+
provide(appInjectKey, app);
|
|
21030
|
+
return app;
|
|
21031
|
+
}
|
|
21032
|
+
function usePixiApp() {
|
|
21033
|
+
const app = inject(appInjectKey);
|
|
21034
|
+
if (!app) {
|
|
21035
|
+
throw new Error("Pixi app not provided");
|
|
21036
|
+
}
|
|
21037
|
+
return app;
|
|
21038
|
+
}
|
|
21039
|
+
|
|
21040
|
+
var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
21092
21041
|
__name: "core",
|
|
21093
21042
|
props: props,
|
|
21094
21043
|
emits,
|
|
@@ -21096,6 +21045,8 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
21096
21045
|
const props = __props;
|
|
21097
21046
|
const emit = __emit;
|
|
21098
21047
|
const app = usePixiApp();
|
|
21048
|
+
const compId = useId();
|
|
21049
|
+
const getAlias = (key) => `${compId}-${key}`;
|
|
21099
21050
|
const sprite = new Sprite();
|
|
21100
21051
|
app.stage.addChild(sprite);
|
|
21101
21052
|
function resizeSprite() {
|
|
@@ -21109,12 +21060,21 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
21109
21060
|
const textureMap = /* @__PURE__ */ new Map();
|
|
21110
21061
|
watchEffect(() => {
|
|
21111
21062
|
for (const key in props.data) {
|
|
21063
|
+
const alias = `${compId}-${key}`;
|
|
21112
21064
|
const url = props.data[key];
|
|
21113
|
-
if (textureMap.has(
|
|
21065
|
+
if (textureMap.has(alias)) {
|
|
21114
21066
|
continue;
|
|
21115
21067
|
}
|
|
21116
|
-
|
|
21117
|
-
|
|
21068
|
+
consola.info(
|
|
21069
|
+
`\u52A0\u8F7D\u7EB9\u7406 ${alias}`
|
|
21070
|
+
);
|
|
21071
|
+
Assets.add({
|
|
21072
|
+
alias,
|
|
21073
|
+
src: url
|
|
21074
|
+
});
|
|
21075
|
+
textureMap.set(alias, void 0);
|
|
21076
|
+
Assets.load(alias).then((res) => {
|
|
21077
|
+
textureMap.set(alias, res);
|
|
21118
21078
|
if (key === "0") {
|
|
21119
21079
|
sprite.texture = res;
|
|
21120
21080
|
resizeSprite();
|
|
@@ -21131,9 +21091,26 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
21131
21091
|
if (props.data.length === 0 || props.status !== TickerStatus.playing) {
|
|
21132
21092
|
return;
|
|
21133
21093
|
}
|
|
21134
|
-
const currentTexture = textureMap.get(
|
|
21135
|
-
|
|
21094
|
+
const currentTexture = textureMap.get(
|
|
21095
|
+
getAlias(index.value)
|
|
21096
|
+
);
|
|
21136
21097
|
if (currentTexture) {
|
|
21098
|
+
const originTexture = sprite.texture;
|
|
21099
|
+
const originIndex = index.value - 1;
|
|
21100
|
+
if (originTexture && originIndex >= 0) {
|
|
21101
|
+
Promise.resolve(sleep(500)).then(() => Assets.unload(
|
|
21102
|
+
getAlias(originIndex)
|
|
21103
|
+
)).then(() => {
|
|
21104
|
+
textureMap.set(
|
|
21105
|
+
getAlias(originIndex),
|
|
21106
|
+
void 0
|
|
21107
|
+
);
|
|
21108
|
+
emit("setData", {
|
|
21109
|
+
k: originIndex,
|
|
21110
|
+
v: ""
|
|
21111
|
+
});
|
|
21112
|
+
});
|
|
21113
|
+
}
|
|
21137
21114
|
sprite.texture = currentTexture;
|
|
21138
21115
|
resizeSprite();
|
|
21139
21116
|
index.value = index.value + 1;
|
|
@@ -21182,26 +21159,72 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
21182
21159
|
}
|
|
21183
21160
|
});
|
|
21184
21161
|
|
|
21162
|
+
var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
21163
|
+
__name: "provider",
|
|
21164
|
+
setup(__props) {
|
|
21165
|
+
initPixiApp();
|
|
21166
|
+
return (_ctx, _cache) => {
|
|
21167
|
+
return renderSlot(_ctx.$slots, "default");
|
|
21168
|
+
};
|
|
21169
|
+
}
|
|
21170
|
+
});
|
|
21171
|
+
|
|
21172
|
+
var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
21173
|
+
__name: "view",
|
|
21174
|
+
props: {
|
|
21175
|
+
defaultOptions: {
|
|
21176
|
+
type: Object,
|
|
21177
|
+
default: () => ({})
|
|
21178
|
+
}
|
|
21179
|
+
},
|
|
21180
|
+
setup(__props) {
|
|
21181
|
+
const props = __props;
|
|
21182
|
+
const app = usePixiApp();
|
|
21183
|
+
const appRef = ref();
|
|
21184
|
+
onMounted(async () => {
|
|
21185
|
+
await app.init({
|
|
21186
|
+
resizeTo: appRef.value,
|
|
21187
|
+
background: "#1099bb",
|
|
21188
|
+
...props.defaultOptions
|
|
21189
|
+
});
|
|
21190
|
+
appRef.value.appendChild(app.canvas);
|
|
21191
|
+
});
|
|
21192
|
+
return (_ctx, _cache) => {
|
|
21193
|
+
return openBlock(), createElementBlock(
|
|
21194
|
+
"div",
|
|
21195
|
+
{
|
|
21196
|
+
ref_key: "appRef",
|
|
21197
|
+
ref: appRef,
|
|
21198
|
+
class: "vk-pixi-frame"
|
|
21199
|
+
},
|
|
21200
|
+
null,
|
|
21201
|
+
512
|
|
21202
|
+
/* NEED_PATCH */
|
|
21203
|
+
);
|
|
21204
|
+
};
|
|
21205
|
+
}
|
|
21206
|
+
});
|
|
21207
|
+
|
|
21185
21208
|
var _sfc_main = defineComponent({
|
|
21186
21209
|
name: "VkPixiFrame",
|
|
21187
21210
|
components: {
|
|
21188
|
-
|
|
21189
|
-
|
|
21211
|
+
CoreComp: _sfc_main$3,
|
|
21212
|
+
ProviderComp: _sfc_main$2,
|
|
21213
|
+
ViewComp: _sfc_main$1
|
|
21190
21214
|
},
|
|
21191
21215
|
props,
|
|
21192
|
-
emits
|
|
21193
|
-
setup() {
|
|
21194
|
-
return {};
|
|
21195
|
-
}
|
|
21216
|
+
emits
|
|
21196
21217
|
});
|
|
21197
21218
|
|
|
21198
21219
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21199
|
-
const
|
|
21200
|
-
const
|
|
21201
|
-
|
|
21220
|
+
const _component_ViewComp = resolveComponent("ViewComp");
|
|
21221
|
+
const _component_CoreComp = resolveComponent("CoreComp");
|
|
21222
|
+
const _component_ProviderComp = resolveComponent("ProviderComp");
|
|
21223
|
+
return openBlock(), createBlock(_component_ProviderComp, null, {
|
|
21202
21224
|
default: withCtx(() => [
|
|
21225
|
+
createVNode(_component_ViewComp),
|
|
21203
21226
|
createVNode(
|
|
21204
|
-
|
|
21227
|
+
_component_CoreComp,
|
|
21205
21228
|
mergeProps(_ctx.$props, {
|
|
21206
21229
|
"onUpdate:status": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:status", $event))
|
|
21207
21230
|
}),
|
|
@@ -21224,4 +21247,4 @@ VkPixiFrame.install = (app) => {
|
|
|
21224
21247
|
app.component(VkPixiFrame.name || "VkPixiFrame", VkPixiFrame);
|
|
21225
21248
|
};
|
|
21226
21249
|
|
|
21227
|
-
export { VERSION as $, AbstractRenderer as A, BufferUsage as B, Container as C, DOMAdapter as D, ExtensionType as E, Bounds as F, GpuProgram as G, TexturePool as H, FilterEffect as I, Sprite as J, getAttributeInfoFromFormat as K, unsafeEvalSupported as L, Matrix as M, uid as N, Rectangle as O, Point as P, SystemRunner as Q, RendererType as R, STENCIL_MODES as S, Ticker as T, UPDATE_PRIORITY as U, multiplyColors as V, UPDATE_VISIBLE as W, UPDATE_COLOR as X, UPDATE_BLEND as Y, Color as Z, getLocalBounds as _, EventEmitter as a, deprecation as a0, v8_0_0 as a1, RendererInitHook as a2, Geometry as a3, compileHighShaderGlProgram as a4, colorBitGl as a5, generateTextureBatchBitGl as a6, roundPixelsBitGl as a7, getBatchSamplersUniformGroup as a8, ViewContainer as a9, GraphicsContext as aa, TextStyle as ab, generateTextStyleKey as ac, BatchableGraphics as ad, getAdjustedBlendModeBlend as ae, ViewableBuffer as af, TextureStyle as ag, BitmapFontManager as ah, getBitmapTextLayout as ai, Cache as aj, updateQuadBounds as ak, CanvasTextMetrics as al, nextPow2 as am, fontStringFromTextStyle as an, getCanvasFillStyle as ao, GraphicsContextSystem as ap, VkPixiFrame as aq, _sfc_main$
|
|
21250
|
+
export { VERSION as $, AbstractRenderer as A, BufferUsage as B, Container as C, DOMAdapter as D, ExtensionType as E, Bounds as F, GpuProgram as G, TexturePool as H, FilterEffect as I, Sprite as J, getAttributeInfoFromFormat as K, unsafeEvalSupported as L, Matrix as M, uid as N, Rectangle as O, Point as P, SystemRunner as Q, RendererType as R, STENCIL_MODES as S, Ticker as T, UPDATE_PRIORITY as U, multiplyColors as V, UPDATE_VISIBLE as W, UPDATE_COLOR as X, UPDATE_BLEND as Y, Color as Z, getLocalBounds as _, EventEmitter as a, deprecation as a0, v8_0_0 as a1, RendererInitHook as a2, Geometry as a3, compileHighShaderGlProgram as a4, colorBitGl as a5, generateTextureBatchBitGl as a6, roundPixelsBitGl as a7, getBatchSamplersUniformGroup as a8, ViewContainer as a9, GraphicsContext as aa, TextStyle as ab, generateTextStyleKey as ac, BatchableGraphics as ad, getAdjustedBlendModeBlend as ae, ViewableBuffer as af, TextureStyle as ag, BitmapFontManager as ah, getBitmapTextLayout as ai, Cache as aj, updateQuadBounds as ak, CanvasTextMetrics as al, nextPow2 as am, fontStringFromTextStyle as an, getCanvasFillStyle as ao, GraphicsContextSystem as ap, VkPixiFrame as aq, _sfc_main$3 as ar, _sfc_main$2 as as, _sfc_main$1 as at, types as au, Buffer as b, BindGroup as c, createIdFromString as d, extensions as e, fastCopy as f, getTextureBatchBindGroup as g, CLEAR as h, CanvasSource as i, TextureSource as j, UniformGroup as k, CanvasPool as l, compileHighShaderGpuProgram as m, colorBit as n, generateTextureBatchBit as o, roundPixelsBit as p, getMaxTexturesPerBatch as q, removeItems as r, Shader as s, Texture as t, GlProgram as u, TextureMatrix as v, warn as w, DefaultBatcher as x, BigPool as y, getGlobalBounds as z };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import VkPixiFrameWrapper from './src/app.vue';
|
|
2
1
|
import VkPixiFrameCore from './src/core.vue';
|
|
3
2
|
import VkPixiFrame from './src/index.vue';
|
|
3
|
+
import VkPixiFrameProvider from './src/provider.vue';
|
|
4
|
+
import VkPixiFrameView from './src/view.vue';
|
|
4
5
|
export * as __VkPixiFrame from './src/types';
|
|
5
6
|
export { TickerStatus } from '@vunk/shared/enum';
|
|
6
|
-
export { VkPixiFrame, VkPixiFrameCore,
|
|
7
|
+
export { VkPixiFrame, VkPixiFrameCore, VkPixiFrameProvider, VkPixiFrameView, };
|
|
7
8
|
export default VkPixiFrame;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { aq as VkPixiFrame, ar as VkPixiFrameCore, as as
|
|
1
|
+
export { aq as VkPixiFrame, ar as VkPixiFrameCore, as as VkPixiFrameProvider, at as VkPixiFrameView, au as __VkPixiFrame, aq as default } from '../index2.mjs';
|
|
2
2
|
export { TickerStatus } from '@vunk/shared/enum';
|
|
3
3
|
import 'vue';
|
|
4
|
-
import '
|
|
4
|
+
import '@vunk/shared/promise';
|
|
5
5
|
import '../browser.mjs';
|
|
6
|
+
import '../_commonjsHelpers.mjs';
|
|
6
7
|
import '../_plugin-vue_export-helper.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Texture } from 'pixi.js';
|
|
2
2
|
import { TickerStatus } from '@vunk/shared/enum';
|
|
3
|
-
import { Sprite } from 'pixi.js';
|
|
3
|
+
import { Sprite, TextureSource } from 'pixi.js';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
5
|
data: {
|
|
6
6
|
type: {
|
|
@@ -63,14 +63,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
63
63
|
default: number;
|
|
64
64
|
};
|
|
65
65
|
}>> & Readonly<{
|
|
66
|
+
onSetData?: ((...args: any[]) => any) | undefined;
|
|
66
67
|
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
67
68
|
"onUpdate:data"?: ((...args: any[]) => any) | undefined;
|
|
68
69
|
}> & {}>;
|
|
69
|
-
emit: ((event: "update:status", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void);
|
|
70
|
+
emit: ((event: "setData", ...args: any[]) => void) & ((event: "update:status", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void);
|
|
70
71
|
app: import("pixi.js").Application<import("pixi.js").Renderer>;
|
|
72
|
+
compId: string;
|
|
73
|
+
getAlias: (key: string | number) => string;
|
|
71
74
|
sprite: Sprite;
|
|
72
75
|
resizeSprite: () => void;
|
|
73
|
-
textureMap: Map<string, Texture<
|
|
76
|
+
textureMap: Map<string, Texture<TextureSource<any>>>;
|
|
74
77
|
index: import("vue").Ref<number, number>;
|
|
75
78
|
timer: number | null;
|
|
76
79
|
startFrameLoop: () => void;
|
|
@@ -80,6 +83,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
80
83
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
81
84
|
'update:status': null;
|
|
82
85
|
'update:data': null;
|
|
86
|
+
setData: null;
|
|
83
87
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
84
88
|
data: {
|
|
85
89
|
type: {
|
|
@@ -111,6 +115,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
111
115
|
default: number;
|
|
112
116
|
};
|
|
113
117
|
}>> & Readonly<{
|
|
118
|
+
onSetData?: ((...args: any[]) => any) | undefined;
|
|
114
119
|
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
115
120
|
"onUpdate:data"?: ((...args: any[]) => any) | undefined;
|
|
116
121
|
}>, {
|
|
@@ -31,6 +31,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
31
31
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
32
|
'update:status': null;
|
|
33
33
|
'update:data': null;
|
|
34
|
+
setData: null;
|
|
34
35
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
36
|
data: {
|
|
36
37
|
type: {
|
|
@@ -62,6 +63,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
62
63
|
default: number;
|
|
63
64
|
};
|
|
64
65
|
}>> & Readonly<{
|
|
66
|
+
onSetData?: ((...args: any[]) => any) | undefined;
|
|
65
67
|
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
66
68
|
"onUpdate:data"?: ((...args: any[]) => any) | undefined;
|
|
67
69
|
}>, {
|
|
@@ -70,33 +72,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
70
72
|
loop: boolean;
|
|
71
73
|
frameRate: number;
|
|
72
74
|
}, {}, {
|
|
73
|
-
|
|
74
|
-
appendTo: null;
|
|
75
|
-
defaultOptions: {
|
|
76
|
-
type: import("vue").PropType<Partial<import("pixi.js").ApplicationOptions>>;
|
|
77
|
-
default: () => {};
|
|
78
|
-
};
|
|
79
|
-
}>, {
|
|
80
|
-
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
81
|
-
appendTo: null;
|
|
82
|
-
defaultOptions: {
|
|
83
|
-
type: import("vue").PropType<Partial<import("pixi.js").ApplicationOptions>>;
|
|
84
|
-
default: () => {};
|
|
85
|
-
};
|
|
86
|
-
}>> & Readonly<{}> & {}>;
|
|
87
|
-
app: import("pixi.js").Application<import("pixi.js").Renderer>;
|
|
88
|
-
appRef: import("vue").Ref<HTMLDivElement, HTMLDivElement>;
|
|
89
|
-
ready: import("vue").Ref<boolean, boolean>;
|
|
90
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
91
|
-
appendTo: null;
|
|
92
|
-
defaultOptions: {
|
|
93
|
-
type: import("vue").PropType<Partial<import("pixi.js").ApplicationOptions>>;
|
|
94
|
-
default: () => {};
|
|
95
|
-
};
|
|
96
|
-
}>> & Readonly<{}>, {
|
|
97
|
-
defaultOptions: Partial<import("pixi.js").ApplicationOptions>;
|
|
98
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
99
|
-
CoreView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
75
|
+
CoreComp: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
100
76
|
data: {
|
|
101
77
|
type: {
|
|
102
78
|
(arrayLength: number): string[];
|
|
@@ -158,11 +134,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
158
134
|
default: number;
|
|
159
135
|
};
|
|
160
136
|
}>> & Readonly<{
|
|
137
|
+
onSetData?: ((...args: any[]) => any) | undefined;
|
|
161
138
|
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
162
139
|
"onUpdate:data"?: ((...args: any[]) => any) | undefined;
|
|
163
140
|
}> & {}>;
|
|
164
|
-
emit: ((event: "update:status", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void);
|
|
141
|
+
emit: ((event: "setData", ...args: any[]) => void) & ((event: "update:status", ...args: any[]) => void) & ((event: "update:data", ...args: any[]) => void);
|
|
165
142
|
app: import("pixi.js").Application<import("pixi.js").Renderer>;
|
|
143
|
+
compId: string;
|
|
144
|
+
getAlias: (key: string | number) => string;
|
|
166
145
|
sprite: import("pixi.js").Sprite;
|
|
167
146
|
resizeSprite: () => void;
|
|
168
147
|
textureMap: Map<string, import("pixi.js").Texture<import("pixi.js").TextureSource<any>>>;
|
|
@@ -175,6 +154,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
175
154
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
176
155
|
'update:status': null;
|
|
177
156
|
'update:data': null;
|
|
157
|
+
setData: null;
|
|
178
158
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
179
159
|
data: {
|
|
180
160
|
type: {
|
|
@@ -206,6 +186,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
206
186
|
default: number;
|
|
207
187
|
};
|
|
208
188
|
}>> & Readonly<{
|
|
189
|
+
onSetData?: ((...args: any[]) => any) | undefined;
|
|
209
190
|
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
210
191
|
"onUpdate:data"?: ((...args: any[]) => any) | undefined;
|
|
211
192
|
}>, {
|
|
@@ -214,5 +195,28 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
214
195
|
loop: boolean;
|
|
215
196
|
frameRate: number;
|
|
216
197
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
198
|
+
ProviderComp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
199
|
+
ViewComp: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
200
|
+
defaultOptions: {
|
|
201
|
+
type: import("vue").PropType<Partial<import("pixi.js").ApplicationOptions>>;
|
|
202
|
+
default: () => {};
|
|
203
|
+
};
|
|
204
|
+
}>, {
|
|
205
|
+
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
206
|
+
defaultOptions: {
|
|
207
|
+
type: import("vue").PropType<Partial<import("pixi.js").ApplicationOptions>>;
|
|
208
|
+
default: () => {};
|
|
209
|
+
};
|
|
210
|
+
}>> & Readonly<{}> & {}>;
|
|
211
|
+
app: import("pixi.js").Application<import("pixi.js").Renderer>;
|
|
212
|
+
appRef: import("vue").Ref<HTMLDivElement, HTMLDivElement>;
|
|
213
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
214
|
+
defaultOptions: {
|
|
215
|
+
type: import("vue").PropType<Partial<import("pixi.js").ApplicationOptions>>;
|
|
216
|
+
default: () => {};
|
|
217
|
+
};
|
|
218
|
+
}>> & Readonly<{}>, {
|
|
219
|
+
defaultOptions: Partial<import("pixi.js").ApplicationOptions>;
|
|
220
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
217
221
|
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
218
222
|
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import type { ApplicationOptions } from 'pixi.js';
|
|
2
2
|
import type { PropType, Ref } from 'vue';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
-
appendTo: null;
|
|
5
4
|
defaultOptions: {
|
|
6
5
|
type: PropType<Partial<ApplicationOptions>>;
|
|
7
6
|
default: () => {};
|
|
8
7
|
};
|
|
9
8
|
}>, {
|
|
10
9
|
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
-
appendTo: null;
|
|
12
10
|
defaultOptions: {
|
|
13
11
|
type: PropType<Partial<ApplicationOptions>>;
|
|
14
12
|
default: () => {};
|
|
@@ -16,9 +14,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
16
14
|
}>> & Readonly<{}> & {}>;
|
|
17
15
|
app: import("pixi.js").Application<import("pixi.js").Renderer>;
|
|
18
16
|
appRef: Ref<HTMLDivElement, HTMLDivElement>;
|
|
19
|
-
ready: Ref<boolean, boolean>;
|
|
20
17
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
-
appendTo: null;
|
|
22
18
|
defaultOptions: {
|
|
23
19
|
type: PropType<Partial<ApplicationOptions>>;
|
|
24
20
|
default: () => {};
|
|
@@ -2,7 +2,8 @@ import './init.mjs';
|
|
|
2
2
|
import './index2.mjs';
|
|
3
3
|
import './colorToUniform.mjs';
|
|
4
4
|
import 'vue';
|
|
5
|
-
import './_commonjsHelpers.mjs';
|
|
6
5
|
import '@vunk/shared/enum';
|
|
6
|
+
import '@vunk/shared/promise';
|
|
7
7
|
import './browser.mjs';
|
|
8
|
+
import './_commonjsHelpers.mjs';
|
|
8
9
|
import './_plugin-vue_export-helper.mjs';
|