@visactor/vrender-kits 1.1.3 → 1.1.4-alpha.1
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/cjs/canvas/contributions/create-canvas-module.js +1 -1
- package/cjs/canvas/contributions/modules.js +1 -1
- package/cjs/env/contributions/canvas-wrap.js +1 -1
- package/cjs/env/contributions/feishu-contribution.js +1 -1
- package/dist/index.es.js +182 -97
- package/es/canvas/contributions/create-canvas-module.js +1 -1
- package/es/canvas/contributions/modules.js +1 -1
- package/es/env/contributions/canvas-wrap.js +1 -1
- package/es/env/contributions/feishu-contribution.js +1 -1
- package/package.json +4 -4
|
@@ -45,4 +45,4 @@ exports.loadAllCavnvas = loadAllCavnvas, exports.loadBrowserCanvas = loadBrowser
|
|
|
45
45
|
exports.loadFeishuCanvas = loadFeishuCanvas, exports.loadLynxCanvas = loadLynxCanvas,
|
|
46
46
|
exports.loadNodeCanvas = loadNodeCanvas, exports.loadTaroCanvas = loadTaroCanvas,
|
|
47
47
|
exports.loadTTCanvas = loadTTCanvas, exports.loadWxCanvas = loadWxCanvas;
|
|
48
|
-
//# sourceMappingURL=modules.js.map
|
|
48
|
+
//# sourceMappingURL=modules.js.map
|
package/dist/index.es.js
CHANGED
|
@@ -2365,11 +2365,32 @@ const PickItemInterceptor = Symbol.for("PickItemInterceptor");
|
|
|
2365
2365
|
const PickServiceInterceptor = Symbol.for("PickServiceInterceptor");
|
|
2366
2366
|
|
|
2367
2367
|
class Application {}
|
|
2368
|
-
const
|
|
2368
|
+
const APPLICATION_STATE_SYMBOL = Symbol.for("@visactor/vrender-core/application-state");
|
|
2369
|
+
function createApplicationState() {
|
|
2370
|
+
return {
|
|
2371
|
+
application: new Application()
|
|
2372
|
+
};
|
|
2373
|
+
}
|
|
2374
|
+
function getApplicationState() {
|
|
2375
|
+
const scope = globalThis;
|
|
2376
|
+
return scope[APPLICATION_STATE_SYMBOL] || (scope[APPLICATION_STATE_SYMBOL] = createApplicationState()), scope[APPLICATION_STATE_SYMBOL];
|
|
2377
|
+
}
|
|
2378
|
+
const application = getApplicationState().application;
|
|
2369
2379
|
|
|
2370
2380
|
const CanvasFactory = Symbol.for("CanvasFactory");
|
|
2371
2381
|
const Context2dFactory = Symbol.for("Context2dFactory");
|
|
2372
2382
|
|
|
2383
|
+
const CONTRIBUTION_STORE_STATE_SYMBOL = Symbol.for("@visactor/vrender-core/contribution-store-state");
|
|
2384
|
+
function createContributionStoreState() {
|
|
2385
|
+
return {
|
|
2386
|
+
store: new Map()
|
|
2387
|
+
};
|
|
2388
|
+
}
|
|
2389
|
+
function getContributionStoreState() {
|
|
2390
|
+
const scope = globalThis;
|
|
2391
|
+
return scope[CONTRIBUTION_STORE_STATE_SYMBOL] || (scope[CONTRIBUTION_STORE_STATE_SYMBOL] = createContributionStoreState()), scope[CONTRIBUTION_STORE_STATE_SYMBOL];
|
|
2392
|
+
}
|
|
2393
|
+
|
|
2373
2394
|
const ContributionProvider = Symbol("ContributionProvider");
|
|
2374
2395
|
class ContributionProviderCache {
|
|
2375
2396
|
constructor(serviceIdentifier, container) {
|
|
@@ -2407,7 +2428,7 @@ class ContributionStore {
|
|
|
2407
2428
|
});
|
|
2408
2429
|
}
|
|
2409
2430
|
}
|
|
2410
|
-
ContributionStore.store =
|
|
2431
|
+
ContributionStore.store = getContributionStoreState().store;
|
|
2411
2432
|
|
|
2412
2433
|
const EnvContribution = Symbol.for("EnvContribution");
|
|
2413
2434
|
const VGlobal = Symbol.for("VGlobal");
|
|
@@ -6100,6 +6121,17 @@ class DefaultTransformUtil {
|
|
|
6100
6121
|
}
|
|
6101
6122
|
}
|
|
6102
6123
|
|
|
6124
|
+
const FACTORY_STATE_SYMBOL = Symbol.for("@visactor/vrender-core/factory-state");
|
|
6125
|
+
function createFactoryState() {
|
|
6126
|
+
return {
|
|
6127
|
+
pluginClasses: {}
|
|
6128
|
+
};
|
|
6129
|
+
}
|
|
6130
|
+
function getFactoryState() {
|
|
6131
|
+
const scope = globalThis;
|
|
6132
|
+
return scope[FACTORY_STATE_SYMBOL] || (scope[FACTORY_STATE_SYMBOL] = createFactoryState()), scope[FACTORY_STATE_SYMBOL];
|
|
6133
|
+
}
|
|
6134
|
+
|
|
6103
6135
|
class FederatedEvent {
|
|
6104
6136
|
get layerX() {
|
|
6105
6137
|
return this.layer.x;
|
|
@@ -8541,12 +8573,12 @@ const NOWORK_ANIMATE_ATTR = {
|
|
|
8541
8573
|
cursor: 1,
|
|
8542
8574
|
html: 1
|
|
8543
8575
|
};
|
|
8544
|
-
class
|
|
8576
|
+
class GraphicImpl extends Node {
|
|
8545
8577
|
static mixin(source) {
|
|
8546
8578
|
const keys = Object.keys(source);
|
|
8547
8579
|
for (let i = 0; i < keys.length; ++i) {
|
|
8548
8580
|
const propertyName = keys[i];
|
|
8549
|
-
Object.defineProperty(
|
|
8581
|
+
Object.defineProperty(this.prototype, propertyName, Object.getOwnPropertyDescriptor(source, propertyName));
|
|
8550
8582
|
}
|
|
8551
8583
|
}
|
|
8552
8584
|
get AABBBounds() {
|
|
@@ -9785,13 +9817,26 @@ class Graphic extends Node {
|
|
|
9785
9817
|
return null;
|
|
9786
9818
|
}
|
|
9787
9819
|
}
|
|
9820
|
+
GraphicImpl.userSymbolMap = {};
|
|
9821
|
+
const GRAPHIC_CLASS_SYMBOL = Symbol.for("@visactor/vrender-core/graphic-class");
|
|
9822
|
+
function createGraphicClassState() {
|
|
9823
|
+
return {
|
|
9824
|
+
Graphic: GraphicImpl
|
|
9825
|
+
};
|
|
9826
|
+
}
|
|
9827
|
+
function getGraphicClassState() {
|
|
9828
|
+
var _a;
|
|
9829
|
+
const globalScope = globalThis;
|
|
9830
|
+
return null !== (_a = globalScope[GRAPHIC_CLASS_SYMBOL]) && void 0 !== _a || (globalScope[GRAPHIC_CLASS_SYMBOL] = createGraphicClassState()), globalScope[GRAPHIC_CLASS_SYMBOL];
|
|
9831
|
+
}
|
|
9832
|
+
const Graphic = getGraphicClassState().Graphic;
|
|
9788
9833
|
function backgroundNotImage(image) {
|
|
9789
9834
|
return "string" == typeof image ? !(image.startsWith("<svg") || isValidUrl(image) || image.includes("/") || isBase64(image)) : !(!image.fill && !image.stroke) || !("string" != typeof image.gradient || !Array.isArray(image.stops));
|
|
9790
9835
|
}
|
|
9791
9836
|
function isExternalTexture(texture) {
|
|
9792
9837
|
return !!texture && ("string" == typeof texture ? !builtinTextureTypes.has(texture) && (texture.startsWith("<svg") || isValidUrl(texture) || texture.includes("/") || isBase64(texture)) : isObject(texture));
|
|
9793
9838
|
}
|
|
9794
|
-
Graphic.
|
|
9839
|
+
Graphic.mixin(EventTarget);
|
|
9795
9840
|
|
|
9796
9841
|
const defaultThemeObj = {
|
|
9797
9842
|
arc: DefaultArcAttribute,
|
|
@@ -10894,7 +10939,6 @@ function createGraphicCtor(creator) {
|
|
|
10894
10939
|
}
|
|
10895
10940
|
};
|
|
10896
10941
|
}
|
|
10897
|
-
const sharedGraphicFactory = new GraphicFactory();
|
|
10898
10942
|
class GraphicCreator {
|
|
10899
10943
|
constructor() {
|
|
10900
10944
|
this.store = new Map();
|
|
@@ -10909,13 +10953,25 @@ class GraphicCreator {
|
|
|
10909
10953
|
return this.store.has(name) ? createGraphic(name, attributes) : null;
|
|
10910
10954
|
}
|
|
10911
10955
|
}
|
|
10912
|
-
const
|
|
10956
|
+
const GRAPHIC_REGISTRY_SYMBOL = Symbol.for("@visactor/vrender-core/graphic-registry");
|
|
10957
|
+
function createGraphicRegistryState() {
|
|
10958
|
+
return {
|
|
10959
|
+
graphicCreator: new GraphicCreator(),
|
|
10960
|
+
graphicFactory: new GraphicFactory()
|
|
10961
|
+
};
|
|
10962
|
+
}
|
|
10963
|
+
function getGraphicRegistryState() {
|
|
10964
|
+
const scope = globalThis;
|
|
10965
|
+
return scope[GRAPHIC_REGISTRY_SYMBOL] || (scope[GRAPHIC_REGISTRY_SYMBOL] = createGraphicRegistryState()), scope[GRAPHIC_REGISTRY_SYMBOL];
|
|
10966
|
+
}
|
|
10967
|
+
const sharedGraphicRegistry = getGraphicRegistryState();
|
|
10968
|
+
const graphicCreator = sharedGraphicRegistry.graphicCreator;
|
|
10913
10969
|
function registerGraphic(name, creator) {
|
|
10914
10970
|
if (!name) throw new Error("Graphic registration requires a non-empty graphic type");
|
|
10915
|
-
graphicCreator.registerStore(name, creator),
|
|
10971
|
+
graphicCreator.registerStore(name, creator), sharedGraphicRegistry.graphicFactory.register(name, createGraphicCtor(creator));
|
|
10916
10972
|
}
|
|
10917
10973
|
function createGraphic(name, attributes) {
|
|
10918
|
-
return
|
|
10974
|
+
return sharedGraphicRegistry.graphicFactory.create(name, attributes);
|
|
10919
10975
|
}
|
|
10920
10976
|
|
|
10921
10977
|
function getModelMatrix(out, graphic, theme) {
|
|
@@ -11216,7 +11272,7 @@ class Factory {
|
|
|
11216
11272
|
return Factory._pluginClasses[pluginKey];
|
|
11217
11273
|
}
|
|
11218
11274
|
}
|
|
11219
|
-
Factory._pluginClasses =
|
|
11275
|
+
Factory._pluginClasses = getFactoryState().pluginClasses;
|
|
11220
11276
|
|
|
11221
11277
|
function defaultLayerHandlerFactory(layerMode) {
|
|
11222
11278
|
const handlerFactory = application.layerHandlerFactory;
|
|
@@ -11305,84 +11361,6 @@ function bindGraphicModules({
|
|
|
11305
11361
|
bind(GraphicService).to(DefaultGraphicService), bind(GraphicCreator$1).toConstantValue(graphicCreator);
|
|
11306
11362
|
}
|
|
11307
11363
|
|
|
11308
|
-
class LegacyBindingSyntax {
|
|
11309
|
-
constructor(record) {
|
|
11310
|
-
this.record = record;
|
|
11311
|
-
}
|
|
11312
|
-
to(constructor) {
|
|
11313
|
-
return this.record.implementationType = "constructor", this.record.implementationConstructor = constructor, this.record.cached = !1, this.record.cachedValue = void 0, this;
|
|
11314
|
-
}
|
|
11315
|
-
toSelf() {
|
|
11316
|
-
return this.to(this.record.serviceIdentifier);
|
|
11317
|
-
}
|
|
11318
|
-
toDynamicValue(factory) {
|
|
11319
|
-
return this.record.implementationType = "dynamic", this.record.implementationFactory = factory, this.record.cached = !1, this.record.cachedValue = void 0, this;
|
|
11320
|
-
}
|
|
11321
|
-
toConstantValue(value) {
|
|
11322
|
-
return this.record.implementationType = "constant", this.record.implementationValue = value, this.record.cached = !0, this.record.cachedValue = value, this;
|
|
11323
|
-
}
|
|
11324
|
-
toService(serviceIdentifier) {
|
|
11325
|
-
return this.record.implementationType = "service", this.record.linkedServiceIdentifier = serviceIdentifier, this.record.cached = !1, this.record.cachedValue = void 0, this;
|
|
11326
|
-
}
|
|
11327
|
-
inSingletonScope() {
|
|
11328
|
-
return this.record.scope = "singleton", this;
|
|
11329
|
-
}
|
|
11330
|
-
whenTargetNamed(name) {
|
|
11331
|
-
return this.record.named = name, this;
|
|
11332
|
-
}
|
|
11333
|
-
}
|
|
11334
|
-
class LegacyBindingContext {
|
|
11335
|
-
constructor() {
|
|
11336
|
-
this.bindings = new Map(), this.bind = serviceIdentifier => {
|
|
11337
|
-
const record = {
|
|
11338
|
-
serviceIdentifier: serviceIdentifier,
|
|
11339
|
-
scope: "transient",
|
|
11340
|
-
cached: !1
|
|
11341
|
-
},
|
|
11342
|
-
records = this.bindings.get(serviceIdentifier);
|
|
11343
|
-
return records ? records.push(record) : this.bindings.set(serviceIdentifier, [record]), new LegacyBindingSyntax(record);
|
|
11344
|
-
}, this.rebind = serviceIdentifier => (this.bindings.delete(serviceIdentifier), this.bind(serviceIdentifier)), this.isBound = serviceIdentifier => {
|
|
11345
|
-
var _a, _b;
|
|
11346
|
-
return (null !== (_b = null === (_a = this.bindings.get(serviceIdentifier)) || void 0 === _a ? void 0 : _a.length) && void 0 !== _b ? _b : 0) > 0;
|
|
11347
|
-
}, this.getAll = serviceIdentifier => {
|
|
11348
|
-
const records = this.bindings.get(serviceIdentifier);
|
|
11349
|
-
return (null == records ? void 0 : records.length) ? records.map(record => this.resolveBinding(record)).filter(value => void 0 !== value) : [];
|
|
11350
|
-
}, this.getNamed = (serviceIdentifier, name) => {
|
|
11351
|
-
const records = this.bindings.get(serviceIdentifier);
|
|
11352
|
-
if (!(null == records ? void 0 : records.length)) return;
|
|
11353
|
-
const record = records.find(item => item.named === name);
|
|
11354
|
-
return record ? this.resolveBinding(record) : void 0;
|
|
11355
|
-
};
|
|
11356
|
-
}
|
|
11357
|
-
resolveBinding(record) {
|
|
11358
|
-
var _a;
|
|
11359
|
-
if ("singleton" === record.scope && record.cached) return record.cachedValue;
|
|
11360
|
-
let value;
|
|
11361
|
-
switch (record.implementationType) {
|
|
11362
|
-
case "constant":
|
|
11363
|
-
value = record.implementationValue;
|
|
11364
|
-
break;
|
|
11365
|
-
case "constructor":
|
|
11366
|
-
value = record.implementationConstructor ? new record.implementationConstructor() : void 0;
|
|
11367
|
-
break;
|
|
11368
|
-
case "dynamic":
|
|
11369
|
-
value = null === (_a = record.implementationFactory) || void 0 === _a ? void 0 : _a.call(record, {
|
|
11370
|
-
container: this
|
|
11371
|
-
});
|
|
11372
|
-
break;
|
|
11373
|
-
case "service":
|
|
11374
|
-
record.linkedServiceIdentifier && ([value] = this.getAll(record.linkedServiceIdentifier));
|
|
11375
|
-
break;
|
|
11376
|
-
default:
|
|
11377
|
-
value = void 0;
|
|
11378
|
-
}
|
|
11379
|
-
return "singleton" === record.scope && (record.cached = !0, record.cachedValue = value), value;
|
|
11380
|
-
}
|
|
11381
|
-
}
|
|
11382
|
-
function createLegacyBindingContext() {
|
|
11383
|
-
return new LegacyBindingContext();
|
|
11384
|
-
}
|
|
11385
|
-
|
|
11386
11364
|
const RenderService = Symbol.for("RenderService");
|
|
11387
11365
|
|
|
11388
11366
|
function bindRenderServiceModule({
|
|
@@ -15698,7 +15676,98 @@ function load(container) {
|
|
|
15698
15676
|
});
|
|
15699
15677
|
}
|
|
15700
15678
|
|
|
15701
|
-
|
|
15679
|
+
class LegacyBindingSyntax {
|
|
15680
|
+
constructor(record) {
|
|
15681
|
+
this.record = record;
|
|
15682
|
+
}
|
|
15683
|
+
to(constructor) {
|
|
15684
|
+
return this.record.implementationType = "constructor", this.record.implementationConstructor = constructor, this.record.cached = !1, this.record.cachedValue = void 0, this;
|
|
15685
|
+
}
|
|
15686
|
+
toSelf() {
|
|
15687
|
+
return this.to(this.record.serviceIdentifier);
|
|
15688
|
+
}
|
|
15689
|
+
toDynamicValue(factory) {
|
|
15690
|
+
return this.record.implementationType = "dynamic", this.record.implementationFactory = factory, this.record.cached = !1, this.record.cachedValue = void 0, this;
|
|
15691
|
+
}
|
|
15692
|
+
toConstantValue(value) {
|
|
15693
|
+
return this.record.implementationType = "constant", this.record.implementationValue = value, this.record.cached = !0, this.record.cachedValue = value, this;
|
|
15694
|
+
}
|
|
15695
|
+
toService(serviceIdentifier) {
|
|
15696
|
+
return this.record.implementationType = "service", this.record.linkedServiceIdentifier = serviceIdentifier, this.record.cached = !1, this.record.cachedValue = void 0, this;
|
|
15697
|
+
}
|
|
15698
|
+
inSingletonScope() {
|
|
15699
|
+
return this.record.scope = "singleton", this;
|
|
15700
|
+
}
|
|
15701
|
+
whenTargetNamed(name) {
|
|
15702
|
+
return this.record.named = name, this;
|
|
15703
|
+
}
|
|
15704
|
+
}
|
|
15705
|
+
class LegacyBindingContext {
|
|
15706
|
+
constructor() {
|
|
15707
|
+
this.bindings = new Map(), this.bind = serviceIdentifier => {
|
|
15708
|
+
const record = {
|
|
15709
|
+
serviceIdentifier: serviceIdentifier,
|
|
15710
|
+
scope: "transient",
|
|
15711
|
+
cached: !1
|
|
15712
|
+
},
|
|
15713
|
+
records = this.bindings.get(serviceIdentifier);
|
|
15714
|
+
return records ? records.push(record) : this.bindings.set(serviceIdentifier, [record]), new LegacyBindingSyntax(record);
|
|
15715
|
+
}, this.rebind = serviceIdentifier => (this.bindings.delete(serviceIdentifier), this.bind(serviceIdentifier)), this.isBound = serviceIdentifier => {
|
|
15716
|
+
var _a, _b;
|
|
15717
|
+
return (null !== (_b = null === (_a = this.bindings.get(serviceIdentifier)) || void 0 === _a ? void 0 : _a.length) && void 0 !== _b ? _b : 0) > 0;
|
|
15718
|
+
}, this.getAll = serviceIdentifier => {
|
|
15719
|
+
const records = this.bindings.get(serviceIdentifier);
|
|
15720
|
+
return (null == records ? void 0 : records.length) ? records.map(record => this.resolveBinding(record)).filter(value => void 0 !== value) : [];
|
|
15721
|
+
}, this.getNamed = (serviceIdentifier, name) => {
|
|
15722
|
+
const records = this.bindings.get(serviceIdentifier);
|
|
15723
|
+
if (!(null == records ? void 0 : records.length)) return;
|
|
15724
|
+
const record = records.find(item => item.named === name);
|
|
15725
|
+
return record ? this.resolveBinding(record) : void 0;
|
|
15726
|
+
};
|
|
15727
|
+
}
|
|
15728
|
+
resolveBinding(record) {
|
|
15729
|
+
var _a;
|
|
15730
|
+
if ("singleton" === record.scope && record.cached) return record.cachedValue;
|
|
15731
|
+
let value;
|
|
15732
|
+
switch (record.implementationType) {
|
|
15733
|
+
case "constant":
|
|
15734
|
+
value = record.implementationValue;
|
|
15735
|
+
break;
|
|
15736
|
+
case "constructor":
|
|
15737
|
+
value = record.implementationConstructor ? new record.implementationConstructor() : void 0;
|
|
15738
|
+
break;
|
|
15739
|
+
case "dynamic":
|
|
15740
|
+
value = null === (_a = record.implementationFactory) || void 0 === _a ? void 0 : _a.call(record, {
|
|
15741
|
+
container: this
|
|
15742
|
+
});
|
|
15743
|
+
break;
|
|
15744
|
+
case "service":
|
|
15745
|
+
record.linkedServiceIdentifier && ([value] = this.getAll(record.linkedServiceIdentifier));
|
|
15746
|
+
break;
|
|
15747
|
+
default:
|
|
15748
|
+
value = void 0;
|
|
15749
|
+
}
|
|
15750
|
+
return "singleton" === record.scope && (record.cached = !0, record.cachedValue = value), value;
|
|
15751
|
+
}
|
|
15752
|
+
}
|
|
15753
|
+
function createLegacyBindingContext() {
|
|
15754
|
+
return new LegacyBindingContext();
|
|
15755
|
+
}
|
|
15756
|
+
|
|
15757
|
+
const LEGACY_BOOTSTRAP_STATE_SYMBOL = Symbol.for("@visactor/vrender-core/legacy-bootstrap-state");
|
|
15758
|
+
function createLegacyBootstrapState() {
|
|
15759
|
+
return {
|
|
15760
|
+
legacyBindingContext: createLegacyBindingContext(),
|
|
15761
|
+
preloaded: !1
|
|
15762
|
+
};
|
|
15763
|
+
}
|
|
15764
|
+
function getLegacyBootstrapState() {
|
|
15765
|
+
const scope = globalThis;
|
|
15766
|
+
return scope[LEGACY_BOOTSTRAP_STATE_SYMBOL] || (scope[LEGACY_BOOTSTRAP_STATE_SYMBOL] = createLegacyBootstrapState()), scope[LEGACY_BOOTSTRAP_STATE_SYMBOL];
|
|
15767
|
+
}
|
|
15768
|
+
|
|
15769
|
+
const legacyBootstrapState = getLegacyBootstrapState(),
|
|
15770
|
+
legacyBindingContext = legacyBootstrapState.legacyBindingContext;
|
|
15702
15771
|
function getLegacyBindingContext() {
|
|
15703
15772
|
return legacyBindingContext;
|
|
15704
15773
|
}
|
|
@@ -16505,15 +16574,30 @@ class DefaultIncrementalCanvasLineRender extends DefaultCanvasLineRender {
|
|
|
16505
16574
|
}
|
|
16506
16575
|
}
|
|
16507
16576
|
|
|
16508
|
-
const
|
|
16509
|
-
|
|
16510
|
-
|
|
16511
|
-
|
|
16577
|
+
const RUNTIME_INSTALLER_STATE_SYMBOL = Symbol.for("@visactor/vrender-core/runtime-installer-state");
|
|
16578
|
+
function createRuntimeInstallerState() {
|
|
16579
|
+
return {
|
|
16580
|
+
runtimeInstallerContext: createLegacyBindingContext(),
|
|
16581
|
+
preloaded: !1,
|
|
16582
|
+
runtimeEntryKeys: new WeakMap(),
|
|
16583
|
+
runtimeDrawContributions: new WeakMap(),
|
|
16584
|
+
loadedRuntimeContributionModules: new WeakMap()
|
|
16585
|
+
};
|
|
16586
|
+
}
|
|
16587
|
+
function getRuntimeInstallerState() {
|
|
16588
|
+
const scope = globalThis;
|
|
16589
|
+
return scope[RUNTIME_INSTALLER_STATE_SYMBOL] || (scope[RUNTIME_INSTALLER_STATE_SYMBOL] = createRuntimeInstallerState()), scope[RUNTIME_INSTALLER_STATE_SYMBOL];
|
|
16590
|
+
}
|
|
16591
|
+
|
|
16592
|
+
const runtimeInstallerState = getRuntimeInstallerState(),
|
|
16593
|
+
runtimeInstallerContext = runtimeInstallerState.runtimeInstallerContext,
|
|
16594
|
+
RUNTIME_RENDERER_NAMESPACE = "vrender:runtime-renderer",
|
|
16512
16595
|
RUNTIME_PICKER_NAMESPACE = "vrender:runtime-picker",
|
|
16513
|
-
runtimeEntryKeys =
|
|
16514
|
-
runtimeDrawContributions =
|
|
16596
|
+
runtimeEntryKeys = runtimeInstallerState.runtimeEntryKeys,
|
|
16597
|
+
runtimeDrawContributions = runtimeInstallerState.runtimeDrawContributions;
|
|
16598
|
+
runtimeInstallerState.loadedRuntimeContributionModules;
|
|
16515
16599
|
function ensureRuntimeInstallerPreloaded() {
|
|
16516
|
-
|
|
16600
|
+
runtimeInstallerState.preloaded || (runtimeInstallerState.preloaded = !0, bindCoreModules({
|
|
16517
16601
|
bind: runtimeInstallerContext.bind
|
|
16518
16602
|
}), bindGraphicModules({
|
|
16519
16603
|
bind: runtimeInstallerContext.bind
|
|
@@ -16558,7 +16642,8 @@ function refreshRuntimeInstallerContributions() {
|
|
|
16558
16642
|
ContributionStore.refreshAllContributions();
|
|
16559
16643
|
}
|
|
16560
16644
|
function getRuntimeInstallerGlobal() {
|
|
16561
|
-
|
|
16645
|
+
var _a;
|
|
16646
|
+
return ensureRuntimeInstallerPreloaded(), null !== (_a = runtimeInstallerState.runtimeGlobal) && void 0 !== _a || (runtimeInstallerState.runtimeGlobal = new DefaultGlobal(createContributionProvider(EnvContribution, runtimeInstallerContext))), runtimeInstallerState.runtimeGlobal;
|
|
16562
16647
|
}
|
|
16563
16648
|
function configureRuntimeApplicationForApp(app) {
|
|
16564
16649
|
const bindingContext = getRuntimeInstallerBindingContext(),
|
|
@@ -8,4 +8,4 @@ export function createModule(CanvasConstructor, ContextConstructor) {
|
|
|
8
8
|
hasContextFactory || bindingContainer.bind(Context2dFactory).toDynamicValue((() => (params, dpr) => new ContextConstructor(params, dpr))).whenTargetNamed(ContextConstructor.env);
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
-
//# sourceMappingURL=create-canvas-module.js.map
|
|
11
|
+
//# sourceMappingURL=create-canvas-module.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visactor/vrender-kits",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4-alpha.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "cjs/index-node.js",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@visactor/vutils": "~1.0.12",
|
|
47
|
-
"@visactor/vrender-core": "1.1.
|
|
47
|
+
"@visactor/vrender-core": "1.1.4-alpha.1",
|
|
48
48
|
"@resvg/resvg-js": "2.4.1",
|
|
49
49
|
"roughjs": "4.6.6",
|
|
50
50
|
"gifuct-js": "2.1.2",
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
"vite": "3.2.6",
|
|
70
70
|
"typescript": "4.9.5",
|
|
71
71
|
"cross-env": "^7.0.3",
|
|
72
|
-
"@internal/
|
|
72
|
+
"@internal/eslint-config": "0.0.1",
|
|
73
73
|
"@internal/bundler": "0.0.1",
|
|
74
|
-
"@internal/
|
|
74
|
+
"@internal/ts-config": "0.0.1"
|
|
75
75
|
},
|
|
76
76
|
"keywords": [
|
|
77
77
|
"VisActor",
|